dev3000 0.0.60 → 0.0.62

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 (201) hide show
  1. package/README.md +4 -0
  2. package/dist/cdp-monitor.d.ts +2 -1
  3. package/dist/cdp-monitor.d.ts.map +1 -1
  4. package/dist/cdp-monitor.js +34 -17
  5. package/dist/cdp-monitor.js.map +1 -1
  6. package/dist/cli.js +105 -13
  7. package/dist/cli.js.map +1 -1
  8. package/dist/dev-environment.d.ts +3 -0
  9. package/dist/dev-environment.d.ts.map +1 -1
  10. package/dist/dev-environment.js +93 -34
  11. package/dist/dev-environment.js.map +1 -1
  12. package/dist/services/parsers/error-detectors/base.d.ts +24 -0
  13. package/dist/services/parsers/error-detectors/base.d.ts.map +1 -0
  14. package/dist/services/parsers/error-detectors/base.js +44 -0
  15. package/dist/services/parsers/error-detectors/base.js.map +1 -0
  16. package/dist/services/parsers/error-detectors/index.d.ts +6 -0
  17. package/dist/services/parsers/error-detectors/index.d.ts.map +1 -0
  18. package/dist/services/parsers/error-detectors/index.js +6 -0
  19. package/dist/services/parsers/error-detectors/index.js.map +1 -0
  20. package/dist/services/parsers/error-detectors/nextjs.d.ts +9 -0
  21. package/dist/services/parsers/error-detectors/nextjs.d.ts.map +1 -0
  22. package/dist/services/parsers/error-detectors/nextjs.js +52 -0
  23. package/dist/services/parsers/error-detectors/nextjs.js.map +1 -0
  24. package/dist/services/parsers/index.d.ts +8 -0
  25. package/dist/services/parsers/index.d.ts.map +1 -0
  26. package/dist/services/parsers/index.js +10 -0
  27. package/dist/services/parsers/index.js.map +1 -0
  28. package/dist/services/parsers/log-parsers/base.d.ts +26 -0
  29. package/dist/services/parsers/log-parsers/base.d.ts.map +1 -0
  30. package/dist/services/parsers/log-parsers/base.js +6 -0
  31. package/dist/services/parsers/log-parsers/base.js.map +1 -0
  32. package/dist/services/parsers/log-parsers/index.d.ts +6 -0
  33. package/dist/services/parsers/log-parsers/index.d.ts.map +1 -0
  34. package/dist/services/parsers/log-parsers/index.js +5 -0
  35. package/dist/services/parsers/log-parsers/index.js.map +1 -0
  36. package/dist/services/parsers/log-parsers/standard.d.ts +9 -0
  37. package/dist/services/parsers/log-parsers/standard.d.ts.map +1 -0
  38. package/dist/services/parsers/log-parsers/standard.js +17 -0
  39. package/dist/services/parsers/log-parsers/standard.js.map +1 -0
  40. package/dist/services/parsers/output-processor.d.ts +39 -0
  41. package/dist/services/parsers/output-processor.d.ts.map +1 -0
  42. package/dist/services/parsers/output-processor.js +54 -0
  43. package/dist/services/parsers/output-processor.js.map +1 -0
  44. package/mcp-server/.next/BUILD_ID +1 -1
  45. package/mcp-server/.next/app-build-manifest.json +56 -15
  46. package/mcp-server/.next/build/chunks/[root-of-the-server]__974941ed._.js +2 -10
  47. package/mcp-server/.next/build/chunks/[root-of-the-server]__974941ed._.js.map +4 -4
  48. package/mcp-server/.next/build/chunks/[root-of-the-server]__c7ae8543._.js +2 -10
  49. package/mcp-server/.next/build/chunks/[root-of-the-server]__c7ae8543._.js.map +4 -4
  50. package/mcp-server/.next/build/chunks/node_modules__pnpm_806d01c0._.js +10 -35
  51. package/mcp-server/.next/build/chunks/node_modules__pnpm_806d01c0._.js.map +9 -9
  52. package/mcp-server/.next/build-manifest.json +9 -12
  53. package/mcp-server/.next/cache/.previewinfo +1 -1
  54. package/mcp-server/.next/cache/.rscinfo +1 -1
  55. package/mcp-server/.next/cache/.tsbuildinfo +1 -1
  56. package/mcp-server/.next/fallback-build-manifest.json +2 -2
  57. package/mcp-server/.next/prerender-manifest.json +106 -4
  58. package/mcp-server/.next/routes-manifest.json +82 -1
  59. package/mcp-server/.next/server/app/_global-error.html +2 -2
  60. package/mcp-server/.next/server/app/_global-error.rsc +1 -1
  61. package/mcp-server/.next/server/app/_not-found/page/app-build-manifest.json +1 -1
  62. package/mcp-server/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  63. package/mcp-server/.next/server/app/_not-found.html +1 -1
  64. package/mcp-server/.next/server/app/_not-found.rsc +2 -2
  65. package/mcp-server/.next/server/app/api/tools/route/app-build-manifest.json +6 -9
  66. package/mcp-server/.next/server/app/api/tools/route/build-manifest.json +7 -10
  67. package/mcp-server/.next/server/app/api/tools/route.js +5 -4
  68. package/mcp-server/.next/server/app/index.html +1 -1
  69. package/mcp-server/.next/server/app/index.rsc +3 -3
  70. package/mcp-server/.next/server/app/logs/page/app-build-manifest.json +1 -1
  71. package/mcp-server/.next/server/app/logs/page_client-reference-manifest.js +1 -1
  72. package/mcp-server/.next/server/app/page/app-build-manifest.json +10 -15
  73. package/mcp-server/.next/server/app/page/build-manifest.json +7 -10
  74. package/mcp-server/.next/server/app/page.js +9 -7
  75. package/mcp-server/.next/server/app/page_client-reference-manifest.js +1 -1
  76. package/mcp-server/.next/server/app/replay/page/app-build-manifest.json +1 -1
  77. package/mcp-server/.next/server/app/replay/page_client-reference-manifest.js +1 -1
  78. package/mcp-server/.next/server/app/replay.html +1 -1
  79. package/mcp-server/.next/server/app/replay.rsc +2 -2
  80. package/mcp-server/.next/server/app-paths-manifest.json +15 -1
  81. package/mcp-server/.next/server/chunks/[root-of-the-server]__7f1ecf7b._.js.map +1 -1
  82. package/mcp-server/.next/server/chunks/[root-of-the-server]__82298dd3._.js.map +1 -1
  83. package/mcp-server/.next/server/chunks/_next-internal_server_app_api_tools_route_actions_4a0d5a18.js +1 -5
  84. package/mcp-server/.next/server/chunks/_next-internal_server_app_api_tools_route_actions_4a0d5a18.js.map +1 -6
  85. package/mcp-server/.next/server/chunks/ssr/0916f_next_dist_client_components_builtin_forbidden_7b57efa5.js +1 -30
  86. package/mcp-server/.next/server/chunks/ssr/0916f_next_dist_client_components_builtin_forbidden_7b57efa5.js.map +1 -6
  87. package/mcp-server/.next/server/chunks/ssr/0916f_next_dist_client_components_builtin_global-error_118601bd.js +1 -22
  88. package/mcp-server/.next/server/chunks/ssr/0916f_next_dist_client_components_builtin_global-error_118601bd.js.map +1 -8
  89. package/mcp-server/.next/server/chunks/ssr/0916f_next_dist_client_components_builtin_unauthorized_6614f15c.js +1 -30
  90. package/mcp-server/.next/server/chunks/ssr/0916f_next_dist_client_components_builtin_unauthorized_6614f15c.js.map +1 -6
  91. package/mcp-server/.next/server/chunks/ssr/0916f_next_dist_client_components_f453b63e._.js +1 -148
  92. package/mcp-server/.next/server/chunks/ssr/0916f_next_dist_client_components_f453b63e._.js.map +1 -8
  93. package/mcp-server/.next/server/chunks/ssr/_dc26a647._.js +1 -1
  94. package/mcp-server/.next/server/chunks/ssr/_dc26a647._.js.map +1 -1
  95. package/mcp-server/.next/server/chunks/ssr/_next-internal_server_app_page_actions_39d4fc33.js +1 -5
  96. package/mcp-server/.next/server/chunks/ssr/_next-internal_server_app_page_actions_39d4fc33.js.map +1 -6
  97. package/mcp-server/.next/server/middleware-build-manifest.js +7 -10
  98. package/mcp-server/.next/server/pages/404.html +1 -1
  99. package/mcp-server/.next/server/pages/500.html +2 -2
  100. package/mcp-server/.next/server/pages-manifest.json +4 -1
  101. package/mcp-server/.next/server/server-reference-manifest.js +1 -1
  102. package/mcp-server/.next/server/server-reference-manifest.json +1 -1
  103. package/mcp-server/.next/standalone/.next/BUILD_ID +1 -1
  104. package/mcp-server/.next/standalone/.next/app-build-manifest.json +5 -5
  105. package/mcp-server/.next/standalone/.next/build-manifest.json +2 -2
  106. package/mcp-server/.next/standalone/.next/prerender-manifest.json +16 -16
  107. package/mcp-server/.next/standalone/.next/server/app/_global-error.html +2 -2
  108. package/mcp-server/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  109. package/mcp-server/.next/standalone/.next/server/app/_not-found/page/app-build-manifest.json +1 -1
  110. package/mcp-server/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  111. package/mcp-server/.next/standalone/.next/server/app/_not-found.html +1 -1
  112. package/mcp-server/.next/standalone/.next/server/app/_not-found.rsc +2 -2
  113. package/mcp-server/.next/standalone/.next/server/app/index.html +1 -1
  114. package/mcp-server/.next/standalone/.next/server/app/index.rsc +3 -3
  115. package/mcp-server/.next/standalone/.next/server/app/logs/page/app-build-manifest.json +1 -1
  116. package/mcp-server/.next/standalone/.next/server/app/logs/page_client-reference-manifest.js +1 -1
  117. package/mcp-server/.next/standalone/.next/server/app/page/app-build-manifest.json +2 -2
  118. package/mcp-server/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  119. package/mcp-server/.next/standalone/.next/server/app/replay/page/app-build-manifest.json +1 -1
  120. package/mcp-server/.next/standalone/.next/server/app/replay/page_client-reference-manifest.js +1 -1
  121. package/mcp-server/.next/standalone/.next/server/app/replay.html +1 -1
  122. package/mcp-server/.next/standalone/.next/server/app/replay.rsc +2 -2
  123. package/mcp-server/.next/standalone/.next/server/chunks/ssr/_dc26a647._.js +1 -1
  124. package/mcp-server/.next/standalone/.next/server/pages/404.html +1 -1
  125. package/mcp-server/.next/standalone/.next/server/pages/500.html +2 -2
  126. package/mcp-server/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  127. package/mcp-server/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  128. package/mcp-server/.next/standalone/app/api/mcp/[transport]/route.ts +93 -91
  129. package/mcp-server/.next/static/chunks/{5dfb96bedc33a0a5.css → 6634762c4edabf25.css} +1 -1
  130. package/mcp-server/.next/static/chunks/aac71a4d8cd0d1d1.js +1 -0
  131. package/mcp-server/.next/trace +1 -3
  132. package/package.json +1 -1
  133. package/mcp-server/.next/server/chunks/0916f_next_c68840f1._.js +0 -14728
  134. package/mcp-server/.next/server/chunks/0916f_next_c68840f1._.js.map +0 -118
  135. package/mcp-server/.next/server/chunks/[root-of-the-server]__3dccd82a._.js +0 -248
  136. package/mcp-server/.next/server/chunks/[root-of-the-server]__3dccd82a._.js.map +0 -6
  137. package/mcp-server/.next/server/chunks/ssr/0916f_next_dist_76a62e93._.js +0 -5831
  138. package/mcp-server/.next/server/chunks/ssr/0916f_next_dist_76a62e93._.js.map +0 -89
  139. package/mcp-server/.next/server/chunks/ssr/0916f_next_dist_d231ced7._.js +0 -15764
  140. package/mcp-server/.next/server/chunks/ssr/0916f_next_dist_d231ced7._.js.map +0 -145
  141. package/mcp-server/.next/server/chunks/ssr/0916f_next_dist_dbf009ef._.js +0 -9174
  142. package/mcp-server/.next/server/chunks/ssr/0916f_next_dist_dbf009ef._.js.map +0 -51
  143. package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__1aaf5479._.js +0 -38
  144. package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__1aaf5479._.js.map +0 -5
  145. package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__7f148858._.js +0 -62
  146. package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__7f148858._.js.map +0 -5
  147. package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__95719760._.js +0 -54
  148. package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__95719760._.js.map +0 -8
  149. package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__b1782a10._.js +0 -813
  150. package/mcp-server/.next/server/chunks/ssr/[root-of-the-server]__b1782a10._.js.map +0 -6
  151. package/mcp-server/.next/server/chunks/ssr/[turbopack]_browser_dev_hmr-client_hmr-client_ts_818f0fdf._.js +0 -467
  152. package/mcp-server/.next/server/chunks/ssr/[turbopack]_browser_dev_hmr-client_hmr-client_ts_818f0fdf._.js.map +0 -6
  153. package/mcp-server/.next/server/chunks/ssr/[turbopack]_browser_dev_hmr-client_hmr-client_ts_89c5f8e8._.js +0 -12
  154. package/mcp-server/.next/server/chunks/ssr/[turbopack]_browser_dev_hmr-client_hmr-client_ts_89c5f8e8._.js.map +0 -5
  155. package/mcp-server/.next/server/chunks/ssr/_9c0d7aa1._.js +0 -100
  156. package/mcp-server/.next/server/chunks/ssr/_9c0d7aa1._.js.map +0 -7
  157. package/mcp-server/.next/server/chunks/ssr/node_modules__pnpm_cc7262c5._.js +0 -13866
  158. package/mcp-server/.next/server/chunks/ssr/node_modules__pnpm_cc7262c5._.js.map +0 -152
  159. package/mcp-server/.next/server/chunks/ssr/node_modules__pnpm_da0d0a14._.js +0 -13866
  160. package/mcp-server/.next/server/chunks/ssr/node_modules__pnpm_da0d0a14._.js.map +0 -152
  161. package/mcp-server/.next/static/chunks/0916f_next_dist_2e70ccdb._.js +0 -4068
  162. package/mcp-server/.next/static/chunks/0916f_next_dist_2e70ccdb._.js.map +0 -64
  163. package/mcp-server/.next/static/chunks/0916f_next_dist_b3493ca8._.js +0 -2780
  164. package/mcp-server/.next/static/chunks/0916f_next_dist_b3493ca8._.js.map +0 -27
  165. package/mcp-server/.next/static/chunks/0916f_next_dist_build_polyfills_polyfill-nomodule.js +0 -1
  166. package/mcp-server/.next/static/chunks/0916f_next_dist_client_components_builtin_global-error_80971850.js +0 -7
  167. package/mcp-server/.next/static/chunks/0916f_next_dist_client_d3483330._.js +0 -10175
  168. package/mcp-server/.next/static/chunks/0916f_next_dist_client_d3483330._.js.map +0 -103
  169. package/mcp-server/.next/static/chunks/0916f_next_dist_compiled_8cc8c301._.js +0 -5009
  170. package/mcp-server/.next/static/chunks/0916f_next_dist_compiled_8cc8c301._.js.map +0 -21
  171. package/mcp-server/.next/static/chunks/0916f_next_dist_compiled_next-devtools_index_94228adb.js +0 -30477
  172. package/mcp-server/.next/static/chunks/0916f_next_dist_compiled_next-devtools_index_94228adb.js.map +0 -6
  173. package/mcp-server/.next/static/chunks/0916f_next_dist_compiled_react-dom_c74e1e00._.js +0 -14617
  174. package/mcp-server/.next/static/chunks/0916f_next_dist_compiled_react-dom_c74e1e00._.js.map +0 -9
  175. package/mcp-server/.next/static/chunks/1c2c4101e46d1c5e.js +0 -1
  176. package/mcp-server/.next/static/chunks/69652_@swc_helpers_cjs_77b72907._.js +0 -85
  177. package/mcp-server/.next/static/chunks/69652_@swc_helpers_cjs_77b72907._.js.map +0 -10
  178. package/mcp-server/.next/static/chunks/[turbopack]_browser_dev_hmr-client_hmr-client_ts_29af464a._.js +0 -7
  179. package/mcp-server/.next/static/chunks/[turbopack]_browser_dev_hmr-client_hmr-client_ts_c8c997ce._.js +0 -476
  180. package/mcp-server/.next/static/chunks/[turbopack]_browser_dev_hmr-client_hmr-client_ts_c8c997ce._.js.map +0 -6
  181. package/mcp-server/.next/static/chunks/[turbopack]_browser_dev_hmr-client_hmr-client_ts_d335a95d._.js +0 -13
  182. package/mcp-server/.next/static/chunks/[turbopack]_browser_dev_hmr-client_hmr-client_ts_d335a95d._.js.map +0 -5
  183. package/mcp-server/.next/static/chunks/_9429dbc3._.js +0 -2117
  184. package/mcp-server/.next/static/chunks/_9429dbc3._.js.map +0 -16
  185. package/mcp-server/.next/static/chunks/_a0ff3932._.js +0 -13
  186. package/mcp-server/.next/static/chunks/_efaa0516._.js.map +0 -10
  187. package/mcp-server/.next/static/chunks/app_244179ef._.css +0 -4548
  188. package/mcp-server/.next/static/chunks/app_244179ef._.css.map +0 -7
  189. package/mcp-server/.next/static/chunks/app_compiled_css_bad6b30c._.single.css +0 -2117
  190. package/mcp-server/.next/static/chunks/app_compiled_css_bad6b30c._.single.css.map +0 -6
  191. package/mcp-server/.next/static/chunks/app_globals_css_bad6b30c._.single.css +0 -2432
  192. package/mcp-server/.next/static/chunks/app_globals_css_bad6b30c._.single.css.map +0 -6
  193. package/mcp-server/.next/static/chunks/app_layout_tsx_80971850._.js +0 -7
  194. package/mcp-server/.next/static/chunks/app_page_tsx_6ea10ef3._.js +0 -7
  195. package/mcp-server/.next/static/chunks/turbopack-_efaa0516._.js +0 -1836
  196. package/mcp-server/.next/static/development/_ssgManifest.js +0 -1
  197. package/mcp-server/.next/static/vcdr8uFblpN3gCi_831po/_buildManifest.js +0 -11
  198. package/mcp-server/.next/static/vcdr8uFblpN3gCi_831po/_clientMiddlewareManifest.json +0 -1
  199. /package/mcp-server/.next/static/{development → fgx2Ltd5vbloYUQlVKX60}/_buildManifest.js +0 -0
  200. /package/mcp-server/.next/static/{development → fgx2Ltd5vbloYUQlVKX60}/_clientMiddlewareManifest.json +0 -0
  201. /package/mcp-server/.next/static/{vcdr8uFblpN3gCi_831po → fgx2Ltd5vbloYUQlVKX60}/_ssgManifest.js +0 -0
