@kimuson/claude-code-viewer 0.2.4 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/dist/standalone/.next/BUILD_ID +1 -1
  2. package/dist/standalone/.next/app-build-manifest.json +19 -19
  3. package/dist/standalone/.next/app-path-routes-manifest.json +1 -1
  4. package/dist/standalone/.next/build-manifest.json +2 -2
  5. package/dist/standalone/.next/server/app/_not-found/page.js +1 -1
  6. package/dist/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  7. package/dist/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  8. package/dist/standalone/.next/server/app/api/[[...route]]/route.js +2 -2
  9. package/dist/standalone/.next/server/app/api/[[...route]]/route_client-reference-manifest.js +1 -1
  10. package/dist/standalone/.next/server/app/page.js +2 -2
  11. package/dist/standalone/.next/server/app/page.js.nft.json +1 -1
  12. package/dist/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  13. package/dist/standalone/.next/server/app/projects/[projectId]/page.js +2 -2
  14. package/dist/standalone/.next/server/app/projects/[projectId]/page.js.nft.json +1 -1
  15. package/dist/standalone/.next/server/app/projects/[projectId]/page_client-reference-manifest.js +1 -1
  16. package/dist/standalone/.next/server/app/projects/[projectId]/sessions/[sessionId]/page.js +2 -2
  17. package/dist/standalone/.next/server/app/projects/[projectId]/sessions/[sessionId]/page.js.nft.json +1 -1
  18. package/dist/standalone/.next/server/app/projects/[projectId]/sessions/[sessionId]/page_client-reference-manifest.js +1 -1
  19. package/dist/standalone/.next/server/app/projects/page.js +1 -1
  20. package/dist/standalone/.next/server/app/projects/page.js.nft.json +1 -1
  21. package/dist/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
  22. package/dist/standalone/.next/server/app-paths-manifest.json +1 -1
  23. package/dist/standalone/.next/server/chunks/216.js +5 -0
  24. package/dist/standalone/.next/server/chunks/440.js +5 -0
  25. package/dist/standalone/.next/server/chunks/725.js +5 -0
  26. package/dist/standalone/.next/server/chunks/744.js +5 -0
  27. package/dist/standalone/.next/server/chunks/791.js +1 -1
  28. package/dist/standalone/.next/server/chunks/8.js +9 -0
  29. package/dist/standalone/.next/server/chunks/837.js +1 -0
  30. package/dist/standalone/.next/server/chunks/842.js +9 -0
  31. package/dist/standalone/.next/server/chunks/866.js +1 -0
  32. package/dist/standalone/.next/server/chunks/880.js +1 -0
  33. package/dist/standalone/.next/server/chunks/921.js +1 -0
  34. package/dist/standalone/.next/server/chunks/946.js +1 -0
  35. package/dist/standalone/.next/server/pages/500.html +1 -1
  36. package/dist/standalone/.next/server/pages/_app/build-manifest.json +24 -0
  37. package/dist/standalone/.next/server/pages/_app/client-build-manifest.json +5 -0
  38. package/dist/standalone/.next/server/pages/_app/next-font-manifest.json +6 -0
  39. package/dist/standalone/.next/server/pages/_app/pages-manifest.json +3 -0
  40. package/dist/standalone/.next/server/pages/_app/react-loadable-manifest.json +1 -0
  41. package/dist/standalone/.next/server/pages/_app.js.map +5 -0
  42. package/dist/standalone/.next/server/pages/_document/next-font-manifest.json +6 -0
  43. package/dist/standalone/.next/server/pages/_document/pages-manifest.json +3 -0
  44. package/dist/standalone/.next/server/pages/_document/react-loadable-manifest.json +1 -0
  45. package/dist/standalone/.next/server/pages/_document.js.map +5 -0
  46. package/dist/standalone/.next/server/pages/_error/build-manifest.json +24 -0
  47. package/dist/standalone/.next/server/pages/_error/client-build-manifest.json +5 -0
  48. package/dist/standalone/.next/server/pages/_error/next-font-manifest.json +6 -0
  49. package/dist/standalone/.next/server/pages/_error/pages-manifest.json +3 -0
  50. package/dist/standalone/.next/server/pages/_error/react-loadable-manifest.json +1 -0
  51. package/dist/standalone/.next/server/pages/_error.js.map +5 -0
  52. package/dist/standalone/.next/server/pages-manifest.json +1 -1
  53. package/dist/standalone/.next/static/-C_aw5qp4WRpZLxKvls_q/_buildManifest.js +1 -0
  54. package/dist/standalone/.next/static/-C_aw5qp4WRpZLxKvls_q/_ssgManifest.js +1 -0
  55. package/dist/standalone/.next/static/23uvba8RlaxCaoa5OiBQP/_buildManifest.js +1 -0
  56. package/dist/standalone/.next/static/23uvba8RlaxCaoa5OiBQP/_ssgManifest.js +1 -0
  57. package/dist/standalone/.next/static/7c2VjICJUWm7vUD2fAum8/_buildManifest.js +1 -0
  58. package/dist/standalone/.next/static/7c2VjICJUWm7vUD2fAum8/_ssgManifest.js +1 -0
  59. package/dist/standalone/.next/static/Da8e6NLQq01CAFo8O13j6/_buildManifest.js +1 -0
  60. package/dist/standalone/.next/static/Da8e6NLQq01CAFo8O13j6/_ssgManifest.js +1 -0
  61. package/dist/standalone/.next/static/GD7LQJ8gE1cW_fRed-j1C/_buildManifest.js +1 -0
  62. package/dist/standalone/.next/static/GD7LQJ8gE1cW_fRed-j1C/_ssgManifest.js +1 -0
  63. package/dist/standalone/.next/static/H-5h51WEzU2ys-hWA4OUt/_buildManifest.js +1 -0
  64. package/dist/standalone/.next/static/H-5h51WEzU2ys-hWA4OUt/_ssgManifest.js +1 -0
  65. package/dist/standalone/.next/static/L2hEa9LvG28lUDLLpdKW9/_buildManifest.js +1 -0
  66. package/dist/standalone/.next/static/L2hEa9LvG28lUDLLpdKW9/_ssgManifest.js +1 -0
  67. package/dist/standalone/.next/static/O43uyF0ac2ZdNoZ1ZCnKf/_buildManifest.js +1 -0
  68. package/dist/standalone/.next/static/O43uyF0ac2ZdNoZ1ZCnKf/_ssgManifest.js +1 -0
  69. package/dist/standalone/.next/static/PyI7qeky3k1jffXuSFrjs/_buildManifest.js +1 -0
  70. package/dist/standalone/.next/static/PyI7qeky3k1jffXuSFrjs/_ssgManifest.js +1 -0
  71. package/dist/standalone/.next/static/WqxyAkkmDIRWMgidzO8Db/_buildManifest.js +1 -0
  72. package/dist/standalone/.next/static/WqxyAkkmDIRWMgidzO8Db/_ssgManifest.js +1 -0
  73. package/dist/standalone/.next/static/ZeOFUJB_IZeb5OILHne1z/_buildManifest.js +1 -0
  74. package/dist/standalone/.next/static/ZeOFUJB_IZeb5OILHne1z/_ssgManifest.js +1 -0
  75. package/dist/standalone/.next/static/chunks/105-a007546befae4563.js +1 -0
  76. package/dist/standalone/.next/static/chunks/185-711c14dc27c4bc61.js +1 -0
  77. package/dist/standalone/.next/static/chunks/24-ffb10c209d2142dc.js +1 -0
  78. package/dist/standalone/.next/static/chunks/281-795fb16f0b06afb8.js +1 -0
  79. package/dist/standalone/.next/static/chunks/498-00a3d5dd9837a27f.js +16 -0
  80. package/dist/standalone/.next/static/chunks/5-ab2b7527e79dd03f.js +1 -0
  81. package/dist/standalone/.next/static/chunks/5-c3f389512791ecb2.js +1 -0
  82. package/dist/standalone/.next/static/chunks/642-114376e98078b3eb.js +1 -0
  83. package/dist/standalone/.next/static/chunks/648-038543aa7a87beca.js +1 -0
  84. package/dist/standalone/.next/static/chunks/693-5c7ba2352f548e34.js +1 -0
  85. package/dist/standalone/.next/static/chunks/693-7e9bae18be0d9c6b.js +1 -0
  86. package/dist/standalone/.next/static/chunks/693-b3b27b94a68ea0bc.js +1 -0
  87. package/dist/standalone/.next/static/chunks/693-c42159ca627810b6.js +1 -0
  88. package/dist/standalone/.next/static/chunks/693-c4a72446cbe56a20.js +1 -0
  89. package/dist/standalone/.next/static/chunks/693-e95ee9bc25076ecd.js +1 -0
  90. package/dist/standalone/.next/static/chunks/693-e99fc5f3437674b1.js +1 -0
  91. package/dist/standalone/.next/static/chunks/719-ffb34f83f1a29ef9.js +16 -0
  92. package/dist/standalone/.next/static/chunks/888-4f8c8a1dbfc2f887.js +1 -0
  93. package/dist/standalone/.next/static/chunks/889-c7b6397ab2356461.js +16 -0
  94. package/dist/standalone/.next/static/chunks/[next]_entry_page-loader_ts_0196946f._.js +23 -0
  95. package/dist/standalone/.next/static/chunks/[next]_entry_page-loader_ts_0196946f._.js.map +6 -0
  96. package/dist/standalone/.next/static/chunks/[next]_entry_page-loader_ts_fa2ec1ea._.js +23 -0
  97. package/dist/standalone/.next/static/chunks/[next]_entry_page-loader_ts_fa2ec1ea._.js.map +6 -0
  98. package/dist/standalone/.next/static/chunks/[root-of-the-server]__092393de._.js +481 -0
  99. package/dist/standalone/.next/static/chunks/[root-of-the-server]__092393de._.js.map +6 -0
  100. package/dist/standalone/.next/static/chunks/[root-of-the-server]__45f039c3._.js +481 -0
  101. package/dist/standalone/.next/static/chunks/[root-of-the-server]__45f039c3._.js.map +6 -0
  102. package/dist/standalone/.next/static/chunks/app/layout-b6165efd2dda60fa.js +1 -0
  103. package/dist/standalone/.next/static/chunks/app/layout-dae4ccdd1163e4b9.js +1 -0
  104. package/dist/standalone/.next/static/chunks/app/projects/[projectId]/page-1581695cbf18ca8f.js +1 -0
  105. package/dist/standalone/.next/static/chunks/app/projects/[projectId]/page-2d759c1ef2fc1f3f.js +1 -0
  106. package/dist/standalone/.next/static/chunks/app/projects/[projectId]/page-994bb53630390872.js +1 -0
  107. package/dist/standalone/.next/static/chunks/app/projects/[projectId]/page-b31f4471e31e815a.js +1 -0
  108. package/dist/standalone/.next/static/chunks/app/projects/[projectId]/page-d26a7b8eac784a60.js +1 -0
  109. package/dist/standalone/.next/static/chunks/app/projects/[projectId]/sessions/[sessionId]/page-05274c303803f9e5.js +1 -0
  110. package/dist/standalone/.next/static/chunks/app/projects/[projectId]/sessions/[sessionId]/page-0e763809b4b33824.js +1 -0
  111. package/dist/standalone/.next/static/chunks/app/projects/[projectId]/sessions/[sessionId]/page-34e0546e8de7d155.js +1 -0
  112. package/dist/standalone/.next/static/chunks/app/projects/[projectId]/sessions/[sessionId]/page-4df39886af6c75d0.js +1 -0
  113. package/dist/standalone/.next/static/chunks/app/projects/[projectId]/sessions/[sessionId]/page-57ace7dee9bb2e7e.js +1 -0
  114. package/dist/standalone/.next/static/chunks/app/projects/[projectId]/sessions/[sessionId]/page-613351836e4c27fb.js +1 -0
  115. package/dist/standalone/.next/static/chunks/app/projects/[projectId]/sessions/[sessionId]/page-8bb6f1f7fa3696bc.js +1 -0
  116. package/dist/standalone/.next/static/chunks/app/projects/[projectId]/sessions/[sessionId]/page-b77875877f3d28d0.js +1 -0
  117. package/dist/standalone/.next/static/chunks/app/projects/[projectId]/sessions/[sessionId]/page-b87566287155f190.js +1 -0
  118. package/dist/standalone/.next/static/chunks/app/projects/page-41b00f4e43f17357.js +1 -0
  119. package/dist/standalone/.next/static/chunks/app/projects/page-eb83c5ea58201eab.js +1 -0
  120. package/dist/standalone/.next/static/chunks/b5d7d_next_app_49bc0f6c.js +8 -0
  121. package/dist/standalone/.next/static/chunks/b5d7d_next_app_49bc0f6c.js.map +6 -0
  122. package/dist/standalone/.next/static/chunks/b5d7d_next_dist_bbef2511._.js +2107 -0
  123. package/dist/standalone/.next/static/chunks/b5d7d_next_dist_bbef2511._.js.map +26 -0
  124. package/dist/standalone/.next/static/chunks/b5d7d_next_dist_c8a9b47e._.js +1942 -0
  125. package/dist/standalone/.next/static/chunks/b5d7d_next_dist_c8a9b47e._.js.map +25 -0
  126. package/dist/standalone/.next/static/chunks/b5d7d_next_dist_client_aca12300._.js +4030 -0
  127. package/dist/standalone/.next/static/chunks/b5d7d_next_dist_client_aca12300._.js.map +45 -0
  128. package/dist/standalone/.next/static/chunks/b5d7d_next_dist_compiled_950aaaf6._.js +2222 -0
  129. package/dist/standalone/.next/static/chunks/b5d7d_next_dist_compiled_950aaaf6._.js.map +16 -0
  130. package/dist/standalone/.next/static/chunks/b5d7d_next_dist_compiled_next-devtools_index_6fd12744.js +28954 -0
  131. package/dist/standalone/.next/static/chunks/b5d7d_next_dist_compiled_next-devtools_index_6fd12744.js.map +6 -0
  132. package/dist/standalone/.next/static/chunks/b5d7d_next_dist_shared_lib_754ee35b._.js +5164 -0
  133. package/dist/standalone/.next/static/chunks/b5d7d_next_dist_shared_lib_754ee35b._.js.map +62 -0
  134. package/dist/standalone/.next/static/chunks/b5d7d_next_dist_shared_lib_deb14b6a._.js +5455 -0
  135. package/dist/standalone/.next/static/chunks/b5d7d_next_dist_shared_lib_deb14b6a._.js.map +66 -0
  136. package/dist/standalone/.next/static/chunks/b5d7d_next_error_f5f4698d.js +8 -0
  137. package/dist/standalone/.next/static/chunks/b5d7d_next_error_f5f4698d.js.map +6 -0
  138. package/dist/standalone/.next/static/chunks/c8656_react-dom_b208eddd._.js +14182 -0
  139. package/dist/standalone/.next/static/chunks/c8656_react-dom_b208eddd._.js.map +9 -0
  140. package/dist/standalone/.next/static/chunks/node_modules__pnpm_7dc0a620._.js +1336 -0
  141. package/dist/standalone/.next/static/chunks/node_modules__pnpm_7dc0a620._.js.map +16 -0
  142. package/dist/standalone/.next/static/chunks/pages/_app.js +14 -0
  143. package/dist/standalone/.next/static/chunks/pages/_error.js +14 -0
  144. package/dist/standalone/.next/static/chunks/pages__app_2da965e7._.js +16 -0
  145. package/dist/standalone/.next/static/chunks/pages__app_5e653343._.js.map +10 -0
  146. package/dist/standalone/.next/static/chunks/pages__error_2da965e7._.js +16 -0
  147. package/dist/standalone/.next/static/chunks/pages__error_57ca05a1._.js.map +10 -0
  148. package/dist/standalone/.next/static/chunks/turbopack-pages__app_5e653343._.js +1823 -0
  149. package/dist/standalone/.next/static/chunks/turbopack-pages__error_57ca05a1._.js +1823 -0
  150. package/dist/standalone/.next/static/css/09df4ee87d7591ca.css +3 -0
  151. package/dist/standalone/.next/static/css/36303a8dc8947596.css +3 -0
  152. package/dist/standalone/.next/static/css/79abaac46cb1972c.css +3 -0
  153. package/dist/standalone/.next/static/css/b871907fe73de1d5.css +3 -0
  154. package/dist/standalone/.next/static/css/b911fd9edbcfba1e.css +3 -0
  155. package/dist/standalone/.next/static/gHcDMwTmj2EUNXWVFDlCZ/_buildManifest.js +1 -0
  156. package/dist/standalone/.next/static/gHcDMwTmj2EUNXWVFDlCZ/_ssgManifest.js +1 -0
  157. package/dist/standalone/.next/static/gJy76OTvdPcbpfkijLfv_/_buildManifest.js +1 -0
  158. package/dist/standalone/.next/static/gJy76OTvdPcbpfkijLfv_/_ssgManifest.js +1 -0
  159. package/dist/standalone/.next/static/lr9BjpI_yzrMDd09cVRXH/_buildManifest.js +1 -0
  160. package/dist/standalone/.next/static/lr9BjpI_yzrMDd09cVRXH/_ssgManifest.js +1 -0
  161. package/dist/standalone/.next/static/p5lIOxOLNncFm4zH1-_ip/_buildManifest.js +1 -0
  162. package/dist/standalone/.next/static/p5lIOxOLNncFm4zH1-_ip/_ssgManifest.js +1 -0
  163. package/dist/standalone/.next/static/zS7AFHKjuHulYMQ1_wDup/_buildManifest.js +1 -0
  164. package/dist/standalone/.next/static/zS7AFHKjuHulYMQ1_wDup/_ssgManifest.js +1 -0
  165. package/dist/standalone/package.json +5 -1
  166. package/package.json +5 -1
@@ -0,0 +1,2107 @@
1
+ (globalThis.TURBOPACK || (globalThis.TURBOPACK = [])).push([typeof document === "object" ? document.currentScript : undefined,
2
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
3
+ "use strict";
4
+
5
+ var _global_process, _global_process1;
6
+ module.exports = ((_global_process = /*TURBOPACK member replacement*/ __turbopack_context__.g.process) == null ? void 0 : _global_process.env) && typeof ((_global_process1 = /*TURBOPACK member replacement*/ __turbopack_context__.g.process) == null ? void 0 : _global_process1.env) === 'object' ? /*TURBOPACK member replacement*/ __turbopack_context__.g.process : __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/compiled/process/browser.js [client] (ecmascript)"); //# sourceMappingURL=process.js.map
7
+ }),
8
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/build/polyfills/polyfill-module.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
9
+
10
+ "trimStart" in String.prototype || (String.prototype.trimStart = String.prototype.trimLeft), "trimEnd" in String.prototype || (String.prototype.trimEnd = String.prototype.trimRight), "description" in Symbol.prototype || Object.defineProperty(Symbol.prototype, "description", {
11
+ configurable: !0,
12
+ get: function() {
13
+ var t = /\((.*)\)/.exec(this.toString());
14
+ return t ? t[1] : void 0;
15
+ }
16
+ }), Array.prototype.flat || (Array.prototype.flat = function(t, r) {
17
+ return r = this.concat.apply([], this), t > 1 && r.some(Array.isArray) ? r.flat(t - 1) : r;
18
+ }, Array.prototype.flatMap = function(t, r) {
19
+ return this.map(t, r).flat();
20
+ }), Promise.prototype.finally || (Promise.prototype.finally = function(t) {
21
+ if ("function" != typeof t) return this.then(t, t);
22
+ var r = this.constructor || Promise;
23
+ return this.then(function(n) {
24
+ return r.resolve(t()).then(function() {
25
+ return n;
26
+ });
27
+ }, function(n) {
28
+ return r.resolve(t()).then(function() {
29
+ throw n;
30
+ });
31
+ });
32
+ }), Object.fromEntries || (Object.fromEntries = function(t) {
33
+ return Array.from(t).reduce(function(t, r) {
34
+ return t[r[0]] = r[1], t;
35
+ }, {});
36
+ }), Array.prototype.at || (Array.prototype.at = function(t) {
37
+ var r = Math.trunc(t) || 0;
38
+ if (r < 0 && (r += this.length), !(r < 0 || r >= this.length)) return this[r];
39
+ }), Object.hasOwn || (Object.hasOwn = function(t, r) {
40
+ if (null == t) throw new TypeError("Cannot convert undefined or null to object");
41
+ return Object.prototype.hasOwnProperty.call(Object(t), r);
42
+ }), "canParse" in URL || (URL.canParse = function(t, r) {
43
+ try {
44
+ return !!new URL(t, r);
45
+ } catch (t) {
46
+ return !1;
47
+ }
48
+ });
49
+ }),
50
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/build/deployment-id.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
51
+ "use strict";
52
+
53
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f2e$pnpm$2f$next$40$15$2e$5$2e$2_react$2d$dom$40$19$2e$1$2e$1_react$40$19$2e$1$2e$1_$5f$react$40$19$2e$1$2e$1$2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
54
+ "use strict";
55
+ Object.defineProperty(exports, "__esModule", {
56
+ value: true
57
+ });
58
+ Object.defineProperty(exports, "getDeploymentIdQueryOrEmptyString", {
59
+ enumerable: true,
60
+ get: function() {
61
+ return getDeploymentIdQueryOrEmptyString;
62
+ }
63
+ });
64
+ function getDeploymentIdQueryOrEmptyString() {
65
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
66
+ ;
67
+ return '';
68
+ } //# sourceMappingURL=deployment-id.js.map
69
+ }),
70
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/lib/route-pattern-normalizer.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
71
+ "use strict";
72
+
73
+ Object.defineProperty(exports, "__esModule", {
74
+ value: true
75
+ });
76
+ 0 && (module.exports = {
77
+ hasAdjacentParameterIssues: null,
78
+ normalizeAdjacentParameters: null,
79
+ normalizeTokensForRegexp: null,
80
+ stripParameterSeparators: null
81
+ });
82
+ function _export(target, all) {
83
+ for(var name in all)Object.defineProperty(target, name, {
84
+ enumerable: true,
85
+ get: all[name]
86
+ });
87
+ }
88
+ _export(exports, {
89
+ hasAdjacentParameterIssues: function() {
90
+ return hasAdjacentParameterIssues;
91
+ },
92
+ normalizeAdjacentParameters: function() {
93
+ return normalizeAdjacentParameters;
94
+ },
95
+ normalizeTokensForRegexp: function() {
96
+ return normalizeTokensForRegexp;
97
+ },
98
+ stripParameterSeparators: function() {
99
+ return stripParameterSeparators;
100
+ }
101
+ });
102
+ /**
103
+ * Route pattern normalization utilities for path-to-regexp compatibility.
104
+ *
105
+ * path-to-regexp 6.3.0+ introduced stricter validation that rejects certain
106
+ * patterns commonly used in Next.js interception routes. This module provides
107
+ * normalization functions to make Next.js route patterns compatible with the
108
+ * updated library while preserving all functionality.
109
+ */ /**
110
+ * Internal separator used to normalize adjacent parameter patterns.
111
+ * This unique marker is inserted between adjacent parameters and stripped out
112
+ * during parameter extraction to avoid conflicts with real URL content.
113
+ */ const PARAM_SEPARATOR = '_NEXTSEP_';
114
+ function hasAdjacentParameterIssues(route) {
115
+ if (typeof route !== 'string') return false;
116
+ // Check for interception route markers followed immediately by parameters
117
+ // Pattern: /(.):param, /(..):param, /(...):param, /(.)(.):param etc.
118
+ // These patterns cause "Must have text between two parameters" errors
119
+ if (/\/\(\.{1,3}\):[^/\s]+/.test(route)) {
120
+ return true;
121
+ }
122
+ // Check for basic adjacent parameters without separators
123
+ // Pattern: :param1:param2 (but not :param* or other URL patterns)
124
+ if (/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(route)) {
125
+ return true;
126
+ }
127
+ return false;
128
+ }
129
+ function normalizeAdjacentParameters(route) {
130
+ let normalized = route;
131
+ // Handle interception route patterns: (.):param -> (.)_NEXTSEP_:param
132
+ normalized = normalized.replace(/(\([^)]*\)):([^/\s]+)/g, "$1".concat(PARAM_SEPARATOR, ":$2"));
133
+ // Handle other adjacent parameter patterns: :param1:param2 -> :param1_NEXTSEP_:param2
134
+ normalized = normalized.replace(/:([^:/\s)]+)(?=:)/g, ":$1".concat(PARAM_SEPARATOR));
135
+ return normalized;
136
+ }
137
+ function normalizeTokensForRegexp(tokens) {
138
+ return tokens.map((token)=>{
139
+ // Token union type: Token = string | TokenObject
140
+ // Literal path segments are strings, parameters/wildcards are objects
141
+ if (typeof token === 'object' && token !== null && // Not all token objects have 'modifier' property (e.g., simple text tokens)
142
+ 'modifier' in token && // Only repeating modifiers (* or +) cause the validation error
143
+ // Other modifiers like '?' (optional) are fine
144
+ (token.modifier === '*' || token.modifier === '+') && // Token objects can have different shapes depending on route pattern
145
+ 'prefix' in token && 'suffix' in token && // Both prefix and suffix must be empty strings
146
+ // This is what causes the validation error in path-to-regexp
147
+ token.prefix === '' && token.suffix === '') {
148
+ // Add minimal prefix to satisfy path-to-regexp validation
149
+ // We use '/' as it's the most common path delimiter and won't break route matching
150
+ // The prefix gets used in regex generation but doesn't affect parameter extraction
151
+ return {
152
+ ...token,
153
+ prefix: '/'
154
+ };
155
+ }
156
+ return token;
157
+ });
158
+ }
159
+ function stripParameterSeparators(params) {
160
+ const cleaned = {};
161
+ for (const [key, value] of Object.entries(params)){
162
+ if (typeof value === 'string') {
163
+ // Remove the separator if it appears at the start of parameter values
164
+ cleaned[key] = value.replace(new RegExp("^".concat(PARAM_SEPARATOR)), '');
165
+ } else if (Array.isArray(value)) {
166
+ // Handle array parameters (from repeated route segments)
167
+ cleaned[key] = value.map((item)=>typeof item === 'string' ? item.replace(new RegExp("^".concat(PARAM_SEPARATOR)), '') : item);
168
+ } else {
169
+ cleaned[key] = value;
170
+ }
171
+ }
172
+ return cleaned;
173
+ } //# sourceMappingURL=route-pattern-normalizer.js.map
174
+ }),
175
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/lib/constants.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
176
+ "use strict";
177
+
178
+ Object.defineProperty(exports, "__esModule", {
179
+ value: true
180
+ });
181
+ 0 && (module.exports = {
182
+ ACTION_SUFFIX: null,
183
+ APP_DIR_ALIAS: null,
184
+ CACHE_ONE_YEAR: null,
185
+ DOT_NEXT_ALIAS: null,
186
+ ESLINT_DEFAULT_DIRS: null,
187
+ GSP_NO_RETURNED_VALUE: null,
188
+ GSSP_COMPONENT_MEMBER_ERROR: null,
189
+ GSSP_NO_RETURNED_VALUE: null,
190
+ HTML_CONTENT_TYPE_HEADER: null,
191
+ INFINITE_CACHE: null,
192
+ INSTRUMENTATION_HOOK_FILENAME: null,
193
+ JSON_CONTENT_TYPE_HEADER: null,
194
+ MATCHED_PATH_HEADER: null,
195
+ MIDDLEWARE_FILENAME: null,
196
+ MIDDLEWARE_LOCATION_REGEXP: null,
197
+ NEXT_BODY_SUFFIX: null,
198
+ NEXT_CACHE_IMPLICIT_TAG_ID: null,
199
+ NEXT_CACHE_REVALIDATED_TAGS_HEADER: null,
200
+ NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: null,
201
+ NEXT_CACHE_SOFT_TAG_MAX_LENGTH: null,
202
+ NEXT_CACHE_TAGS_HEADER: null,
203
+ NEXT_CACHE_TAG_MAX_ITEMS: null,
204
+ NEXT_CACHE_TAG_MAX_LENGTH: null,
205
+ NEXT_DATA_SUFFIX: null,
206
+ NEXT_INTERCEPTION_MARKER_PREFIX: null,
207
+ NEXT_META_SUFFIX: null,
208
+ NEXT_QUERY_PARAM_PREFIX: null,
209
+ NEXT_RESUME_HEADER: null,
210
+ NON_STANDARD_NODE_ENV: null,
211
+ PAGES_DIR_ALIAS: null,
212
+ PRERENDER_REVALIDATE_HEADER: null,
213
+ PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: null,
214
+ PUBLIC_DIR_MIDDLEWARE_CONFLICT: null,
215
+ ROOT_DIR_ALIAS: null,
216
+ RSC_ACTION_CLIENT_WRAPPER_ALIAS: null,
217
+ RSC_ACTION_ENCRYPTION_ALIAS: null,
218
+ RSC_ACTION_PROXY_ALIAS: null,
219
+ RSC_ACTION_VALIDATE_ALIAS: null,
220
+ RSC_CACHE_WRAPPER_ALIAS: null,
221
+ RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS: null,
222
+ RSC_MOD_REF_PROXY_ALIAS: null,
223
+ RSC_PREFETCH_SUFFIX: null,
224
+ RSC_SEGMENTS_DIR_SUFFIX: null,
225
+ RSC_SEGMENT_SUFFIX: null,
226
+ RSC_SUFFIX: null,
227
+ SERVER_PROPS_EXPORT_ERROR: null,
228
+ SERVER_PROPS_GET_INIT_PROPS_CONFLICT: null,
229
+ SERVER_PROPS_SSG_CONFLICT: null,
230
+ SERVER_RUNTIME: null,
231
+ SSG_FALLBACK_EXPORT_ERROR: null,
232
+ SSG_GET_INITIAL_PROPS_CONFLICT: null,
233
+ STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: null,
234
+ TEXT_PLAIN_CONTENT_TYPE_HEADER: null,
235
+ UNSTABLE_REVALIDATE_RENAME_ERROR: null,
236
+ WEBPACK_LAYERS: null,
237
+ WEBPACK_RESOURCE_QUERIES: null
238
+ });
239
+ function _export(target, all) {
240
+ for(var name in all)Object.defineProperty(target, name, {
241
+ enumerable: true,
242
+ get: all[name]
243
+ });
244
+ }
245
+ _export(exports, {
246
+ ACTION_SUFFIX: function() {
247
+ return ACTION_SUFFIX;
248
+ },
249
+ APP_DIR_ALIAS: function() {
250
+ return APP_DIR_ALIAS;
251
+ },
252
+ CACHE_ONE_YEAR: function() {
253
+ return CACHE_ONE_YEAR;
254
+ },
255
+ DOT_NEXT_ALIAS: function() {
256
+ return DOT_NEXT_ALIAS;
257
+ },
258
+ ESLINT_DEFAULT_DIRS: function() {
259
+ return ESLINT_DEFAULT_DIRS;
260
+ },
261
+ GSP_NO_RETURNED_VALUE: function() {
262
+ return GSP_NO_RETURNED_VALUE;
263
+ },
264
+ GSSP_COMPONENT_MEMBER_ERROR: function() {
265
+ return GSSP_COMPONENT_MEMBER_ERROR;
266
+ },
267
+ GSSP_NO_RETURNED_VALUE: function() {
268
+ return GSSP_NO_RETURNED_VALUE;
269
+ },
270
+ HTML_CONTENT_TYPE_HEADER: function() {
271
+ return HTML_CONTENT_TYPE_HEADER;
272
+ },
273
+ INFINITE_CACHE: function() {
274
+ return INFINITE_CACHE;
275
+ },
276
+ INSTRUMENTATION_HOOK_FILENAME: function() {
277
+ return INSTRUMENTATION_HOOK_FILENAME;
278
+ },
279
+ JSON_CONTENT_TYPE_HEADER: function() {
280
+ return JSON_CONTENT_TYPE_HEADER;
281
+ },
282
+ MATCHED_PATH_HEADER: function() {
283
+ return MATCHED_PATH_HEADER;
284
+ },
285
+ MIDDLEWARE_FILENAME: function() {
286
+ return MIDDLEWARE_FILENAME;
287
+ },
288
+ MIDDLEWARE_LOCATION_REGEXP: function() {
289
+ return MIDDLEWARE_LOCATION_REGEXP;
290
+ },
291
+ NEXT_BODY_SUFFIX: function() {
292
+ return NEXT_BODY_SUFFIX;
293
+ },
294
+ NEXT_CACHE_IMPLICIT_TAG_ID: function() {
295
+ return NEXT_CACHE_IMPLICIT_TAG_ID;
296
+ },
297
+ NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
298
+ return NEXT_CACHE_REVALIDATED_TAGS_HEADER;
299
+ },
300
+ NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
301
+ return NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER;
302
+ },
303
+ NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
304
+ return NEXT_CACHE_SOFT_TAG_MAX_LENGTH;
305
+ },
306
+ NEXT_CACHE_TAGS_HEADER: function() {
307
+ return NEXT_CACHE_TAGS_HEADER;
308
+ },
309
+ NEXT_CACHE_TAG_MAX_ITEMS: function() {
310
+ return NEXT_CACHE_TAG_MAX_ITEMS;
311
+ },
312
+ NEXT_CACHE_TAG_MAX_LENGTH: function() {
313
+ return NEXT_CACHE_TAG_MAX_LENGTH;
314
+ },
315
+ NEXT_DATA_SUFFIX: function() {
316
+ return NEXT_DATA_SUFFIX;
317
+ },
318
+ NEXT_INTERCEPTION_MARKER_PREFIX: function() {
319
+ return NEXT_INTERCEPTION_MARKER_PREFIX;
320
+ },
321
+ NEXT_META_SUFFIX: function() {
322
+ return NEXT_META_SUFFIX;
323
+ },
324
+ NEXT_QUERY_PARAM_PREFIX: function() {
325
+ return NEXT_QUERY_PARAM_PREFIX;
326
+ },
327
+ NEXT_RESUME_HEADER: function() {
328
+ return NEXT_RESUME_HEADER;
329
+ },
330
+ NON_STANDARD_NODE_ENV: function() {
331
+ return NON_STANDARD_NODE_ENV;
332
+ },
333
+ PAGES_DIR_ALIAS: function() {
334
+ return PAGES_DIR_ALIAS;
335
+ },
336
+ PRERENDER_REVALIDATE_HEADER: function() {
337
+ return PRERENDER_REVALIDATE_HEADER;
338
+ },
339
+ PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function() {
340
+ return PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER;
341
+ },
342
+ PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
343
+ return PUBLIC_DIR_MIDDLEWARE_CONFLICT;
344
+ },
345
+ ROOT_DIR_ALIAS: function() {
346
+ return ROOT_DIR_ALIAS;
347
+ },
348
+ RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
349
+ return RSC_ACTION_CLIENT_WRAPPER_ALIAS;
350
+ },
351
+ RSC_ACTION_ENCRYPTION_ALIAS: function() {
352
+ return RSC_ACTION_ENCRYPTION_ALIAS;
353
+ },
354
+ RSC_ACTION_PROXY_ALIAS: function() {
355
+ return RSC_ACTION_PROXY_ALIAS;
356
+ },
357
+ RSC_ACTION_VALIDATE_ALIAS: function() {
358
+ return RSC_ACTION_VALIDATE_ALIAS;
359
+ },
360
+ RSC_CACHE_WRAPPER_ALIAS: function() {
361
+ return RSC_CACHE_WRAPPER_ALIAS;
362
+ },
363
+ RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS: function() {
364
+ return RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS;
365
+ },
366
+ RSC_MOD_REF_PROXY_ALIAS: function() {
367
+ return RSC_MOD_REF_PROXY_ALIAS;
368
+ },
369
+ RSC_PREFETCH_SUFFIX: function() {
370
+ return RSC_PREFETCH_SUFFIX;
371
+ },
372
+ RSC_SEGMENTS_DIR_SUFFIX: function() {
373
+ return RSC_SEGMENTS_DIR_SUFFIX;
374
+ },
375
+ RSC_SEGMENT_SUFFIX: function() {
376
+ return RSC_SEGMENT_SUFFIX;
377
+ },
378
+ RSC_SUFFIX: function() {
379
+ return RSC_SUFFIX;
380
+ },
381
+ SERVER_PROPS_EXPORT_ERROR: function() {
382
+ return SERVER_PROPS_EXPORT_ERROR;
383
+ },
384
+ SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
385
+ return SERVER_PROPS_GET_INIT_PROPS_CONFLICT;
386
+ },
387
+ SERVER_PROPS_SSG_CONFLICT: function() {
388
+ return SERVER_PROPS_SSG_CONFLICT;
389
+ },
390
+ SERVER_RUNTIME: function() {
391
+ return SERVER_RUNTIME;
392
+ },
393
+ SSG_FALLBACK_EXPORT_ERROR: function() {
394
+ return SSG_FALLBACK_EXPORT_ERROR;
395
+ },
396
+ SSG_GET_INITIAL_PROPS_CONFLICT: function() {
397
+ return SSG_GET_INITIAL_PROPS_CONFLICT;
398
+ },
399
+ STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
400
+ return STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR;
401
+ },
402
+ TEXT_PLAIN_CONTENT_TYPE_HEADER: function() {
403
+ return TEXT_PLAIN_CONTENT_TYPE_HEADER;
404
+ },
405
+ UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
406
+ return UNSTABLE_REVALIDATE_RENAME_ERROR;
407
+ },
408
+ WEBPACK_LAYERS: function() {
409
+ return WEBPACK_LAYERS;
410
+ },
411
+ WEBPACK_RESOURCE_QUERIES: function() {
412
+ return WEBPACK_RESOURCE_QUERIES;
413
+ }
414
+ });
415
+ const TEXT_PLAIN_CONTENT_TYPE_HEADER = 'text/plain';
416
+ const HTML_CONTENT_TYPE_HEADER = 'text/html; charset=utf-8';
417
+ const JSON_CONTENT_TYPE_HEADER = 'application/json; charset=utf-8';
418
+ const NEXT_QUERY_PARAM_PREFIX = 'nxtP';
419
+ const NEXT_INTERCEPTION_MARKER_PREFIX = 'nxtI';
420
+ const MATCHED_PATH_HEADER = 'x-matched-path';
421
+ const PRERENDER_REVALIDATE_HEADER = 'x-prerender-revalidate';
422
+ const PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER = 'x-prerender-revalidate-if-generated';
423
+ const RSC_PREFETCH_SUFFIX = '.prefetch.rsc';
424
+ const RSC_SEGMENTS_DIR_SUFFIX = '.segments';
425
+ const RSC_SEGMENT_SUFFIX = '.segment.rsc';
426
+ const RSC_SUFFIX = '.rsc';
427
+ const ACTION_SUFFIX = '.action';
428
+ const NEXT_DATA_SUFFIX = '.json';
429
+ const NEXT_META_SUFFIX = '.meta';
430
+ const NEXT_BODY_SUFFIX = '.body';
431
+ const NEXT_CACHE_TAGS_HEADER = 'x-next-cache-tags';
432
+ const NEXT_CACHE_REVALIDATED_TAGS_HEADER = 'x-next-revalidated-tags';
433
+ const NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER = 'x-next-revalidate-tag-token';
434
+ const NEXT_RESUME_HEADER = 'next-resume';
435
+ const NEXT_CACHE_TAG_MAX_ITEMS = 128;
436
+ const NEXT_CACHE_TAG_MAX_LENGTH = 256;
437
+ const NEXT_CACHE_SOFT_TAG_MAX_LENGTH = 1024;
438
+ const NEXT_CACHE_IMPLICIT_TAG_ID = '_N_T_';
439
+ const CACHE_ONE_YEAR = 31536000;
440
+ const INFINITE_CACHE = 0xfffffffe;
441
+ const MIDDLEWARE_FILENAME = 'middleware';
442
+ const MIDDLEWARE_LOCATION_REGEXP = "(?:src/)?".concat(MIDDLEWARE_FILENAME);
443
+ const INSTRUMENTATION_HOOK_FILENAME = 'instrumentation';
444
+ const PAGES_DIR_ALIAS = 'private-next-pages';
445
+ const DOT_NEXT_ALIAS = 'private-dot-next';
446
+ const ROOT_DIR_ALIAS = 'private-next-root-dir';
447
+ const APP_DIR_ALIAS = 'private-next-app-dir';
448
+ const RSC_MOD_REF_PROXY_ALIAS = 'private-next-rsc-mod-ref-proxy';
449
+ const RSC_ACTION_VALIDATE_ALIAS = 'private-next-rsc-action-validate';
450
+ const RSC_ACTION_PROXY_ALIAS = 'private-next-rsc-server-reference';
451
+ const RSC_CACHE_WRAPPER_ALIAS = 'private-next-rsc-cache-wrapper';
452
+ const RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS = 'private-next-rsc-track-dynamic-import';
453
+ const RSC_ACTION_ENCRYPTION_ALIAS = 'private-next-rsc-action-encryption';
454
+ const RSC_ACTION_CLIENT_WRAPPER_ALIAS = 'private-next-rsc-action-client-wrapper';
455
+ const PUBLIC_DIR_MIDDLEWARE_CONFLICT = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict";
456
+ const SSG_GET_INITIAL_PROPS_CONFLICT = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps";
457
+ const SERVER_PROPS_GET_INIT_PROPS_CONFLICT = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.";
458
+ const SERVER_PROPS_SSG_CONFLICT = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps";
459
+ const STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props";
460
+ const SERVER_PROPS_EXPORT_ERROR = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export";
461
+ const GSP_NO_RETURNED_VALUE = 'Your `getStaticProps` function did not return an object. Did you forget to add a `return`?';
462
+ const GSSP_NO_RETURNED_VALUE = 'Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?';
463
+ const UNSTABLE_REVALIDATE_RENAME_ERROR = 'The `unstable_revalidate` property is available for general use.\n' + 'Please use `revalidate` instead.';
464
+ const GSSP_COMPONENT_MEMBER_ERROR = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member";
465
+ const NON_STANDARD_NODE_ENV = 'You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env';
466
+ const SSG_FALLBACK_EXPORT_ERROR = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export";
467
+ const ESLINT_DEFAULT_DIRS = [
468
+ 'app',
469
+ 'pages',
470
+ 'components',
471
+ 'lib',
472
+ 'src'
473
+ ];
474
+ const SERVER_RUNTIME = {
475
+ edge: 'edge',
476
+ experimentalEdge: 'experimental-edge',
477
+ nodejs: 'nodejs'
478
+ };
479
+ /**
480
+ * The names of the webpack layers. These layers are the primitives for the
481
+ * webpack chunks.
482
+ */ const WEBPACK_LAYERS_NAMES = {
483
+ /**
484
+ * The layer for the shared code between the client and server bundles.
485
+ */ shared: 'shared',
486
+ /**
487
+ * The layer for server-only runtime and picking up `react-server` export conditions.
488
+ * Including app router RSC pages and app router custom routes and metadata routes.
489
+ */ reactServerComponents: 'rsc',
490
+ /**
491
+ * Server Side Rendering layer for app (ssr).
492
+ */ serverSideRendering: 'ssr',
493
+ /**
494
+ * The browser client bundle layer for actions.
495
+ */ actionBrowser: 'action-browser',
496
+ /**
497
+ * The Node.js bundle layer for the API routes.
498
+ */ apiNode: 'api-node',
499
+ /**
500
+ * The Edge Lite bundle layer for the API routes.
501
+ */ apiEdge: 'api-edge',
502
+ /**
503
+ * The layer for the middleware code.
504
+ */ middleware: 'middleware',
505
+ /**
506
+ * The layer for the instrumentation hooks.
507
+ */ instrument: 'instrument',
508
+ /**
509
+ * The layer for assets on the edge.
510
+ */ edgeAsset: 'edge-asset',
511
+ /**
512
+ * The browser client bundle layer for App directory.
513
+ */ appPagesBrowser: 'app-pages-browser',
514
+ /**
515
+ * The browser client bundle layer for Pages directory.
516
+ */ pagesDirBrowser: 'pages-dir-browser',
517
+ /**
518
+ * The Edge Lite bundle layer for Pages directory.
519
+ */ pagesDirEdge: 'pages-dir-edge',
520
+ /**
521
+ * The Node.js bundle layer for Pages directory.
522
+ */ pagesDirNode: 'pages-dir-node'
523
+ };
524
+ const WEBPACK_LAYERS = {
525
+ ...WEBPACK_LAYERS_NAMES,
526
+ GROUP: {
527
+ builtinReact: [
528
+ WEBPACK_LAYERS_NAMES.reactServerComponents,
529
+ WEBPACK_LAYERS_NAMES.actionBrowser
530
+ ],
531
+ serverOnly: [
532
+ WEBPACK_LAYERS_NAMES.reactServerComponents,
533
+ WEBPACK_LAYERS_NAMES.actionBrowser,
534
+ WEBPACK_LAYERS_NAMES.instrument,
535
+ WEBPACK_LAYERS_NAMES.middleware
536
+ ],
537
+ neutralTarget: [
538
+ // pages api
539
+ WEBPACK_LAYERS_NAMES.apiNode,
540
+ WEBPACK_LAYERS_NAMES.apiEdge
541
+ ],
542
+ clientOnly: [
543
+ WEBPACK_LAYERS_NAMES.serverSideRendering,
544
+ WEBPACK_LAYERS_NAMES.appPagesBrowser
545
+ ],
546
+ bundled: [
547
+ WEBPACK_LAYERS_NAMES.reactServerComponents,
548
+ WEBPACK_LAYERS_NAMES.actionBrowser,
549
+ WEBPACK_LAYERS_NAMES.serverSideRendering,
550
+ WEBPACK_LAYERS_NAMES.appPagesBrowser,
551
+ WEBPACK_LAYERS_NAMES.shared,
552
+ WEBPACK_LAYERS_NAMES.instrument,
553
+ WEBPACK_LAYERS_NAMES.middleware
554
+ ],
555
+ appPages: [
556
+ // app router pages and layouts
557
+ WEBPACK_LAYERS_NAMES.reactServerComponents,
558
+ WEBPACK_LAYERS_NAMES.serverSideRendering,
559
+ WEBPACK_LAYERS_NAMES.appPagesBrowser,
560
+ WEBPACK_LAYERS_NAMES.actionBrowser
561
+ ]
562
+ }
563
+ };
564
+ const WEBPACK_RESOURCE_QUERIES = {
565
+ edgeSSREntry: '__next_edge_ssr_entry__',
566
+ metadata: '__next_metadata__',
567
+ metadataRoute: '__next_metadata_route__',
568
+ metadataImageMeta: '__next_metadata_image_meta__'
569
+ }; //# sourceMappingURL=constants.js.map
570
+ }),
571
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/lib/is-error.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
572
+ "use strict";
573
+
574
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f2e$pnpm$2f$next$40$15$2e$5$2e$2_react$2d$dom$40$19$2e$1$2e$1_react$40$19$2e$1$2e$1_$5f$react$40$19$2e$1$2e$1$2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
575
+ "use strict";
576
+ Object.defineProperty(exports, "__esModule", {
577
+ value: true
578
+ });
579
+ 0 && (module.exports = {
580
+ default: null,
581
+ getProperError: null
582
+ });
583
+ function _export(target, all) {
584
+ for(var name in all)Object.defineProperty(target, name, {
585
+ enumerable: true,
586
+ get: all[name]
587
+ });
588
+ }
589
+ _export(exports, {
590
+ /**
591
+ * Checks whether the given value is a NextError.
592
+ * This can be used to print a more detailed error message with properties like `code` & `digest`.
593
+ */ default: function() {
594
+ return isError;
595
+ },
596
+ getProperError: function() {
597
+ return getProperError;
598
+ }
599
+ });
600
+ const _isplainobject = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/is-plain-object.js [client] (ecmascript)");
601
+ function isError(err) {
602
+ return typeof err === 'object' && err !== null && 'name' in err && 'message' in err;
603
+ }
604
+ function safeStringify(obj) {
605
+ const seen = new WeakSet();
606
+ return JSON.stringify(obj, (_key, value)=>{
607
+ // If value is an object and already seen, replace with "[Circular]"
608
+ if (typeof value === 'object' && value !== null) {
609
+ if (seen.has(value)) {
610
+ return '[Circular]';
611
+ }
612
+ seen.add(value);
613
+ }
614
+ return value;
615
+ });
616
+ }
617
+ function getProperError(err) {
618
+ if (isError(err)) {
619
+ return err;
620
+ }
621
+ if ("TURBOPACK compile-time truthy", 1) {
622
+ // provide better error for case where `throw undefined`
623
+ // is called in development
624
+ if (typeof err === 'undefined') {
625
+ return Object.defineProperty(new Error('An undefined error was thrown, ' + 'see here for more info: https://nextjs.org/docs/messages/threw-undefined'), "__NEXT_ERROR_CODE", {
626
+ value: "E98",
627
+ enumerable: false,
628
+ configurable: true
629
+ });
630
+ }
631
+ if (err === null) {
632
+ return Object.defineProperty(new Error('A null error was thrown, ' + 'see here for more info: https://nextjs.org/docs/messages/threw-undefined'), "__NEXT_ERROR_CODE", {
633
+ value: "E336",
634
+ enumerable: false,
635
+ configurable: true
636
+ });
637
+ }
638
+ }
639
+ return Object.defineProperty(new Error((0, _isplainobject.isPlainObject)(err) ? safeStringify(err) : err + ''), "__NEXT_ERROR_CODE", {
640
+ value: "E394",
641
+ enumerable: false,
642
+ configurable: true
643
+ });
644
+ } //# sourceMappingURL=is-error.js.map
645
+ }),
646
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/lib/is-api-route.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
647
+ "use strict";
648
+
649
+ Object.defineProperty(exports, "__esModule", {
650
+ value: true
651
+ });
652
+ Object.defineProperty(exports, "isAPIRoute", {
653
+ enumerable: true,
654
+ get: function() {
655
+ return isAPIRoute;
656
+ }
657
+ });
658
+ function isAPIRoute(value) {
659
+ return value === '/api' || Boolean(value == null ? void 0 : value.startsWith('/api/'));
660
+ } //# sourceMappingURL=is-api-route.js.map
661
+ }),
662
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/lib/require-instrumentation-client.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
663
+ "use strict";
664
+
665
+ /**
666
+ * This module imports the client instrumentation hook from the project root.
667
+ *
668
+ * The `private-next-instrumentation-client` module is automatically aliased to
669
+ * the `instrumentation-client.ts` file in the project root by webpack or turbopack.
670
+ */ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f2e$pnpm$2f$next$40$15$2e$5$2e$2_react$2d$dom$40$19$2e$1$2e$1_react$40$19$2e$1$2e$1_$5f$react$40$19$2e$1$2e$1$2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
671
+ "use strict";
672
+ if ("TURBOPACK compile-time truthy", 1) {
673
+ const measureName = 'Client Instrumentation Hook';
674
+ const startTime = performance.now();
675
+ // eslint-disable-next-line @next/internal/typechecked-require -- Not a module.
676
+ module.exports = {};
677
+ const endTime = performance.now();
678
+ const duration = endTime - startTime;
679
+ // Using 16ms threshold as it represents one frame (1000ms/60fps)
680
+ // This helps identify if the instrumentation hook initialization
681
+ // could potentially cause frame drops during development.
682
+ const THRESHOLD = 16;
683
+ if (duration > THRESHOLD) {
684
+ console.log("[".concat(measureName, "] Slow execution detected: ").concat(duration.toFixed(0), "ms (Note: Code download overhead is not included in this measurement)"));
685
+ }
686
+ } else //TURBOPACK unreachable
687
+ ;
688
+ //# sourceMappingURL=require-instrumentation-client.js.map
689
+ }),
690
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/next-devtools/userspace/app/errors/stitched-error.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
691
+ "use strict";
692
+
693
+ Object.defineProperty(exports, "__esModule", {
694
+ value: true
695
+ });
696
+ 0 && (module.exports = {
697
+ coerceError: null,
698
+ decorateDevError: null,
699
+ getOwnerStack: null,
700
+ setOwnerStack: null,
701
+ setOwnerStackIfAvailable: null
702
+ });
703
+ function _export(target, all) {
704
+ for(var name in all)Object.defineProperty(target, name, {
705
+ enumerable: true,
706
+ get: all[name]
707
+ });
708
+ }
709
+ _export(exports, {
710
+ coerceError: function() {
711
+ return coerceError;
712
+ },
713
+ decorateDevError: function() {
714
+ return decorateDevError;
715
+ },
716
+ getOwnerStack: function() {
717
+ return getOwnerStack;
718
+ },
719
+ setOwnerStack: function() {
720
+ return setOwnerStack;
721
+ },
722
+ setOwnerStackIfAvailable: function() {
723
+ return setOwnerStackIfAvailable;
724
+ }
725
+ });
726
+ 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 [client] (ecmascript)");
727
+ const _react = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/.pnpm/react@19.1.1/node_modules/react/index.js [client] (ecmascript)"));
728
+ const _iserror = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/lib/is-error.js [client] (ecmascript)"));
729
+ const ownerStacks = new WeakMap();
730
+ function getOwnerStack(error) {
731
+ return ownerStacks.get(error);
732
+ }
733
+ function setOwnerStack(error, stack) {
734
+ ownerStacks.set(error, stack);
735
+ }
736
+ function coerceError(value) {
737
+ return (0, _iserror.default)(value) ? value : Object.defineProperty(new Error('' + value), "__NEXT_ERROR_CODE", {
738
+ value: "E394",
739
+ enumerable: false,
740
+ configurable: true
741
+ });
742
+ }
743
+ function setOwnerStackIfAvailable(error) {
744
+ // React 18 and prod does not have `captureOwnerStack`
745
+ if ('captureOwnerStack' in _react.default) {
746
+ setOwnerStack(error, _react.default.captureOwnerStack());
747
+ }
748
+ }
749
+ function decorateDevError(thrownValue) {
750
+ const error = coerceError(thrownValue);
751
+ setOwnerStackIfAvailable(error);
752
+ return error;
753
+ }
754
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
755
+ Object.defineProperty(exports.default, '__esModule', {
756
+ value: true
757
+ });
758
+ Object.assign(exports.default, exports);
759
+ module.exports = exports.default;
760
+ } //# sourceMappingURL=stitched-error.js.map
761
+ }),
762
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/next-devtools/shared/react-18-hydration-error.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
763
+ "use strict";
764
+
765
+ Object.defineProperty(exports, "__esModule", {
766
+ value: true
767
+ });
768
+ 0 && (module.exports = {
769
+ getHydrationWarningType: null,
770
+ isHydrationError: null,
771
+ isHydrationWarning: null
772
+ });
773
+ function _export(target, all) {
774
+ for(var name in all)Object.defineProperty(target, name, {
775
+ enumerable: true,
776
+ get: all[name]
777
+ });
778
+ }
779
+ _export(exports, {
780
+ getHydrationWarningType: function() {
781
+ return getHydrationWarningType;
782
+ },
783
+ isHydrationError: function() {
784
+ return isHydrationError;
785
+ },
786
+ isHydrationWarning: function() {
787
+ return isHydrationWarning;
788
+ }
789
+ });
790
+ 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 [client] (ecmascript)");
791
+ const _iserror = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/lib/is-error.js [client] (ecmascript)"));
792
+ function isHydrationError(error) {
793
+ return (0, _iserror.default)(error) && (error.message === 'Hydration failed because the initial UI does not match what was rendered on the server.' || error.message === 'Text content does not match server-rendered HTML.');
794
+ }
795
+ function isHydrationWarning(message) {
796
+ return isHtmlTagsWarning(message) || isTextInTagsMismatchWarning(message) || isTextWarning(message);
797
+ }
798
+ // https://github.com/facebook/react/blob/main/packages/react-dom/src/__tests__/ReactDOMHydrationDiff-test.js used as a reference
799
+ const htmlTagsWarnings = new Set([
800
+ 'Warning: Expected server HTML to contain a matching <%s> in <%s>.%s',
801
+ 'Warning: Did not expect server HTML to contain a <%s> in <%s>.%s'
802
+ ]);
803
+ const textAndTagsMismatchWarnings = new Set([
804
+ 'Warning: Expected server HTML to contain a matching text node for "%s" in <%s>.%s',
805
+ 'Warning: Did not expect server HTML to contain the text node "%s" in <%s>.%s'
806
+ ]);
807
+ const textWarnings = new Set([
808
+ 'Warning: Text content did not match. Server: "%s" Client: "%s"%s'
809
+ ]);
810
+ const getHydrationWarningType = (message)=>{
811
+ if (typeof message !== 'string') {
812
+ // TODO: Doesn't make sense to treat no message as a hydration error message.
813
+ // We should bail out somewhere earlier.
814
+ return 'text';
815
+ }
816
+ const normalizedMessage = message.startsWith('Warning: ') ? message : "Warning: " + message;
817
+ if (isHtmlTagsWarning(normalizedMessage)) return 'tag';
818
+ if (isTextInTagsMismatchWarning(normalizedMessage)) return 'text-in-tag';
819
+ return 'text';
820
+ };
821
+ const isHtmlTagsWarning = (message)=>typeof message === 'string' && htmlTagsWarnings.has(message);
822
+ const isTextInTagsMismatchWarning = (msg)=>typeof msg === 'string' && textAndTagsMismatchWarnings.has(msg);
823
+ const isTextWarning = (msg)=>typeof msg === 'string' && textWarnings.has(msg);
824
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
825
+ Object.defineProperty(exports.default, '__esModule', {
826
+ value: true
827
+ });
828
+ Object.assign(exports.default, exports);
829
+ module.exports = exports.default;
830
+ } //# sourceMappingURL=react-18-hydration-error.js.map
831
+ }),
832
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/next-devtools/shared/react-19-hydration-error.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
833
+ "use strict";
834
+
835
+ Object.defineProperty(exports, "__esModule", {
836
+ value: true
837
+ });
838
+ 0 && (module.exports = {
839
+ NEXTJS_HYDRATION_ERROR_LINK: null,
840
+ REACT_HYDRATION_ERROR_LINK: null,
841
+ getHydrationErrorStackInfo: null,
842
+ isErrorMessageWithComponentStackDiff: null,
843
+ isHydrationError: null
844
+ });
845
+ function _export(target, all) {
846
+ for(var name in all)Object.defineProperty(target, name, {
847
+ enumerable: true,
848
+ get: all[name]
849
+ });
850
+ }
851
+ _export(exports, {
852
+ NEXTJS_HYDRATION_ERROR_LINK: function() {
853
+ return NEXTJS_HYDRATION_ERROR_LINK;
854
+ },
855
+ REACT_HYDRATION_ERROR_LINK: function() {
856
+ return REACT_HYDRATION_ERROR_LINK;
857
+ },
858
+ getHydrationErrorStackInfo: function() {
859
+ return getHydrationErrorStackInfo;
860
+ },
861
+ isErrorMessageWithComponentStackDiff: function() {
862
+ return isErrorMessageWithComponentStackDiff;
863
+ },
864
+ isHydrationError: function() {
865
+ return isHydrationError;
866
+ }
867
+ });
868
+ const REACT_HYDRATION_ERROR_LINK = 'https://react.dev/link/hydration-mismatch';
869
+ const NEXTJS_HYDRATION_ERROR_LINK = 'https://nextjs.org/docs/messages/react-hydration-error';
870
+ /**
871
+ * Only React 19+ contains component stack diff in the error message
872
+ */ const errorMessagesWithComponentStackDiff = [
873
+ /^In HTML, (.+?) cannot be a child of <(.+?)>\.(.*)\nThis will cause a hydration error\.(.*)/,
874
+ /^In HTML, (.+?) cannot be a descendant of <(.+?)>\.\nThis will cause a hydration error\.(.*)/,
875
+ /^In HTML, text nodes cannot be a child of <(.+?)>\.\nThis will cause a hydration error\./,
876
+ /^In HTML, whitespace text nodes cannot be a child of <(.+?)>\. Make sure you don't have any extra whitespace between tags on each line of your source code\.\nThis will cause a hydration error\./
877
+ ];
878
+ function isHydrationError(error) {
879
+ return isErrorMessageWithComponentStackDiff(error.message) || /Hydration failed because the server rendered (text|HTML) didn't match the client\./.test(error.message) || /A tree hydrated but some attributes of the server rendered HTML didn't match the client properties./.test(error.message);
880
+ }
881
+ function isErrorMessageWithComponentStackDiff(msg) {
882
+ return errorMessagesWithComponentStackDiff.some((regex)=>regex.test(msg));
883
+ }
884
+ function getHydrationErrorStackInfo(error) {
885
+ const errorMessage = error.message;
886
+ if (isErrorMessageWithComponentStackDiff(errorMessage)) {
887
+ const [message, diffLog = ''] = errorMessage.split('\n\n');
888
+ const diff = diffLog.trim();
889
+ return {
890
+ message: diff === '' ? errorMessage.trim() : message.trim(),
891
+ diff,
892
+ notes: null
893
+ };
894
+ }
895
+ const [message, maybeComponentStackDiff] = errorMessage.split("" + REACT_HYDRATION_ERROR_LINK);
896
+ const trimmedMessage = message.trim();
897
+ // React built-in hydration diff starts with a newline
898
+ if (maybeComponentStackDiff !== undefined && maybeComponentStackDiff.length > 1) {
899
+ const diffs = [];
900
+ maybeComponentStackDiff.split('\n').forEach((line)=>{
901
+ if (line.trim() === '') return;
902
+ if (!line.trim().startsWith('at ')) {
903
+ diffs.push(line);
904
+ }
905
+ });
906
+ const [displayedMessage, ...notes] = trimmedMessage.split('\n\n');
907
+ return {
908
+ message: displayedMessage,
909
+ diff: diffs.join('\n'),
910
+ notes: notes.join('\n\n') || null
911
+ };
912
+ } else {
913
+ const [displayedMessage, ...notes] = trimmedMessage.split('\n\n');
914
+ return {
915
+ message: displayedMessage,
916
+ diff: null,
917
+ notes: notes.join('\n\n')
918
+ };
919
+ }
920
+ }
921
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
922
+ Object.defineProperty(exports.default, '__esModule', {
923
+ value: true
924
+ });
925
+ Object.assign(exports.default, exports);
926
+ module.exports = exports.default;
927
+ } //# sourceMappingURL=react-19-hydration-error.js.map
928
+ }),
929
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/next-devtools/userspace/pages/hydration-error-state.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
930
+ "use strict";
931
+
932
+ Object.defineProperty(exports, "__esModule", {
933
+ value: true
934
+ });
935
+ 0 && (module.exports = {
936
+ attachHydrationErrorState: null,
937
+ getSquashedHydrationErrorDetails: null,
938
+ storeHydrationErrorStateFromConsoleArgs: null
939
+ });
940
+ function _export(target, all) {
941
+ for(var name in all)Object.defineProperty(target, name, {
942
+ enumerable: true,
943
+ get: all[name]
944
+ });
945
+ }
946
+ _export(exports, {
947
+ attachHydrationErrorState: function() {
948
+ return attachHydrationErrorState;
949
+ },
950
+ getSquashedHydrationErrorDetails: function() {
951
+ return getSquashedHydrationErrorDetails;
952
+ },
953
+ storeHydrationErrorStateFromConsoleArgs: function() {
954
+ return storeHydrationErrorStateFromConsoleArgs;
955
+ }
956
+ });
957
+ const _react18hydrationerror = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/next-devtools/shared/react-18-hydration-error.js [client] (ecmascript)");
958
+ const _react19hydrationerror = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/next-devtools/shared/react-19-hydration-error.js [client] (ecmascript)");
959
+ // We only need this for React 18 or hydration console errors in React 19.
960
+ // Once we surface console.error in the dev overlay in pages router, we should only
961
+ // use this for React 18.
962
+ let hydrationErrorState = {};
963
+ const squashedHydrationErrorDetails = new WeakMap();
964
+ function getSquashedHydrationErrorDetails(error) {
965
+ return squashedHydrationErrorDetails.has(error) ? squashedHydrationErrorDetails.get(error) : null;
966
+ }
967
+ function attachHydrationErrorState(error) {
968
+ if (!(0, _react18hydrationerror.isHydrationError)(error) && !(0, _react19hydrationerror.isHydrationError)(error)) {
969
+ return;
970
+ }
971
+ let parsedHydrationErrorState = {};
972
+ // If there's any extra information in the error message to display,
973
+ // append it to the error message details property
974
+ if (hydrationErrorState.warning) {
975
+ // The patched console.error found hydration errors logged by React
976
+ // Append the logged warning to the error message
977
+ parsedHydrationErrorState = {
978
+ // It contains the warning, component stack, server and client tag names
979
+ ...hydrationErrorState
980
+ };
981
+ // Consume the cached hydration diff.
982
+ // This is only required for now when we still squashed the hydration diff log into hydration error.
983
+ // Once the all error is logged to dev overlay in order, this will go away.
984
+ if (hydrationErrorState.reactOutputComponentDiff) {
985
+ parsedHydrationErrorState.reactOutputComponentDiff = hydrationErrorState.reactOutputComponentDiff;
986
+ }
987
+ squashedHydrationErrorDetails.set(error, parsedHydrationErrorState);
988
+ }
989
+ }
990
+ function storeHydrationErrorStateFromConsoleArgs() {
991
+ for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
992
+ args[_key] = arguments[_key];
993
+ }
994
+ let [message, firstContent, secondContent, ...rest] = args;
995
+ if ((0, _react18hydrationerror.isHydrationWarning)(message)) {
996
+ // Some hydration warnings has 4 arguments, some has 3, fallback to the last argument
997
+ // when the 3rd argument is not the component stack but an empty string
998
+ // For some warnings, there's only 1 argument for template.
999
+ // The second argument is the diff or component stack.
1000
+ if (args.length === 3) {
1001
+ secondContent = '';
1002
+ }
1003
+ const warning = message.replace(/Warning: /, '').replace('%s', firstContent).replace('%s', secondContent) // remove the last %s from the message
1004
+ .replace(/%s/g, '');
1005
+ const lastArg = (rest[rest.length - 1] || '').trim();
1006
+ hydrationErrorState.reactOutputComponentDiff = generateHydrationDiffReact18(message, firstContent, secondContent, lastArg);
1007
+ hydrationErrorState.warning = warning;
1008
+ } else if ((0, _react19hydrationerror.isErrorMessageWithComponentStackDiff)(message)) {
1009
+ // Some hydration warnings has 4 arguments, some has 3, fallback to the last argument
1010
+ // when the 3rd argument is not the component stack but an empty string
1011
+ // For some warnings, there's only 1 argument for template.
1012
+ // The second argument is the diff or component stack.
1013
+ if (args.length === 3) {
1014
+ secondContent = '';
1015
+ }
1016
+ const warning = message.replace('%s', firstContent).replace('%s', secondContent) // remove the last %s from the message
1017
+ .replace(/%s/g, '');
1018
+ const lastArg = (args[args.length - 1] || '').trim();
1019
+ hydrationErrorState.reactOutputComponentDiff = lastArg;
1020
+ hydrationErrorState.warning = warning;
1021
+ }
1022
+ }
1023
+ /*
1024
+ * Some hydration errors in React 18 does not have the diff in the error message.
1025
+ * Instead it has the error stack trace which is component stack that we can leverage.
1026
+ * Will parse the diff from the error stack trace
1027
+ * e.g.
1028
+ * Warning: Expected server HTML to contain a matching <div> in <p>.
1029
+ * at div
1030
+ * at p
1031
+ * at div
1032
+ * at div
1033
+ * at Page
1034
+ * output:
1035
+ * <Page>
1036
+ * <div>
1037
+ * <p>
1038
+ * > <div>
1039
+ *
1040
+ */ function generateHydrationDiffReact18(message, firstContent, secondContent, lastArg) {
1041
+ const componentStack = lastArg;
1042
+ let firstIndex = -1;
1043
+ let secondIndex = -1;
1044
+ const hydrationWarningType = (0, _react18hydrationerror.getHydrationWarningType)(message);
1045
+ // at div\n at Foo\n at Bar (....)\n -> [div, Foo]
1046
+ const components = componentStack.split('\n') // .reverse()
1047
+ .map((line, index)=>{
1048
+ // `<space>at <component> (<location>)` -> `at <component> (<location>)`
1049
+ line = line.trim();
1050
+ // extract `<space>at <component>` to `<<component>>`
1051
+ // e.g. ` at Foo` -> `<Foo>`
1052
+ const [, component, location] = /at (\w+)( \((.*)\))?/.exec(line) || [];
1053
+ // If there's no location then it's user-land stack frame
1054
+ if (!location) {
1055
+ if (component === firstContent && firstIndex === -1) {
1056
+ firstIndex = index;
1057
+ } else if (component === secondContent && secondIndex === -1) {
1058
+ secondIndex = index;
1059
+ }
1060
+ }
1061
+ return location ? '' : component;
1062
+ }).filter(Boolean).reverse();
1063
+ let diff = '';
1064
+ for(let i = 0; i < components.length; i++){
1065
+ const component = components[i];
1066
+ const matchFirstContent = hydrationWarningType === 'tag' && i === components.length - firstIndex - 1;
1067
+ const matchSecondContent = hydrationWarningType === 'tag' && i === components.length - secondIndex - 1;
1068
+ if (matchFirstContent || matchSecondContent) {
1069
+ const spaces = ' '.repeat(Math.max(i * 2 - 2, 0) + 2);
1070
+ diff += "> " + spaces + "<" + component + ">\n";
1071
+ } else {
1072
+ const spaces = ' '.repeat(i * 2 + 2);
1073
+ diff += spaces + "<" + component + ">\n";
1074
+ }
1075
+ }
1076
+ if (hydrationWarningType === 'text') {
1077
+ const spaces = ' '.repeat(components.length * 2);
1078
+ diff += "+ " + spaces + '"' + firstContent + '"\n';
1079
+ diff += "- " + spaces + '"' + secondContent + '"\n';
1080
+ } else if (hydrationWarningType === 'text-in-tag') {
1081
+ const spaces = ' '.repeat(components.length * 2);
1082
+ diff += "> " + spaces + "<" + secondContent + ">\n";
1083
+ diff += "> " + spaces + '"' + firstContent + '"\n';
1084
+ }
1085
+ return diff;
1086
+ }
1087
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1088
+ Object.defineProperty(exports.default, '__esModule', {
1089
+ value: true
1090
+ });
1091
+ Object.assign(exports.default, exports);
1092
+ module.exports = exports.default;
1093
+ } //# sourceMappingURL=hydration-error-state.js.map
1094
+ }),
1095
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/next-devtools/userspace/pages/pages-dev-overlay-error-boundary.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1096
+ "use strict";
1097
+
1098
+ Object.defineProperty(exports, "__esModule", {
1099
+ value: true
1100
+ });
1101
+ Object.defineProperty(exports, "PagesDevOverlayErrorBoundary", {
1102
+ enumerable: true,
1103
+ get: function() {
1104
+ return PagesDevOverlayErrorBoundary;
1105
+ }
1106
+ });
1107
+ 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 [client] (ecmascript)");
1108
+ const _react = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/.pnpm/react@19.1.1/node_modules/react/index.js [client] (ecmascript)"));
1109
+ class PagesDevOverlayErrorBoundary extends _react.default.PureComponent {
1110
+ static getDerivedStateFromError(error) {
1111
+ return {
1112
+ error
1113
+ };
1114
+ }
1115
+ // Explicit type is needed to avoid the generated `.d.ts` having a wide return type that could be specific to the `@types/react` version.
1116
+ render() {
1117
+ // The component has to be unmounted or else it would continue to error
1118
+ return this.state.error ? null : this.props.children;
1119
+ }
1120
+ constructor(...args){
1121
+ super(...args), this.state = {
1122
+ error: null
1123
+ };
1124
+ }
1125
+ }
1126
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1127
+ Object.defineProperty(exports.default, '__esModule', {
1128
+ value: true
1129
+ });
1130
+ Object.assign(exports.default, exports);
1131
+ module.exports = exports.default;
1132
+ } //# sourceMappingURL=pages-dev-overlay-error-boundary.js.map
1133
+ }),
1134
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/next-devtools/userspace/app/terminal-logging-config.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1135
+ "use strict";
1136
+
1137
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f2e$pnpm$2f$next$40$15$2e$5$2e$2_react$2d$dom$40$19$2e$1$2e$1_react$40$19$2e$1$2e$1_$5f$react$40$19$2e$1$2e$1$2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
1138
+ "use strict";
1139
+ Object.defineProperty(exports, "__esModule", {
1140
+ value: true
1141
+ });
1142
+ 0 && (module.exports = {
1143
+ getIsTerminalLoggingEnabled: null,
1144
+ getTerminalLoggingConfig: null
1145
+ });
1146
+ function _export(target, all) {
1147
+ for(var name in all)Object.defineProperty(target, name, {
1148
+ enumerable: true,
1149
+ get: all[name]
1150
+ });
1151
+ }
1152
+ _export(exports, {
1153
+ getIsTerminalLoggingEnabled: function() {
1154
+ return getIsTerminalLoggingEnabled;
1155
+ },
1156
+ getTerminalLoggingConfig: function() {
1157
+ return getTerminalLoggingConfig;
1158
+ }
1159
+ });
1160
+ function getTerminalLoggingConfig() {
1161
+ try {
1162
+ return JSON.parse(("TURBOPACK compile-time value", "false") || 'false');
1163
+ } catch (e) {
1164
+ return false;
1165
+ }
1166
+ }
1167
+ function getIsTerminalLoggingEnabled() {
1168
+ const config = getTerminalLoggingConfig();
1169
+ return Boolean(config);
1170
+ }
1171
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1172
+ Object.defineProperty(exports.default, '__esModule', {
1173
+ value: true
1174
+ });
1175
+ Object.assign(exports.default, exports);
1176
+ module.exports = exports.default;
1177
+ } //# sourceMappingURL=terminal-logging-config.js.map
1178
+ }),
1179
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/next-devtools/shared/forward-logs-shared.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1180
+ "use strict";
1181
+
1182
+ Object.defineProperty(exports, "__esModule", {
1183
+ value: true
1184
+ });
1185
+ 0 && (module.exports = {
1186
+ UNDEFINED_MARKER: null,
1187
+ patchConsoleMethod: null
1188
+ });
1189
+ function _export(target, all) {
1190
+ for(var name in all)Object.defineProperty(target, name, {
1191
+ enumerable: true,
1192
+ get: all[name]
1193
+ });
1194
+ }
1195
+ _export(exports, {
1196
+ UNDEFINED_MARKER: function() {
1197
+ return UNDEFINED_MARKER;
1198
+ },
1199
+ patchConsoleMethod: function() {
1200
+ return patchConsoleMethod;
1201
+ }
1202
+ });
1203
+ const UNDEFINED_MARKER = '__next_tagged_undefined';
1204
+ function patchConsoleMethod(methodName, wrapper) {
1205
+ const descriptor = Object.getOwnPropertyDescriptor(console, methodName);
1206
+ if (descriptor && (descriptor.configurable || descriptor.writable) && typeof descriptor.value === 'function') {
1207
+ const originalMethod = descriptor.value;
1208
+ const originalName = Object.getOwnPropertyDescriptor(originalMethod, 'name');
1209
+ const wrapperMethod = function() {
1210
+ for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
1211
+ args[_key] = arguments[_key];
1212
+ }
1213
+ wrapper(methodName, ...args);
1214
+ originalMethod.apply(this, args);
1215
+ };
1216
+ if (originalName) {
1217
+ Object.defineProperty(wrapperMethod, 'name', originalName);
1218
+ }
1219
+ Object.defineProperty(console, methodName, {
1220
+ value: wrapperMethod
1221
+ });
1222
+ return ()=>{
1223
+ Object.defineProperty(console, methodName, {
1224
+ value: originalMethod,
1225
+ writable: descriptor.writable,
1226
+ configurable: descriptor.configurable
1227
+ });
1228
+ };
1229
+ }
1230
+ return ()=>{};
1231
+ }
1232
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1233
+ Object.defineProperty(exports.default, '__esModule', {
1234
+ value: true
1235
+ });
1236
+ Object.assign(exports.default, exports);
1237
+ module.exports = exports.default;
1238
+ } //# sourceMappingURL=forward-logs-shared.js.map
1239
+ }),
1240
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/next-devtools/userspace/app/forward-logs.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1241
+ "use strict";
1242
+
1243
+ Object.defineProperty(exports, "__esModule", {
1244
+ value: true
1245
+ });
1246
+ 0 && (module.exports = {
1247
+ PROMISE_MARKER: null,
1248
+ UNAVAILABLE_MARKER: null,
1249
+ forwardErrorLog: null,
1250
+ forwardUnhandledError: null,
1251
+ initializeDebugLogForwarding: null,
1252
+ isTerminalLoggingEnabled: null,
1253
+ logQueue: null,
1254
+ logStringify: null,
1255
+ logUnhandledRejection: null,
1256
+ preLogSerializationClone: null
1257
+ });
1258
+ function _export(target, all) {
1259
+ for(var name in all)Object.defineProperty(target, name, {
1260
+ enumerable: true,
1261
+ get: all[name]
1262
+ });
1263
+ }
1264
+ _export(exports, {
1265
+ PROMISE_MARKER: function() {
1266
+ return PROMISE_MARKER;
1267
+ },
1268
+ UNAVAILABLE_MARKER: function() {
1269
+ return UNAVAILABLE_MARKER;
1270
+ },
1271
+ forwardErrorLog: function() {
1272
+ return forwardErrorLog;
1273
+ },
1274
+ forwardUnhandledError: function() {
1275
+ return forwardUnhandledError;
1276
+ },
1277
+ initializeDebugLogForwarding: function() {
1278
+ return initializeDebugLogForwarding;
1279
+ },
1280
+ isTerminalLoggingEnabled: function() {
1281
+ return isTerminalLoggingEnabled;
1282
+ },
1283
+ logQueue: function() {
1284
+ return logQueue;
1285
+ },
1286
+ logStringify: function() {
1287
+ return logStringify;
1288
+ },
1289
+ logUnhandledRejection: function() {
1290
+ return logUnhandledRejection;
1291
+ },
1292
+ preLogSerializationClone: function() {
1293
+ return preLogSerializationClone;
1294
+ }
1295
+ });
1296
+ const _safestablestringify = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/compiled/safe-stable-stringify/index.js [client] (ecmascript)");
1297
+ const _stitchederror = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/next-devtools/userspace/app/errors/stitched-error.js [client] (ecmascript)");
1298
+ const _errorsource = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/error-source.js [client] (ecmascript)");
1299
+ const _terminalloggingconfig = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/next-devtools/userspace/app/terminal-logging-config.js [client] (ecmascript)");
1300
+ const _forwardlogsshared = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/next-devtools/shared/forward-logs-shared.js [client] (ecmascript)");
1301
+ const terminalLoggingConfig = (0, _terminalloggingconfig.getTerminalLoggingConfig)();
1302
+ const PROMISE_MARKER = 'Promise {}';
1303
+ const UNAVAILABLE_MARKER = '[Unable to view]';
1304
+ const maximumDepth = typeof terminalLoggingConfig === 'object' && terminalLoggingConfig.depthLimit ? terminalLoggingConfig.depthLimit : 5;
1305
+ const maximumBreadth = typeof terminalLoggingConfig === 'object' && terminalLoggingConfig.edgeLimit ? terminalLoggingConfig.edgeLimit : 100;
1306
+ const stringify = (0, _safestablestringify.configure)({
1307
+ maximumDepth,
1308
+ maximumBreadth
1309
+ });
1310
+ const isTerminalLoggingEnabled = (0, _terminalloggingconfig.getIsTerminalLoggingEnabled)();
1311
+ const methods = [
1312
+ 'log',
1313
+ 'info',
1314
+ 'warn',
1315
+ 'debug',
1316
+ 'table',
1317
+ 'assert',
1318
+ 'dir',
1319
+ 'dirxml',
1320
+ 'group',
1321
+ 'groupCollapsed',
1322
+ 'groupEnd',
1323
+ 'trace'
1324
+ ];
1325
+ function preLogSerializationClone(value, seen) {
1326
+ if (seen === void 0) seen = new WeakMap();
1327
+ if (value === undefined) return _forwardlogsshared.UNDEFINED_MARKER;
1328
+ if (value === null || typeof value !== 'object') return value;
1329
+ if (seen.has(value)) return seen.get(value);
1330
+ try {
1331
+ Object.keys(value);
1332
+ } catch (e) {
1333
+ return UNAVAILABLE_MARKER;
1334
+ }
1335
+ try {
1336
+ if (typeof value.then === 'function') return PROMISE_MARKER;
1337
+ } catch (e) {
1338
+ return UNAVAILABLE_MARKER;
1339
+ }
1340
+ if (Array.isArray(value)) {
1341
+ const out = [];
1342
+ seen.set(value, out);
1343
+ for (const item of value){
1344
+ try {
1345
+ out.push(preLogSerializationClone(item, seen));
1346
+ } catch (e) {
1347
+ out.push(UNAVAILABLE_MARKER);
1348
+ }
1349
+ }
1350
+ return out;
1351
+ }
1352
+ const proto = Object.getPrototypeOf(value);
1353
+ if (proto === Object.prototype || proto === null) {
1354
+ const out = {};
1355
+ seen.set(value, out);
1356
+ for (const key of Object.keys(value)){
1357
+ try {
1358
+ out[key] = preLogSerializationClone(value[key], seen);
1359
+ } catch (e) {
1360
+ out[key] = UNAVAILABLE_MARKER;
1361
+ }
1362
+ }
1363
+ return out;
1364
+ }
1365
+ return Object.prototype.toString.call(value);
1366
+ }
1367
+ const logStringify = (data)=>{
1368
+ try {
1369
+ const result = stringify(data);
1370
+ return result != null ? result : '"' + UNAVAILABLE_MARKER + '"';
1371
+ } catch (e) {
1372
+ return '"' + UNAVAILABLE_MARKER + '"';
1373
+ }
1374
+ };
1375
+ const afterThisFrame = (cb)=>{
1376
+ let timeout;
1377
+ const rafId = requestAnimationFrame(()=>{
1378
+ timeout = setTimeout(()=>{
1379
+ cb();
1380
+ });
1381
+ });
1382
+ return ()=>{
1383
+ cancelAnimationFrame(rafId);
1384
+ clearTimeout(timeout);
1385
+ };
1386
+ };
1387
+ let isPatched = false;
1388
+ const serializeEntries = (entries)=>entries.map((clientEntry)=>{
1389
+ switch(clientEntry.kind){
1390
+ case 'any-logged-error':
1391
+ case 'console':
1392
+ {
1393
+ return {
1394
+ ...clientEntry,
1395
+ args: clientEntry.args.map(stringifyUserArg)
1396
+ };
1397
+ }
1398
+ case 'formatted-error':
1399
+ {
1400
+ return clientEntry;
1401
+ }
1402
+ default:
1403
+ {
1404
+ return null;
1405
+ }
1406
+ }
1407
+ });
1408
+ const logQueue = {
1409
+ entries: [],
1410
+ flushScheduled: false,
1411
+ cancelFlush: null,
1412
+ socket: null,
1413
+ sourceType: undefined,
1414
+ router: null,
1415
+ scheduleLogSend: (entry)=>{
1416
+ logQueue.entries.push(entry);
1417
+ if (logQueue.flushScheduled) {
1418
+ return;
1419
+ }
1420
+ // safe to deref and use in setTimeout closure since we cancel on new socket
1421
+ const socket = logQueue.socket;
1422
+ if (!socket) {
1423
+ return;
1424
+ }
1425
+ // we probably dont need this
1426
+ logQueue.flushScheduled = true;
1427
+ // non blocking log flush, runs at most once per frame
1428
+ logQueue.cancelFlush = afterThisFrame(()=>{
1429
+ logQueue.flushScheduled = false;
1430
+ // just incase
1431
+ try {
1432
+ const payload = JSON.stringify({
1433
+ event: 'browser-logs',
1434
+ entries: serializeEntries(logQueue.entries),
1435
+ router: logQueue.router,
1436
+ // needed for source mapping, we just assign the sourceType from the last error for the whole batch
1437
+ sourceType: logQueue.sourceType
1438
+ });
1439
+ socket.send(payload);
1440
+ logQueue.entries = [];
1441
+ logQueue.sourceType = undefined;
1442
+ } catch (e) {
1443
+ // error (make sure u don't infinite loop)
1444
+ /* noop */ }
1445
+ });
1446
+ },
1447
+ onSocketReady: (socket)=>{
1448
+ if (socket.readyState !== WebSocket.OPEN) {
1449
+ // invariant
1450
+ return;
1451
+ }
1452
+ // incase an existing timeout was going to run with a stale socket
1453
+ logQueue.cancelFlush == null ? void 0 : logQueue.cancelFlush.call(logQueue);
1454
+ logQueue.socket = socket;
1455
+ try {
1456
+ const payload = JSON.stringify({
1457
+ event: 'browser-logs',
1458
+ entries: serializeEntries(logQueue.entries),
1459
+ router: logQueue.router,
1460
+ sourceType: logQueue.sourceType
1461
+ });
1462
+ socket.send(payload);
1463
+ logQueue.entries = [];
1464
+ logQueue.sourceType = undefined;
1465
+ } catch (e) {
1466
+ /** noop just incase */ }
1467
+ }
1468
+ };
1469
+ const stringifyUserArg = (arg)=>{
1470
+ if (arg.kind !== 'arg') {
1471
+ return arg;
1472
+ }
1473
+ return {
1474
+ ...arg,
1475
+ data: logStringify(arg.data)
1476
+ };
1477
+ };
1478
+ const createErrorArg = (error)=>{
1479
+ const stack = stackWithOwners(error);
1480
+ return {
1481
+ kind: 'formatted-error-arg',
1482
+ prefix: error.message ? error.name + ": " + error.message : "" + error.name,
1483
+ stack
1484
+ };
1485
+ };
1486
+ const createLogEntry = (level, args)=>{
1487
+ // do not abstract this, it implicitly relies on which functions call it. forcing the inlined implementation makes you think about callers
1488
+ // error capture stack trace maybe
1489
+ const stack = stackWithOwners(new Error());
1490
+ const stackLines = stack == null ? void 0 : stack.split('\n');
1491
+ const cleanStack = stackLines == null ? void 0 : stackLines.slice(3).join('\n') // this is probably ignored anyways
1492
+ ;
1493
+ const entry = {
1494
+ kind: 'console',
1495
+ consoleMethodStack: cleanStack != null ? cleanStack : null,
1496
+ method: level,
1497
+ args: args.map((arg)=>{
1498
+ if (arg instanceof Error) {
1499
+ return createErrorArg(arg);
1500
+ }
1501
+ return {
1502
+ kind: 'arg',
1503
+ data: preLogSerializationClone(arg)
1504
+ };
1505
+ })
1506
+ };
1507
+ logQueue.scheduleLogSend(entry);
1508
+ };
1509
+ const forwardErrorLog = (args)=>{
1510
+ const errorObjects = args.filter((arg)=>arg instanceof Error);
1511
+ const first = errorObjects.at(0);
1512
+ if (first) {
1513
+ const source = (0, _errorsource.getErrorSource)(first);
1514
+ if (source) {
1515
+ logQueue.sourceType = source;
1516
+ }
1517
+ }
1518
+ /**
1519
+ * browser shows stack regardless of type of data passed to console.error, so we should do the same
1520
+ *
1521
+ * do not abstract this, it implicitly relies on which functions call it. forcing the inlined implementation makes you think about callers
1522
+ */ const stack = stackWithOwners(new Error());
1523
+ const stackLines = stack == null ? void 0 : stack.split('\n');
1524
+ const cleanStack = stackLines == null ? void 0 : stackLines.slice(3).join('\n');
1525
+ const entry = {
1526
+ kind: 'any-logged-error',
1527
+ method: 'error',
1528
+ consoleErrorStack: cleanStack != null ? cleanStack : '',
1529
+ args: args.map((arg)=>{
1530
+ if (arg instanceof Error) {
1531
+ return createErrorArg(arg);
1532
+ }
1533
+ return {
1534
+ kind: 'arg',
1535
+ data: preLogSerializationClone(arg)
1536
+ };
1537
+ })
1538
+ };
1539
+ logQueue.scheduleLogSend(entry);
1540
+ };
1541
+ const createUncaughtErrorEntry = (errorName, errorMessage, fullStack)=>{
1542
+ const entry = {
1543
+ kind: 'formatted-error',
1544
+ prefix: "Uncaught " + errorName + ": " + errorMessage,
1545
+ stack: fullStack,
1546
+ method: 'error'
1547
+ };
1548
+ logQueue.scheduleLogSend(entry);
1549
+ };
1550
+ const stackWithOwners = (error)=>{
1551
+ let ownerStack = '';
1552
+ (0, _stitchederror.setOwnerStackIfAvailable)(error);
1553
+ ownerStack = (0, _stitchederror.getOwnerStack)(error) || '';
1554
+ const stack = (error.stack || '') + ownerStack;
1555
+ return stack;
1556
+ };
1557
+ function logUnhandledRejection(reason) {
1558
+ if (reason instanceof Error) {
1559
+ createUnhandledRejectionErrorEntry(reason, stackWithOwners(reason));
1560
+ return;
1561
+ }
1562
+ createUnhandledRejectionNonErrorEntry(reason);
1563
+ }
1564
+ const createUnhandledRejectionErrorEntry = (error, fullStack)=>{
1565
+ const source = (0, _errorsource.getErrorSource)(error);
1566
+ if (source) {
1567
+ logQueue.sourceType = source;
1568
+ }
1569
+ const entry = {
1570
+ kind: 'formatted-error',
1571
+ prefix: "⨯ unhandledRejection: " + error.name + ": " + error.message,
1572
+ stack: fullStack,
1573
+ method: 'error'
1574
+ };
1575
+ logQueue.scheduleLogSend(entry);
1576
+ };
1577
+ const createUnhandledRejectionNonErrorEntry = (reason)=>{
1578
+ const entry = {
1579
+ kind: 'any-logged-error',
1580
+ // we can't access the stack since the event is dispatched async and creating an inline error would be meaningless
1581
+ consoleErrorStack: '',
1582
+ method: 'error',
1583
+ args: [
1584
+ {
1585
+ kind: 'arg',
1586
+ data: "⨯ unhandledRejection:",
1587
+ isRejectionMessage: true
1588
+ },
1589
+ {
1590
+ kind: 'arg',
1591
+ data: preLogSerializationClone(reason)
1592
+ }
1593
+ ]
1594
+ };
1595
+ logQueue.scheduleLogSend(entry);
1596
+ };
1597
+ const isHMR = (args)=>{
1598
+ const firstArg = args[0];
1599
+ if (typeof firstArg !== 'string') {
1600
+ return false;
1601
+ }
1602
+ if (firstArg.startsWith('[Fast Refresh]')) {
1603
+ return true;
1604
+ }
1605
+ if (firstArg.startsWith('[HMR]')) {
1606
+ return true;
1607
+ }
1608
+ return false;
1609
+ };
1610
+ const isIgnoredLog = (args)=>{
1611
+ if (args.length < 3) {
1612
+ return false;
1613
+ }
1614
+ const [format, styles, label] = args;
1615
+ if (typeof format !== 'string' || typeof styles !== 'string' || typeof label !== 'string') {
1616
+ return false;
1617
+ }
1618
+ // kinda hacky, we should define a common format for these strings so we can safely ignore
1619
+ return format.startsWith('%c%s%c') && styles.includes('background:');
1620
+ };
1621
+ function forwardUnhandledError(error) {
1622
+ createUncaughtErrorEntry(error.name, error.message, stackWithOwners(error));
1623
+ }
1624
+ const initializeDebugLogForwarding = (router)=>{
1625
+ // probably don't need this
1626
+ if (isPatched) {
1627
+ return;
1628
+ }
1629
+ // TODO(rob): why does this break rendering on server, important to know incase the same bug appears in browser
1630
+ if (typeof window === 'undefined') {
1631
+ return;
1632
+ }
1633
+ // better to be safe than sorry
1634
+ try {
1635
+ methods.forEach((method)=>(0, _forwardlogsshared.patchConsoleMethod)(method, function(_) {
1636
+ for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
1637
+ args[_key - 1] = arguments[_key];
1638
+ }
1639
+ if (isHMR(args)) {
1640
+ return;
1641
+ }
1642
+ if (isIgnoredLog(args)) {
1643
+ return;
1644
+ }
1645
+ createLogEntry(method, args);
1646
+ }));
1647
+ } catch (e) {}
1648
+ logQueue.router = router;
1649
+ isPatched = true;
1650
+ };
1651
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1652
+ Object.defineProperty(exports.default, '__esModule', {
1653
+ value: true
1654
+ });
1655
+ Object.assign(exports.default, exports);
1656
+ module.exports = exports.default;
1657
+ } //# sourceMappingURL=forward-logs.js.map
1658
+ }),
1659
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/next-devtools/userspace/pages/pages-dev-overlay-setup.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1660
+ "use strict";
1661
+
1662
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f2e$pnpm$2f$next$40$15$2e$5$2e$2_react$2d$dom$40$19$2e$1$2e$1_react$40$19$2e$1$2e$1_$5f$react$40$19$2e$1$2e$1$2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/build/polyfills/process.js [client] (ecmascript)");
1663
+ "use strict";
1664
+ Object.defineProperty(exports, "__esModule", {
1665
+ value: true
1666
+ });
1667
+ 0 && (module.exports = {
1668
+ PagesDevOverlayBridge: null,
1669
+ register: null
1670
+ });
1671
+ function _export(target, all) {
1672
+ for(var name in all)Object.defineProperty(target, name, {
1673
+ enumerable: true,
1674
+ get: all[name]
1675
+ });
1676
+ }
1677
+ _export(exports, {
1678
+ PagesDevOverlayBridge: function() {
1679
+ return PagesDevOverlayBridge;
1680
+ },
1681
+ register: function() {
1682
+ return register;
1683
+ }
1684
+ });
1685
+ 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 [client] (ecmascript)");
1686
+ const _jsxruntime = __turbopack_context__.r("[project]/node_modules/.pnpm/react@19.1.1/node_modules/react/jsx-runtime.js [client] (ecmascript)");
1687
+ const _react = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/.pnpm/react@19.1.1/node_modules/react/index.js [client] (ecmascript)"));
1688
+ const _nextdevtools = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/compiled/next-devtools/index.js [client] (ecmascript)");
1689
+ const _hydrationerrorstate = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/next-devtools/userspace/pages/hydration-error-state.js [client] (ecmascript)");
1690
+ const _router = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/router.js [client] (ecmascript)");
1691
+ const _stitchederror = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/next-devtools/userspace/app/errors/stitched-error.js [client] (ecmascript)");
1692
+ const _onrecoverableerror = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/react-client-callbacks/on-recoverable-error.js [client] (ecmascript)");
1693
+ const _pagesdevoverlayerrorboundary = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/next-devtools/userspace/pages/pages-dev-overlay-error-boundary.js [client] (ecmascript)");
1694
+ const _forwardlogs = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/next-devtools/userspace/app/forward-logs.js [client] (ecmascript)");
1695
+ const usePagesDevOverlayBridge = ()=>{
1696
+ _react.default.useInsertionEffect({
1697
+ "usePagesDevOverlayBridge.useInsertionEffect": ()=>{
1698
+ // NDT uses a different React instance so it's not technically a state update
1699
+ // scheduled from useInsertionEffect.
1700
+ (0, _nextdevtools.renderPagesDevOverlay)(_stitchederror.getOwnerStack, _hydrationerrorstate.getSquashedHydrationErrorDetails, _onrecoverableerror.isRecoverableError);
1701
+ }
1702
+ }["usePagesDevOverlayBridge.useInsertionEffect"], []);
1703
+ _react.default.useEffect({
1704
+ "usePagesDevOverlayBridge.useEffect": ()=>{
1705
+ const { handleStaticIndicator } = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/dev/hot-reloader/pages/hot-reloader-pages.js [client] (ecmascript)");
1706
+ _router.Router.events.on('routeChangeComplete', handleStaticIndicator);
1707
+ return ({
1708
+ "usePagesDevOverlayBridge.useEffect": function() {
1709
+ _router.Router.events.off('routeChangeComplete', handleStaticIndicator);
1710
+ }
1711
+ })["usePagesDevOverlayBridge.useEffect"];
1712
+ }
1713
+ }["usePagesDevOverlayBridge.useEffect"], []);
1714
+ };
1715
+ function PagesDevOverlayBridge(param) {
1716
+ let { children } = param;
1717
+ usePagesDevOverlayBridge();
1718
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pagesdevoverlayerrorboundary.PagesDevOverlayErrorBoundary, {
1719
+ children: children
1720
+ });
1721
+ }
1722
+ let isRegistered = false;
1723
+ function handleError(error) {
1724
+ if (!error || !(error instanceof Error) || typeof error.stack !== 'string') {
1725
+ // A non-error was thrown, we don't have anything to show. :-(
1726
+ return;
1727
+ }
1728
+ (0, _hydrationerrorstate.attachHydrationErrorState)(error);
1729
+ // Skip ModuleBuildError and ModuleNotFoundError, as it will be sent through onBuildError callback.
1730
+ // This is to avoid same error as different type showing up on client to cause flashing.
1731
+ if (error.name !== 'ModuleBuildError' && error.name !== 'ModuleNotFoundError') {
1732
+ _nextdevtools.dispatcher.onUnhandledError(error);
1733
+ }
1734
+ }
1735
+ let origConsoleError = console.error;
1736
+ function nextJsHandleConsoleError() {
1737
+ for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
1738
+ args[_key] = arguments[_key];
1739
+ }
1740
+ // See https://github.com/facebook/react/blob/d50323eb845c5fde0d720cae888bf35dedd05506/packages/react-reconciler/src/ReactFiberErrorLogger.js#L78
1741
+ const maybeError = ("TURBOPACK compile-time truthy", 1) ? args[1] : "TURBOPACK unreachable";
1742
+ (0, _hydrationerrorstate.storeHydrationErrorStateFromConsoleArgs)(...args);
1743
+ // TODO: Surfaces non-errors logged via `console.error`.
1744
+ handleError(maybeError);
1745
+ if (_forwardlogs.isTerminalLoggingEnabled) {
1746
+ (0, _forwardlogs.forwardErrorLog)(args);
1747
+ }
1748
+ origConsoleError.apply(window.console, args);
1749
+ }
1750
+ function onUnhandledError(event) {
1751
+ const error = event == null ? void 0 : event.error;
1752
+ handleError(error);
1753
+ if (error && _forwardlogs.isTerminalLoggingEnabled) {
1754
+ (0, _forwardlogs.forwardUnhandledError)(error);
1755
+ }
1756
+ }
1757
+ function onUnhandledRejection(ev) {
1758
+ const reason = ev == null ? void 0 : ev.reason;
1759
+ if (!reason || !(reason instanceof Error) || typeof reason.stack !== 'string') {
1760
+ // A non-error was thrown, we don't have anything to show. :-(
1761
+ return;
1762
+ }
1763
+ _nextdevtools.dispatcher.onUnhandledRejection(reason);
1764
+ if (_forwardlogs.isTerminalLoggingEnabled) {
1765
+ (0, _forwardlogs.logUnhandledRejection)(reason);
1766
+ }
1767
+ }
1768
+ function register() {
1769
+ if (isRegistered) {
1770
+ return;
1771
+ }
1772
+ isRegistered = true;
1773
+ try {
1774
+ Error.stackTraceLimit = 50;
1775
+ } catch (e) {}
1776
+ if (_forwardlogs.isTerminalLoggingEnabled) {
1777
+ (0, _forwardlogs.initializeDebugLogForwarding)('pages');
1778
+ }
1779
+ window.addEventListener('error', onUnhandledError);
1780
+ window.addEventListener('unhandledrejection', onUnhandledRejection);
1781
+ window.console.error = nextJsHandleConsoleError;
1782
+ }
1783
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1784
+ Object.defineProperty(exports.default, '__esModule', {
1785
+ value: true
1786
+ });
1787
+ Object.assign(exports.default, exports);
1788
+ module.exports = exports.default;
1789
+ } //# sourceMappingURL=pages-dev-overlay-setup.js.map
1790
+ }),
1791
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/dev/hot-reloader-types.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1792
+ "use strict";
1793
+
1794
+ Object.defineProperty(exports, "__esModule", {
1795
+ value: true
1796
+ });
1797
+ Object.defineProperty(exports, "HMR_ACTIONS_SENT_TO_BROWSER", {
1798
+ enumerable: true,
1799
+ get: function() {
1800
+ return HMR_ACTIONS_SENT_TO_BROWSER;
1801
+ }
1802
+ });
1803
+ var HMR_ACTIONS_SENT_TO_BROWSER = /*#__PURE__*/ function(HMR_ACTIONS_SENT_TO_BROWSER) {
1804
+ HMR_ACTIONS_SENT_TO_BROWSER["ADDED_PAGE"] = "addedPage";
1805
+ HMR_ACTIONS_SENT_TO_BROWSER["REMOVED_PAGE"] = "removedPage";
1806
+ HMR_ACTIONS_SENT_TO_BROWSER["RELOAD_PAGE"] = "reloadPage";
1807
+ HMR_ACTIONS_SENT_TO_BROWSER["SERVER_COMPONENT_CHANGES"] = "serverComponentChanges";
1808
+ HMR_ACTIONS_SENT_TO_BROWSER["MIDDLEWARE_CHANGES"] = "middlewareChanges";
1809
+ HMR_ACTIONS_SENT_TO_BROWSER["CLIENT_CHANGES"] = "clientChanges";
1810
+ HMR_ACTIONS_SENT_TO_BROWSER["SERVER_ONLY_CHANGES"] = "serverOnlyChanges";
1811
+ HMR_ACTIONS_SENT_TO_BROWSER["SYNC"] = "sync";
1812
+ HMR_ACTIONS_SENT_TO_BROWSER["BUILT"] = "built";
1813
+ HMR_ACTIONS_SENT_TO_BROWSER["BUILDING"] = "building";
1814
+ HMR_ACTIONS_SENT_TO_BROWSER["DEV_PAGES_MANIFEST_UPDATE"] = "devPagesManifestUpdate";
1815
+ HMR_ACTIONS_SENT_TO_BROWSER["TURBOPACK_MESSAGE"] = "turbopack-message";
1816
+ HMR_ACTIONS_SENT_TO_BROWSER["SERVER_ERROR"] = "serverError";
1817
+ HMR_ACTIONS_SENT_TO_BROWSER["TURBOPACK_CONNECTED"] = "turbopack-connected";
1818
+ HMR_ACTIONS_SENT_TO_BROWSER["ISR_MANIFEST"] = "isrManifest";
1819
+ HMR_ACTIONS_SENT_TO_BROWSER["DEV_INDICATOR"] = "devIndicator";
1820
+ HMR_ACTIONS_SENT_TO_BROWSER["DEVTOOLS_CONFIG"] = "devtoolsConfig";
1821
+ return HMR_ACTIONS_SENT_TO_BROWSER;
1822
+ }({}); //# sourceMappingURL=hot-reloader-types.js.map
1823
+ }),
1824
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/dev/node-stack-frames.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1825
+ "use strict";
1826
+
1827
+ Object.defineProperty(exports, "__esModule", {
1828
+ value: true
1829
+ });
1830
+ Object.defineProperty(exports, "getServerError", {
1831
+ enumerable: true,
1832
+ get: function() {
1833
+ return getServerError;
1834
+ }
1835
+ });
1836
+ const _stacktraceparser = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js [client] (ecmascript)");
1837
+ const _errorsource = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/error-source.js [client] (ecmascript)");
1838
+ function getFilesystemFrame(frame) {
1839
+ const f = {
1840
+ ...frame
1841
+ };
1842
+ if (typeof f.file === 'string') {
1843
+ if (f.file.startsWith('/') || // Win32:
1844
+ /^[a-z]:\\/i.test(f.file) || // Win32 UNC:
1845
+ f.file.startsWith('\\\\')) {
1846
+ f.file = "file://".concat(f.file);
1847
+ }
1848
+ }
1849
+ return f;
1850
+ }
1851
+ function getServerError(error, type) {
1852
+ if (error.name === 'TurbopackInternalError') {
1853
+ // If this is an internal Turbopack error we shouldn't show internal details
1854
+ // to the user. These are written to a log file instead.
1855
+ const turbopackInternalError = Object.defineProperty(new Error('An unexpected Turbopack error occurred. Please see the output of `next dev` for more details.'), "__NEXT_ERROR_CODE", {
1856
+ value: "E167",
1857
+ enumerable: false,
1858
+ configurable: true
1859
+ });
1860
+ (0, _errorsource.decorateServerError)(turbopackInternalError, type);
1861
+ return turbopackInternalError;
1862
+ }
1863
+ let n;
1864
+ try {
1865
+ throw Object.defineProperty(new Error(error.message), "__NEXT_ERROR_CODE", {
1866
+ value: "E394",
1867
+ enumerable: false,
1868
+ configurable: true
1869
+ });
1870
+ } catch (e) {
1871
+ n = e;
1872
+ }
1873
+ n.name = error.name;
1874
+ try {
1875
+ n.stack = "".concat(n.toString(), "\n").concat((0, _stacktraceparser.parse)(error.stack).map(getFilesystemFrame).map((f)=>{
1876
+ let str = " at ".concat(f.methodName);
1877
+ if (f.file) {
1878
+ let loc = f.file;
1879
+ if (f.lineNumber) {
1880
+ loc += ":".concat(f.lineNumber);
1881
+ if (f.column) {
1882
+ loc += ":".concat(f.column);
1883
+ }
1884
+ }
1885
+ str += " (".concat(loc, ")");
1886
+ }
1887
+ return str;
1888
+ }).join('\n'));
1889
+ } catch (e) {
1890
+ n.stack = error.stack;
1891
+ }
1892
+ (0, _errorsource.decorateServerError)(n, type);
1893
+ return n;
1894
+ } //# sourceMappingURL=node-stack-frames.js.map
1895
+ }),
1896
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/request-meta.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1897
+ "use strict";
1898
+
1899
+ /* eslint-disable no-redeclare */ Object.defineProperty(exports, "__esModule", {
1900
+ value: true
1901
+ });
1902
+ 0 && (module.exports = {
1903
+ NEXT_REQUEST_META: null,
1904
+ addRequestMeta: null,
1905
+ getRequestMeta: null,
1906
+ removeRequestMeta: null,
1907
+ setRequestMeta: null
1908
+ });
1909
+ function _export(target, all) {
1910
+ for(var name in all)Object.defineProperty(target, name, {
1911
+ enumerable: true,
1912
+ get: all[name]
1913
+ });
1914
+ }
1915
+ _export(exports, {
1916
+ NEXT_REQUEST_META: function() {
1917
+ return NEXT_REQUEST_META;
1918
+ },
1919
+ addRequestMeta: function() {
1920
+ return addRequestMeta;
1921
+ },
1922
+ getRequestMeta: function() {
1923
+ return getRequestMeta;
1924
+ },
1925
+ removeRequestMeta: function() {
1926
+ return removeRequestMeta;
1927
+ },
1928
+ setRequestMeta: function() {
1929
+ return setRequestMeta;
1930
+ }
1931
+ });
1932
+ const NEXT_REQUEST_META = Symbol.for('NextInternalRequestMeta');
1933
+ function getRequestMeta(req, key) {
1934
+ const meta = req[NEXT_REQUEST_META] || {};
1935
+ return typeof key === 'string' ? meta[key] : meta;
1936
+ }
1937
+ function setRequestMeta(req, meta) {
1938
+ req[NEXT_REQUEST_META] = meta;
1939
+ return meta;
1940
+ }
1941
+ function addRequestMeta(request, key, value) {
1942
+ const meta = getRequestMeta(request);
1943
+ meta[key] = value;
1944
+ return setRequestMeta(request, meta);
1945
+ }
1946
+ function removeRequestMeta(request, key) {
1947
+ const meta = getRequestMeta(request);
1948
+ delete meta[key];
1949
+ return setRequestMeta(request, meta);
1950
+ } //# sourceMappingURL=request-meta.js.map
1951
+ }),
1952
+ "[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/pages/_error.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1953
+ "use strict";
1954
+
1955
+ Object.defineProperty(exports, "__esModule", {
1956
+ value: true
1957
+ });
1958
+ Object.defineProperty(exports, "default", {
1959
+ enumerable: true,
1960
+ get: function() {
1961
+ return Error;
1962
+ }
1963
+ });
1964
+ 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 [client] (ecmascript)");
1965
+ const _jsxruntime = __turbopack_context__.r("[project]/node_modules/.pnpm/react@19.1.1/node_modules/react/jsx-runtime.js [client] (ecmascript)");
1966
+ const _react = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/.pnpm/react@19.1.1/node_modules/react/index.js [client] (ecmascript)"));
1967
+ const _head = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/head.js [client] (ecmascript)"));
1968
+ const statusCodes = {
1969
+ 400: 'Bad Request',
1970
+ 404: 'This page could not be found',
1971
+ 405: 'Method Not Allowed',
1972
+ 500: 'Internal Server Error'
1973
+ };
1974
+ function _getInitialProps(param) {
1975
+ let { req, res, err } = param;
1976
+ const statusCode = res && res.statusCode ? res.statusCode : err ? err.statusCode : 404;
1977
+ let hostname;
1978
+ if (typeof window !== 'undefined') {
1979
+ hostname = window.location.hostname;
1980
+ } else if (req) {
1981
+ const { getRequestMeta } = __turbopack_context__.r("[project]/node_modules/.pnpm/next@15.5.2_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/server/request-meta.js [client] (ecmascript)");
1982
+ const initUrl = getRequestMeta(req, 'initURL');
1983
+ if (initUrl) {
1984
+ const url = new URL(initUrl);
1985
+ hostname = url.hostname;
1986
+ }
1987
+ }
1988
+ return {
1989
+ statusCode,
1990
+ hostname
1991
+ };
1992
+ }
1993
+ const styles = {
1994
+ error: {
1995
+ // https://github.com/sindresorhus/modern-normalize/blob/main/modern-normalize.css#L38-L52
1996
+ fontFamily: 'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',
1997
+ height: '100vh',
1998
+ textAlign: 'center',
1999
+ display: 'flex',
2000
+ flexDirection: 'column',
2001
+ alignItems: 'center',
2002
+ justifyContent: 'center'
2003
+ },
2004
+ desc: {
2005
+ lineHeight: '48px'
2006
+ },
2007
+ h1: {
2008
+ display: 'inline-block',
2009
+ margin: '0 20px 0 0',
2010
+ paddingRight: 23,
2011
+ fontSize: 24,
2012
+ fontWeight: 500,
2013
+ verticalAlign: 'top'
2014
+ },
2015
+ h2: {
2016
+ fontSize: 14,
2017
+ fontWeight: 400,
2018
+ lineHeight: '28px'
2019
+ },
2020
+ wrap: {
2021
+ display: 'inline-block'
2022
+ }
2023
+ };
2024
+ class Error extends _react.default.Component {
2025
+ render() {
2026
+ const { statusCode, withDarkMode = true } = this.props;
2027
+ const title = this.props.title || statusCodes[statusCode] || 'An unexpected error has occurred';
2028
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
2029
+ style: styles.error,
2030
+ children: [
2031
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_head.default, {
2032
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)("title", {
2033
+ children: statusCode ? statusCode + ": " + title : 'Application error: a client-side exception has occurred'
2034
+ })
2035
+ }),
2036
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
2037
+ style: styles.desc,
2038
+ children: [
2039
+ /*#__PURE__*/ (0, _jsxruntime.jsx)("style", {
2040
+ dangerouslySetInnerHTML: {
2041
+ /* CSS minified from
2042
+ body { margin: 0; color: #000; background: #fff; }
2043
+ .next-error-h1 {
2044
+ border-right: 1px solid rgba(0, 0, 0, .3);
2045
+ }
2046
+
2047
+ ${
2048
+ withDarkMode
2049
+ ? `@media (prefers-color-scheme: dark) {
2050
+ body { color: #fff; background: #000; }
2051
+ .next-error-h1 {
2052
+ border-right: 1px solid rgba(255, 255, 255, .3);
2053
+ }
2054
+ }`
2055
+ : ''
2056
+ }
2057
+ */ __html: "body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}" + (withDarkMode ? '@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}' : '')
2058
+ }
2059
+ }),
2060
+ statusCode ? /*#__PURE__*/ (0, _jsxruntime.jsx)("h1", {
2061
+ className: "next-error-h1",
2062
+ style: styles.h1,
2063
+ children: statusCode
2064
+ }) : null,
2065
+ /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
2066
+ style: styles.wrap,
2067
+ children: /*#__PURE__*/ (0, _jsxruntime.jsxs)("h2", {
2068
+ style: styles.h2,
2069
+ children: [
2070
+ this.props.title || statusCode ? title : /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
2071
+ children: [
2072
+ "Application error: a client-side exception has occurred",
2073
+ ' ',
2074
+ Boolean(this.props.hostname) && /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
2075
+ children: [
2076
+ "while loading ",
2077
+ this.props.hostname
2078
+ ]
2079
+ }),
2080
+ ' ',
2081
+ "(see the browser console for more information)"
2082
+ ]
2083
+ }),
2084
+ "."
2085
+ ]
2086
+ })
2087
+ })
2088
+ ]
2089
+ })
2090
+ ]
2091
+ });
2092
+ }
2093
+ }
2094
+ Error.displayName = 'ErrorPage';
2095
+ Error.getInitialProps = _getInitialProps;
2096
+ Error.origGetInitialProps = _getInitialProps;
2097
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2098
+ Object.defineProperty(exports.default, '__esModule', {
2099
+ value: true
2100
+ });
2101
+ Object.assign(exports.default, exports);
2102
+ module.exports = exports.default;
2103
+ } //# sourceMappingURL=_error.js.map
2104
+ }),
2105
+ ]);
2106
+
2107
+ //# sourceMappingURL=b5d7d_next_dist_bbef2511._.js.map