@@ -1,2780 +0,0 @@
1
- (globalThis.TURBOPACK || (globalThis.TURBOPACK = [])).push([typeof document === "object" ? document.currentScript : undefined,
2
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/shared/lib/router/utils/disable-smooth-scroll.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
3
- "use strict";
4
-
5
- var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f2e$pnpm$2f$next$40$15$2e$5$2e$1$2d$canary$2e$30_babel$2d$plugin$2d$react$2d$compiler$40$19$2e$1$2e$0$2d$rc$2e$3_react$2d$dom$40$19$2e$2$2e$0$2d$canary$2d$d_5eea965284f26eb4e30482e6426df099$2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)");
6
- "use strict";
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
- Object.defineProperty(exports, "disableSmoothScrollDuringRouteTransition", {
11
- enumerable: true,
12
- get: function() {
13
- return disableSmoothScrollDuringRouteTransition;
14
- }
15
- });
16
- const _warnonce = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/shared/lib/utils/warn-once.js [app-client] (ecmascript)");
17
- function disableSmoothScrollDuringRouteTransition(fn, options) {
18
- if (options === void 0) options = {};
19
- // if only the hash is changed, we don't need to disable smooth scrolling
20
- // we only care to prevent smooth scrolling when navigating to a new page to avoid jarring UX
21
- if (options.onlyHashChange) {
22
- fn();
23
- return;
24
- }
25
- const htmlElement = document.documentElement;
26
- const hasDataAttribute = htmlElement.dataset.scrollBehavior === 'smooth';
27
- // Since this is a breaking change, this is temporarily flagged
28
- // and will be false by default.
29
- // In the next major (v16), this will be automatically enabled
30
- if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
31
- ;
32
- else {
33
- // Old behavior: always manipulate styles, but warn about upcoming change
34
- // Warn if smooth scrolling is detected but no data attribute is present
35
- if (("TURBOPACK compile-time value", "development") === 'development' && !hasDataAttribute && getComputedStyle(htmlElement).scrollBehavior === 'smooth') {
36
- (0, _warnonce.warnOnce)('Detected `scroll-behavior: smooth` on the `<html>` element. In a future version, ' + 'Next.js will no longer automatically disable smooth scrolling during route transitions. ' + 'To prepare for this change, add `data-scroll-behavior="smooth"` to your <html> element. ' + 'Learn more: https://nextjs.org/docs/messages/missing-data-scroll-behavior');
37
- }
38
- }
39
- // Proceed with temporarily disabling smooth scrolling
40
- const existing = htmlElement.style.scrollBehavior;
41
- htmlElement.style.scrollBehavior = 'auto';
42
- if (!options.dontForceLayout) {
43
- // In Chrome-based browsers we need to force reflow before calling `scrollTo`.
44
- // Otherwise it will not pickup the change in scrollBehavior
45
- // More info here: https://github.com/vercel/next.js/issues/40719#issuecomment-1336248042
46
- htmlElement.getClientRects();
47
- }
48
- fn();
49
- htmlElement.style.scrollBehavior = existing;
50
- } //# sourceMappingURL=disable-smooth-scroll.js.map
51
- }),
52
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/components/bfcache.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
53
- "use strict";
54
-
55
- var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f2e$pnpm$2f$next$40$15$2e$5$2e$1$2d$canary$2e$30_babel$2d$plugin$2d$react$2d$compiler$40$19$2e$1$2e$0$2d$rc$2e$3_react$2d$dom$40$19$2e$2$2e$0$2d$canary$2d$d_5eea965284f26eb4e30482e6426df099$2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)");
56
- "use strict";
57
- Object.defineProperty(exports, "__esModule", {
58
- value: true
59
- });
60
- Object.defineProperty(exports, "useRouterBFCache", {
61
- enumerable: true,
62
- get: function() {
63
- return useRouterBFCache;
64
- }
65
- });
66
- const _react = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)");
67
- // When the flag is disabled, only track the currently active tree
68
- const MAX_BF_CACHE_ENTRIES = ("TURBOPACK compile-time falsy", 0) ? "TURBOPACK unreachable" : 1;
69
- function useRouterBFCache(activeTree, activeStateKey) {
70
- // The currently active entry. The entries form a linked list, sorted in
71
- // order of most recently active. This allows us to reuse parts of the list
72
- // without cloning, unless there's a reordering or removal.
73
- // TODO: Once we start tracking back/forward history at each route level,
74
- // we should use the history order instead. In other words, when traversing
75
- // to an existing entry as a result of a popstate event, we should maintain
76
- // the existing order instead of moving it to the front of the list. I think
77
- // an initial implementation of this could be to pass an incrementing id
78
- // to history.pushState/replaceState, then use that here for ordering.
79
- const [prevActiveEntry, setPrevActiveEntry] = (0, _react.useState)(()=>{
80
- const initialEntry = {
81
- tree: activeTree,
82
- stateKey: activeStateKey,
83
- next: null
84
- };
85
- return initialEntry;
86
- });
87
- if (prevActiveEntry.tree === activeTree) {
88
- // Fast path. The active tree hasn't changed, so we can reuse the
89
- // existing state.
90
- return prevActiveEntry;
91
- }
92
- // The route tree changed. Note that this doesn't mean that the tree changed
93
- // *at this level* — the change may be due to a child route. Either way, we
94
- // need to either add or update the router tree in the bfcache.
95
- //
96
- // The rest of the code looks more complicated than it actually is because we
97
- // can't mutate the state in place; we have to copy-on-write.
98
- // Create a new entry for the active cache key. This is the head of the new
99
- // linked list.
100
- const newActiveEntry = {
101
- tree: activeTree,
102
- stateKey: activeStateKey,
103
- next: null
104
- };
105
- // We need to append the old list onto the new list. If the head of the new
106
- // list was already present in the cache, then we'll need to clone everything
107
- // that came before it. Then we can reuse the rest.
108
- let n = 1;
109
- let oldEntry = prevActiveEntry;
110
- let clonedEntry = newActiveEntry;
111
- while(oldEntry !== null && n < MAX_BF_CACHE_ENTRIES){
112
- if (oldEntry.stateKey === activeStateKey) {
113
- // Fast path. This entry in the old list that corresponds to the key that
114
- // is now active. We've already placed a clone of this entry at the front
115
- // of the new list. We can reuse the rest of the old list without cloning.
116
- // NOTE: We don't need to worry about eviction in this case because we
117
- // haven't increased the size of the cache, and we assume the max size
118
- // is constant across renders. If we were to change it to a dynamic limit,
119
- // then the implementation would need to account for that.
120
- clonedEntry.next = oldEntry.next;
121
- break;
122
- } else {
123
- // Clone the entry and append it to the list.
124
- n++;
125
- const entry = {
126
- tree: oldEntry.tree,
127
- stateKey: oldEntry.stateKey,
128
- next: null
129
- };
130
- clonedEntry.next = entry;
131
- clonedEntry = entry;
132
- }
133
- oldEntry = oldEntry.next;
134
- }
135
- setPrevActiveEntry(newActiveEntry);
136
- return newActiveEntry;
137
- }
138
- if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
139
- Object.defineProperty(exports.default, '__esModule', {
140
- value: true
141
- });
142
- Object.assign(exports.default, exports);
143
- module.exports = exports.default;
144
- } //# sourceMappingURL=bfcache.js.map
145
- }),
146
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/components/layout-router.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
147
- "use strict";
148
-
149
- var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f2e$pnpm$2f$next$40$15$2e$5$2e$1$2d$canary$2e$30_babel$2d$plugin$2d$react$2d$compiler$40$19$2e$1$2e$0$2d$rc$2e$3_react$2d$dom$40$19$2e$2$2e$0$2d$canary$2d$d_5eea965284f26eb4e30482e6426df099$2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)");
150
- 'use client';
151
- "use strict";
152
- Object.defineProperty(exports, "__esModule", {
153
- value: true
154
- });
155
- Object.defineProperty(exports, /**
156
- * OuterLayoutRouter handles the current segment as well as <Offscreen> rendering of other segments.
157
- * It can be rendered next to each other with a different `parallelRouterKey`, allowing for Parallel routes.
158
- */ "default", {
159
- enumerable: true,
160
- get: function() {
161
- return OuterLayoutRouter;
162
- }
163
- });
164
- const _interop_require_default = __turbopack_context__.r("[project]/node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [app-client] (ecmascript)");
165
- const _interop_require_wildcard = __turbopack_context__.r("[project]/node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs [app-client] (ecmascript)");
166
- const _jsxruntime = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/compiled/react/jsx-runtime.js [app-client] (ecmascript)");
167
- const _routerreducertypes = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js [app-client] (ecmascript)");
168
- const _react = /*#__PURE__*/ _interop_require_wildcard._(__turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)"));
169
- const _reactdom = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/compiled/react-dom/index.js [app-client] (ecmascript)"));
170
- const _approutercontextsharedruntime = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js [app-client] (ecmascript)");
171
- const _fetchserverresponse = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js [app-client] (ecmascript)");
172
- const _unresolvedthenable = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/components/unresolved-thenable.js [app-client] (ecmascript)");
173
- const _errorboundary = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/components/error-boundary.js [app-client] (ecmascript)");
174
- const _matchsegments = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/components/match-segments.js [app-client] (ecmascript)");
175
- const _disablesmoothscroll = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/shared/lib/router/utils/disable-smooth-scroll.js [app-client] (ecmascript)");
176
- const _redirectboundary = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/components/redirect-boundary.js [app-client] (ecmascript)");
177
- const _errorboundary1 = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js [app-client] (ecmascript)");
178
- const _createroutercachekey = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/components/router-reducer/create-router-cache-key.js [app-client] (ecmascript)");
179
- const _hasinterceptionrouteincurrenttree = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/components/router-reducer/reducers/has-interception-route-in-current-tree.js [app-client] (ecmascript)");
180
- const _useactionqueue = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/components/use-action-queue.js [app-client] (ecmascript)");
181
- const _bfcache = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/components/bfcache.js [app-client] (ecmascript)");
182
- const _apppaths = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/shared/lib/router/utils/app-paths.js [app-client] (ecmascript)");
183
- const Activity = ("TURBOPACK compile-time falsy", 0) ? "TURBOPACK unreachable" : null;
184
- /**
185
- * Add refetch marker to router state at the point of the current layout segment.
186
- * This ensures the response returned is not further down than the current layout segment.
187
- */ function walkAddRefetch(segmentPathToWalk, treeToRecreate) {
188
- if (segmentPathToWalk) {
189
- const [segment, parallelRouteKey] = segmentPathToWalk;
190
- const isLast = segmentPathToWalk.length === 2;
191
- if ((0, _matchsegments.matchSegment)(treeToRecreate[0], segment)) {
192
- if (treeToRecreate[1].hasOwnProperty(parallelRouteKey)) {
193
- if (isLast) {
194
- const subTree = walkAddRefetch(undefined, treeToRecreate[1][parallelRouteKey]);
195
- return [
196
- treeToRecreate[0],
197
- {
198
- ...treeToRecreate[1],
199
- [parallelRouteKey]: [
200
- subTree[0],
201
- subTree[1],
202
- subTree[2],
203
- 'refetch'
204
- ]
205
- }
206
- ];
207
- }
208
- return [
209
- treeToRecreate[0],
210
- {
211
- ...treeToRecreate[1],
212
- [parallelRouteKey]: walkAddRefetch(segmentPathToWalk.slice(2), treeToRecreate[1][parallelRouteKey])
213
- }
214
- ];
215
- }
216
- }
217
- }
218
- return treeToRecreate;
219
- }
220
- const __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = _reactdom.default.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
221
- // TODO-APP: Replace with new React API for finding dom nodes without a `ref` when available
222
- /**
223
- * Wraps ReactDOM.findDOMNode with additional logic to hide React Strict Mode warning
224
- */ function findDOMNode(instance) {
225
- // Tree-shake for server bundle
226
- if (typeof window === 'undefined') return null;
227
- // __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE.findDOMNode is null during module init.
228
- // We need to lazily reference it.
229
- const internal_reactDOMfindDOMNode = __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE.findDOMNode;
230
- return internal_reactDOMfindDOMNode(instance);
231
- }
232
- const rectProperties = [
233
- 'bottom',
234
- 'height',
235
- 'left',
236
- 'right',
237
- 'top',
238
- 'width',
239
- 'x',
240
- 'y'
241
- ];
242
- /**
243
- * Check if a HTMLElement is hidden or fixed/sticky position
244
- */ function shouldSkipElement(element) {
245
- // we ignore fixed or sticky positioned elements since they'll likely pass the "in-viewport" check
246
- // and will result in a situation we bail on scroll because of something like a fixed nav,
247
- // even though the actual page content is offscreen
248
- if ([
249
- 'sticky',
250
- 'fixed'
251
- ].includes(getComputedStyle(element).position)) {
252
- if ("TURBOPACK compile-time truthy", 1) {
253
- console.warn('Skipping auto-scroll behavior due to `position: sticky` or `position: fixed` on element:', element);
254
- }
255
- return true;
256
- }
257
- // Uses `getBoundingClientRect` to check if the element is hidden instead of `offsetParent`
258
- // because `offsetParent` doesn't consider document/body
259
- const rect = element.getBoundingClientRect();
260
- return rectProperties.every((item)=>rect[item] === 0);
261
- }
262
- /**
263
- * Check if the top corner of the HTMLElement is in the viewport.
264
- */ function topOfElementInViewport(element, viewportHeight) {
265
- const rect = element.getBoundingClientRect();
266
- return rect.top >= 0 && rect.top <= viewportHeight;
267
- }
268
- /**
269
- * Find the DOM node for a hash fragment.
270
- * If `top` the page has to scroll to the top of the page. This mirrors the browser's behavior.
271
- * If the hash fragment is an id, the page has to scroll to the element with that id.
272
- * If the hash fragment is a name, the page has to scroll to the first element with that name.
273
- */ function getHashFragmentDomNode(hashFragment) {
274
- // If the hash fragment is `top` the page has to scroll to the top of the page.
275
- if (hashFragment === 'top') {
276
- return document.body;
277
- }
278
- var _document_getElementById;
279
- // If the hash fragment is an id, the page has to scroll to the element with that id.
280
- return (_document_getElementById = document.getElementById(hashFragment)) != null ? _document_getElementById : document.getElementsByName(hashFragment)[0];
281
- }
282
- class InnerScrollAndFocusHandler extends _react.default.Component {
283
- componentDidMount() {
284
- this.handlePotentialScroll();
285
- }
286
- componentDidUpdate() {
287
- // Because this property is overwritten in handlePotentialScroll it's fine to always run it when true as it'll be set to false for subsequent renders.
288
- if (this.props.focusAndScrollRef.apply) {
289
- this.handlePotentialScroll();
290
- }
291
- }
292
- render() {
293
- return this.props.children;
294
- }
295
- constructor(...args){
296
- super(...args), this.handlePotentialScroll = ()=>{
297
- // Handle scroll and focus, it's only applied once in the first useEffect that triggers that changed.
298
- const { focusAndScrollRef, segmentPath } = this.props;
299
- if (focusAndScrollRef.apply) {
300
- // segmentPaths is an array of segment paths that should be scrolled to
301
- // if the current segment path is not in the array, the scroll is not applied
302
- // unless the array is empty, in which case the scroll is always applied
303
- if (focusAndScrollRef.segmentPaths.length !== 0 && !focusAndScrollRef.segmentPaths.some((scrollRefSegmentPath)=>segmentPath.every((segment, index)=>(0, _matchsegments.matchSegment)(segment, scrollRefSegmentPath[index])))) {
304
- return;
305
- }
306
- let domNode = null;
307
- const hashFragment = focusAndScrollRef.hashFragment;
308
- if (hashFragment) {
309
- domNode = getHashFragmentDomNode(hashFragment);
310
- }
311
- // `findDOMNode` is tricky because it returns just the first child if the component is a fragment.
312
- // This already caused a bug where the first child was a <link/> in head.
313
- if (!domNode) {
314
- domNode = findDOMNode(this);
315
- }
316
- // If there is no DOM node this layout-router level is skipped. It'll be handled higher-up in the tree.
317
- if (!(domNode instanceof Element)) {
318
- return;
319
- }
320
- // Verify if the element is a HTMLElement and if we want to consider it for scroll behavior.
321
- // If the element is skipped, try to select the next sibling and try again.
322
- while(!(domNode instanceof HTMLElement) || shouldSkipElement(domNode)){
323
- if ("TURBOPACK compile-time truthy", 1) {
324
- var _domNode_parentElement;
325
- if (((_domNode_parentElement = domNode.parentElement) == null ? void 0 : _domNode_parentElement.localName) === 'head') {
326
- // TODO: We enter this state when metadata was rendered as part of the page or via Next.js.
327
- // This is always a bug in Next.js and caused by React hoisting metadata.
328
- // We need to replace `findDOMNode` in favor of Fragment Refs (when available) so that we can skip over metadata.
329
- }
330
- }
331
- // No siblings found that match the criteria are found, so handle scroll higher up in the tree instead.
332
- if (domNode.nextElementSibling === null) {
333
- return;
334
- }
335
- domNode = domNode.nextElementSibling;
336
- }
337
- // State is mutated to ensure that the focus and scroll is applied only once.
338
- focusAndScrollRef.apply = false;
339
- focusAndScrollRef.hashFragment = null;
340
- focusAndScrollRef.segmentPaths = [];
341
- (0, _disablesmoothscroll.disableSmoothScrollDuringRouteTransition)(()=>{
342
- // In case of hash scroll, we only need to scroll the element into view
343
- if (hashFragment) {
344
- ;
345
- domNode.scrollIntoView();
346
- return;
347
- }
348
- // Store the current viewport height because reading `clientHeight` causes a reflow,
349
- // and it won't change during this function.
350
- const htmlElement = document.documentElement;
351
- const viewportHeight = htmlElement.clientHeight;
352
- // If the element's top edge is already in the viewport, exit early.
353
- if (topOfElementInViewport(domNode, viewportHeight)) {
354
- return;
355
- }
356
- // Otherwise, try scrolling go the top of the document to be backward compatible with pages
357
- // scrollIntoView() called on `<html/>` element scrolls horizontally on chrome and firefox (that shouldn't happen)
358
- // We could use it to scroll horizontally following RTL but that also seems to be broken - it will always scroll left
359
- // scrollLeft = 0 also seems to ignore RTL and manually checking for RTL is too much hassle so we will scroll just vertically
360
- htmlElement.scrollTop = 0;
361
- // Scroll to domNode if domNode is not in viewport when scrolled to top of document
362
- if (!topOfElementInViewport(domNode, viewportHeight)) {
363
- // Scroll into view doesn't scroll horizontally by default when not needed
364
- ;
365
- domNode.scrollIntoView();
366
- }
367
- }, {
368
- // We will force layout by querying domNode position
369
- dontForceLayout: true,
370
- onlyHashChange: focusAndScrollRef.onlyHashChange
371
- });
372
- // Mutate after scrolling so that it can be read by `disableSmoothScrollDuringRouteTransition`
373
- focusAndScrollRef.onlyHashChange = false;
374
- // Set focus on the element
375
- domNode.focus();
376
- }
377
- };
378
- }
379
- }
380
- function ScrollAndFocusHandler(param) {
381
- let { segmentPath, children } = param;
382
- const context = (0, _react.useContext)(_approutercontextsharedruntime.GlobalLayoutRouterContext);
383
- if (!context) {
384
- throw Object.defineProperty(new Error('invariant global layout router not mounted'), "__NEXT_ERROR_CODE", {
385
- value: "E473",
386
- enumerable: false,
387
- configurable: true
388
- });
389
- }
390
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(InnerScrollAndFocusHandler, {
391
- segmentPath: segmentPath,
392
- focusAndScrollRef: context.focusAndScrollRef,
393
- children: children
394
- });
395
- }
396
- /**
397
- * InnerLayoutRouter handles rendering the provided segment based on the cache.
398
- */ function InnerLayoutRouter(param) {
399
- let { tree, segmentPath, cacheNode, url } = param;
400
- const context = (0, _react.useContext)(_approutercontextsharedruntime.GlobalLayoutRouterContext);
401
- if (!context) {
402
- throw Object.defineProperty(new Error('invariant global layout router not mounted'), "__NEXT_ERROR_CODE", {
403
- value: "E473",
404
- enumerable: false,
405
- configurable: true
406
- });
407
- }
408
- const { tree: fullTree } = context;
409
- // `rsc` represents the renderable node for this segment.
410
- // If this segment has a `prefetchRsc`, it's the statically prefetched data.
411
- // We should use that on initial render instead of `rsc`. Then we'll switch
412
- // to `rsc` when the dynamic response streams in.
413
- //
414
- // If no prefetch data is available, then we go straight to rendering `rsc`.
415
- const resolvedPrefetchRsc = cacheNode.prefetchRsc !== null ? cacheNode.prefetchRsc : cacheNode.rsc;
416
- // We use `useDeferredValue` to handle switching between the prefetched and
417
- // final values. The second argument is returned on initial render, then it
418
- // re-renders with the first argument.
419
- const rsc = (0, _react.useDeferredValue)(cacheNode.rsc, resolvedPrefetchRsc);
420
- // `rsc` is either a React node or a promise for a React node, except we
421
- // special case `null` to represent that this segment's data is missing. If
422
- // it's a promise, we need to unwrap it so we can determine whether or not the
423
- // data is missing.
424
- const resolvedRsc = typeof rsc === 'object' && rsc !== null && typeof rsc.then === 'function' ? (0, _react.use)(rsc) : rsc;
425
- if (!resolvedRsc) {
426
- // The data for this segment is not available, and there's no pending
427
- // navigation that will be able to fulfill it. We need to fetch more from
428
- // the server and patch the cache.
429
- // Check if there's already a pending request.
430
- let lazyData = cacheNode.lazyData;
431
- if (lazyData === null) {
432
- /**
433
- * Router state with refetch marker added
434
- */ // TODO-APP: remove ''
435
- const refetchTree = walkAddRefetch([
436
- '',
437
- ...segmentPath
438
- ], fullTree);
439
- const includeNextUrl = (0, _hasinterceptionrouteincurrenttree.hasInterceptionRouteInCurrentTree)(fullTree);
440
- const navigatedAt = Date.now();
441
- cacheNode.lazyData = lazyData = (0, _fetchserverresponse.fetchServerResponse)(new URL(url, location.origin), {
442
- flightRouterState: refetchTree,
443
- nextUrl: includeNextUrl ? context.nextUrl : null
444
- }).then((serverResponse)=>{
445
- (0, _react.startTransition)(()=>{
446
- (0, _useactionqueue.dispatchAppRouterAction)({
447
- type: _routerreducertypes.ACTION_SERVER_PATCH,
448
- previousTree: fullTree,
449
- serverResponse,
450
- navigatedAt
451
- });
452
- });
453
- return serverResponse;
454
- });
455
- // Suspend while waiting for lazyData to resolve
456
- (0, _react.use)(lazyData);
457
- }
458
- // Suspend infinitely as `changeByServerResponse` will cause a different part of the tree to be rendered.
459
- // A falsey `resolvedRsc` indicates missing data -- we should not commit that branch, and we need to wait for the data to arrive.
460
- (0, _react.use)(_unresolvedthenable.unresolvedThenable);
461
- }
462
- // If we get to this point, then we know we have something we can render.
463
- const subtree = /*#__PURE__*/ (0, _jsxruntime.jsx)(_approutercontextsharedruntime.LayoutRouterContext.Provider, {
464
- value: {
465
- parentTree: tree,
466
- parentCacheNode: cacheNode,
467
- parentSegmentPath: segmentPath,
468
- // TODO-APP: overriding of url for parallel routes
469
- url: url
470
- },
471
- children: resolvedRsc
472
- });
473
- // Ensure root layout is not wrapped in a div as the root layout renders `<html>`
474
- return subtree;
475
- }
476
- /**
477
- * Renders suspense boundary with the provided "loading" property as the fallback.
478
- * If no loading property is provided it renders the children without a suspense boundary.
479
- */ function LoadingBoundary(param) {
480
- let { loading, children } = param;
481
- // If loading is a promise, unwrap it. This happens in cases where we haven't
482
- // yet received the loading data from the server — which includes whether or
483
- // not this layout has a loading component at all.
484
- //
485
- // It's OK to suspend here instead of inside the fallback because this
486
- // promise will resolve simultaneously with the data for the segment itself.
487
- // So it will never suspend for longer than it would have if we didn't use
488
- // a Suspense fallback at all.
489
- let loadingModuleData;
490
- if (typeof loading === 'object' && loading !== null && typeof loading.then === 'function') {
491
- const promiseForLoading = loading;
492
- loadingModuleData = (0, _react.use)(promiseForLoading);
493
- } else {
494
- loadingModuleData = loading;
495
- }
496
- if (loadingModuleData) {
497
- const loadingRsc = loadingModuleData[0];
498
- const loadingStyles = loadingModuleData[1];
499
- const loadingScripts = loadingModuleData[2];
500
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_react.Suspense, {
501
- fallback: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
502
- children: [
503
- loadingStyles,
504
- loadingScripts,
505
- loadingRsc
506
- ]
507
- }),
508
- children: children
509
- });
510
- }
511
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
512
- children: children
513
- });
514
- }
515
- function OuterLayoutRouter(param) {
516
- let { parallelRouterKey, error, errorStyles, errorScripts, templateStyles, templateScripts, template, notFound, forbidden, unauthorized, segmentViewBoundaries } = param;
517
- const context = (0, _react.useContext)(_approutercontextsharedruntime.LayoutRouterContext);
518
- if (!context) {
519
- throw Object.defineProperty(new Error('invariant expected layout router to be mounted'), "__NEXT_ERROR_CODE", {
520
- value: "E56",
521
- enumerable: false,
522
- configurable: true
523
- });
524
- }
525
- const { parentTree, parentCacheNode, parentSegmentPath, url } = context;
526
- // Get the CacheNode for this segment by reading it from the parent segment's
527
- // child map.
528
- const parentParallelRoutes = parentCacheNode.parallelRoutes;
529
- let segmentMap = parentParallelRoutes.get(parallelRouterKey);
530
- // If the parallel router cache node does not exist yet, create it.
531
- // This writes to the cache when there is no item in the cache yet. It never *overwrites* existing cache items which is why it's safe in concurrent mode.
532
- if (!segmentMap) {
533
- segmentMap = new Map();
534
- parentParallelRoutes.set(parallelRouterKey, segmentMap);
535
- }
536
- const parentTreeSegment = parentTree[0];
537
- const segmentPath = parentSegmentPath === null ? // the code. We should clean this up.
538
- [
539
- parallelRouterKey
540
- ] : parentSegmentPath.concat([
541
- parentTreeSegment,
542
- parallelRouterKey
543
- ]);
544
- // The "state" key of a segment is the one passed to React — it represents the
545
- // identity of the UI tree. Whenever the state key changes, the tree is
546
- // recreated and the state is reset. In the App Router model, search params do
547
- // not cause state to be lost, so two segments with the same segment path but
548
- // different search params should have the same state key.
549
- //
550
- // The "cache" key of a segment, however, *does* include the search params, if
551
- // it's possible that the segment accessed the search params on the server.
552
- // (This only applies to page segments; layout segments cannot access search
553
- // params on the server.)
554
- const activeTree = parentTree[1][parallelRouterKey];
555
- const activeSegment = activeTree[0];
556
- const activeStateKey = (0, _createroutercachekey.createRouterCacheKey)(activeSegment, true) // no search params
557
- ;
558
- // At each level of the route tree, not only do we render the currently
559
- // active segment — we also render the last N segments that were active at
560
- // this level inside a hidden <Activity> boundary, to preserve their state
561
- // if or when the user navigates to them again.
562
- //
563
- // bfcacheEntry is a linked list of FlightRouterStates.
564
- let bfcacheEntry = (0, _bfcache.useRouterBFCache)(activeTree, activeStateKey);
565
- let children = [];
566
- do {
567
- const tree = bfcacheEntry.tree;
568
- const stateKey = bfcacheEntry.stateKey;
569
- const segment = tree[0];
570
- const cacheKey = (0, _createroutercachekey.createRouterCacheKey)(segment);
571
- // Read segment path from the parallel router cache node.
572
- let cacheNode = segmentMap.get(cacheKey);
573
- if (cacheNode === undefined) {
574
- // When data is not available during rendering client-side we need to fetch
575
- // it from the server.
576
- const newLazyCacheNode = {
577
- lazyData: null,
578
- rsc: null,
579
- prefetchRsc: null,
580
- head: null,
581
- prefetchHead: null,
582
- parallelRoutes: new Map(),
583
- loading: null,
584
- navigatedAt: -1
585
- };
586
- // Flight data fetch kicked off during render and put into the cache.
587
- cacheNode = newLazyCacheNode;
588
- segmentMap.set(cacheKey, newLazyCacheNode);
589
- }
590
- /*
591
- - Error boundary
592
- - Only renders error boundary if error component is provided.
593
- - Rendered for each segment to ensure they have their own error state.
594
- - When gracefully degrade for bots, skip rendering error boundary.
595
- - Loading boundary
596
- - Only renders suspense boundary if loading components is provided.
597
- - Rendered for each segment to ensure they have their own loading state.
598
- - Passed to the router during rendering to ensure it can be immediately rendered when suspending on a Flight fetch.
599
- */ let segmentBoundaryTriggerNode = null;
600
- let segmentViewStateNode = null;
601
- if ("TURBOPACK compile-time truthy", 1) {
602
- const { SegmentBoundaryTriggerNode, SegmentViewStateNode } = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/next-devtools/userspace/app/segment-explorer-node.js [app-client] (ecmascript)");
603
- const pagePrefix = (0, _apppaths.normalizeAppPath)(url);
604
- segmentViewStateNode = /*#__PURE__*/ (0, _jsxruntime.jsx)(SegmentViewStateNode, {
605
- page: pagePrefix
606
- }, pagePrefix);
607
- segmentBoundaryTriggerNode = /*#__PURE__*/ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
608
- children: /*#__PURE__*/ (0, _jsxruntime.jsx)(SegmentBoundaryTriggerNode, {})
609
- });
610
- }
611
- // TODO: The loading module data for a segment is stored on the parent, then
612
- // applied to each of that parent segment's parallel route slots. In the
613
- // simple case where there's only one parallel route (the `children` slot),
614
- // this is no different from if the loading module data where stored on the
615
- // child directly. But I'm not sure this actually makes sense when there are
616
- // multiple parallel routes. It's not a huge issue because you always have
617
- // the option to define a narrower loading boundary for a particular slot. But
618
- // this sort of smells like an implementation accident to me.
619
- const loadingModuleData = parentCacheNode.loading;
620
- let child = /*#__PURE__*/ (0, _jsxruntime.jsxs)(_approutercontextsharedruntime.TemplateContext.Provider, {
621
- value: /*#__PURE__*/ (0, _jsxruntime.jsxs)(ScrollAndFocusHandler, {
622
- segmentPath: segmentPath,
623
- children: [
624
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_errorboundary.ErrorBoundary, {
625
- errorComponent: error,
626
- errorStyles: errorStyles,
627
- errorScripts: errorScripts,
628
- children: /*#__PURE__*/ (0, _jsxruntime.jsx)(LoadingBoundary, {
629
- loading: loadingModuleData,
630
- children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_errorboundary1.HTTPAccessFallbackBoundary, {
631
- notFound: notFound,
632
- forbidden: forbidden,
633
- unauthorized: unauthorized,
634
- children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_redirectboundary.RedirectBoundary, {
635
- children: [
636
- /*#__PURE__*/ (0, _jsxruntime.jsx)(InnerLayoutRouter, {
637
- url: url,
638
- tree: tree,
639
- cacheNode: cacheNode,
640
- segmentPath: segmentPath
641
- }),
642
- segmentBoundaryTriggerNode
643
- ]
644
- })
645
- })
646
- })
647
- }),
648
- segmentViewStateNode
649
- ]
650
- }),
651
- children: [
652
- templateStyles,
653
- templateScripts,
654
- template
655
- ]
656
- }, stateKey);
657
- if ("TURBOPACK compile-time truthy", 1) {
658
- const { SegmentStateProvider } = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/next-devtools/userspace/app/segment-explorer-node.js [app-client] (ecmascript)");
659
- child = /*#__PURE__*/ (0, _jsxruntime.jsxs)(SegmentStateProvider, {
660
- children: [
661
- child,
662
- segmentViewBoundaries
663
- ]
664
- }, stateKey);
665
- }
666
- if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
667
- ;
668
- children.push(child);
669
- bfcacheEntry = bfcacheEntry.next;
670
- }while (bfcacheEntry !== null)
671
- return children;
672
- }
673
- if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
674
- Object.defineProperty(exports.default, '__esModule', {
675
- value: true
676
- });
677
- Object.assign(exports.default, exports);
678
- module.exports = exports.default;
679
- } //# sourceMappingURL=layout-router.js.map
680
- }),
681
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/components/render-from-template-context.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
682
- "use strict";
683
-
684
- Object.defineProperty(exports, "__esModule", {
685
- value: true
686
- });
687
- Object.defineProperty(exports, "default", {
688
- enumerable: true,
689
- get: function() {
690
- return RenderFromTemplateContext;
691
- }
692
- });
693
- const _interop_require_wildcard = __turbopack_context__.r("[project]/node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs [app-client] (ecmascript)");
694
- const _jsxruntime = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/compiled/react/jsx-runtime.js [app-client] (ecmascript)");
695
- const _react = /*#__PURE__*/ _interop_require_wildcard._(__turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)"));
696
- const _approutercontextsharedruntime = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js [app-client] (ecmascript)");
697
- function RenderFromTemplateContext() {
698
- const children = (0, _react.useContext)(_approutercontextsharedruntime.TemplateContext);
699
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
700
- children: children
701
- });
702
- }
703
- if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
704
- Object.defineProperty(exports.default, '__esModule', {
705
- value: true
706
- });
707
- Object.assign(exports.default, exports);
708
- module.exports = exports.default;
709
- } //# sourceMappingURL=render-from-template-context.js.map
710
- }),
711
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
712
- "use strict";
713
-
714
- Object.defineProperty(exports, "__esModule", {
715
- value: true
716
- });
717
- Object.defineProperty(exports, "ReflectAdapter", {
718
- enumerable: true,
719
- get: function() {
720
- return ReflectAdapter;
721
- }
722
- });
723
- class ReflectAdapter {
724
- static get(target, prop, receiver) {
725
- const value = Reflect.get(target, prop, receiver);
726
- if (typeof value === 'function') {
727
- return value.bind(target);
728
- }
729
- return value;
730
- }
731
- static set(target, prop, value, receiver) {
732
- return Reflect.set(target, prop, value, receiver);
733
- }
734
- static has(target, prop) {
735
- return Reflect.has(target, prop);
736
- }
737
- static deleteProperty(target, prop) {
738
- return Reflect.deleteProperty(target, prop);
739
- }
740
- } //# sourceMappingURL=reflect.js.map
741
- }),
742
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/shared/lib/utils/reflect-utils.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
743
- "use strict";
744
-
745
- // This regex will have fast negatives meaning valid identifiers may not pass
746
- // this test. However this is only used during static generation to provide hints
747
- // about why a page bailed out of some or all prerendering and we can use bracket notation
748
- // for example while `ಠ_ಠ` is a valid identifier it's ok to print `searchParams['ಠ_ಠ']`
749
- // even if this would have been fine too `searchParams.ಠ_ಠ`
750
- Object.defineProperty(exports, "__esModule", {
751
- value: true
752
- });
753
- 0 && (module.exports = {
754
- describeHasCheckingStringProperty: null,
755
- describeStringPropertyAccess: null,
756
- wellKnownProperties: null
757
- });
758
- function _export(target, all) {
759
- for(var name in all)Object.defineProperty(target, name, {
760
- enumerable: true,
761
- get: all[name]
762
- });
763
- }
764
- _export(exports, {
765
- describeHasCheckingStringProperty: function() {
766
- return describeHasCheckingStringProperty;
767
- },
768
- describeStringPropertyAccess: function() {
769
- return describeStringPropertyAccess;
770
- },
771
- wellKnownProperties: function() {
772
- return wellKnownProperties;
773
- }
774
- });
775
- const isDefinitelyAValidIdentifier = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
776
- function describeStringPropertyAccess(target, prop) {
777
- if (isDefinitelyAValidIdentifier.test(prop)) {
778
- return "`" + target + "." + prop + "`";
779
- }
780
- return "`" + target + "[" + JSON.stringify(prop) + "]`";
781
- }
782
- function describeHasCheckingStringProperty(target, prop) {
783
- const stringifiedProp = JSON.stringify(prop);
784
- return "`Reflect.has(" + target + ", " + stringifiedProp + ")`, `" + stringifiedProp + " in " + target + "`, or similar";
785
- }
786
- const wellKnownProperties = new Set([
787
- 'hasOwnProperty',
788
- 'isPrototypeOf',
789
- 'propertyIsEnumerable',
790
- 'toString',
791
- 'valueOf',
792
- 'toLocaleString',
793
- // Promise prototype
794
- // fallthrough
795
- 'then',
796
- 'catch',
797
- 'finally',
798
- // React Promise extension
799
- // fallthrough
800
- 'status',
801
- // React introspection
802
- 'displayName',
803
- '_debugInfo',
804
- // Common tested properties
805
- // fallthrough
806
- 'toJSON',
807
- '$$typeof',
808
- '__esModule'
809
- ]); //# sourceMappingURL=reflect-utils.js.map
810
- }),
811
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/request/search-params.browser.dev.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
812
- "use strict";
813
-
814
- var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f2e$pnpm$2f$next$40$15$2e$5$2e$1$2d$canary$2e$30_babel$2d$plugin$2d$react$2d$compiler$40$19$2e$1$2e$0$2d$rc$2e$3_react$2d$dom$40$19$2e$2$2e$0$2d$canary$2d$d_5eea965284f26eb4e30482e6426df099$2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)");
815
- "use strict";
816
- Object.defineProperty(exports, "__esModule", {
817
- value: true
818
- });
819
- Object.defineProperty(exports, "createRenderSearchParamsFromClient", {
820
- enumerable: true,
821
- get: function() {
822
- return createRenderSearchParamsFromClient;
823
- }
824
- });
825
- const _reflect = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js [app-client] (ecmascript)");
826
- const _reflectutils = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/shared/lib/utils/reflect-utils.js [app-client] (ecmascript)");
827
- const CachedSearchParams = new WeakMap();
828
- function makeUntrackedExoticSearchParamsWithDevWarnings(underlyingSearchParams) {
829
- const cachedSearchParams = CachedSearchParams.get(underlyingSearchParams);
830
- if (cachedSearchParams) {
831
- return cachedSearchParams;
832
- }
833
- const proxiedProperties = new Set();
834
- const unproxiedProperties = [];
835
- const promise = Promise.resolve(underlyingSearchParams);
836
- Object.keys(underlyingSearchParams).forEach((prop)=>{
837
- if (_reflectutils.wellKnownProperties.has(prop)) {
838
- // These properties cannot be shadowed because they need to be the
839
- // true underlying value for Promises to work correctly at runtime
840
- unproxiedProperties.push(prop);
841
- } else {
842
- proxiedProperties.add(prop);
843
- promise[prop] = underlyingSearchParams[prop];
844
- }
845
- });
846
- const proxiedPromise = new Proxy(promise, {
847
- get (target, prop, receiver) {
848
- if (typeof prop === 'string') {
849
- if (!_reflectutils.wellKnownProperties.has(prop) && (proxiedProperties.has(prop) || // We are accessing a property that doesn't exist on the promise nor
850
- // the underlying searchParams.
851
- Reflect.has(target, prop) === false)) {
852
- const expression = (0, _reflectutils.describeStringPropertyAccess)('searchParams', prop);
853
- warnForSyncAccess(expression);
854
- }
855
- }
856
- return _reflect.ReflectAdapter.get(target, prop, receiver);
857
- },
858
- set (target, prop, value, receiver) {
859
- if (typeof prop === 'string') {
860
- proxiedProperties.delete(prop);
861
- }
862
- return Reflect.set(target, prop, value, receiver);
863
- },
864
- has (target, prop) {
865
- if (typeof prop === 'string') {
866
- if (!_reflectutils.wellKnownProperties.has(prop) && (proxiedProperties.has(prop) || // We are accessing a property that doesn't exist on the promise nor
867
- // the underlying searchParams.
868
- Reflect.has(target, prop) === false)) {
869
- const expression = (0, _reflectutils.describeHasCheckingStringProperty)('searchParams', prop);
870
- warnForSyncAccess(expression);
871
- }
872
- }
873
- return Reflect.has(target, prop);
874
- },
875
- ownKeys (target) {
876
- warnForSyncSpread();
877
- return Reflect.ownKeys(target);
878
- }
879
- });
880
- CachedSearchParams.set(underlyingSearchParams, proxiedPromise);
881
- return proxiedPromise;
882
- }
883
- // Similar to `makeUntrackedExoticSearchParamsWithDevWarnings`, but just logging
884
- // the sync access without actually defining the search params on the promise.
885
- function makeUntrackedSearchParamsWithDevWarnings(underlyingSearchParams) {
886
- const cachedSearchParams = CachedSearchParams.get(underlyingSearchParams);
887
- if (cachedSearchParams) {
888
- return cachedSearchParams;
889
- }
890
- const proxiedProperties = new Set();
891
- const unproxiedProperties = [];
892
- const promise = Promise.resolve(underlyingSearchParams);
893
- Object.keys(underlyingSearchParams).forEach((prop)=>{
894
- if (_reflectutils.wellKnownProperties.has(prop)) {
895
- // These properties cannot be shadowed because they need to be the
896
- // true underlying value for Promises to work correctly at runtime
897
- unproxiedProperties.push(prop);
898
- } else {
899
- proxiedProperties.add(prop);
900
- }
901
- });
902
- const proxiedPromise = new Proxy(promise, {
903
- get (target, prop, receiver) {
904
- if (typeof prop === 'string') {
905
- if (!_reflectutils.wellKnownProperties.has(prop) && (proxiedProperties.has(prop) || // We are accessing a property that doesn't exist on the promise nor
906
- // the underlying searchParams.
907
- Reflect.has(target, prop) === false)) {
908
- const expression = (0, _reflectutils.describeStringPropertyAccess)('searchParams', prop);
909
- warnForSyncAccess(expression);
910
- }
911
- }
912
- return _reflect.ReflectAdapter.get(target, prop, receiver);
913
- },
914
- set (target, prop, value, receiver) {
915
- if (typeof prop === 'string') {
916
- proxiedProperties.delete(prop);
917
- }
918
- return Reflect.set(target, prop, value, receiver);
919
- },
920
- has (target, prop) {
921
- if (typeof prop === 'string') {
922
- if (!_reflectutils.wellKnownProperties.has(prop) && (proxiedProperties.has(prop) || // We are accessing a property that doesn't exist on the promise nor
923
- // the underlying searchParams.
924
- Reflect.has(target, prop) === false)) {
925
- const expression = (0, _reflectutils.describeHasCheckingStringProperty)('searchParams', prop);
926
- warnForSyncAccess(expression);
927
- }
928
- }
929
- return Reflect.has(target, prop);
930
- },
931
- ownKeys (target) {
932
- warnForSyncSpread();
933
- return Reflect.ownKeys(target);
934
- }
935
- });
936
- CachedSearchParams.set(underlyingSearchParams, proxiedPromise);
937
- return proxiedPromise;
938
- }
939
- function warnForSyncAccess(expression) {
940
- console.error("A searchParam property was accessed directly with " + expression + ". " + "`searchParams` should be unwrapped with `React.use()` before accessing its properties. " + "Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis");
941
- }
942
- function warnForSyncSpread() {
943
- console.error("The keys of `searchParams` were accessed directly. " + "`searchParams` should be unwrapped with `React.use()` before accessing its properties. " + "Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis");
944
- }
945
- function createRenderSearchParamsFromClient(underlyingSearchParams) {
946
- if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
947
- ;
948
- return makeUntrackedExoticSearchParamsWithDevWarnings(underlyingSearchParams);
949
- }
950
- if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
951
- Object.defineProperty(exports.default, '__esModule', {
952
- value: true
953
- });
954
- Object.assign(exports.default, exports);
955
- module.exports = exports.default;
956
- } //# sourceMappingURL=search-params.browser.dev.js.map
957
- }),
958
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/request/search-params.browser.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
959
- "use strict";
960
-
961
- var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f2e$pnpm$2f$next$40$15$2e$5$2e$1$2d$canary$2e$30_babel$2d$plugin$2d$react$2d$compiler$40$19$2e$1$2e$0$2d$rc$2e$3_react$2d$dom$40$19$2e$2$2e$0$2d$canary$2d$d_5eea965284f26eb4e30482e6426df099$2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)");
962
- "use strict";
963
- Object.defineProperty(exports, "__esModule", {
964
- value: true
965
- });
966
- Object.defineProperty(exports, "createRenderSearchParamsFromClient", {
967
- enumerable: true,
968
- get: function() {
969
- return createRenderSearchParamsFromClient;
970
- }
971
- });
972
- const createRenderSearchParamsFromClient = ("TURBOPACK compile-time truthy", 1) ? __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/request/search-params.browser.dev.js [app-client] (ecmascript)").createRenderSearchParamsFromClient : "TURBOPACK unreachable";
973
- if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
974
- Object.defineProperty(exports.default, '__esModule', {
975
- value: true
976
- });
977
- Object.assign(exports.default, exports);
978
- module.exports = exports.default;
979
- } //# sourceMappingURL=search-params.browser.js.map
980
- }),
981
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/request/params.browser.dev.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
982
- "use strict";
983
-
984
- var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f2e$pnpm$2f$next$40$15$2e$5$2e$1$2d$canary$2e$30_babel$2d$plugin$2d$react$2d$compiler$40$19$2e$1$2e$0$2d$rc$2e$3_react$2d$dom$40$19$2e$2$2e$0$2d$canary$2d$d_5eea965284f26eb4e30482e6426df099$2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)");
985
- "use strict";
986
- Object.defineProperty(exports, "__esModule", {
987
- value: true
988
- });
989
- Object.defineProperty(exports, "createRenderParamsFromClient", {
990
- enumerable: true,
991
- get: function() {
992
- return createRenderParamsFromClient;
993
- }
994
- });
995
- const _reflect = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js [app-client] (ecmascript)");
996
- const _invarianterror = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/shared/lib/invariant-error.js [app-client] (ecmascript)");
997
- const _reflectutils = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/shared/lib/utils/reflect-utils.js [app-client] (ecmascript)");
998
- const CachedParams = new WeakMap();
999
- function makeDynamicallyTrackedExoticParamsWithDevWarnings(underlyingParams) {
1000
- const cachedParams = CachedParams.get(underlyingParams);
1001
- if (cachedParams) {
1002
- return cachedParams;
1003
- }
1004
- // We don't use makeResolvedReactPromise here because params
1005
- // supports copying with spread and we don't want to unnecessarily
1006
- // instrument the promise with spreadable properties of ReactPromise.
1007
- const promise = Promise.resolve(underlyingParams);
1008
- const proxiedProperties = new Set();
1009
- const unproxiedProperties = [];
1010
- Object.keys(underlyingParams).forEach((prop)=>{
1011
- if (_reflectutils.wellKnownProperties.has(prop)) {
1012
- // These properties cannot be shadowed because they need to be the
1013
- // true underlying value for Promises to work correctly at runtime
1014
- } else {
1015
- proxiedProperties.add(prop);
1016
- promise[prop] = underlyingParams[prop];
1017
- }
1018
- });
1019
- const proxiedPromise = new Proxy(promise, {
1020
- get (target, prop, receiver) {
1021
- if (typeof prop === 'string') {
1022
- if (proxiedProperties.has(prop)) {
1023
- const expression = (0, _reflectutils.describeStringPropertyAccess)('params', prop);
1024
- warnForSyncAccess(expression);
1025
- }
1026
- }
1027
- return _reflect.ReflectAdapter.get(target, prop, receiver);
1028
- },
1029
- set (target, prop, value, receiver) {
1030
- if (typeof prop === 'string') {
1031
- proxiedProperties.delete(prop);
1032
- }
1033
- return _reflect.ReflectAdapter.set(target, prop, value, receiver);
1034
- },
1035
- ownKeys (target) {
1036
- warnForEnumeration(unproxiedProperties);
1037
- return Reflect.ownKeys(target);
1038
- }
1039
- });
1040
- CachedParams.set(underlyingParams, proxiedPromise);
1041
- return proxiedPromise;
1042
- }
1043
- // Similar to `makeDynamicallyTrackedExoticParamsWithDevWarnings`, but just
1044
- // logging the sync access without actually defining the params on the promise.
1045
- function makeDynamicallyTrackedParamsWithDevWarnings(underlyingParams) {
1046
- const cachedParams = CachedParams.get(underlyingParams);
1047
- if (cachedParams) {
1048
- return cachedParams;
1049
- }
1050
- // We don't use makeResolvedReactPromise here because params
1051
- // supports copying with spread and we don't want to unnecessarily
1052
- // instrument the promise with spreadable properties of ReactPromise.
1053
- const promise = Promise.resolve(underlyingParams);
1054
- const proxiedProperties = new Set();
1055
- const unproxiedProperties = [];
1056
- Object.keys(underlyingParams).forEach((prop)=>{
1057
- if (_reflectutils.wellKnownProperties.has(prop)) {
1058
- // These properties cannot be shadowed because they need to be the
1059
- // true underlying value for Promises to work correctly at runtime
1060
- } else {
1061
- proxiedProperties.add(prop);
1062
- }
1063
- });
1064
- const proxiedPromise = new Proxy(promise, {
1065
- get (target, prop, receiver) {
1066
- if (typeof prop === 'string') {
1067
- if (proxiedProperties.has(prop)) {
1068
- const expression = (0, _reflectutils.describeStringPropertyAccess)('params', prop);
1069
- warnForSyncAccess(expression);
1070
- }
1071
- }
1072
- return _reflect.ReflectAdapter.get(target, prop, receiver);
1073
- },
1074
- set (target, prop, value, receiver) {
1075
- if (typeof prop === 'string') {
1076
- proxiedProperties.delete(prop);
1077
- }
1078
- return _reflect.ReflectAdapter.set(target, prop, value, receiver);
1079
- },
1080
- ownKeys (target) {
1081
- warnForEnumeration(unproxiedProperties);
1082
- return Reflect.ownKeys(target);
1083
- }
1084
- });
1085
- CachedParams.set(underlyingParams, proxiedPromise);
1086
- return proxiedPromise;
1087
- }
1088
- function warnForSyncAccess(expression) {
1089
- console.error("A param property was accessed directly with " + expression + ". `params` is now a Promise and should be unwrapped with `React.use()` before accessing properties of the underlying params object. In this version of Next.js direct access to param properties is still supported to facilitate migration but in a future version you will be required to unwrap `params` with `React.use()`.");
1090
- }
1091
- function warnForEnumeration(missingProperties) {
1092
- if (missingProperties.length) {
1093
- const describedMissingProperties = describeListOfPropertyNames(missingProperties);
1094
- console.error("params are being enumerated incompletely missing these properties: " + describedMissingProperties + ". " + "`params` should be unwrapped with `React.use()` before using its value. " + "Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis");
1095
- } else {
1096
- console.error("params are being enumerated. " + "`params` should be unwrapped with `React.use()` before using its value. " + "Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis");
1097
- }
1098
- }
1099
- function describeListOfPropertyNames(properties) {
1100
- switch(properties.length){
1101
- case 0:
1102
- throw Object.defineProperty(new _invarianterror.InvariantError('Expected describeListOfPropertyNames to be called with a non-empty list of strings.'), "__NEXT_ERROR_CODE", {
1103
- value: "E531",
1104
- enumerable: false,
1105
- configurable: true
1106
- });
1107
- case 1:
1108
- return "`" + properties[0] + "`";
1109
- case 2:
1110
- return "`" + properties[0] + "` and `" + properties[1] + "`";
1111
- default:
1112
- {
1113
- let description = '';
1114
- for(let i = 0; i < properties.length - 1; i++){
1115
- description += "`" + properties[i] + "`, ";
1116
- }
1117
- description += ", and `" + properties[properties.length - 1] + "`";
1118
- return description;
1119
- }
1120
- }
1121
- }
1122
- function createRenderParamsFromClient(clientParams) {
1123
- if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
1124
- ;
1125
- return makeDynamicallyTrackedExoticParamsWithDevWarnings(clientParams);
1126
- }
1127
- if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1128
- Object.defineProperty(exports.default, '__esModule', {
1129
- value: true
1130
- });
1131
- Object.assign(exports.default, exports);
1132
- module.exports = exports.default;
1133
- } //# sourceMappingURL=params.browser.dev.js.map
1134
- }),
1135
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/request/params.browser.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1136
- "use strict";
1137
-
1138
- var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f2e$pnpm$2f$next$40$15$2e$5$2e$1$2d$canary$2e$30_babel$2d$plugin$2d$react$2d$compiler$40$19$2e$1$2e$0$2d$rc$2e$3_react$2d$dom$40$19$2e$2$2e$0$2d$canary$2d$d_5eea965284f26eb4e30482e6426df099$2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)");
1139
- "use strict";
1140
- Object.defineProperty(exports, "__esModule", {
1141
- value: true
1142
- });
1143
- Object.defineProperty(exports, "createRenderParamsFromClient", {
1144
- enumerable: true,
1145
- get: function() {
1146
- return createRenderParamsFromClient;
1147
- }
1148
- });
1149
- const createRenderParamsFromClient = ("TURBOPACK compile-time truthy", 1) ? __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/request/params.browser.dev.js [app-client] (ecmascript)").createRenderParamsFromClient : "TURBOPACK unreachable";
1150
- if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1151
- Object.defineProperty(exports.default, '__esModule', {
1152
- value: true
1153
- });
1154
- Object.assign(exports.default, exports);
1155
- module.exports = exports.default;
1156
- } //# sourceMappingURL=params.browser.js.map
1157
- }),
1158
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1159
- "use strict";
1160
-
1161
- var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f2e$pnpm$2f$next$40$15$2e$5$2e$1$2d$canary$2e$30_babel$2d$plugin$2d$react$2d$compiler$40$19$2e$1$2e$0$2d$rc$2e$3_react$2d$dom$40$19$2e$2$2e$0$2d$canary$2d$d_5eea965284f26eb4e30482e6426df099$2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)");
1162
- "use strict";
1163
- Object.defineProperty(exports, "__esModule", {
1164
- value: true
1165
- });
1166
- Object.defineProperty(exports, "createDedupedByCallsiteServerErrorLoggerDev", {
1167
- enumerable: true,
1168
- get: function() {
1169
- return createDedupedByCallsiteServerErrorLoggerDev;
1170
- }
1171
- });
1172
- const _react = /*#__PURE__*/ _interop_require_wildcard(__turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)"));
1173
- function _getRequireWildcardCache(nodeInterop) {
1174
- if (typeof WeakMap !== "function") return null;
1175
- var cacheBabelInterop = new WeakMap();
1176
- var cacheNodeInterop = new WeakMap();
1177
- return (_getRequireWildcardCache = function(nodeInterop) {
1178
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
1179
- })(nodeInterop);
1180
- }
1181
- function _interop_require_wildcard(obj, nodeInterop) {
1182
- if (!nodeInterop && obj && obj.__esModule) {
1183
- return obj;
1184
- }
1185
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
1186
- return {
1187
- default: obj
1188
- };
1189
- }
1190
- var cache = _getRequireWildcardCache(nodeInterop);
1191
- if (cache && cache.has(obj)) {
1192
- return cache.get(obj);
1193
- }
1194
- var newObj = {
1195
- __proto__: null
1196
- };
1197
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
1198
- for(var key in obj){
1199
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
1200
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
1201
- if (desc && (desc.get || desc.set)) {
1202
- Object.defineProperty(newObj, key, desc);
1203
- } else {
1204
- newObj[key] = obj[key];
1205
- }
1206
- }
1207
- }
1208
- newObj.default = obj;
1209
- if (cache) {
1210
- cache.set(obj, newObj);
1211
- }
1212
- return newObj;
1213
- }
1214
- const errorRef = {
1215
- current: null
1216
- };
1217
- // React.cache is currently only available in canary/experimental React channels.
1218
- const cache = typeof _react.cache === 'function' ? _react.cache : (fn)=>fn;
1219
- // When Cache Components is enabled, we record these as errors so that they
1220
- // are captured by the dev overlay as it's more critical to fix these
1221
- // when enabled.
1222
- const logErrorOrWarn = ("TURBOPACK compile-time falsy", 0) ? "TURBOPACK unreachable" : console.warn;
1223
- // We don't want to dedupe across requests.
1224
- // The developer might've just attempted to fix the warning so we should warn again if it still happens.
1225
- const flushCurrentErrorIfNew = cache((key)=>{
1226
- try {
1227
- logErrorOrWarn(errorRef.current);
1228
- } finally{
1229
- errorRef.current = null;
1230
- }
1231
- });
1232
- function createDedupedByCallsiteServerErrorLoggerDev(getMessage) {
1233
- return function logDedupedError() {
1234
- for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
1235
- args[_key] = arguments[_key];
1236
- }
1237
- const message = getMessage(...args);
1238
- if ("TURBOPACK compile-time truthy", 1) {
1239
- var _stack;
1240
- const callStackFrames = (_stack = new Error().stack) == null ? void 0 : _stack.split('\n');
1241
- if (callStackFrames === undefined || callStackFrames.length < 4) {
1242
- logErrorOrWarn(message);
1243
- } else {
1244
- // Error:
1245
- // logDedupedError
1246
- // asyncApiBeingAccessedSynchronously
1247
- // <userland callsite>
1248
- // TODO: This breaks if sourcemaps with ignore lists are enabled.
1249
- const key = callStackFrames[4];
1250
- errorRef.current = message;
1251
- flushCurrentErrorIfNew(key);
1252
- }
1253
- } else //TURBOPACK unreachable
1254
- ;
1255
- };
1256
- } //# sourceMappingURL=create-deduped-by-callsite-server-error-logger.js.map
1257
- }),
1258
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1259
- "use strict";
1260
-
1261
- Object.defineProperty(exports, "__esModule", {
1262
- value: true
1263
- });
1264
- Object.defineProperty(exports, "afterTaskAsyncStorageInstance", {
1265
- enumerable: true,
1266
- get: function() {
1267
- return afterTaskAsyncStorageInstance;
1268
- }
1269
- });
1270
- const _asynclocalstorage = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/app-render/async-local-storage.js [app-client] (ecmascript)");
1271
- const afterTaskAsyncStorageInstance = (0, _asynclocalstorage.createAsyncLocalStorage)(); //# sourceMappingURL=after-task-async-storage-instance.js.map
1272
- }),
1273
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/app-render/after-task-async-storage.external.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1274
- "use strict";
1275
-
1276
- Object.defineProperty(exports, "__esModule", {
1277
- value: true
1278
- });
1279
- Object.defineProperty(exports, "afterTaskAsyncStorage", {
1280
- enumerable: true,
1281
- get: function() {
1282
- return _aftertaskasyncstorageinstance.afterTaskAsyncStorageInstance;
1283
- }
1284
- });
1285
- const _aftertaskasyncstorageinstance = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js [app-client] (ecmascript)"); //# sourceMappingURL=after-task-async-storage.external.js.map
1286
- }),
1287
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/request/utils.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1288
- "use strict";
1289
-
1290
- Object.defineProperty(exports, "__esModule", {
1291
- value: true
1292
- });
1293
- 0 && (module.exports = {
1294
- isRequestAPICallableInsideAfter: null,
1295
- throwForSearchParamsAccessInUseCache: null,
1296
- throwWithStaticGenerationBailoutError: null,
1297
- throwWithStaticGenerationBailoutErrorWithDynamicError: null
1298
- });
1299
- function _export(target, all) {
1300
- for(var name in all)Object.defineProperty(target, name, {
1301
- enumerable: true,
1302
- get: all[name]
1303
- });
1304
- }
1305
- _export(exports, {
1306
- isRequestAPICallableInsideAfter: function() {
1307
- return isRequestAPICallableInsideAfter;
1308
- },
1309
- throwForSearchParamsAccessInUseCache: function() {
1310
- return throwForSearchParamsAccessInUseCache;
1311
- },
1312
- throwWithStaticGenerationBailoutError: function() {
1313
- return throwWithStaticGenerationBailoutError;
1314
- },
1315
- throwWithStaticGenerationBailoutErrorWithDynamicError: function() {
1316
- return throwWithStaticGenerationBailoutErrorWithDynamicError;
1317
- }
1318
- });
1319
- const _staticgenerationbailout = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/components/static-generation-bailout.js [app-client] (ecmascript)");
1320
- const _aftertaskasyncstorageexternal = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/app-render/after-task-async-storage.external.js [app-client] (ecmascript)");
1321
- function throwWithStaticGenerationBailoutError(route, expression) {
1322
- throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError("Route ".concat(route, " couldn't be rendered statically because it used ").concat(expression, ". See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering")), "__NEXT_ERROR_CODE", {
1323
- value: "E576",
1324
- enumerable: false,
1325
- configurable: true
1326
- });
1327
- }
1328
- function throwWithStaticGenerationBailoutErrorWithDynamicError(route, expression) {
1329
- throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError("Route ".concat(route, ' with `dynamic = "error"` couldn\'t be rendered statically because it used ').concat(expression, ". See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering")), "__NEXT_ERROR_CODE", {
1330
- value: "E543",
1331
- enumerable: false,
1332
- configurable: true
1333
- });
1334
- }
1335
- function throwForSearchParamsAccessInUseCache(workStore, constructorOpt) {
1336
- var _workStore;
1337
- const error = Object.defineProperty(new Error("Route ".concat(workStore.route, ' used "searchParams" inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await "searchParams" outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache')), "__NEXT_ERROR_CODE", {
1338
- value: "E779",
1339
- enumerable: false,
1340
- configurable: true
1341
- });
1342
- Error.captureStackTrace(error, constructorOpt);
1343
- var _invalidDynamicUsageError;
1344
- (_invalidDynamicUsageError = (_workStore = workStore).invalidDynamicUsageError) !== null && _invalidDynamicUsageError !== void 0 ? _invalidDynamicUsageError : _workStore.invalidDynamicUsageError = error;
1345
- throw error;
1346
- }
1347
- function isRequestAPICallableInsideAfter() {
1348
- const afterTaskStore = _aftertaskasyncstorageexternal.afterTaskAsyncStorage.getStore();
1349
- return (afterTaskStore == null ? void 0 : afterTaskStore.rootTaskSpawnPhase) === 'action';
1350
- } //# sourceMappingURL=utils.js.map
1351
- }),
1352
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/request/search-params.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1353
- "use strict";
1354
-
1355
- var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f2e$pnpm$2f$next$40$15$2e$5$2e$1$2d$canary$2e$30_babel$2d$plugin$2d$react$2d$compiler$40$19$2e$1$2e$0$2d$rc$2e$3_react$2d$dom$40$19$2e$2$2e$0$2d$canary$2d$d_5eea965284f26eb4e30482e6426df099$2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)");
1356
- "use strict";
1357
- Object.defineProperty(exports, "__esModule", {
1358
- value: true
1359
- });
1360
- 0 && (module.exports = {
1361
- createPrerenderSearchParamsForClientPage: null,
1362
- createSearchParamsFromClient: null,
1363
- createServerSearchParamsForMetadata: null,
1364
- createServerSearchParamsForServerPage: null,
1365
- makeErroringSearchParamsForUseCache: null
1366
- });
1367
- function _export(target, all) {
1368
- for(var name in all)Object.defineProperty(target, name, {
1369
- enumerable: true,
1370
- get: all[name]
1371
- });
1372
- }
1373
- _export(exports, {
1374
- createPrerenderSearchParamsForClientPage: function() {
1375
- return createPrerenderSearchParamsForClientPage;
1376
- },
1377
- createSearchParamsFromClient: function() {
1378
- return createSearchParamsFromClient;
1379
- },
1380
- createServerSearchParamsForMetadata: function() {
1381
- return createServerSearchParamsForMetadata;
1382
- },
1383
- createServerSearchParamsForServerPage: function() {
1384
- return createServerSearchParamsForServerPage;
1385
- },
1386
- makeErroringSearchParamsForUseCache: function() {
1387
- return makeErroringSearchParamsForUseCache;
1388
- }
1389
- });
1390
- const _reflect = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js [app-client] (ecmascript)");
1391
- const _dynamicrendering = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/app-render/dynamic-rendering.js [app-client] (ecmascript)");
1392
- const _workunitasyncstorageexternal = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js [app-client] (ecmascript)");
1393
- const _invarianterror = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/shared/lib/invariant-error.js [app-client] (ecmascript)");
1394
- const _dynamicrenderingutils = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/dynamic-rendering-utils.js [app-client] (ecmascript)");
1395
- const _creatededupedbycallsiteservererrorlogger = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js [app-client] (ecmascript)");
1396
- const _reflectutils = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/shared/lib/utils/reflect-utils.js [app-client] (ecmascript)");
1397
- const _utils = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/request/utils.js [app-client] (ecmascript)");
1398
- function createSearchParamsFromClient(underlyingSearchParams, workStore) {
1399
- const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
1400
- if (workUnitStore) {
1401
- switch(workUnitStore.type){
1402
- case 'prerender':
1403
- case 'prerender-client':
1404
- case 'prerender-ppr':
1405
- case 'prerender-legacy':
1406
- return createStaticPrerenderSearchParams(workStore, workUnitStore);
1407
- case 'prerender-runtime':
1408
- throw Object.defineProperty(new _invarianterror.InvariantError('createSearchParamsFromClient should not be called in a runtime prerender.'), "__NEXT_ERROR_CODE", {
1409
- value: "E769",
1410
- enumerable: false,
1411
- configurable: true
1412
- });
1413
- case 'cache':
1414
- case 'private-cache':
1415
- case 'unstable-cache':
1416
- throw Object.defineProperty(new _invarianterror.InvariantError('createSearchParamsFromClient should not be called in cache contexts.'), "__NEXT_ERROR_CODE", {
1417
- value: "E739",
1418
- enumerable: false,
1419
- configurable: true
1420
- });
1421
- case 'request':
1422
- return createRenderSearchParams(underlyingSearchParams, workStore);
1423
- default:
1424
- workUnitStore;
1425
- }
1426
- }
1427
- (0, _workunitasyncstorageexternal.throwInvariantForMissingStore)();
1428
- }
1429
- const createServerSearchParamsForMetadata = createServerSearchParamsForServerPage;
1430
- function createServerSearchParamsForServerPage(underlyingSearchParams, workStore) {
1431
- const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
1432
- if (workUnitStore) {
1433
- switch(workUnitStore.type){
1434
- case 'prerender':
1435
- case 'prerender-client':
1436
- case 'prerender-ppr':
1437
- case 'prerender-legacy':
1438
- return createStaticPrerenderSearchParams(workStore, workUnitStore);
1439
- case 'cache':
1440
- case 'private-cache':
1441
- case 'unstable-cache':
1442
- throw Object.defineProperty(new _invarianterror.InvariantError('createServerSearchParamsForServerPage should not be called in cache contexts.'), "__NEXT_ERROR_CODE", {
1443
- value: "E747",
1444
- enumerable: false,
1445
- configurable: true
1446
- });
1447
- case 'prerender-runtime':
1448
- return createRuntimePrerenderSearchParams(underlyingSearchParams, workUnitStore);
1449
- case 'request':
1450
- return createRenderSearchParams(underlyingSearchParams, workStore);
1451
- default:
1452
- workUnitStore;
1453
- }
1454
- }
1455
- (0, _workunitasyncstorageexternal.throwInvariantForMissingStore)();
1456
- }
1457
- function createPrerenderSearchParamsForClientPage(workStore) {
1458
- if (workStore.forceStatic) {
1459
- // When using forceStatic we override all other logic and always just return an empty
1460
- // dictionary object.
1461
- return Promise.resolve({});
1462
- }
1463
- const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
1464
- if (workUnitStore) {
1465
- switch(workUnitStore.type){
1466
- case 'prerender':
1467
- case 'prerender-client':
1468
- // We're prerendering in a mode that aborts (cacheComponents) and should stall
1469
- // the promise to ensure the RSC side is considered dynamic
1470
- return (0, _dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal, workStore.route, '`searchParams`');
1471
- case 'prerender-runtime':
1472
- throw Object.defineProperty(new _invarianterror.InvariantError('createPrerenderSearchParamsForClientPage should not be called in a runtime prerender.'), "__NEXT_ERROR_CODE", {
1473
- value: "E768",
1474
- enumerable: false,
1475
- configurable: true
1476
- });
1477
- case 'cache':
1478
- case 'private-cache':
1479
- case 'unstable-cache':
1480
- throw Object.defineProperty(new _invarianterror.InvariantError('createPrerenderSearchParamsForClientPage should not be called in cache contexts.'), "__NEXT_ERROR_CODE", {
1481
- value: "E746",
1482
- enumerable: false,
1483
- configurable: true
1484
- });
1485
- case 'prerender-ppr':
1486
- case 'prerender-legacy':
1487
- case 'request':
1488
- return Promise.resolve({});
1489
- default:
1490
- workUnitStore;
1491
- }
1492
- }
1493
- (0, _workunitasyncstorageexternal.throwInvariantForMissingStore)();
1494
- }
1495
- function createStaticPrerenderSearchParams(workStore, prerenderStore) {
1496
- if (workStore.forceStatic) {
1497
- // When using forceStatic we override all other logic and always just return an empty
1498
- // dictionary object.
1499
- return Promise.resolve({});
1500
- }
1501
- switch(prerenderStore.type){
1502
- case 'prerender':
1503
- case 'prerender-client':
1504
- // We are in a cacheComponents (PPR or otherwise) prerender
1505
- return makeHangingSearchParams(workStore, prerenderStore);
1506
- case 'prerender-ppr':
1507
- case 'prerender-legacy':
1508
- // We are in a legacy static generation and need to interrupt the
1509
- // prerender when search params are accessed.
1510
- return makeErroringExoticSearchParams(workStore, prerenderStore);
1511
- default:
1512
- return prerenderStore;
1513
- }
1514
- }
1515
- function createRuntimePrerenderSearchParams(underlyingSearchParams, workUnitStore) {
1516
- return (0, _dynamicrendering.delayUntilRuntimeStage)(workUnitStore, ("TURBOPACK compile-time falsy", 0) ? "TURBOPACK unreachable" : makeUntrackedExoticSearchParams(underlyingSearchParams));
1517
- }
1518
- function createRenderSearchParams(underlyingSearchParams, workStore) {
1519
- if (workStore.forceStatic) {
1520
- // When using forceStatic we override all other logic and always just return an empty
1521
- // dictionary object.
1522
- return Promise.resolve({});
1523
- } else {
1524
- if ("TURBOPACK compile-time truthy", 1) {
1525
- // Semantically we only need the dev tracking when running in `next dev`
1526
- // but since you would never use next dev with production NODE_ENV we use this
1527
- // as a proxy so we can statically exclude this code from production builds.
1528
- if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
1529
- ;
1530
- return makeDynamicallyTrackedExoticSearchParamsWithDevWarnings(underlyingSearchParams, workStore);
1531
- } else //TURBOPACK unreachable
1532
- ;
1533
- }
1534
- }
1535
- const CachedSearchParams = new WeakMap();
1536
- const CachedSearchParamsForUseCache = new WeakMap();
1537
- function makeHangingSearchParams(workStore, prerenderStore) {
1538
- const cachedSearchParams = CachedSearchParams.get(prerenderStore);
1539
- if (cachedSearchParams) {
1540
- return cachedSearchParams;
1541
- }
1542
- const promise = (0, _dynamicrenderingutils.makeHangingPromise)(prerenderStore.renderSignal, workStore.route, '`searchParams`');
1543
- const proxiedPromise = new Proxy(promise, {
1544
- get (target, prop, receiver) {
1545
- if (Object.hasOwn(promise, prop)) {
1546
- // The promise has this property directly. we must return it.
1547
- // We know it isn't a dynamic access because it can only be something
1548
- // that was previously written to the promise and thus not an underlying searchParam value
1549
- return _reflect.ReflectAdapter.get(target, prop, receiver);
1550
- }
1551
- switch(prop){
1552
- case 'then':
1553
- {
1554
- const expression = '`await searchParams`, `searchParams.then`, or similar';
1555
- (0, _dynamicrendering.annotateDynamicAccess)(expression, prerenderStore);
1556
- return _reflect.ReflectAdapter.get(target, prop, receiver);
1557
- }
1558
- case 'status':
1559
- {
1560
- const expression = '`use(searchParams)`, `searchParams.status`, or similar';
1561
- (0, _dynamicrendering.annotateDynamicAccess)(expression, prerenderStore);
1562
- return _reflect.ReflectAdapter.get(target, prop, receiver);
1563
- }
1564
- default:
1565
- {
1566
- return _reflect.ReflectAdapter.get(target, prop, receiver);
1567
- }
1568
- }
1569
- }
1570
- });
1571
- CachedSearchParams.set(prerenderStore, proxiedPromise);
1572
- return proxiedPromise;
1573
- }
1574
- function makeErroringExoticSearchParams(workStore, prerenderStore) {
1575
- const cachedSearchParams = CachedSearchParams.get(workStore);
1576
- if (cachedSearchParams) {
1577
- return cachedSearchParams;
1578
- }
1579
- const underlyingSearchParams = {};
1580
- // For search params we don't construct a ReactPromise because we want to interrupt
1581
- // rendering on any property access that was not set from outside and so we only want
1582
- // to have properties like value and status if React sets them.
1583
- const promise = Promise.resolve(underlyingSearchParams);
1584
- const proxiedPromise = new Proxy(promise, {
1585
- get (target, prop, receiver) {
1586
- if (Object.hasOwn(promise, prop)) {
1587
- // The promise has this property directly. we must return it.
1588
- // We know it isn't a dynamic access because it can only be something
1589
- // that was previously written to the promise and thus not an underlying searchParam value
1590
- return _reflect.ReflectAdapter.get(target, prop, receiver);
1591
- }
1592
- switch(prop){
1593
- case 'then':
1594
- {
1595
- const expression = '`await searchParams`, `searchParams.then`, or similar';
1596
- if (workStore.dynamicShouldError) {
1597
- (0, _utils.throwWithStaticGenerationBailoutErrorWithDynamicError)(workStore.route, expression);
1598
- } else if (prerenderStore.type === 'prerender-ppr') {
1599
- // PPR Prerender (no cacheComponents)
1600
- (0, _dynamicrendering.postponeWithTracking)(workStore.route, expression, prerenderStore.dynamicTracking);
1601
- } else {
1602
- // Legacy Prerender
1603
- (0, _dynamicrendering.throwToInterruptStaticGeneration)(expression, workStore, prerenderStore);
1604
- }
1605
- return;
1606
- }
1607
- case 'status':
1608
- {
1609
- const expression = '`use(searchParams)`, `searchParams.status`, or similar';
1610
- if (workStore.dynamicShouldError) {
1611
- (0, _utils.throwWithStaticGenerationBailoutErrorWithDynamicError)(workStore.route, expression);
1612
- } else if (prerenderStore.type === 'prerender-ppr') {
1613
- // PPR Prerender (no cacheComponents)
1614
- (0, _dynamicrendering.postponeWithTracking)(workStore.route, expression, prerenderStore.dynamicTracking);
1615
- } else {
1616
- // Legacy Prerender
1617
- (0, _dynamicrendering.throwToInterruptStaticGeneration)(expression, workStore, prerenderStore);
1618
- }
1619
- return;
1620
- }
1621
- default:
1622
- {
1623
- if (typeof prop === 'string' && !_reflectutils.wellKnownProperties.has(prop)) {
1624
- const expression = (0, _reflectutils.describeStringPropertyAccess)('searchParams', prop);
1625
- if (workStore.dynamicShouldError) {
1626
- (0, _utils.throwWithStaticGenerationBailoutErrorWithDynamicError)(workStore.route, expression);
1627
- } else if (prerenderStore.type === 'prerender-ppr') {
1628
- // PPR Prerender (no cacheComponents)
1629
- (0, _dynamicrendering.postponeWithTracking)(workStore.route, expression, prerenderStore.dynamicTracking);
1630
- } else {
1631
- // Legacy Prerender
1632
- (0, _dynamicrendering.throwToInterruptStaticGeneration)(expression, workStore, prerenderStore);
1633
- }
1634
- }
1635
- return _reflect.ReflectAdapter.get(target, prop, receiver);
1636
- }
1637
- }
1638
- },
1639
- has (target, prop) {
1640
- // We don't expect key checking to be used except for testing the existence of
1641
- // searchParams so we make all has tests trigger dynamic. this means that `promise.then`
1642
- // can resolve to the then function on the Promise prototype but 'then' in promise will assume
1643
- // you are testing whether the searchParams has a 'then' property.
1644
- if (typeof prop === 'string') {
1645
- const expression = (0, _reflectutils.describeHasCheckingStringProperty)('searchParams', prop);
1646
- if (workStore.dynamicShouldError) {
1647
- (0, _utils.throwWithStaticGenerationBailoutErrorWithDynamicError)(workStore.route, expression);
1648
- } else if (prerenderStore.type === 'prerender-ppr') {
1649
- // PPR Prerender (no cacheComponents)
1650
- (0, _dynamicrendering.postponeWithTracking)(workStore.route, expression, prerenderStore.dynamicTracking);
1651
- } else {
1652
- // Legacy Prerender
1653
- (0, _dynamicrendering.throwToInterruptStaticGeneration)(expression, workStore, prerenderStore);
1654
- }
1655
- return false;
1656
- }
1657
- return _reflect.ReflectAdapter.has(target, prop);
1658
- },
1659
- ownKeys () {
1660
- const expression = '`{...searchParams}`, `Object.keys(searchParams)`, or similar';
1661
- if (workStore.dynamicShouldError) {
1662
- (0, _utils.throwWithStaticGenerationBailoutErrorWithDynamicError)(workStore.route, expression);
1663
- } else if (prerenderStore.type === 'prerender-ppr') {
1664
- // PPR Prerender (no cacheComponents)
1665
- (0, _dynamicrendering.postponeWithTracking)(workStore.route, expression, prerenderStore.dynamicTracking);
1666
- } else {
1667
- // Legacy Prerender
1668
- (0, _dynamicrendering.throwToInterruptStaticGeneration)(expression, workStore, prerenderStore);
1669
- }
1670
- }
1671
- });
1672
- CachedSearchParams.set(workStore, proxiedPromise);
1673
- return proxiedPromise;
1674
- }
1675
- function makeErroringSearchParamsForUseCache(workStore) {
1676
- const cachedSearchParams = CachedSearchParamsForUseCache.get(workStore);
1677
- if (cachedSearchParams) {
1678
- return cachedSearchParams;
1679
- }
1680
- const promise = Promise.resolve({});
1681
- const proxiedPromise = new Proxy(promise, {
1682
- get: function get(target, prop, receiver) {
1683
- if (Object.hasOwn(promise, prop)) {
1684
- // The promise has this property directly. we must return it. We know it
1685
- // isn't a dynamic access because it can only be something that was
1686
- // previously written to the promise and thus not an underlying
1687
- // searchParam value
1688
- return _reflect.ReflectAdapter.get(target, prop, receiver);
1689
- }
1690
- if (typeof prop === 'string' && (prop === 'then' || !_reflectutils.wellKnownProperties.has(prop))) {
1691
- (0, _utils.throwForSearchParamsAccessInUseCache)(workStore, get);
1692
- }
1693
- return _reflect.ReflectAdapter.get(target, prop, receiver);
1694
- },
1695
- has: function has(target, prop) {
1696
- // We don't expect key checking to be used except for testing the existence of
1697
- // searchParams so we make all has tests throw an error. this means that `promise.then`
1698
- // can resolve to the then function on the Promise prototype but 'then' in promise will assume
1699
- // you are testing whether the searchParams has a 'then' property.
1700
- if (typeof prop === 'string' && (prop === 'then' || !_reflectutils.wellKnownProperties.has(prop))) {
1701
- (0, _utils.throwForSearchParamsAccessInUseCache)(workStore, has);
1702
- }
1703
- return _reflect.ReflectAdapter.has(target, prop);
1704
- },
1705
- ownKeys: function ownKeys() {
1706
- (0, _utils.throwForSearchParamsAccessInUseCache)(workStore, ownKeys);
1707
- }
1708
- });
1709
- CachedSearchParamsForUseCache.set(workStore, proxiedPromise);
1710
- return proxiedPromise;
1711
- }
1712
- function makeUntrackedExoticSearchParams(underlyingSearchParams) {
1713
- const cachedSearchParams = CachedSearchParams.get(underlyingSearchParams);
1714
- if (cachedSearchParams) {
1715
- return cachedSearchParams;
1716
- }
1717
- // We don't use makeResolvedReactPromise here because searchParams
1718
- // supports copying with spread and we don't want to unnecessarily
1719
- // instrument the promise with spreadable properties of ReactPromise.
1720
- const promise = Promise.resolve(underlyingSearchParams);
1721
- CachedSearchParams.set(underlyingSearchParams, promise);
1722
- Object.keys(underlyingSearchParams).forEach((prop)=>{
1723
- if (!_reflectutils.wellKnownProperties.has(prop)) {
1724
- Object.defineProperty(promise, prop, {
1725
- get () {
1726
- const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
1727
- if (workUnitStore) {
1728
- (0, _dynamicrendering.trackDynamicDataInDynamicRender)(workUnitStore);
1729
- }
1730
- return underlyingSearchParams[prop];
1731
- },
1732
- set (value) {
1733
- Object.defineProperty(promise, prop, {
1734
- value,
1735
- writable: true,
1736
- enumerable: true
1737
- });
1738
- },
1739
- enumerable: true,
1740
- configurable: true
1741
- });
1742
- }
1743
- });
1744
- return promise;
1745
- }
1746
- function makeUntrackedSearchParams(underlyingSearchParams) {
1747
- const cachedSearchParams = CachedSearchParams.get(underlyingSearchParams);
1748
- if (cachedSearchParams) {
1749
- return cachedSearchParams;
1750
- }
1751
- const promise = Promise.resolve(underlyingSearchParams);
1752
- CachedSearchParams.set(underlyingSearchParams, promise);
1753
- return promise;
1754
- }
1755
- function makeDynamicallyTrackedExoticSearchParamsWithDevWarnings(underlyingSearchParams, store) {
1756
- const cachedSearchParams = CachedSearchParams.get(underlyingSearchParams);
1757
- if (cachedSearchParams) {
1758
- return cachedSearchParams;
1759
- }
1760
- const proxiedProperties = new Set();
1761
- const unproxiedProperties = [];
1762
- // We have an unfortunate sequence of events that requires this initialization logic. We want to instrument the underlying
1763
- // searchParams object to detect if you are accessing values in dev. This is used for warnings and for things like the static prerender
1764
- // indicator. However when we pass this proxy to our Promise.resolve() below the VM checks if the resolved value is a promise by looking
1765
- // at the `.then` property. To our dynamic tracking logic this is indistinguishable from a `then` searchParam and so we would normally trigger
1766
- // dynamic tracking. However we know that this .then is not real dynamic access, it's just how thenables resolve in sequence. So we introduce
1767
- // this initialization concept so we omit the dynamic check until after we've constructed our resolved promise.
1768
- let promiseInitialized = false;
1769
- const proxiedUnderlying = new Proxy(underlyingSearchParams, {
1770
- get (target, prop, receiver) {
1771
- if (typeof prop === 'string' && promiseInitialized) {
1772
- if (store.dynamicShouldError) {
1773
- const expression = (0, _reflectutils.describeStringPropertyAccess)('searchParams', prop);
1774
- (0, _utils.throwWithStaticGenerationBailoutErrorWithDynamicError)(store.route, expression);
1775
- }
1776
- const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
1777
- if (workUnitStore) {
1778
- (0, _dynamicrendering.trackDynamicDataInDynamicRender)(workUnitStore);
1779
- }
1780
- }
1781
- return _reflect.ReflectAdapter.get(target, prop, receiver);
1782
- },
1783
- has (target, prop) {
1784
- if (typeof prop === 'string') {
1785
- if (store.dynamicShouldError) {
1786
- const expression = (0, _reflectutils.describeHasCheckingStringProperty)('searchParams', prop);
1787
- (0, _utils.throwWithStaticGenerationBailoutErrorWithDynamicError)(store.route, expression);
1788
- }
1789
- }
1790
- return Reflect.has(target, prop);
1791
- },
1792
- ownKeys (target) {
1793
- if (store.dynamicShouldError) {
1794
- const expression = '`{...searchParams}`, `Object.keys(searchParams)`, or similar';
1795
- (0, _utils.throwWithStaticGenerationBailoutErrorWithDynamicError)(store.route, expression);
1796
- }
1797
- return Reflect.ownKeys(target);
1798
- }
1799
- });
1800
- // We don't use makeResolvedReactPromise here because searchParams
1801
- // supports copying with spread and we don't want to unnecessarily
1802
- // instrument the promise with spreadable properties of ReactPromise.
1803
- const promise = (0, _dynamicrenderingutils.makeDevtoolsIOAwarePromise)(underlyingSearchParams);
1804
- promise.then(()=>{
1805
- promiseInitialized = true;
1806
- });
1807
- Object.keys(underlyingSearchParams).forEach((prop)=>{
1808
- if (_reflectutils.wellKnownProperties.has(prop)) {
1809
- // These properties cannot be shadowed because they need to be the
1810
- // true underlying value for Promises to work correctly at runtime
1811
- unproxiedProperties.push(prop);
1812
- } else {
1813
- proxiedProperties.add(prop);
1814
- Object.defineProperty(promise, prop, {
1815
- get () {
1816
- return proxiedUnderlying[prop];
1817
- },
1818
- set (newValue) {
1819
- Object.defineProperty(promise, prop, {
1820
- value: newValue,
1821
- writable: true,
1822
- enumerable: true
1823
- });
1824
- },
1825
- enumerable: true,
1826
- configurable: true
1827
- });
1828
- }
1829
- });
1830
- const proxiedPromise = new Proxy(promise, {
1831
- get (target, prop, receiver) {
1832
- if (prop === 'then' && store.dynamicShouldError) {
1833
- const expression = '`searchParams.then`';
1834
- (0, _utils.throwWithStaticGenerationBailoutErrorWithDynamicError)(store.route, expression);
1835
- }
1836
- if (typeof prop === 'string') {
1837
- if (!_reflectutils.wellKnownProperties.has(prop) && (proxiedProperties.has(prop) || // We are accessing a property that doesn't exist on the promise nor
1838
- // the underlying searchParams.
1839
- Reflect.has(target, prop) === false)) {
1840
- const expression = (0, _reflectutils.describeStringPropertyAccess)('searchParams', prop);
1841
- syncIODev(store.route, expression);
1842
- }
1843
- }
1844
- return _reflect.ReflectAdapter.get(target, prop, receiver);
1845
- },
1846
- set (target, prop, value, receiver) {
1847
- if (typeof prop === 'string') {
1848
- proxiedProperties.delete(prop);
1849
- }
1850
- return Reflect.set(target, prop, value, receiver);
1851
- },
1852
- has (target, prop) {
1853
- if (typeof prop === 'string') {
1854
- if (!_reflectutils.wellKnownProperties.has(prop) && (proxiedProperties.has(prop) || // We are accessing a property that doesn't exist on the promise nor
1855
- // the underlying searchParams.
1856
- Reflect.has(target, prop) === false)) {
1857
- const expression = (0, _reflectutils.describeHasCheckingStringProperty)('searchParams', prop);
1858
- syncIODev(store.route, expression);
1859
- }
1860
- }
1861
- return Reflect.has(target, prop);
1862
- },
1863
- ownKeys (target) {
1864
- const expression = '`Object.keys(searchParams)` or similar';
1865
- syncIODev(store.route, expression, unproxiedProperties);
1866
- return Reflect.ownKeys(target);
1867
- }
1868
- });
1869
- CachedSearchParams.set(underlyingSearchParams, proxiedPromise);
1870
- return proxiedPromise;
1871
- }
1872
- // Similar to `makeDynamicallyTrackedExoticSearchParamsWithDevWarnings`, but
1873
- // just logging the sync access without actually defining the search params on
1874
- // the promise.
1875
- function makeUntrackedSearchParamsWithDevWarnings(underlyingSearchParams, store) {
1876
- const cachedSearchParams = CachedSearchParams.get(underlyingSearchParams);
1877
- if (cachedSearchParams) {
1878
- return cachedSearchParams;
1879
- }
1880
- const proxiedProperties = new Set();
1881
- const unproxiedProperties = [];
1882
- const promise = (0, _dynamicrenderingutils.makeDevtoolsIOAwarePromise)(underlyingSearchParams);
1883
- Object.keys(underlyingSearchParams).forEach((prop)=>{
1884
- if (_reflectutils.wellKnownProperties.has(prop)) {
1885
- // These properties cannot be shadowed because they need to be the
1886
- // true underlying value for Promises to work correctly at runtime
1887
- unproxiedProperties.push(prop);
1888
- } else {
1889
- proxiedProperties.add(prop);
1890
- }
1891
- });
1892
- const proxiedPromise = new Proxy(promise, {
1893
- get (target, prop, receiver) {
1894
- if (typeof prop === 'string') {
1895
- if (!_reflectutils.wellKnownProperties.has(prop) && (proxiedProperties.has(prop) || // We are accessing a property that doesn't exist on the promise nor
1896
- // the underlying searchParams.
1897
- Reflect.has(target, prop) === false)) {
1898
- const expression = (0, _reflectutils.describeStringPropertyAccess)('searchParams', prop);
1899
- warnForSyncAccess(store.route, expression);
1900
- }
1901
- }
1902
- return _reflect.ReflectAdapter.get(target, prop, receiver);
1903
- },
1904
- set (target, prop, value, receiver) {
1905
- if (typeof prop === 'string') {
1906
- proxiedProperties.delete(prop);
1907
- }
1908
- return Reflect.set(target, prop, value, receiver);
1909
- },
1910
- has (target, prop) {
1911
- if (typeof prop === 'string') {
1912
- if (!_reflectutils.wellKnownProperties.has(prop) && (proxiedProperties.has(prop) || // We are accessing a property that doesn't exist on the promise nor
1913
- // the underlying searchParams.
1914
- Reflect.has(target, prop) === false)) {
1915
- const expression = (0, _reflectutils.describeHasCheckingStringProperty)('searchParams', prop);
1916
- warnForSyncAccess(store.route, expression);
1917
- }
1918
- }
1919
- return Reflect.has(target, prop);
1920
- },
1921
- ownKeys (target) {
1922
- const expression = '`Object.keys(searchParams)` or similar';
1923
- warnForIncompleteEnumeration(store.route, expression, unproxiedProperties);
1924
- return Reflect.ownKeys(target);
1925
- }
1926
- });
1927
- CachedSearchParams.set(underlyingSearchParams, proxiedPromise);
1928
- return proxiedPromise;
1929
- }
1930
- function syncIODev(route, expression, missingProperties) {
1931
- // In all cases we warn normally
1932
- if (missingProperties && missingProperties.length > 0) {
1933
- warnForIncompleteEnumeration(route, expression, missingProperties);
1934
- } else {
1935
- warnForSyncAccess(route, expression);
1936
- }
1937
- const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
1938
- if (workUnitStore) {
1939
- switch(workUnitStore.type){
1940
- case 'request':
1941
- if (workUnitStore.prerenderPhase === true) {
1942
- // When we're rendering dynamically in dev, we need to advance out of
1943
- // the Prerender environment when we read Request data synchronously.
1944
- (0, _dynamicrendering.trackSynchronousRequestDataAccessInDev)(workUnitStore);
1945
- }
1946
- break;
1947
- case 'prerender':
1948
- case 'prerender-client':
1949
- case 'prerender-runtime':
1950
- case 'prerender-ppr':
1951
- case 'prerender-legacy':
1952
- case 'cache':
1953
- case 'private-cache':
1954
- case 'unstable-cache':
1955
- break;
1956
- default:
1957
- workUnitStore;
1958
- }
1959
- }
1960
- }
1961
- const warnForSyncAccess = (0, _creatededupedbycallsiteservererrorlogger.createDedupedByCallsiteServerErrorLoggerDev)(createSearchAccessError);
1962
- const warnForIncompleteEnumeration = (0, _creatededupedbycallsiteservererrorlogger.createDedupedByCallsiteServerErrorLoggerDev)(createIncompleteEnumerationError);
1963
- function createSearchAccessError(route, expression) {
1964
- const prefix = route ? 'Route "'.concat(route, '" ') : 'This route ';
1965
- return Object.defineProperty(new Error("".concat(prefix, "used ").concat(expression, ". ") + "`searchParams` should be awaited before using its properties. " + "Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis"), "__NEXT_ERROR_CODE", {
1966
- value: "E249",
1967
- enumerable: false,
1968
- configurable: true
1969
- });
1970
- }
1971
- function createIncompleteEnumerationError(route, expression, missingProperties) {
1972
- const prefix = route ? 'Route "'.concat(route, '" ') : 'This route ';
1973
- return Object.defineProperty(new Error("".concat(prefix, "used ").concat(expression, ". ") + "`searchParams` should be awaited before using its properties. " + "The following properties were not available through enumeration " + "because they conflict with builtin or well-known property names: " + "".concat(describeListOfPropertyNames(missingProperties), ". ") + "Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis"), "__NEXT_ERROR_CODE", {
1974
- value: "E2",
1975
- enumerable: false,
1976
- configurable: true
1977
- });
1978
- }
1979
- function describeListOfPropertyNames(properties) {
1980
- switch(properties.length){
1981
- case 0:
1982
- throw Object.defineProperty(new _invarianterror.InvariantError('Expected describeListOfPropertyNames to be called with a non-empty list of strings.'), "__NEXT_ERROR_CODE", {
1983
- value: "E531",
1984
- enumerable: false,
1985
- configurable: true
1986
- });
1987
- case 1:
1988
- return "`".concat(properties[0], "`");
1989
- case 2:
1990
- return "`".concat(properties[0], "` and `").concat(properties[1], "`");
1991
- default:
1992
- {
1993
- let description = '';
1994
- for(let i = 0; i < properties.length - 1; i++){
1995
- description += "`".concat(properties[i], "`, ");
1996
- }
1997
- description += ", and `".concat(properties[properties.length - 1], "`");
1998
- return description;
1999
- }
2000
- }
2001
- } //# sourceMappingURL=search-params.js.map
2002
- }),
2003
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2004
- "use strict";
2005
-
2006
- Object.defineProperty(exports, "__esModule", {
2007
- value: true
2008
- });
2009
- Object.defineProperty(exports, "dynamicAccessAsyncStorageInstance", {
2010
- enumerable: true,
2011
- get: function() {
2012
- return dynamicAccessAsyncStorageInstance;
2013
- }
2014
- });
2015
- const _asynclocalstorage = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/app-render/async-local-storage.js [app-client] (ecmascript)");
2016
- const dynamicAccessAsyncStorageInstance = (0, _asynclocalstorage.createAsyncLocalStorage)(); //# sourceMappingURL=dynamic-access-async-storage-instance.js.map
2017
- }),
2018
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2019
- "use strict";
2020
-
2021
- Object.defineProperty(exports, "__esModule", {
2022
- value: true
2023
- });
2024
- Object.defineProperty(exports, "dynamicAccessAsyncStorage", {
2025
- enumerable: true,
2026
- get: function() {
2027
- return _dynamicaccessasyncstorageinstance.dynamicAccessAsyncStorageInstance;
2028
- }
2029
- });
2030
- const _dynamicaccessasyncstorageinstance = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js [app-client] (ecmascript)"); //# sourceMappingURL=dynamic-access-async-storage.external.js.map
2031
- }),
2032
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/request/params.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2033
- "use strict";
2034
-
2035
- var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f2e$pnpm$2f$next$40$15$2e$5$2e$1$2d$canary$2e$30_babel$2d$plugin$2d$react$2d$compiler$40$19$2e$1$2e$0$2d$rc$2e$3_react$2d$dom$40$19$2e$2$2e$0$2d$canary$2d$d_5eea965284f26eb4e30482e6426df099$2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)");
2036
- "use strict";
2037
- Object.defineProperty(exports, "__esModule", {
2038
- value: true
2039
- });
2040
- 0 && (module.exports = {
2041
- createParamsFromClient: null,
2042
- createPrerenderParamsForClientSegment: null,
2043
- createServerParamsForMetadata: null,
2044
- createServerParamsForRoute: null,
2045
- createServerParamsForServerSegment: null
2046
- });
2047
- function _export(target, all) {
2048
- for(var name in all)Object.defineProperty(target, name, {
2049
- enumerable: true,
2050
- get: all[name]
2051
- });
2052
- }
2053
- _export(exports, {
2054
- createParamsFromClient: function() {
2055
- return createParamsFromClient;
2056
- },
2057
- createPrerenderParamsForClientSegment: function() {
2058
- return createPrerenderParamsForClientSegment;
2059
- },
2060
- createServerParamsForMetadata: function() {
2061
- return createServerParamsForMetadata;
2062
- },
2063
- createServerParamsForRoute: function() {
2064
- return createServerParamsForRoute;
2065
- },
2066
- createServerParamsForServerSegment: function() {
2067
- return createServerParamsForServerSegment;
2068
- }
2069
- });
2070
- const _workasyncstorageexternal = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/app-render/work-async-storage.external.js [app-client] (ecmascript)");
2071
- const _reflect = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js [app-client] (ecmascript)");
2072
- const _dynamicrendering = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/app-render/dynamic-rendering.js [app-client] (ecmascript)");
2073
- const _workunitasyncstorageexternal = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js [app-client] (ecmascript)");
2074
- const _invarianterror = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/shared/lib/invariant-error.js [app-client] (ecmascript)");
2075
- const _reflectutils = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/shared/lib/utils/reflect-utils.js [app-client] (ecmascript)");
2076
- const _dynamicrenderingutils = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/dynamic-rendering-utils.js [app-client] (ecmascript)");
2077
- const _creatededupedbycallsiteservererrorlogger = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js [app-client] (ecmascript)");
2078
- const _dynamicaccessasyncstorageexternal = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js [app-client] (ecmascript)");
2079
- function createParamsFromClient(underlyingParams, workStore) {
2080
- const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
2081
- if (workUnitStore) {
2082
- switch(workUnitStore.type){
2083
- case 'prerender':
2084
- case 'prerender-client':
2085
- case 'prerender-ppr':
2086
- case 'prerender-legacy':
2087
- return createStaticPrerenderParams(underlyingParams, workStore, workUnitStore);
2088
- case 'cache':
2089
- case 'private-cache':
2090
- case 'unstable-cache':
2091
- throw Object.defineProperty(new _invarianterror.InvariantError('createParamsFromClient should not be called in cache contexts.'), "__NEXT_ERROR_CODE", {
2092
- value: "E736",
2093
- enumerable: false,
2094
- configurable: true
2095
- });
2096
- case 'prerender-runtime':
2097
- throw Object.defineProperty(new _invarianterror.InvariantError('createParamsFromClient should not be called in a runtime prerender.'), "__NEXT_ERROR_CODE", {
2098
- value: "E770",
2099
- enumerable: false,
2100
- configurable: true
2101
- });
2102
- case 'request':
2103
- if ("TURBOPACK compile-time truthy", 1) {
2104
- // Semantically we only need the dev tracking when running in `next dev`
2105
- // but since you would never use next dev with production NODE_ENV we use this
2106
- // as a proxy so we can statically exclude this code from production builds.
2107
- const devFallbackParams = workUnitStore.devFallbackParams;
2108
- return createRenderParamsInDev(underlyingParams, devFallbackParams, workStore);
2109
- } else //TURBOPACK unreachable
2110
- ;
2111
- default:
2112
- workUnitStore;
2113
- }
2114
- }
2115
- (0, _workunitasyncstorageexternal.throwInvariantForMissingStore)();
2116
- }
2117
- const createServerParamsForMetadata = createServerParamsForServerSegment;
2118
- function createServerParamsForRoute(underlyingParams, workStore) {
2119
- const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
2120
- if (workUnitStore) {
2121
- switch(workUnitStore.type){
2122
- case 'prerender':
2123
- case 'prerender-client':
2124
- case 'prerender-ppr':
2125
- case 'prerender-legacy':
2126
- return createStaticPrerenderParams(underlyingParams, workStore, workUnitStore);
2127
- case 'cache':
2128
- case 'private-cache':
2129
- case 'unstable-cache':
2130
- throw Object.defineProperty(new _invarianterror.InvariantError('createServerParamsForRoute should not be called in cache contexts.'), "__NEXT_ERROR_CODE", {
2131
- value: "E738",
2132
- enumerable: false,
2133
- configurable: true
2134
- });
2135
- case 'prerender-runtime':
2136
- return createRuntimePrerenderParams(underlyingParams, workUnitStore);
2137
- case 'request':
2138
- if ("TURBOPACK compile-time truthy", 1) {
2139
- // Semantically we only need the dev tracking when running in `next dev`
2140
- // but since you would never use next dev with production NODE_ENV we use this
2141
- // as a proxy so we can statically exclude this code from production builds.
2142
- const devFallbackParams = workUnitStore.devFallbackParams;
2143
- return createRenderParamsInDev(underlyingParams, devFallbackParams, workStore);
2144
- } else //TURBOPACK unreachable
2145
- ;
2146
- default:
2147
- workUnitStore;
2148
- }
2149
- }
2150
- (0, _workunitasyncstorageexternal.throwInvariantForMissingStore)();
2151
- }
2152
- function createServerParamsForServerSegment(underlyingParams, workStore) {
2153
- const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
2154
- if (workUnitStore) {
2155
- switch(workUnitStore.type){
2156
- case 'prerender':
2157
- case 'prerender-client':
2158
- case 'prerender-ppr':
2159
- case 'prerender-legacy':
2160
- return createStaticPrerenderParams(underlyingParams, workStore, workUnitStore);
2161
- case 'cache':
2162
- case 'private-cache':
2163
- case 'unstable-cache':
2164
- throw Object.defineProperty(new _invarianterror.InvariantError('createServerParamsForServerSegment should not be called in cache contexts.'), "__NEXT_ERROR_CODE", {
2165
- value: "E743",
2166
- enumerable: false,
2167
- configurable: true
2168
- });
2169
- case 'prerender-runtime':
2170
- return createRuntimePrerenderParams(underlyingParams, workUnitStore);
2171
- case 'request':
2172
- if ("TURBOPACK compile-time truthy", 1) {
2173
- // Semantically we only need the dev tracking when running in `next dev`
2174
- // but since you would never use next dev with production NODE_ENV we use this
2175
- // as a proxy so we can statically exclude this code from production builds.
2176
- const devFallbackParams = workUnitStore.devFallbackParams;
2177
- return createRenderParamsInDev(underlyingParams, devFallbackParams, workStore);
2178
- } else //TURBOPACK unreachable
2179
- ;
2180
- default:
2181
- workUnitStore;
2182
- }
2183
- }
2184
- (0, _workunitasyncstorageexternal.throwInvariantForMissingStore)();
2185
- }
2186
- function createPrerenderParamsForClientSegment(underlyingParams) {
2187
- const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
2188
- if (!workStore) {
2189
- throw Object.defineProperty(new _invarianterror.InvariantError('Missing workStore in createPrerenderParamsForClientSegment'), "__NEXT_ERROR_CODE", {
2190
- value: "E773",
2191
- enumerable: false,
2192
- configurable: true
2193
- });
2194
- }
2195
- const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
2196
- if (workUnitStore) {
2197
- switch(workUnitStore.type){
2198
- case 'prerender':
2199
- case 'prerender-client':
2200
- const fallbackParams = workUnitStore.fallbackRouteParams;
2201
- if (fallbackParams) {
2202
- for(let key in underlyingParams){
2203
- if (fallbackParams.has(key)) {
2204
- // This params object has one or more fallback params, so we need
2205
- // to consider the awaiting of this params object "dynamic". Since
2206
- // we are in cacheComponents mode we encode this as a promise that never
2207
- // resolves.
2208
- return (0, _dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal, workStore.route, '`params`');
2209
- }
2210
- }
2211
- }
2212
- break;
2213
- case 'cache':
2214
- case 'private-cache':
2215
- case 'unstable-cache':
2216
- throw Object.defineProperty(new _invarianterror.InvariantError('createPrerenderParamsForClientSegment should not be called in cache contexts.'), "__NEXT_ERROR_CODE", {
2217
- value: "E734",
2218
- enumerable: false,
2219
- configurable: true
2220
- });
2221
- case 'prerender-ppr':
2222
- case 'prerender-legacy':
2223
- case 'prerender-runtime':
2224
- case 'request':
2225
- break;
2226
- default:
2227
- workUnitStore;
2228
- }
2229
- }
2230
- // We're prerendering in a mode that does not abort. We resolve the promise without
2231
- // any tracking because we're just transporting a value from server to client where the tracking
2232
- // will be applied.
2233
- return Promise.resolve(underlyingParams);
2234
- }
2235
- function createStaticPrerenderParams(underlyingParams, workStore, prerenderStore) {
2236
- switch(prerenderStore.type){
2237
- case 'prerender':
2238
- case 'prerender-client':
2239
- {
2240
- const fallbackParams = prerenderStore.fallbackRouteParams;
2241
- if (fallbackParams) {
2242
- for(const key in underlyingParams){
2243
- if (fallbackParams.has(key)) {
2244
- // This params object has one or more fallback params, so we need
2245
- // to consider the awaiting of this params object "dynamic". Since
2246
- // we are in cacheComponents mode we encode this as a promise that never
2247
- // resolves.
2248
- return makeHangingParams(underlyingParams, workStore, prerenderStore);
2249
- }
2250
- }
2251
- }
2252
- break;
2253
- }
2254
- case 'prerender-ppr':
2255
- {
2256
- const fallbackParams = prerenderStore.fallbackRouteParams;
2257
- if (fallbackParams) {
2258
- for(const key in underlyingParams){
2259
- if (fallbackParams.has(key)) {
2260
- return makeErroringExoticParams(underlyingParams, fallbackParams, workStore, prerenderStore);
2261
- }
2262
- }
2263
- }
2264
- break;
2265
- }
2266
- case 'prerender-legacy':
2267
- break;
2268
- default:
2269
- prerenderStore;
2270
- }
2271
- if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
2272
- ;
2273
- else {
2274
- return makeUntrackedExoticParams(underlyingParams);
2275
- }
2276
- }
2277
- function createRuntimePrerenderParams(underlyingParams, workUnitStore) {
2278
- return (0, _dynamicrendering.delayUntilRuntimeStage)(workUnitStore, ("TURBOPACK compile-time falsy", 0) ? "TURBOPACK unreachable" : makeUntrackedExoticParams(underlyingParams));
2279
- }
2280
- function createRenderParamsInProd(underlyingParams) {
2281
- if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
2282
- ;
2283
- return makeUntrackedExoticParams(underlyingParams);
2284
- }
2285
- function createRenderParamsInDev(underlyingParams, devFallbackParams, workStore) {
2286
- let hasFallbackParams = false;
2287
- if (devFallbackParams) {
2288
- for(let key in underlyingParams){
2289
- if (devFallbackParams.has(key)) {
2290
- hasFallbackParams = true;
2291
- break;
2292
- }
2293
- }
2294
- }
2295
- if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
2296
- ;
2297
- return makeDynamicallyTrackedExoticParamsWithDevWarnings(underlyingParams, hasFallbackParams, workStore);
2298
- }
2299
- const CachedParams = new WeakMap();
2300
- const fallbackParamsProxyHandler = {
2301
- get: function get(target, prop, receiver) {
2302
- if (prop === 'then' || prop === 'catch' || prop === 'finally') {
2303
- const originalMethod = _reflect.ReflectAdapter.get(target, prop, receiver);
2304
- return ({
2305
- [prop]: function() {
2306
- for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
2307
- args[_key] = arguments[_key];
2308
- }
2309
- const store = _dynamicaccessasyncstorageexternal.dynamicAccessAsyncStorage.getStore();
2310
- if (store) {
2311
- store.abortController.abort(Object.defineProperty(new Error("Accessed fallback `params` during prerendering."), "__NEXT_ERROR_CODE", {
2312
- value: "E691",
2313
- enumerable: false,
2314
- configurable: true
2315
- }));
2316
- }
2317
- return new Proxy(originalMethod.apply(target, args), fallbackParamsProxyHandler);
2318
- }
2319
- })[prop];
2320
- }
2321
- return _reflect.ReflectAdapter.get(target, prop, receiver);
2322
- }
2323
- };
2324
- function makeHangingParams(underlyingParams, workStore, prerenderStore) {
2325
- const cachedParams = CachedParams.get(underlyingParams);
2326
- if (cachedParams) {
2327
- return cachedParams;
2328
- }
2329
- const promise = new Proxy((0, _dynamicrenderingutils.makeHangingPromise)(prerenderStore.renderSignal, workStore.route, '`params`'), fallbackParamsProxyHandler);
2330
- CachedParams.set(underlyingParams, promise);
2331
- return promise;
2332
- }
2333
- function makeErroringExoticParams(underlyingParams, fallbackParams, workStore, prerenderStore) {
2334
- const cachedParams = CachedParams.get(underlyingParams);
2335
- if (cachedParams) {
2336
- return cachedParams;
2337
- }
2338
- const augmentedUnderlying = {
2339
- ...underlyingParams
2340
- };
2341
- // We don't use makeResolvedReactPromise here because params
2342
- // supports copying with spread and we don't want to unnecessarily
2343
- // instrument the promise with spreadable properties of ReactPromise.
2344
- const promise = Promise.resolve(augmentedUnderlying);
2345
- CachedParams.set(underlyingParams, promise);
2346
- Object.keys(underlyingParams).forEach((prop)=>{
2347
- if (_reflectutils.wellKnownProperties.has(prop)) {
2348
- // These properties cannot be shadowed because they need to be the
2349
- // true underlying value for Promises to work correctly at runtime
2350
- } else {
2351
- if (fallbackParams.has(prop)) {
2352
- Object.defineProperty(augmentedUnderlying, prop, {
2353
- get () {
2354
- const expression = (0, _reflectutils.describeStringPropertyAccess)('params', prop);
2355
- // In most dynamic APIs we also throw if `dynamic = "error"` however
2356
- // for params is only dynamic when we're generating a fallback shell
2357
- // and even when `dynamic = "error"` we still support generating dynamic
2358
- // fallback shells
2359
- // TODO remove this comment when cacheComponents is the default since there
2360
- // will be no `dynamic = "error"`
2361
- if (prerenderStore.type === 'prerender-ppr') {
2362
- // PPR Prerender (no cacheComponents)
2363
- (0, _dynamicrendering.postponeWithTracking)(workStore.route, expression, prerenderStore.dynamicTracking);
2364
- } else {
2365
- // Legacy Prerender
2366
- (0, _dynamicrendering.throwToInterruptStaticGeneration)(expression, workStore, prerenderStore);
2367
- }
2368
- },
2369
- enumerable: true
2370
- });
2371
- Object.defineProperty(promise, prop, {
2372
- get () {
2373
- const expression = (0, _reflectutils.describeStringPropertyAccess)('params', prop);
2374
- // In most dynamic APIs we also throw if `dynamic = "error"` however
2375
- // for params is only dynamic when we're generating a fallback shell
2376
- // and even when `dynamic = "error"` we still support generating dynamic
2377
- // fallback shells
2378
- // TODO remove this comment when cacheComponents is the default since there
2379
- // will be no `dynamic = "error"`
2380
- if (prerenderStore.type === 'prerender-ppr') {
2381
- // PPR Prerender (no cacheComponents)
2382
- (0, _dynamicrendering.postponeWithTracking)(workStore.route, expression, prerenderStore.dynamicTracking);
2383
- } else {
2384
- // Legacy Prerender
2385
- (0, _dynamicrendering.throwToInterruptStaticGeneration)(expression, workStore, prerenderStore);
2386
- }
2387
- },
2388
- set (newValue) {
2389
- Object.defineProperty(promise, prop, {
2390
- value: newValue,
2391
- writable: true,
2392
- enumerable: true
2393
- });
2394
- },
2395
- enumerable: true,
2396
- configurable: true
2397
- });
2398
- } else {
2399
- ;
2400
- promise[prop] = underlyingParams[prop];
2401
- }
2402
- }
2403
- });
2404
- return promise;
2405
- }
2406
- function makeUntrackedExoticParams(underlyingParams) {
2407
- const cachedParams = CachedParams.get(underlyingParams);
2408
- if (cachedParams) {
2409
- return cachedParams;
2410
- }
2411
- // We don't use makeResolvedReactPromise here because params
2412
- // supports copying with spread and we don't want to unnecessarily
2413
- // instrument the promise with spreadable properties of ReactPromise.
2414
- const promise = Promise.resolve(underlyingParams);
2415
- CachedParams.set(underlyingParams, promise);
2416
- Object.keys(underlyingParams).forEach((prop)=>{
2417
- if (_reflectutils.wellKnownProperties.has(prop)) {
2418
- // These properties cannot be shadowed because they need to be the
2419
- // true underlying value for Promises to work correctly at runtime
2420
- } else {
2421
- ;
2422
- promise[prop] = underlyingParams[prop];
2423
- }
2424
- });
2425
- return promise;
2426
- }
2427
- function makeUntrackedParams(underlyingParams) {
2428
- const cachedParams = CachedParams.get(underlyingParams);
2429
- if (cachedParams) {
2430
- return cachedParams;
2431
- }
2432
- const promise = Promise.resolve(underlyingParams);
2433
- CachedParams.set(underlyingParams, promise);
2434
- return promise;
2435
- }
2436
- function makeDynamicallyTrackedExoticParamsWithDevWarnings(underlyingParams, hasFallbackParams, store) {
2437
- const cachedParams = CachedParams.get(underlyingParams);
2438
- if (cachedParams) {
2439
- return cachedParams;
2440
- }
2441
- // We don't use makeResolvedReactPromise here because params
2442
- // supports copying with spread and we don't want to unnecessarily
2443
- // instrument the promise with spreadable properties of ReactPromise.
2444
- const promise = hasFallbackParams ? (0, _dynamicrenderingutils.makeDevtoolsIOAwarePromise)(underlyingParams) : Promise.resolve(underlyingParams);
2445
- const proxiedProperties = new Set();
2446
- const unproxiedProperties = [];
2447
- Object.keys(underlyingParams).forEach((prop)=>{
2448
- if (_reflectutils.wellKnownProperties.has(prop)) {
2449
- // These properties cannot be shadowed because they need to be the
2450
- // true underlying value for Promises to work correctly at runtime
2451
- unproxiedProperties.push(prop);
2452
- } else {
2453
- proxiedProperties.add(prop);
2454
- promise[prop] = underlyingParams[prop];
2455
- }
2456
- });
2457
- const proxiedPromise = new Proxy(promise, {
2458
- get (target, prop, receiver) {
2459
- if (typeof prop === 'string') {
2460
- if (proxiedProperties.has(prop)) {
2461
- const expression = (0, _reflectutils.describeStringPropertyAccess)('params', prop);
2462
- syncIODev(store.route, expression);
2463
- }
2464
- }
2465
- return _reflect.ReflectAdapter.get(target, prop, receiver);
2466
- },
2467
- set (target, prop, value, receiver) {
2468
- if (typeof prop === 'string') {
2469
- proxiedProperties.delete(prop);
2470
- }
2471
- return _reflect.ReflectAdapter.set(target, prop, value, receiver);
2472
- },
2473
- ownKeys (target) {
2474
- const expression = '`...params` or similar expression';
2475
- syncIODev(store.route, expression, unproxiedProperties);
2476
- return Reflect.ownKeys(target);
2477
- }
2478
- });
2479
- CachedParams.set(underlyingParams, proxiedPromise);
2480
- return proxiedPromise;
2481
- }
2482
- // Similar to `makeDynamicallyTrackedExoticParamsWithDevWarnings`, but just
2483
- // logging the sync access without actually defining the params on the promise.
2484
- function makeDynamicallyTrackedParamsWithDevWarnings(underlyingParams, hasFallbackParams, store) {
2485
- const cachedParams = CachedParams.get(underlyingParams);
2486
- if (cachedParams) {
2487
- return cachedParams;
2488
- }
2489
- // We don't use makeResolvedReactPromise here because params
2490
- // supports copying with spread and we don't want to unnecessarily
2491
- // instrument the promise with spreadable properties of ReactPromise.
2492
- const promise = hasFallbackParams ? (0, _dynamicrenderingutils.makeDevtoolsIOAwarePromise)(underlyingParams) : Promise.resolve(underlyingParams);
2493
- const proxiedProperties = new Set();
2494
- const unproxiedProperties = [];
2495
- Object.keys(underlyingParams).forEach((prop)=>{
2496
- if (_reflectutils.wellKnownProperties.has(prop)) {
2497
- // These properties cannot be shadowed because they need to be the
2498
- // true underlying value for Promises to work correctly at runtime
2499
- unproxiedProperties.push(prop);
2500
- } else {
2501
- proxiedProperties.add(prop);
2502
- }
2503
- });
2504
- const proxiedPromise = new Proxy(promise, {
2505
- get (target, prop, receiver) {
2506
- if (typeof prop === 'string') {
2507
- if (proxiedProperties.has(prop)) {
2508
- const expression = (0, _reflectutils.describeStringPropertyAccess)('params', prop);
2509
- warnForSyncAccess(store.route, expression);
2510
- }
2511
- }
2512
- return _reflect.ReflectAdapter.get(target, prop, receiver);
2513
- },
2514
- set (target, prop, value, receiver) {
2515
- if (typeof prop === 'string') {
2516
- proxiedProperties.delete(prop);
2517
- }
2518
- return _reflect.ReflectAdapter.set(target, prop, value, receiver);
2519
- },
2520
- ownKeys (target) {
2521
- const expression = '`...params` or similar expression';
2522
- warnForIncompleteEnumeration(store.route, expression, unproxiedProperties);
2523
- return Reflect.ownKeys(target);
2524
- }
2525
- });
2526
- CachedParams.set(underlyingParams, proxiedPromise);
2527
- return proxiedPromise;
2528
- }
2529
- function syncIODev(route, expression, missingProperties) {
2530
- const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
2531
- if (workUnitStore) {
2532
- switch(workUnitStore.type){
2533
- case 'request':
2534
- if (workUnitStore.prerenderPhase === true) {
2535
- // When we're rendering dynamically in dev, we need to advance out of
2536
- // the Prerender environment when we read Request data synchronously.
2537
- (0, _dynamicrendering.trackSynchronousRequestDataAccessInDev)(workUnitStore);
2538
- }
2539
- break;
2540
- case 'prerender':
2541
- case 'prerender-client':
2542
- case 'prerender-runtime':
2543
- case 'prerender-ppr':
2544
- case 'prerender-legacy':
2545
- case 'cache':
2546
- case 'private-cache':
2547
- case 'unstable-cache':
2548
- break;
2549
- default:
2550
- workUnitStore;
2551
- }
2552
- }
2553
- // In all cases we warn normally
2554
- if (missingProperties && missingProperties.length > 0) {
2555
- warnForIncompleteEnumeration(route, expression, missingProperties);
2556
- } else {
2557
- warnForSyncAccess(route, expression);
2558
- }
2559
- }
2560
- const warnForSyncAccess = (0, _creatededupedbycallsiteservererrorlogger.createDedupedByCallsiteServerErrorLoggerDev)(createParamsAccessError);
2561
- const warnForIncompleteEnumeration = (0, _creatededupedbycallsiteservererrorlogger.createDedupedByCallsiteServerErrorLoggerDev)(createIncompleteEnumerationError);
2562
- function createParamsAccessError(route, expression) {
2563
- const prefix = route ? 'Route "'.concat(route, '" ') : 'This route ';
2564
- return Object.defineProperty(new Error("".concat(prefix, "used ").concat(expression, ". ") + "`params` should be awaited before using its properties. " + "Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis"), "__NEXT_ERROR_CODE", {
2565
- value: "E307",
2566
- enumerable: false,
2567
- configurable: true
2568
- });
2569
- }
2570
- function createIncompleteEnumerationError(route, expression, missingProperties) {
2571
- const prefix = route ? 'Route "'.concat(route, '" ') : 'This route ';
2572
- return Object.defineProperty(new Error("".concat(prefix, "used ").concat(expression, ". ") + "`params` should be awaited before using its properties. " + "The following properties were not available through enumeration " + "because they conflict with builtin property names: " + "".concat(describeListOfPropertyNames(missingProperties), ". ") + "Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis"), "__NEXT_ERROR_CODE", {
2573
- value: "E482",
2574
- enumerable: false,
2575
- configurable: true
2576
- });
2577
- }
2578
- function describeListOfPropertyNames(properties) {
2579
- switch(properties.length){
2580
- case 0:
2581
- throw Object.defineProperty(new _invarianterror.InvariantError('Expected describeListOfPropertyNames to be called with a non-empty list of strings.'), "__NEXT_ERROR_CODE", {
2582
- value: "E531",
2583
- enumerable: false,
2584
- configurable: true
2585
- });
2586
- case 1:
2587
- return "`".concat(properties[0], "`");
2588
- case 2:
2589
- return "`".concat(properties[0], "` and `").concat(properties[1], "`");
2590
- default:
2591
- {
2592
- let description = '';
2593
- for(let i = 0; i < properties.length - 1; i++){
2594
- description += "`".concat(properties[i], "`, ");
2595
- }
2596
- description += ", and `".concat(properties[properties.length - 1], "`");
2597
- return description;
2598
- }
2599
- }
2600
- } //# sourceMappingURL=params.js.map
2601
- }),
2602
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/components/client-page.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2603
- "use strict";
2604
-
2605
- Object.defineProperty(exports, "__esModule", {
2606
- value: true
2607
- });
2608
- Object.defineProperty(exports, "ClientPageRoot", {
2609
- enumerable: true,
2610
- get: function() {
2611
- return ClientPageRoot;
2612
- }
2613
- });
2614
- const _jsxruntime = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/compiled/react/jsx-runtime.js [app-client] (ecmascript)");
2615
- const _invarianterror = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/shared/lib/invariant-error.js [app-client] (ecmascript)");
2616
- function ClientPageRoot(param) {
2617
- let { Component, searchParams, params, promises } = param;
2618
- if (typeof window === 'undefined') {
2619
- const { workAsyncStorage } = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/app-render/work-async-storage.external.js [app-client] (ecmascript)");
2620
- let clientSearchParams;
2621
- let clientParams;
2622
- // We are going to instrument the searchParams prop with tracking for the
2623
- // appropriate context. We wrap differently in prerendering vs rendering
2624
- const store = workAsyncStorage.getStore();
2625
- if (!store) {
2626
- throw Object.defineProperty(new _invarianterror.InvariantError('Expected workStore to exist when handling searchParams in a client Page.'), "__NEXT_ERROR_CODE", {
2627
- value: "E564",
2628
- enumerable: false,
2629
- configurable: true
2630
- });
2631
- }
2632
- const { createSearchParamsFromClient } = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/request/search-params.js [app-client] (ecmascript)");
2633
- clientSearchParams = createSearchParamsFromClient(searchParams, store);
2634
- const { createParamsFromClient } = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/request/params.js [app-client] (ecmascript)");
2635
- clientParams = createParamsFromClient(params, store);
2636
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(Component, {
2637
- params: clientParams,
2638
- searchParams: clientSearchParams
2639
- });
2640
- } else {
2641
- const { createRenderSearchParamsFromClient } = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/request/search-params.browser.js [app-client] (ecmascript)");
2642
- const clientSearchParams = createRenderSearchParamsFromClient(searchParams);
2643
- const { createRenderParamsFromClient } = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/request/params.browser.js [app-client] (ecmascript)");
2644
- const clientParams = createRenderParamsFromClient(params);
2645
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(Component, {
2646
- params: clientParams,
2647
- searchParams: clientSearchParams
2648
- });
2649
- }
2650
- }
2651
- if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2652
- Object.defineProperty(exports.default, '__esModule', {
2653
- value: true
2654
- });
2655
- Object.assign(exports.default, exports);
2656
- module.exports = exports.default;
2657
- } //# sourceMappingURL=client-page.js.map
2658
- }),
2659
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/components/client-segment.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2660
- "use strict";
2661
-
2662
- Object.defineProperty(exports, "__esModule", {
2663
- value: true
2664
- });
2665
- Object.defineProperty(exports, "ClientSegmentRoot", {
2666
- enumerable: true,
2667
- get: function() {
2668
- return ClientSegmentRoot;
2669
- }
2670
- });
2671
- const _jsxruntime = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/compiled/react/jsx-runtime.js [app-client] (ecmascript)");
2672
- const _invarianterror = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/shared/lib/invariant-error.js [app-client] (ecmascript)");
2673
- function ClientSegmentRoot(param) {
2674
- let { Component, slots, params, promise } = param;
2675
- if (typeof window === 'undefined') {
2676
- const { workAsyncStorage } = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/app-render/work-async-storage.external.js [app-client] (ecmascript)");
2677
- let clientParams;
2678
- // We are going to instrument the searchParams prop with tracking for the
2679
- // appropriate context. We wrap differently in prerendering vs rendering
2680
- const store = workAsyncStorage.getStore();
2681
- if (!store) {
2682
- throw Object.defineProperty(new _invarianterror.InvariantError('Expected workStore to exist when handling params in a client segment such as a Layout or Template.'), "__NEXT_ERROR_CODE", {
2683
- value: "E600",
2684
- enumerable: false,
2685
- configurable: true
2686
- });
2687
- }
2688
- const { createParamsFromClient } = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/server/request/params.js [app-client] (ecmascript)");
2689
- clientParams = createParamsFromClient(params, store);
2690
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(Component, {
2691
- ...slots,
2692
- params: clientParams
2693
- });
2694
- } else {
2695
- const { createRenderParamsFromClient } = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/request/params.browser.js [app-client] (ecmascript)");
2696
- const clientParams = createRenderParamsFromClient(params);
2697
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(Component, {
2698
- ...slots,
2699
- params: clientParams
2700
- });
2701
- }
2702
- }
2703
- if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2704
- Object.defineProperty(exports.default, '__esModule', {
2705
- value: true
2706
- });
2707
- Object.assign(exports.default, exports);
2708
- module.exports = exports.default;
2709
- } //# sourceMappingURL=client-segment.js.map
2710
- }),
2711
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/lib/metadata/generate/icon-mark.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2712
- "use strict";
2713
-
2714
- Object.defineProperty(exports, "__esModule", {
2715
- value: true
2716
- });
2717
- Object.defineProperty(exports, "IconMark", {
2718
- enumerable: true,
2719
- get: function() {
2720
- return IconMark;
2721
- }
2722
- });
2723
- const _jsxruntime = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/compiled/react/jsx-runtime.js [app-client] (ecmascript)");
2724
- const IconMark = ()=>{
2725
- if (typeof window !== 'undefined') {
2726
- return null;
2727
- }
2728
- return /*#__PURE__*/ (0, _jsxruntime.jsx)("meta", {
2729
- name: "\xabnxt-icon\xbb"
2730
- });
2731
- }; //# sourceMappingURL=icon-mark.js.map
2732
- }),
2733
- "[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/client/components/metadata/async-metadata.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2734
- "use strict";
2735
-
2736
- Object.defineProperty(exports, "__esModule", {
2737
- value: true
2738
- });
2739
- Object.defineProperty(exports, "AsyncMetadataOutlet", {
2740
- enumerable: true,
2741
- get: function() {
2742
- return AsyncMetadataOutlet;
2743
- }
2744
- });
2745
- const _jsxruntime = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/compiled/react/jsx-runtime.js [app-client] (ecmascript)");
2746
- const _react = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.1-canary.30_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.2.0-canary-d_5eea965284f26eb4e30482e6426df099/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)");
2747
- function MetadataOutlet(param) {
2748
- let { promise } = param;
2749
- const { error, digest } = (0, _react.use)(promise);
2750
- if (error) {
2751
- if (digest) {
2752
- // The error will lose its original digest after passing from server layer to client layer;
2753
- // We recover the digest property here to override the React created one if original digest exists.
2754
- ;
2755
- error.digest = digest;
2756
- }
2757
- throw error;
2758
- }
2759
- return null;
2760
- }
2761
- function AsyncMetadataOutlet(param) {
2762
- let { promise } = param;
2763
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_react.Suspense, {
2764
- fallback: null,
2765
- children: /*#__PURE__*/ (0, _jsxruntime.jsx)(MetadataOutlet, {
2766
- promise: promise
2767
- })
2768
- });
2769
- }
2770
- if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2771
- Object.defineProperty(exports.default, '__esModule', {
2772
- value: true
2773
- });
2774
- Object.assign(exports.default, exports);
2775
- module.exports = exports.default;
2776
- } //# sourceMappingURL=async-metadata.js.map
2777
- }),
2778
- ]);
2779
-
2780
- //# sourceMappingURL=0916f_next_dist_b3493ca8._.js.map