@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,4030 @@
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/client/portal/index.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
3
+ "use strict";
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ Object.defineProperty(exports, "Portal", {
9
+ enumerable: true,
10
+ get: function() {
11
+ return Portal;
12
+ }
13
+ });
14
+ const _react = __turbopack_context__.r("[project]/node_modules/.pnpm/react@19.1.1/node_modules/react/index.js [client] (ecmascript)");
15
+ const _reactdom = __turbopack_context__.r("[project]/node_modules/.pnpm/react-dom@19.1.1_react@19.1.1/node_modules/react-dom/index.js [client] (ecmascript)");
16
+ const Portal = (param)=>{
17
+ let { children, type } = param;
18
+ const [portalNode, setPortalNode] = (0, _react.useState)(null);
19
+ (0, _react.useEffect)(()=>{
20
+ const element = document.createElement(type);
21
+ document.body.appendChild(element);
22
+ setPortalNode(element);
23
+ return ()=>{
24
+ document.body.removeChild(element);
25
+ };
26
+ }, [
27
+ type
28
+ ]);
29
+ return portalNode ? /*#__PURE__*/ (0, _reactdom.createPortal)(children, portalNode) : null;
30
+ };
31
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
32
+ Object.defineProperty(exports.default, '__esModule', {
33
+ value: true
34
+ });
35
+ Object.assign(exports.default, exports);
36
+ module.exports = exports.default;
37
+ } //# sourceMappingURL=index.js.map
38
+ }),
39
+ "[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/set-attributes-from-props.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
40
+ "use strict";
41
+
42
+ Object.defineProperty(exports, "__esModule", {
43
+ value: true
44
+ });
45
+ Object.defineProperty(exports, "setAttributesFromProps", {
46
+ enumerable: true,
47
+ get: function() {
48
+ return setAttributesFromProps;
49
+ }
50
+ });
51
+ const DOMAttributeNames = {
52
+ acceptCharset: 'accept-charset',
53
+ className: 'class',
54
+ htmlFor: 'for',
55
+ httpEquiv: 'http-equiv',
56
+ noModule: 'noModule'
57
+ };
58
+ const ignoreProps = [
59
+ 'onLoad',
60
+ 'onReady',
61
+ 'dangerouslySetInnerHTML',
62
+ 'children',
63
+ 'onError',
64
+ 'strategy',
65
+ 'stylesheets'
66
+ ];
67
+ function isBooleanScriptAttribute(attr) {
68
+ return [
69
+ 'async',
70
+ 'defer',
71
+ 'noModule'
72
+ ].includes(attr);
73
+ }
74
+ function setAttributesFromProps(el, props) {
75
+ for (const [p, value] of Object.entries(props)){
76
+ if (!props.hasOwnProperty(p)) continue;
77
+ if (ignoreProps.includes(p)) continue;
78
+ // we don't render undefined props to the DOM
79
+ if (value === undefined) {
80
+ continue;
81
+ }
82
+ const attr = DOMAttributeNames[p] || p.toLowerCase();
83
+ if (el.tagName === 'SCRIPT' && isBooleanScriptAttribute(attr)) {
84
+ // Correctly assign boolean script attributes
85
+ // https://github.com/vercel/next.js/pull/20748
86
+ ;
87
+ el[attr] = !!value;
88
+ } else {
89
+ el.setAttribute(attr, String(value));
90
+ }
91
+ // Remove falsy non-zero boolean attributes so they are correctly interpreted
92
+ // (e.g. if we set them to false, this coerces to the string "false", which the browser interprets as true)
93
+ if (value === false || el.tagName === 'SCRIPT' && isBooleanScriptAttribute(attr) && (!value || value === 'false')) {
94
+ // Call setAttribute before, as we need to set and unset the attribute to override force async:
95
+ // https://html.spec.whatwg.org/multipage/scripting.html#script-force-async
96
+ el.setAttribute(attr, '');
97
+ el.removeAttribute(attr);
98
+ }
99
+ }
100
+ }
101
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
102
+ Object.defineProperty(exports.default, '__esModule', {
103
+ value: true
104
+ });
105
+ Object.assign(exports.default, exports);
106
+ module.exports = exports.default;
107
+ } //# sourceMappingURL=set-attributes-from-props.js.map
108
+ }),
109
+ "[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/head-manager.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
110
+ "use strict";
111
+
112
+ Object.defineProperty(exports, "__esModule", {
113
+ value: true
114
+ });
115
+ 0 && (module.exports = {
116
+ default: null,
117
+ isEqualNode: null
118
+ });
119
+ function _export(target, all) {
120
+ for(var name in all)Object.defineProperty(target, name, {
121
+ enumerable: true,
122
+ get: all[name]
123
+ });
124
+ }
125
+ _export(exports, {
126
+ default: function() {
127
+ return initHeadManager;
128
+ },
129
+ isEqualNode: function() {
130
+ return isEqualNode;
131
+ }
132
+ });
133
+ const _setattributesfromprops = __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/set-attributes-from-props.js [client] (ecmascript)");
134
+ function reactElementToDOM(param) {
135
+ let { type, props } = param;
136
+ const el = document.createElement(type);
137
+ (0, _setattributesfromprops.setAttributesFromProps)(el, props);
138
+ const { children, dangerouslySetInnerHTML } = props;
139
+ if (dangerouslySetInnerHTML) {
140
+ el.innerHTML = dangerouslySetInnerHTML.__html || '';
141
+ } else if (children) {
142
+ el.textContent = typeof children === 'string' ? children : Array.isArray(children) ? children.join('') : '';
143
+ }
144
+ return el;
145
+ }
146
+ function isEqualNode(oldTag, newTag) {
147
+ if (oldTag instanceof HTMLElement && newTag instanceof HTMLElement) {
148
+ const nonce = newTag.getAttribute('nonce');
149
+ // Only strip the nonce if `oldTag` has had it stripped. An element's nonce attribute will not
150
+ // be stripped if there is no content security policy response header that includes a nonce.
151
+ if (nonce && !oldTag.getAttribute('nonce')) {
152
+ const cloneTag = newTag.cloneNode(true);
153
+ cloneTag.setAttribute('nonce', '');
154
+ cloneTag.nonce = nonce;
155
+ return nonce === oldTag.nonce && oldTag.isEqualNode(cloneTag);
156
+ }
157
+ }
158
+ return oldTag.isEqualNode(newTag);
159
+ }
160
+ function updateElements(type, components) {
161
+ const headEl = document.querySelector('head');
162
+ if (!headEl) return;
163
+ const oldTags = new Set(headEl.querySelectorAll("" + type + "[data-next-head]"));
164
+ if (type === 'meta') {
165
+ const metaCharset = headEl.querySelector('meta[charset]');
166
+ if (metaCharset !== null) {
167
+ oldTags.add(metaCharset);
168
+ }
169
+ }
170
+ const newTags = [];
171
+ for(let i = 0; i < components.length; i++){
172
+ const component = components[i];
173
+ const newTag = reactElementToDOM(component);
174
+ newTag.setAttribute('data-next-head', '');
175
+ let isNew = true;
176
+ for (const oldTag of oldTags){
177
+ if (isEqualNode(oldTag, newTag)) {
178
+ oldTags.delete(oldTag);
179
+ isNew = false;
180
+ break;
181
+ }
182
+ }
183
+ if (isNew) {
184
+ newTags.push(newTag);
185
+ }
186
+ }
187
+ for (const oldTag of oldTags){
188
+ var _oldTag_parentNode;
189
+ (_oldTag_parentNode = oldTag.parentNode) == null ? void 0 : _oldTag_parentNode.removeChild(oldTag);
190
+ }
191
+ for (const newTag of newTags){
192
+ // meta[charset] must be first element so special case
193
+ if (newTag.tagName.toLowerCase() === 'meta' && newTag.getAttribute('charset') !== null) {
194
+ headEl.prepend(newTag);
195
+ }
196
+ headEl.appendChild(newTag);
197
+ }
198
+ }
199
+ function initHeadManager() {
200
+ return {
201
+ mountedInstances: new Set(),
202
+ updateHead: (head)=>{
203
+ const tags = {};
204
+ head.forEach((h)=>{
205
+ if (// it won't be inlined. In this case revert to the original behavior
206
+ h.type === 'link' && h.props['data-optimized-fonts']) {
207
+ if (document.querySelector('style[data-href="' + h.props['data-href'] + '"]')) {
208
+ return;
209
+ } else {
210
+ h.props.href = h.props['data-href'];
211
+ h.props['data-href'] = undefined;
212
+ }
213
+ }
214
+ const components = tags[h.type] || [];
215
+ components.push(h);
216
+ tags[h.type] = components;
217
+ });
218
+ const titleComponent = tags.title ? tags.title[0] : null;
219
+ let title = '';
220
+ if (titleComponent) {
221
+ const { children } = titleComponent.props;
222
+ title = typeof children === 'string' ? children : Array.isArray(children) ? children.join('') : '';
223
+ }
224
+ if (title !== document.title) document.title = title;
225
+ [
226
+ 'meta',
227
+ 'base',
228
+ 'link',
229
+ 'style',
230
+ 'script'
231
+ ].forEach((type)=>{
232
+ updateElements(type, tags[type] || []);
233
+ });
234
+ }
235
+ };
236
+ }
237
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
238
+ Object.defineProperty(exports.default, '__esModule', {
239
+ value: true
240
+ });
241
+ Object.assign(exports.default, exports);
242
+ module.exports = exports.default;
243
+ } //# sourceMappingURL=head-manager.js.map
244
+ }),
245
+ "[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/normalize-trailing-slash.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
246
+ "use strict";
247
+
248
+ 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)");
249
+ "use strict";
250
+ Object.defineProperty(exports, "__esModule", {
251
+ value: true
252
+ });
253
+ Object.defineProperty(exports, "normalizePathTrailingSlash", {
254
+ enumerable: true,
255
+ get: function() {
256
+ return normalizePathTrailingSlash;
257
+ }
258
+ });
259
+ const _removetrailingslash = __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/router/utils/remove-trailing-slash.js [client] (ecmascript)");
260
+ const _parsepath = __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/router/utils/parse-path.js [client] (ecmascript)");
261
+ const normalizePathTrailingSlash = (path)=>{
262
+ if (!path.startsWith('/') || ("TURBOPACK compile-time value", void 0)) {
263
+ return path;
264
+ }
265
+ const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
266
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
267
+ ;
268
+ return "" + (0, _removetrailingslash.removeTrailingSlash)(pathname) + query + hash;
269
+ };
270
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
271
+ Object.defineProperty(exports.default, '__esModule', {
272
+ value: true
273
+ });
274
+ Object.assign(exports.default, exports);
275
+ module.exports = exports.default;
276
+ } //# sourceMappingURL=normalize-trailing-slash.js.map
277
+ }),
278
+ "[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/add-base-path.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
279
+ "use strict";
280
+
281
+ 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)");
282
+ "use strict";
283
+ Object.defineProperty(exports, "__esModule", {
284
+ value: true
285
+ });
286
+ Object.defineProperty(exports, "addBasePath", {
287
+ enumerable: true,
288
+ get: function() {
289
+ return addBasePath;
290
+ }
291
+ });
292
+ const _addpathprefix = __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/router/utils/add-path-prefix.js [client] (ecmascript)");
293
+ const _normalizetrailingslash = __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/normalize-trailing-slash.js [client] (ecmascript)");
294
+ const basePath = ("TURBOPACK compile-time value", "") || '';
295
+ function addBasePath(path, required) {
296
+ return (0, _normalizetrailingslash.normalizePathTrailingSlash)(("TURBOPACK compile-time falsy", 0) ? "TURBOPACK unreachable" : (0, _addpathprefix.addPathPrefix)(path, basePath));
297
+ }
298
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
299
+ Object.defineProperty(exports.default, '__esModule', {
300
+ value: true
301
+ });
302
+ Object.assign(exports.default, exports);
303
+ module.exports = exports.default;
304
+ } //# sourceMappingURL=add-base-path.js.map
305
+ }),
306
+ "[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/add-locale.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
307
+ "use strict";
308
+
309
+ 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)");
310
+ "use strict";
311
+ Object.defineProperty(exports, "__esModule", {
312
+ value: true
313
+ });
314
+ Object.defineProperty(exports, "addLocale", {
315
+ enumerable: true,
316
+ get: function() {
317
+ return addLocale;
318
+ }
319
+ });
320
+ const _normalizetrailingslash = __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/normalize-trailing-slash.js [client] (ecmascript)");
321
+ const addLocale = function(path) {
322
+ for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
323
+ args[_key - 1] = arguments[_key];
324
+ }
325
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
326
+ ;
327
+ return path;
328
+ };
329
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
330
+ Object.defineProperty(exports.default, '__esModule', {
331
+ value: true
332
+ });
333
+ Object.assign(exports.default, exports);
334
+ module.exports = exports.default;
335
+ } //# sourceMappingURL=add-locale.js.map
336
+ }),
337
+ "[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/trusted-types.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
338
+ "use strict";
339
+
340
+ /**
341
+ * Stores the Trusted Types Policy. Starts as undefined and can be set to null
342
+ * if Trusted Types is not supported in the browser.
343
+ */ Object.defineProperty(exports, "__esModule", {
344
+ value: true
345
+ });
346
+ Object.defineProperty(exports, "__unsafeCreateTrustedScriptURL", {
347
+ enumerable: true,
348
+ get: function() {
349
+ return __unsafeCreateTrustedScriptURL;
350
+ }
351
+ });
352
+ let policy;
353
+ /**
354
+ * Getter for the Trusted Types Policy. If it is undefined, it is instantiated
355
+ * here or set to null if Trusted Types is not supported in the browser.
356
+ */ function getPolicy() {
357
+ if (typeof policy === 'undefined' && typeof window !== 'undefined') {
358
+ var _window_trustedTypes;
359
+ policy = ((_window_trustedTypes = window.trustedTypes) == null ? void 0 : _window_trustedTypes.createPolicy('nextjs', {
360
+ createHTML: (input)=>input,
361
+ createScript: (input)=>input,
362
+ createScriptURL: (input)=>input
363
+ })) || null;
364
+ }
365
+ return policy;
366
+ }
367
+ function __unsafeCreateTrustedScriptURL(url) {
368
+ var _getPolicy;
369
+ return ((_getPolicy = getPolicy()) == null ? void 0 : _getPolicy.createScriptURL(url)) || url;
370
+ }
371
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
372
+ Object.defineProperty(exports.default, '__esModule', {
373
+ value: true
374
+ });
375
+ Object.assign(exports.default, exports);
376
+ module.exports = exports.default;
377
+ } //# sourceMappingURL=trusted-types.js.map
378
+ }),
379
+ "[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/request-idle-callback.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
380
+ "use strict";
381
+
382
+ Object.defineProperty(exports, "__esModule", {
383
+ value: true
384
+ });
385
+ 0 && (module.exports = {
386
+ cancelIdleCallback: null,
387
+ requestIdleCallback: null
388
+ });
389
+ function _export(target, all) {
390
+ for(var name in all)Object.defineProperty(target, name, {
391
+ enumerable: true,
392
+ get: all[name]
393
+ });
394
+ }
395
+ _export(exports, {
396
+ cancelIdleCallback: function() {
397
+ return cancelIdleCallback;
398
+ },
399
+ requestIdleCallback: function() {
400
+ return requestIdleCallback;
401
+ }
402
+ });
403
+ const requestIdleCallback = typeof self !== 'undefined' && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(cb) {
404
+ let start = Date.now();
405
+ return self.setTimeout(function() {
406
+ cb({
407
+ didTimeout: false,
408
+ timeRemaining: function() {
409
+ return Math.max(0, 50 - (Date.now() - start));
410
+ }
411
+ });
412
+ }, 1);
413
+ };
414
+ const cancelIdleCallback = typeof self !== 'undefined' && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(id) {
415
+ return clearTimeout(id);
416
+ };
417
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
418
+ Object.defineProperty(exports.default, '__esModule', {
419
+ value: true
420
+ });
421
+ Object.assign(exports.default, exports);
422
+ module.exports = exports.default;
423
+ } //# sourceMappingURL=request-idle-callback.js.map
424
+ }),
425
+ "[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/route-loader.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
426
+ "use strict";
427
+
428
+ 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)");
429
+ "use strict";
430
+ Object.defineProperty(exports, "__esModule", {
431
+ value: true
432
+ });
433
+ 0 && (module.exports = {
434
+ createRouteLoader: null,
435
+ getClientBuildManifest: null,
436
+ isAssetError: null,
437
+ markAssetError: null
438
+ });
439
+ function _export(target, all) {
440
+ for(var name in all)Object.defineProperty(target, name, {
441
+ enumerable: true,
442
+ get: all[name]
443
+ });
444
+ }
445
+ _export(exports, {
446
+ createRouteLoader: function() {
447
+ return createRouteLoader;
448
+ },
449
+ getClientBuildManifest: function() {
450
+ return getClientBuildManifest;
451
+ },
452
+ isAssetError: function() {
453
+ return isAssetError;
454
+ },
455
+ markAssetError: function() {
456
+ return markAssetError;
457
+ }
458
+ });
459
+ 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)");
460
+ const _getassetpathfromroute = /*#__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/router/utils/get-asset-path-from-route.js [client] (ecmascript)"));
461
+ const _trustedtypes = __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/trusted-types.js [client] (ecmascript)");
462
+ const _requestidlecallback = __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/request-idle-callback.js [client] (ecmascript)");
463
+ const _deploymentid = __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/build/deployment-id.js [client] (ecmascript)");
464
+ const _encodeuripath = __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/encode-uri-path.js [client] (ecmascript)");
465
+ // 3.8s was arbitrarily chosen as it's what https://web.dev/interactive
466
+ // considers as "Good" time-to-interactive. We must assume something went
467
+ // wrong beyond this point, and then fall-back to a full page transition to
468
+ // show the user something of value.
469
+ const MS_MAX_IDLE_DELAY = 3800;
470
+ function withFuture(key, map, generator) {
471
+ let entry = map.get(key);
472
+ if (entry) {
473
+ if ('future' in entry) {
474
+ return entry.future;
475
+ }
476
+ return Promise.resolve(entry);
477
+ }
478
+ let resolver;
479
+ const prom = new Promise((resolve)=>{
480
+ resolver = resolve;
481
+ });
482
+ map.set(key, {
483
+ resolve: resolver,
484
+ future: prom
485
+ });
486
+ return generator ? generator().then((value)=>{
487
+ resolver(value);
488
+ return value;
489
+ }).catch((err)=>{
490
+ map.delete(key);
491
+ throw err;
492
+ }) : prom;
493
+ }
494
+ const ASSET_LOAD_ERROR = Symbol('ASSET_LOAD_ERROR');
495
+ function markAssetError(err) {
496
+ return Object.defineProperty(err, ASSET_LOAD_ERROR, {});
497
+ }
498
+ function isAssetError(err) {
499
+ return err && ASSET_LOAD_ERROR in err;
500
+ }
501
+ function hasPrefetch(link) {
502
+ try {
503
+ link = document.createElement('link');
504
+ return(// with relList.support
505
+ !!window.MSInputMethodContext && !!document.documentMode || link.relList.supports('prefetch'));
506
+ } catch (e) {
507
+ return false;
508
+ }
509
+ }
510
+ const canPrefetch = hasPrefetch();
511
+ const getAssetQueryString = ()=>{
512
+ return (0, _deploymentid.getDeploymentIdQueryOrEmptyString)();
513
+ };
514
+ function prefetchViaDom(href, as, link) {
515
+ return new Promise((resolve, reject)=>{
516
+ const selector = '\n link[rel="prefetch"][href^="' + href + '"],\n link[rel="preload"][href^="' + href + '"],\n script[src^="' + href + '"]';
517
+ if (document.querySelector(selector)) {
518
+ return resolve();
519
+ }
520
+ link = document.createElement('link');
521
+ // The order of property assignment here is intentional:
522
+ if (as) link.as = as;
523
+ link.rel = "prefetch";
524
+ link.crossOrigin = ("TURBOPACK compile-time value", void 0);
525
+ link.onload = resolve;
526
+ link.onerror = ()=>reject(markAssetError(Object.defineProperty(new Error("Failed to prefetch: " + href), "__NEXT_ERROR_CODE", {
527
+ value: "E268",
528
+ enumerable: false,
529
+ configurable: true
530
+ })));
531
+ // `href` should always be last:
532
+ link.href = href;
533
+ document.head.appendChild(link);
534
+ });
535
+ }
536
+ function appendScript(src, script) {
537
+ return new Promise((resolve, reject)=>{
538
+ script = document.createElement('script');
539
+ // The order of property assignment here is intentional.
540
+ // 1. Setup success/failure hooks in case the browser synchronously
541
+ // executes when `src` is set.
542
+ script.onload = resolve;
543
+ script.onerror = ()=>reject(markAssetError(Object.defineProperty(new Error("Failed to load script: " + src), "__NEXT_ERROR_CODE", {
544
+ value: "E74",
545
+ enumerable: false,
546
+ configurable: true
547
+ })));
548
+ // 2. Configure the cross-origin attribute before setting `src` in case the
549
+ // browser begins to fetch.
550
+ script.crossOrigin = ("TURBOPACK compile-time value", void 0);
551
+ // 3. Finally, set the source and inject into the DOM in case the child
552
+ // must be appended for fetching to start.
553
+ script.src = src;
554
+ document.body.appendChild(script);
555
+ });
556
+ }
557
+ // We wait for pages to be built in dev before we start the route transition
558
+ // timeout to prevent an un-necessary hard navigation in development.
559
+ let devBuildPromise;
560
+ // Resolve a promise that times out after given amount of milliseconds.
561
+ function resolvePromiseWithTimeout(p, ms, err) {
562
+ return new Promise((resolve, reject)=>{
563
+ let cancelled = false;
564
+ p.then((r)=>{
565
+ // Resolved, cancel the timeout
566
+ cancelled = true;
567
+ resolve(r);
568
+ }).catch(reject);
569
+ // We wrap these checks separately for better dead-code elimination in
570
+ // production bundles.
571
+ if ("TURBOPACK compile-time truthy", 1) {
572
+ ;
573
+ (devBuildPromise || Promise.resolve()).then(()=>{
574
+ (0, _requestidlecallback.requestIdleCallback)(()=>setTimeout(()=>{
575
+ if (!cancelled) {
576
+ reject(err);
577
+ }
578
+ }, ms));
579
+ });
580
+ }
581
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
582
+ ;
583
+ });
584
+ }
585
+ function getClientBuildManifest() {
586
+ if (self.__BUILD_MANIFEST) {
587
+ return Promise.resolve(self.__BUILD_MANIFEST);
588
+ }
589
+ const onBuildManifest = new Promise((resolve)=>{
590
+ // Mandatory because this is not concurrent safe:
591
+ const cb = self.__BUILD_MANIFEST_CB;
592
+ self.__BUILD_MANIFEST_CB = ()=>{
593
+ resolve(self.__BUILD_MANIFEST);
594
+ cb && cb();
595
+ };
596
+ });
597
+ return resolvePromiseWithTimeout(onBuildManifest, MS_MAX_IDLE_DELAY, markAssetError(Object.defineProperty(new Error('Failed to load client build manifest'), "__NEXT_ERROR_CODE", {
598
+ value: "E273",
599
+ enumerable: false,
600
+ configurable: true
601
+ })));
602
+ }
603
+ function getFilesForRoute(assetPrefix, route) {
604
+ if ("TURBOPACK compile-time truthy", 1) {
605
+ const scriptUrl = assetPrefix + '/_next/static/chunks/pages' + (0, _encodeuripath.encodeURIPath)((0, _getassetpathfromroute.default)(route, '.js')) + getAssetQueryString();
606
+ return Promise.resolve({
607
+ scripts: [
608
+ (0, _trustedtypes.__unsafeCreateTrustedScriptURL)(scriptUrl)
609
+ ],
610
+ // Styles are handled by `style-loader` in development:
611
+ css: []
612
+ });
613
+ }
614
+ //TURBOPACK unreachable
615
+ ;
616
+ }
617
+ function createRouteLoader(assetPrefix) {
618
+ const entrypoints = new Map();
619
+ const loadedScripts = new Map();
620
+ const styleSheets = new Map();
621
+ const routes = new Map();
622
+ function maybeExecuteScript(src) {
623
+ // With HMR we might need to "reload" scripts when they are
624
+ // disposed and readded. Executing scripts twice has no functional
625
+ // differences
626
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
627
+ ;
628
+ else {
629
+ return appendScript(src);
630
+ }
631
+ }
632
+ function fetchStyleSheet(href) {
633
+ let prom = styleSheets.get(href);
634
+ if (prom) {
635
+ return prom;
636
+ }
637
+ styleSheets.set(href, prom = fetch(href, {
638
+ credentials: 'same-origin'
639
+ }).then((res)=>{
640
+ if (!res.ok) {
641
+ throw Object.defineProperty(new Error("Failed to load stylesheet: " + href), "__NEXT_ERROR_CODE", {
642
+ value: "E189",
643
+ enumerable: false,
644
+ configurable: true
645
+ });
646
+ }
647
+ return res.text().then((text)=>({
648
+ href: href,
649
+ content: text
650
+ }));
651
+ }).catch((err)=>{
652
+ throw markAssetError(err);
653
+ }));
654
+ return prom;
655
+ }
656
+ return {
657
+ whenEntrypoint (route) {
658
+ return withFuture(route, entrypoints);
659
+ },
660
+ onEntrypoint (route, execute) {
661
+ ;
662
+ (execute ? Promise.resolve().then(()=>execute()).then((exports1)=>({
663
+ component: exports1 && exports1.default || exports1,
664
+ exports: exports1
665
+ }), (err)=>({
666
+ error: err
667
+ })) : Promise.resolve(undefined)).then((input)=>{
668
+ const old = entrypoints.get(route);
669
+ if (old && 'resolve' in old) {
670
+ if (input) {
671
+ entrypoints.set(route, input);
672
+ old.resolve(input);
673
+ }
674
+ } else {
675
+ if (input) {
676
+ entrypoints.set(route, input);
677
+ } else {
678
+ entrypoints.delete(route);
679
+ }
680
+ // when this entrypoint has been resolved before
681
+ // the route is outdated and we want to invalidate
682
+ // this cache entry
683
+ routes.delete(route);
684
+ }
685
+ });
686
+ },
687
+ loadRoute (route, prefetch) {
688
+ return withFuture(route, routes, ()=>{
689
+ let devBuildPromiseResolve;
690
+ if ("TURBOPACK compile-time truthy", 1) {
691
+ devBuildPromise = new Promise((resolve)=>{
692
+ devBuildPromiseResolve = resolve;
693
+ });
694
+ }
695
+ return resolvePromiseWithTimeout(getFilesForRoute(assetPrefix, route).then((param)=>{
696
+ let { scripts, css } = param;
697
+ return Promise.all([
698
+ entrypoints.has(route) ? [] : Promise.all(scripts.map(maybeExecuteScript)),
699
+ Promise.all(css.map(fetchStyleSheet))
700
+ ]);
701
+ }).then((res)=>{
702
+ return this.whenEntrypoint(route).then((entrypoint)=>({
703
+ entrypoint,
704
+ styles: res[1]
705
+ }));
706
+ }), MS_MAX_IDLE_DELAY, markAssetError(Object.defineProperty(new Error("Route did not complete loading: " + route), "__NEXT_ERROR_CODE", {
707
+ value: "E12",
708
+ enumerable: false,
709
+ configurable: true
710
+ }))).then((param)=>{
711
+ let { entrypoint, styles } = param;
712
+ const res = Object.assign({
713
+ styles: styles
714
+ }, entrypoint);
715
+ return 'error' in entrypoint ? entrypoint : res;
716
+ }).catch((err)=>{
717
+ if (prefetch) {
718
+ // we don't want to cache errors during prefetch
719
+ throw err;
720
+ }
721
+ return {
722
+ error: err
723
+ };
724
+ }).finally(()=>devBuildPromiseResolve == null ? void 0 : devBuildPromiseResolve());
725
+ });
726
+ },
727
+ prefetch (route) {
728
+ // https://github.com/GoogleChromeLabs/quicklink/blob/453a661fa1fa940e2d2e044452398e38c67a98fb/src/index.mjs#L115-L118
729
+ // License: Apache 2.0
730
+ let cn;
731
+ if (cn = navigator.connection) {
732
+ // Don't prefetch if using 2G or if Save-Data is enabled.
733
+ if (cn.saveData || /2g/.test(cn.effectiveType)) return Promise.resolve();
734
+ }
735
+ return getFilesForRoute(assetPrefix, route).then((output)=>Promise.all(canPrefetch ? output.scripts.map((script)=>prefetchViaDom(script.toString(), 'script')) : [])).then(()=>{
736
+ (0, _requestidlecallback.requestIdleCallback)(()=>this.loadRoute(route, true).catch(()=>{}));
737
+ }).catch(()=>{});
738
+ }
739
+ };
740
+ }
741
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
742
+ Object.defineProperty(exports.default, '__esModule', {
743
+ value: true
744
+ });
745
+ Object.assign(exports.default, exports);
746
+ module.exports = exports.default;
747
+ } //# sourceMappingURL=route-loader.js.map
748
+ }),
749
+ "[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/page-loader.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
750
+ "use strict";
751
+
752
+ 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)");
753
+ "use strict";
754
+ Object.defineProperty(exports, "__esModule", {
755
+ value: true
756
+ });
757
+ Object.defineProperty(exports, "default", {
758
+ enumerable: true,
759
+ get: function() {
760
+ return PageLoader;
761
+ }
762
+ });
763
+ 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)");
764
+ const _addbasepath = __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/add-base-path.js [client] (ecmascript)");
765
+ const _interpolateas = __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/router/utils/interpolate-as.js [client] (ecmascript)");
766
+ const _getassetpathfromroute = /*#__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/router/utils/get-asset-path-from-route.js [client] (ecmascript)"));
767
+ const _addlocale = __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/add-locale.js [client] (ecmascript)");
768
+ const _isdynamic = __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/router/utils/is-dynamic.js [client] (ecmascript)");
769
+ const _parserelativeurl = __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/router/utils/parse-relative-url.js [client] (ecmascript)");
770
+ const _removetrailingslash = __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/router/utils/remove-trailing-slash.js [client] (ecmascript)");
771
+ const _routeloader = __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/route-loader.js [client] (ecmascript)");
772
+ const _constants = __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/constants.js [client] (ecmascript)");
773
+ class PageLoader {
774
+ getPageList() {
775
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
776
+ ;
777
+ else {
778
+ if (window.__DEV_PAGES_MANIFEST) {
779
+ return window.__DEV_PAGES_MANIFEST.pages;
780
+ } else {
781
+ this.promisedDevPagesManifest || (this.promisedDevPagesManifest = fetch(this.assetPrefix + "/_next/static/development/" + _constants.DEV_CLIENT_PAGES_MANIFEST, {
782
+ credentials: 'same-origin'
783
+ }).then((res)=>res.json()).then((manifest)=>{
784
+ window.__DEV_PAGES_MANIFEST = manifest;
785
+ return manifest.pages;
786
+ }).catch((err)=>{
787
+ console.log("Failed to fetch devPagesManifest:", err);
788
+ throw Object.defineProperty(new Error("Failed to fetch _devPagesManifest.json. Is something blocking that network request?\n" + 'Read more: https://nextjs.org/docs/messages/failed-to-fetch-devpagesmanifest'), "__NEXT_ERROR_CODE", {
789
+ value: "E423",
790
+ enumerable: false,
791
+ configurable: true
792
+ });
793
+ }));
794
+ return this.promisedDevPagesManifest;
795
+ }
796
+ }
797
+ }
798
+ getMiddleware() {
799
+ // Webpack production
800
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
801
+ ;
802
+ else if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
803
+ ;
804
+ else {
805
+ if (window.__DEV_MIDDLEWARE_MATCHERS) {
806
+ return window.__DEV_MIDDLEWARE_MATCHERS;
807
+ } else {
808
+ if (!this.promisedMiddlewareMatchers) {
809
+ // TODO: Decide what should happen when fetching fails instead of asserting
810
+ // @ts-ignore
811
+ this.promisedMiddlewareMatchers = fetch(this.assetPrefix + "/_next/static/" + this.buildId + "/" + _constants.DEV_CLIENT_MIDDLEWARE_MANIFEST, {
812
+ credentials: 'same-origin'
813
+ }).then((res)=>res.json()).then((matchers)=>{
814
+ window.__DEV_MIDDLEWARE_MATCHERS = matchers;
815
+ return matchers;
816
+ }).catch((err)=>{
817
+ console.log("Failed to fetch _devMiddlewareManifest", err);
818
+ });
819
+ }
820
+ // TODO Remove this assertion as this could be undefined
821
+ return this.promisedMiddlewareMatchers;
822
+ }
823
+ }
824
+ }
825
+ getDataHref(params) {
826
+ const { asPath, href, locale } = params;
827
+ const { pathname: hrefPathname, query, search } = (0, _parserelativeurl.parseRelativeUrl)(href);
828
+ const { pathname: asPathname } = (0, _parserelativeurl.parseRelativeUrl)(asPath);
829
+ const route = (0, _removetrailingslash.removeTrailingSlash)(hrefPathname);
830
+ if (route[0] !== '/') {
831
+ throw Object.defineProperty(new Error('Route name should start with a "/", got "' + route + '"'), "__NEXT_ERROR_CODE", {
832
+ value: "E303",
833
+ enumerable: false,
834
+ configurable: true
835
+ });
836
+ }
837
+ const getHrefForSlug = (path)=>{
838
+ const dataRoute = (0, _getassetpathfromroute.default)((0, _removetrailingslash.removeTrailingSlash)((0, _addlocale.addLocale)(path, locale)), '.json');
839
+ return (0, _addbasepath.addBasePath)("/_next/data/" + this.buildId + dataRoute + search, true);
840
+ };
841
+ return getHrefForSlug(params.skipInterpolation ? asPathname : (0, _isdynamic.isDynamicRoute)(route) ? (0, _interpolateas.interpolateAs)(hrefPathname, asPathname, query).result : route);
842
+ }
843
+ _isSsg(/** the route (file-system path) */ route) {
844
+ return this.promisedSsgManifest.then((manifest)=>manifest.has(route));
845
+ }
846
+ loadPage(route) {
847
+ return this.routeLoader.loadRoute(route).then((res)=>{
848
+ if ('component' in res) {
849
+ return {
850
+ page: res.component,
851
+ mod: res.exports,
852
+ styleSheets: res.styles.map((o)=>({
853
+ href: o.href,
854
+ text: o.content
855
+ }))
856
+ };
857
+ }
858
+ throw res.error;
859
+ });
860
+ }
861
+ prefetch(route) {
862
+ return this.routeLoader.prefetch(route);
863
+ }
864
+ constructor(buildId, assetPrefix){
865
+ this.routeLoader = (0, _routeloader.createRouteLoader)(assetPrefix);
866
+ this.buildId = buildId;
867
+ this.assetPrefix = assetPrefix;
868
+ this.promisedSsgManifest = new Promise((resolve)=>{
869
+ if (window.__SSG_MANIFEST) {
870
+ resolve(window.__SSG_MANIFEST);
871
+ } else {
872
+ window.__SSG_MANIFEST_CB = ()=>{
873
+ resolve(window.__SSG_MANIFEST);
874
+ };
875
+ }
876
+ });
877
+ }
878
+ }
879
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
880
+ Object.defineProperty(exports.default, '__esModule', {
881
+ value: true
882
+ });
883
+ Object.assign(exports.default, exports);
884
+ module.exports = exports.default;
885
+ } //# sourceMappingURL=page-loader.js.map
886
+ }),
887
+ "[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/script.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
888
+ "use strict";
889
+
890
+ Object.defineProperty(exports, "__esModule", {
891
+ value: true
892
+ });
893
+ 0 && (module.exports = {
894
+ default: null,
895
+ handleClientScriptLoad: null,
896
+ initScriptLoader: null
897
+ });
898
+ function _export(target, all) {
899
+ for(var name in all)Object.defineProperty(target, name, {
900
+ enumerable: true,
901
+ get: all[name]
902
+ });
903
+ }
904
+ _export(exports, {
905
+ default: function() {
906
+ return _default;
907
+ },
908
+ handleClientScriptLoad: function() {
909
+ return handleClientScriptLoad;
910
+ },
911
+ initScriptLoader: function() {
912
+ return initScriptLoader;
913
+ }
914
+ });
915
+ 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)");
916
+ const _interop_require_wildcard = __turbopack_context__.r("[project]/node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs [client] (ecmascript)");
917
+ const _jsxruntime = __turbopack_context__.r("[project]/node_modules/.pnpm/react@19.1.1/node_modules/react/jsx-runtime.js [client] (ecmascript)");
918
+ const _reactdom = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/.pnpm/react-dom@19.1.1_react@19.1.1/node_modules/react-dom/index.js [client] (ecmascript)"));
919
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(__turbopack_context__.r("[project]/node_modules/.pnpm/react@19.1.1/node_modules/react/index.js [client] (ecmascript)"));
920
+ const _headmanagercontextsharedruntime = __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-manager-context.shared-runtime.js [client] (ecmascript)");
921
+ const _setattributesfromprops = __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/set-attributes-from-props.js [client] (ecmascript)");
922
+ const _requestidlecallback = __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/request-idle-callback.js [client] (ecmascript)");
923
+ const ScriptCache = new Map();
924
+ const LoadCache = new Set();
925
+ const insertStylesheets = (stylesheets)=>{
926
+ // Case 1: Styles for afterInteractive/lazyOnload with appDir injected via handleClientScriptLoad
927
+ //
928
+ // Using ReactDOM.preinit to feature detect appDir and inject styles
929
+ // Stylesheets might have already been loaded if initialized with Script component
930
+ // Re-inject styles here to handle scripts loaded via handleClientScriptLoad
931
+ // ReactDOM.preinit handles dedup and ensures the styles are loaded only once
932
+ if (_reactdom.default.preinit) {
933
+ stylesheets.forEach((stylesheet)=>{
934
+ _reactdom.default.preinit(stylesheet, {
935
+ as: 'style'
936
+ });
937
+ });
938
+ return;
939
+ }
940
+ // Case 2: Styles for afterInteractive/lazyOnload with pages injected via handleClientScriptLoad
941
+ //
942
+ // We use this function to load styles when appdir is not detected
943
+ // TODO: Use React float APIs to load styles once available for pages dir
944
+ if (typeof window !== 'undefined') {
945
+ let head = document.head;
946
+ stylesheets.forEach((stylesheet)=>{
947
+ let link = document.createElement('link');
948
+ link.type = 'text/css';
949
+ link.rel = 'stylesheet';
950
+ link.href = stylesheet;
951
+ head.appendChild(link);
952
+ });
953
+ }
954
+ };
955
+ const loadScript = (props)=>{
956
+ const { src, id, onLoad = ()=>{}, onReady = null, dangerouslySetInnerHTML, children = '', strategy = 'afterInteractive', onError, stylesheets } = props;
957
+ const cacheKey = id || src;
958
+ // Script has already loaded
959
+ if (cacheKey && LoadCache.has(cacheKey)) {
960
+ return;
961
+ }
962
+ // Contents of this script are already loading/loaded
963
+ if (ScriptCache.has(src)) {
964
+ LoadCache.add(cacheKey);
965
+ // It is possible that multiple `next/script` components all have same "src", but has different "onLoad"
966
+ // This is to make sure the same remote script will only load once, but "onLoad" are executed in order
967
+ ScriptCache.get(src).then(onLoad, onError);
968
+ return;
969
+ }
970
+ /** Execute after the script first loaded */ const afterLoad = ()=>{
971
+ // Run onReady for the first time after load event
972
+ if (onReady) {
973
+ onReady();
974
+ }
975
+ // add cacheKey to LoadCache when load successfully
976
+ LoadCache.add(cacheKey);
977
+ };
978
+ const el = document.createElement('script');
979
+ const loadPromise = new Promise((resolve, reject)=>{
980
+ el.addEventListener('load', function(e) {
981
+ resolve();
982
+ if (onLoad) {
983
+ onLoad.call(this, e);
984
+ }
985
+ afterLoad();
986
+ });
987
+ el.addEventListener('error', function(e) {
988
+ reject(e);
989
+ });
990
+ }).catch(function(e) {
991
+ if (onError) {
992
+ onError(e);
993
+ }
994
+ });
995
+ if (dangerouslySetInnerHTML) {
996
+ // Casting since lib.dom.d.ts doesn't have TrustedHTML yet.
997
+ el.innerHTML = dangerouslySetInnerHTML.__html || '';
998
+ afterLoad();
999
+ } else if (children) {
1000
+ el.textContent = typeof children === 'string' ? children : Array.isArray(children) ? children.join('') : '';
1001
+ afterLoad();
1002
+ } else if (src) {
1003
+ el.src = src;
1004
+ // do not add cacheKey into LoadCache for remote script here
1005
+ // cacheKey will be added to LoadCache when it is actually loaded (see loadPromise above)
1006
+ ScriptCache.set(src, loadPromise);
1007
+ }
1008
+ (0, _setattributesfromprops.setAttributesFromProps)(el, props);
1009
+ if (strategy === 'worker') {
1010
+ el.setAttribute('type', 'text/partytown');
1011
+ }
1012
+ el.setAttribute('data-nscript', strategy);
1013
+ // Load styles associated with this script
1014
+ if (stylesheets) {
1015
+ insertStylesheets(stylesheets);
1016
+ }
1017
+ document.body.appendChild(el);
1018
+ };
1019
+ function handleClientScriptLoad(props) {
1020
+ const { strategy = 'afterInteractive' } = props;
1021
+ if (strategy === 'lazyOnload') {
1022
+ window.addEventListener('load', ()=>{
1023
+ (0, _requestidlecallback.requestIdleCallback)(()=>loadScript(props));
1024
+ });
1025
+ } else {
1026
+ loadScript(props);
1027
+ }
1028
+ }
1029
+ function loadLazyScript(props) {
1030
+ if (document.readyState === 'complete') {
1031
+ (0, _requestidlecallback.requestIdleCallback)(()=>loadScript(props));
1032
+ } else {
1033
+ window.addEventListener('load', ()=>{
1034
+ (0, _requestidlecallback.requestIdleCallback)(()=>loadScript(props));
1035
+ });
1036
+ }
1037
+ }
1038
+ function addBeforeInteractiveToCache() {
1039
+ const scripts = [
1040
+ ...document.querySelectorAll('[data-nscript="beforeInteractive"]'),
1041
+ ...document.querySelectorAll('[data-nscript="beforePageRender"]')
1042
+ ];
1043
+ scripts.forEach((script)=>{
1044
+ const cacheKey = script.id || script.getAttribute('src');
1045
+ LoadCache.add(cacheKey);
1046
+ });
1047
+ }
1048
+ function initScriptLoader(scriptLoaderItems) {
1049
+ scriptLoaderItems.forEach(handleClientScriptLoad);
1050
+ addBeforeInteractiveToCache();
1051
+ }
1052
+ /**
1053
+ * Load a third-party scripts in an optimized way.
1054
+ *
1055
+ * Read more: [Next.js Docs: `next/script`](https://nextjs.org/docs/app/api-reference/components/script)
1056
+ */ function Script(props) {
1057
+ const { id, src = '', onLoad = ()=>{}, onReady = null, strategy = 'afterInteractive', onError, stylesheets, ...restProps } = props;
1058
+ // Context is available only during SSR
1059
+ let { updateScripts, scripts, getIsSsr, appDir, nonce } = (0, _react.useContext)(_headmanagercontextsharedruntime.HeadManagerContext);
1060
+ // if a nonce is explicitly passed to the script tag, favor that over the automatic handling
1061
+ nonce = restProps.nonce || nonce;
1062
+ /**
1063
+ * - First mount:
1064
+ * 1. The useEffect for onReady executes
1065
+ * 2. hasOnReadyEffectCalled.current is false, but the script hasn't loaded yet (not in LoadCache)
1066
+ * onReady is skipped, set hasOnReadyEffectCalled.current to true
1067
+ * 3. The useEffect for loadScript executes
1068
+ * 4. hasLoadScriptEffectCalled.current is false, loadScript executes
1069
+ * Once the script is loaded, the onLoad and onReady will be called by then
1070
+ * [If strict mode is enabled / is wrapped in <OffScreen /> component]
1071
+ * 5. The useEffect for onReady executes again
1072
+ * 6. hasOnReadyEffectCalled.current is true, so entire effect is skipped
1073
+ * 7. The useEffect for loadScript executes again
1074
+ * 8. hasLoadScriptEffectCalled.current is true, so entire effect is skipped
1075
+ *
1076
+ * - Second mount:
1077
+ * 1. The useEffect for onReady executes
1078
+ * 2. hasOnReadyEffectCalled.current is false, but the script has already loaded (found in LoadCache)
1079
+ * onReady is called, set hasOnReadyEffectCalled.current to true
1080
+ * 3. The useEffect for loadScript executes
1081
+ * 4. The script is already loaded, loadScript bails out
1082
+ * [If strict mode is enabled / is wrapped in <OffScreen /> component]
1083
+ * 5. The useEffect for onReady executes again
1084
+ * 6. hasOnReadyEffectCalled.current is true, so entire effect is skipped
1085
+ * 7. The useEffect for loadScript executes again
1086
+ * 8. hasLoadScriptEffectCalled.current is true, so entire effect is skipped
1087
+ */ const hasOnReadyEffectCalled = (0, _react.useRef)(false);
1088
+ (0, _react.useEffect)(()=>{
1089
+ const cacheKey = id || src;
1090
+ if (!hasOnReadyEffectCalled.current) {
1091
+ // Run onReady if script has loaded before but component is re-mounted
1092
+ if (onReady && cacheKey && LoadCache.has(cacheKey)) {
1093
+ onReady();
1094
+ }
1095
+ hasOnReadyEffectCalled.current = true;
1096
+ }
1097
+ }, [
1098
+ onReady,
1099
+ id,
1100
+ src
1101
+ ]);
1102
+ const hasLoadScriptEffectCalled = (0, _react.useRef)(false);
1103
+ (0, _react.useEffect)(()=>{
1104
+ if (!hasLoadScriptEffectCalled.current) {
1105
+ if (strategy === 'afterInteractive') {
1106
+ loadScript(props);
1107
+ } else if (strategy === 'lazyOnload') {
1108
+ loadLazyScript(props);
1109
+ }
1110
+ hasLoadScriptEffectCalled.current = true;
1111
+ }
1112
+ }, [
1113
+ props,
1114
+ strategy
1115
+ ]);
1116
+ if (strategy === 'beforeInteractive' || strategy === 'worker') {
1117
+ if (updateScripts) {
1118
+ scripts[strategy] = (scripts[strategy] || []).concat([
1119
+ {
1120
+ id,
1121
+ src,
1122
+ onLoad,
1123
+ onReady,
1124
+ onError,
1125
+ ...restProps,
1126
+ nonce
1127
+ }
1128
+ ]);
1129
+ updateScripts(scripts);
1130
+ } else if (getIsSsr && getIsSsr()) {
1131
+ // Script has already loaded during SSR
1132
+ LoadCache.add(id || src);
1133
+ } else if (getIsSsr && !getIsSsr()) {
1134
+ loadScript({
1135
+ ...props,
1136
+ nonce
1137
+ });
1138
+ }
1139
+ }
1140
+ // For the app directory, we need React Float to preload these scripts.
1141
+ if (appDir) {
1142
+ // Injecting stylesheets here handles beforeInteractive and worker scripts correctly
1143
+ // For other strategies injecting here ensures correct stylesheet order
1144
+ // ReactDOM.preinit handles loading the styles in the correct order,
1145
+ // also ensures the stylesheet is loaded only once and in a consistent manner
1146
+ //
1147
+ // Case 1: Styles for beforeInteractive/worker with appDir - handled here
1148
+ // Case 2: Styles for beforeInteractive/worker with pages dir - Not handled yet
1149
+ // Case 3: Styles for afterInteractive/lazyOnload with appDir - handled here
1150
+ // Case 4: Styles for afterInteractive/lazyOnload with pages dir - handled in insertStylesheets function
1151
+ if (stylesheets) {
1152
+ stylesheets.forEach((styleSrc)=>{
1153
+ _reactdom.default.preinit(styleSrc, {
1154
+ as: 'style'
1155
+ });
1156
+ });
1157
+ }
1158
+ // Before interactive scripts need to be loaded by Next.js' runtime instead
1159
+ // of native <script> tags, because they no longer have `defer`.
1160
+ if (strategy === 'beforeInteractive') {
1161
+ if (!src) {
1162
+ // For inlined scripts, we put the content in `children`.
1163
+ if (restProps.dangerouslySetInnerHTML) {
1164
+ // Casting since lib.dom.d.ts doesn't have TrustedHTML yet.
1165
+ restProps.children = restProps.dangerouslySetInnerHTML.__html;
1166
+ delete restProps.dangerouslySetInnerHTML;
1167
+ }
1168
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)("script", {
1169
+ nonce: nonce,
1170
+ dangerouslySetInnerHTML: {
1171
+ __html: "(self.__next_s=self.__next_s||[]).push(" + JSON.stringify([
1172
+ 0,
1173
+ {
1174
+ ...restProps,
1175
+ id
1176
+ }
1177
+ ]) + ")"
1178
+ }
1179
+ });
1180
+ } else {
1181
+ // @ts-ignore
1182
+ _reactdom.default.preload(src, restProps.integrity ? {
1183
+ as: 'script',
1184
+ integrity: restProps.integrity,
1185
+ nonce,
1186
+ crossOrigin: restProps.crossOrigin
1187
+ } : {
1188
+ as: 'script',
1189
+ nonce,
1190
+ crossOrigin: restProps.crossOrigin
1191
+ });
1192
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)("script", {
1193
+ nonce: nonce,
1194
+ dangerouslySetInnerHTML: {
1195
+ __html: "(self.__next_s=self.__next_s||[]).push(" + JSON.stringify([
1196
+ src,
1197
+ {
1198
+ ...restProps,
1199
+ id
1200
+ }
1201
+ ]) + ")"
1202
+ }
1203
+ });
1204
+ }
1205
+ } else if (strategy === 'afterInteractive') {
1206
+ if (src) {
1207
+ // @ts-ignore
1208
+ _reactdom.default.preload(src, restProps.integrity ? {
1209
+ as: 'script',
1210
+ integrity: restProps.integrity,
1211
+ nonce,
1212
+ crossOrigin: restProps.crossOrigin
1213
+ } : {
1214
+ as: 'script',
1215
+ nonce,
1216
+ crossOrigin: restProps.crossOrigin
1217
+ });
1218
+ }
1219
+ }
1220
+ }
1221
+ return null;
1222
+ }
1223
+ Object.defineProperty(Script, '__nextScript', {
1224
+ value: true
1225
+ });
1226
+ const _default = Script;
1227
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1228
+ Object.defineProperty(exports.default, '__esModule', {
1229
+ value: true
1230
+ });
1231
+ Object.assign(exports.default, exports);
1232
+ module.exports = exports.default;
1233
+ } //# sourceMappingURL=script.js.map
1234
+ }),
1235
+ "[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/detect-domain-locale.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1236
+ "use strict";
1237
+
1238
+ 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)");
1239
+ "use strict";
1240
+ Object.defineProperty(exports, "__esModule", {
1241
+ value: true
1242
+ });
1243
+ Object.defineProperty(exports, "detectDomainLocale", {
1244
+ enumerable: true,
1245
+ get: function() {
1246
+ return detectDomainLocale;
1247
+ }
1248
+ });
1249
+ const detectDomainLocale = function() {
1250
+ for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
1251
+ args[_key] = arguments[_key];
1252
+ }
1253
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
1254
+ ;
1255
+ };
1256
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1257
+ Object.defineProperty(exports.default, '__esModule', {
1258
+ value: true
1259
+ });
1260
+ Object.assign(exports.default, exports);
1261
+ module.exports = exports.default;
1262
+ } //# sourceMappingURL=detect-domain-locale.js.map
1263
+ }),
1264
+ "[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/remove-locale.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1265
+ "use strict";
1266
+
1267
+ 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)");
1268
+ "use strict";
1269
+ Object.defineProperty(exports, "__esModule", {
1270
+ value: true
1271
+ });
1272
+ Object.defineProperty(exports, "removeLocale", {
1273
+ enumerable: true,
1274
+ get: function() {
1275
+ return removeLocale;
1276
+ }
1277
+ });
1278
+ const _parsepath = __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/router/utils/parse-path.js [client] (ecmascript)");
1279
+ function removeLocale(path, locale) {
1280
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
1281
+ ;
1282
+ return path;
1283
+ }
1284
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1285
+ Object.defineProperty(exports.default, '__esModule', {
1286
+ value: true
1287
+ });
1288
+ Object.assign(exports.default, exports);
1289
+ module.exports = exports.default;
1290
+ } //# sourceMappingURL=remove-locale.js.map
1291
+ }),
1292
+ "[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/has-base-path.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1293
+ "use strict";
1294
+
1295
+ 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)");
1296
+ "use strict";
1297
+ Object.defineProperty(exports, "__esModule", {
1298
+ value: true
1299
+ });
1300
+ Object.defineProperty(exports, "hasBasePath", {
1301
+ enumerable: true,
1302
+ get: function() {
1303
+ return hasBasePath;
1304
+ }
1305
+ });
1306
+ const _pathhasprefix = __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/router/utils/path-has-prefix.js [client] (ecmascript)");
1307
+ const basePath = ("TURBOPACK compile-time value", "") || '';
1308
+ function hasBasePath(path) {
1309
+ return (0, _pathhasprefix.pathHasPrefix)(path, basePath);
1310
+ }
1311
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1312
+ Object.defineProperty(exports.default, '__esModule', {
1313
+ value: true
1314
+ });
1315
+ Object.assign(exports.default, exports);
1316
+ module.exports = exports.default;
1317
+ } //# sourceMappingURL=has-base-path.js.map
1318
+ }),
1319
+ "[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/remove-base-path.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1320
+ "use strict";
1321
+
1322
+ 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)");
1323
+ "use strict";
1324
+ Object.defineProperty(exports, "__esModule", {
1325
+ value: true
1326
+ });
1327
+ Object.defineProperty(exports, "removeBasePath", {
1328
+ enumerable: true,
1329
+ get: function() {
1330
+ return removeBasePath;
1331
+ }
1332
+ });
1333
+ const _hasbasepath = __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/has-base-path.js [client] (ecmascript)");
1334
+ const basePath = ("TURBOPACK compile-time value", "") || '';
1335
+ function removeBasePath(path) {
1336
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
1337
+ ;
1338
+ // Can't trim the basePath if it has zero length!
1339
+ if (basePath.length === 0) return path;
1340
+ path = path.slice(basePath.length);
1341
+ if (!path.startsWith('/')) path = "/" + path;
1342
+ return path;
1343
+ }
1344
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1345
+ Object.defineProperty(exports.default, '__esModule', {
1346
+ value: true
1347
+ });
1348
+ Object.assign(exports.default, exports);
1349
+ module.exports = exports.default;
1350
+ } //# sourceMappingURL=remove-base-path.js.map
1351
+ }),
1352
+ "[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/resolve-href.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1353
+ "use strict";
1354
+
1355
+ Object.defineProperty(exports, "__esModule", {
1356
+ value: true
1357
+ });
1358
+ Object.defineProperty(exports, "resolveHref", {
1359
+ enumerable: true,
1360
+ get: function() {
1361
+ return resolveHref;
1362
+ }
1363
+ });
1364
+ const _querystring = __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/router/utils/querystring.js [client] (ecmascript)");
1365
+ const _formaturl = __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/router/utils/format-url.js [client] (ecmascript)");
1366
+ const _omit = __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/router/utils/omit.js [client] (ecmascript)");
1367
+ const _utils = __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/utils.js [client] (ecmascript)");
1368
+ const _normalizetrailingslash = __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/normalize-trailing-slash.js [client] (ecmascript)");
1369
+ const _islocalurl = __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/router/utils/is-local-url.js [client] (ecmascript)");
1370
+ const _utils1 = __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/router/utils/index.js [client] (ecmascript)");
1371
+ const _interpolateas = __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/router/utils/interpolate-as.js [client] (ecmascript)");
1372
+ const _routeregex = __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/router/utils/route-regex.js [client] (ecmascript)");
1373
+ const _routematcher = __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/router/utils/route-matcher.js [client] (ecmascript)");
1374
+ function resolveHref(router, href, resolveAs) {
1375
+ // we use a dummy base url for relative urls
1376
+ let base;
1377
+ let urlAsString = typeof href === 'string' ? href : (0, _formaturl.formatWithValidation)(href);
1378
+ // repeated slashes and backslashes in the URL are considered
1379
+ // invalid and will never match a Next.js page/file
1380
+ // https://www.rfc-editor.org/rfc/rfc3986.html#section-3.1
1381
+ const urlProtoMatch = urlAsString.match(/^[a-z][a-z0-9+.-]*:\/\//i);
1382
+ const urlAsStringNoProto = urlProtoMatch ? urlAsString.slice(urlProtoMatch[0].length) : urlAsString;
1383
+ const urlParts = urlAsStringNoProto.split('?', 1);
1384
+ if ((urlParts[0] || '').match(/(\/\/|\\)/)) {
1385
+ console.error("Invalid href '" + urlAsString + "' passed to next/router in page: '" + router.pathname + "'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");
1386
+ const normalizedUrl = (0, _utils.normalizeRepeatedSlashes)(urlAsStringNoProto);
1387
+ urlAsString = (urlProtoMatch ? urlProtoMatch[0] : '') + normalizedUrl;
1388
+ }
1389
+ // Return because it cannot be routed by the Next.js router
1390
+ if (!(0, _islocalurl.isLocalURL)(urlAsString)) {
1391
+ return resolveAs ? [
1392
+ urlAsString
1393
+ ] : urlAsString;
1394
+ }
1395
+ try {
1396
+ let baseBase = urlAsString.startsWith('#') ? router.asPath : router.pathname;
1397
+ // If the provided href is only a query string, it is safer to use the asPath
1398
+ // considering rewrites.
1399
+ if (urlAsString.startsWith('?')) {
1400
+ baseBase = router.asPath;
1401
+ // However, if is a dynamic route, we need to use the pathname to preserve the
1402
+ // query interpolation and rewrites (router.pathname will look like "/[slug]").
1403
+ if ((0, _utils1.isDynamicRoute)(router.pathname)) {
1404
+ baseBase = router.pathname;
1405
+ const routeRegex = (0, _routeregex.getRouteRegex)(router.pathname);
1406
+ const match = (0, _routematcher.getRouteMatcher)(routeRegex)(router.asPath);
1407
+ // For dynamic routes, if asPath doesn't match the pathname regex, it is a rewritten path.
1408
+ // In this case, should use asPath to preserve the current URL.
1409
+ if (!match) {
1410
+ baseBase = router.asPath;
1411
+ }
1412
+ // Note: There is an edge case where the pathname is dynamic, and also a rewrite path to the same segment.
1413
+ // E.g. in "/[slug]" path, rewrite "/foo" -> "/bar"
1414
+ // In this case, it will be treated as a non-rewritten path and possibly interpolate the query string.
1415
+ // E.g., "/any?slug=foo" will become the content of "/foo", not rewritten as "/bar"
1416
+ // This is currently a trade-off of not resolving rewrite paths on every Router/Link call,
1417
+ // but using a lighter route regex pattern check.
1418
+ }
1419
+ }
1420
+ base = new URL(baseBase, 'http://n');
1421
+ } catch (_) {
1422
+ // fallback to / for invalid asPath values e.g. //
1423
+ base = new URL('/', 'http://n');
1424
+ }
1425
+ try {
1426
+ const finalUrl = new URL(urlAsString, base);
1427
+ finalUrl.pathname = (0, _normalizetrailingslash.normalizePathTrailingSlash)(finalUrl.pathname);
1428
+ let interpolatedAs = '';
1429
+ if ((0, _utils1.isDynamicRoute)(finalUrl.pathname) && finalUrl.searchParams && resolveAs) {
1430
+ const query = (0, _querystring.searchParamsToUrlQuery)(finalUrl.searchParams);
1431
+ const { result, params } = (0, _interpolateas.interpolateAs)(finalUrl.pathname, finalUrl.pathname, query);
1432
+ if (result) {
1433
+ interpolatedAs = (0, _formaturl.formatWithValidation)({
1434
+ pathname: result,
1435
+ hash: finalUrl.hash,
1436
+ query: (0, _omit.omit)(query, params)
1437
+ });
1438
+ }
1439
+ }
1440
+ // if the origin didn't change, it means we received a relative href
1441
+ const resolvedHref = finalUrl.origin === base.origin ? finalUrl.href.slice(finalUrl.origin.length) : finalUrl.href;
1442
+ return resolveAs ? [
1443
+ resolvedHref,
1444
+ interpolatedAs || resolvedHref
1445
+ ] : resolvedHref;
1446
+ } catch (_) {
1447
+ return resolveAs ? [
1448
+ urlAsString
1449
+ ] : urlAsString;
1450
+ }
1451
+ }
1452
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1453
+ Object.defineProperty(exports.default, '__esModule', {
1454
+ value: true
1455
+ });
1456
+ Object.assign(exports.default, exports);
1457
+ module.exports = exports.default;
1458
+ } //# sourceMappingURL=resolve-href.js.map
1459
+ }),
1460
+ "[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/with-router.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1461
+ "use strict";
1462
+
1463
+ 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)");
1464
+ "use strict";
1465
+ Object.defineProperty(exports, "__esModule", {
1466
+ value: true
1467
+ });
1468
+ Object.defineProperty(exports, "default", {
1469
+ enumerable: true,
1470
+ get: function() {
1471
+ return withRouter;
1472
+ }
1473
+ });
1474
+ 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)");
1475
+ const _jsxruntime = __turbopack_context__.r("[project]/node_modules/.pnpm/react@19.1.1/node_modules/react/jsx-runtime.js [client] (ecmascript)");
1476
+ const _react = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/.pnpm/react@19.1.1/node_modules/react/index.js [client] (ecmascript)"));
1477
+ 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)");
1478
+ function withRouter(ComposedComponent) {
1479
+ function WithRouterWrapper(props) {
1480
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(ComposedComponent, {
1481
+ router: (0, _router.useRouter)(),
1482
+ ...props
1483
+ });
1484
+ }
1485
+ WithRouterWrapper.getInitialProps = ComposedComponent.getInitialProps;
1486
+ WithRouterWrapper.origGetInitialProps = ComposedComponent.origGetInitialProps;
1487
+ if ("TURBOPACK compile-time truthy", 1) {
1488
+ const name = ComposedComponent.displayName || ComposedComponent.name || 'Unknown';
1489
+ WithRouterWrapper.displayName = "withRouter(" + name + ")";
1490
+ }
1491
+ return WithRouterWrapper;
1492
+ }
1493
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1494
+ Object.defineProperty(exports.default, '__esModule', {
1495
+ value: true
1496
+ });
1497
+ Object.assign(exports.default, exports);
1498
+ module.exports = exports.default;
1499
+ } //# sourceMappingURL=with-router.js.map
1500
+ }),
1501
+ "[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)", ((__turbopack_context__, module, exports) => {
1502
+ "use strict";
1503
+
1504
+ /* global window */ Object.defineProperty(exports, "__esModule", {
1505
+ value: true
1506
+ });
1507
+ 0 && (module.exports = {
1508
+ Router: null,
1509
+ createRouter: null,
1510
+ default: null,
1511
+ makePublicRouterInstance: null,
1512
+ useRouter: null,
1513
+ withRouter: null
1514
+ });
1515
+ function _export(target, all) {
1516
+ for(var name in all)Object.defineProperty(target, name, {
1517
+ enumerable: true,
1518
+ get: all[name]
1519
+ });
1520
+ }
1521
+ _export(exports, {
1522
+ Router: function() {
1523
+ return _router.default;
1524
+ },
1525
+ createRouter: function() {
1526
+ return createRouter;
1527
+ },
1528
+ // Export the singletonRouter and this is the public API.
1529
+ default: function() {
1530
+ return _default;
1531
+ },
1532
+ makePublicRouterInstance: function() {
1533
+ return makePublicRouterInstance;
1534
+ },
1535
+ useRouter: function() {
1536
+ return useRouter;
1537
+ },
1538
+ withRouter: function() {
1539
+ return _withrouter.default;
1540
+ }
1541
+ });
1542
+ 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)");
1543
+ const _react = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/.pnpm/react@19.1.1/node_modules/react/index.js [client] (ecmascript)"));
1544
+ const _router = /*#__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/router/router.js [client] (ecmascript)"));
1545
+ const _routercontextsharedruntime = __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/router-context.shared-runtime.js [client] (ecmascript)");
1546
+ 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)"));
1547
+ const _withrouter = /*#__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/client/with-router.js [client] (ecmascript)"));
1548
+ const singletonRouter = {
1549
+ router: null,
1550
+ readyCallbacks: [],
1551
+ ready (callback) {
1552
+ if (this.router) return callback();
1553
+ if (typeof window !== 'undefined') {
1554
+ this.readyCallbacks.push(callback);
1555
+ }
1556
+ }
1557
+ };
1558
+ // Create public properties and methods of the router in the singletonRouter
1559
+ const urlPropertyFields = [
1560
+ 'pathname',
1561
+ 'route',
1562
+ 'query',
1563
+ 'asPath',
1564
+ 'components',
1565
+ 'isFallback',
1566
+ 'basePath',
1567
+ 'locale',
1568
+ 'locales',
1569
+ 'defaultLocale',
1570
+ 'isReady',
1571
+ 'isPreview',
1572
+ 'isLocaleDomain',
1573
+ 'domainLocales'
1574
+ ];
1575
+ const routerEvents = [
1576
+ 'routeChangeStart',
1577
+ 'beforeHistoryChange',
1578
+ 'routeChangeComplete',
1579
+ 'routeChangeError',
1580
+ 'hashChangeStart',
1581
+ 'hashChangeComplete'
1582
+ ];
1583
+ const coreMethodFields = [
1584
+ 'push',
1585
+ 'replace',
1586
+ 'reload',
1587
+ 'back',
1588
+ 'prefetch',
1589
+ 'beforePopState'
1590
+ ];
1591
+ // Events is a static property on the router, the router doesn't have to be initialized to use it
1592
+ Object.defineProperty(singletonRouter, 'events', {
1593
+ get () {
1594
+ return _router.default.events;
1595
+ }
1596
+ });
1597
+ function getRouter() {
1598
+ if (!singletonRouter.router) {
1599
+ const message = 'No router instance found.\n' + 'You should only use "next/router" on the client side of your app.\n';
1600
+ throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
1601
+ value: "E394",
1602
+ enumerable: false,
1603
+ configurable: true
1604
+ });
1605
+ }
1606
+ return singletonRouter.router;
1607
+ }
1608
+ urlPropertyFields.forEach((field)=>{
1609
+ // Here we need to use Object.defineProperty because we need to return
1610
+ // the property assigned to the actual router
1611
+ // The value might get changed as we change routes and this is the
1612
+ // proper way to access it
1613
+ Object.defineProperty(singletonRouter, field, {
1614
+ get () {
1615
+ const router = getRouter();
1616
+ return router[field];
1617
+ }
1618
+ });
1619
+ });
1620
+ coreMethodFields.forEach((field)=>{
1621
+ // We don't really know the types here, so we add them later instead
1622
+ ;
1623
+ singletonRouter[field] = function() {
1624
+ for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
1625
+ args[_key] = arguments[_key];
1626
+ }
1627
+ const router = getRouter();
1628
+ return router[field](...args);
1629
+ };
1630
+ });
1631
+ routerEvents.forEach((event)=>{
1632
+ singletonRouter.ready(()=>{
1633
+ _router.default.events.on(event, function() {
1634
+ for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
1635
+ args[_key] = arguments[_key];
1636
+ }
1637
+ const eventField = "on" + event.charAt(0).toUpperCase() + event.substring(1);
1638
+ const _singletonRouter = singletonRouter;
1639
+ if (_singletonRouter[eventField]) {
1640
+ try {
1641
+ _singletonRouter[eventField](...args);
1642
+ } catch (err) {
1643
+ console.error("Error when running the Router event: " + eventField);
1644
+ console.error((0, _iserror.default)(err) ? err.message + "\n" + err.stack : err + '');
1645
+ }
1646
+ }
1647
+ });
1648
+ });
1649
+ });
1650
+ const _default = singletonRouter;
1651
+ function useRouter() {
1652
+ const router = _react.default.useContext(_routercontextsharedruntime.RouterContext);
1653
+ if (!router) {
1654
+ throw Object.defineProperty(new Error('NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted'), "__NEXT_ERROR_CODE", {
1655
+ value: "E509",
1656
+ enumerable: false,
1657
+ configurable: true
1658
+ });
1659
+ }
1660
+ return router;
1661
+ }
1662
+ function createRouter() {
1663
+ for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
1664
+ args[_key] = arguments[_key];
1665
+ }
1666
+ singletonRouter.router = new _router.default(...args);
1667
+ singletonRouter.readyCallbacks.forEach((cb)=>cb());
1668
+ singletonRouter.readyCallbacks = [];
1669
+ return singletonRouter.router;
1670
+ }
1671
+ function makePublicRouterInstance(router) {
1672
+ const scopedRouter = router;
1673
+ const instance = {};
1674
+ for (const property of urlPropertyFields){
1675
+ if (typeof scopedRouter[property] === 'object') {
1676
+ instance[property] = Object.assign(Array.isArray(scopedRouter[property]) ? [] : {}, scopedRouter[property]) // makes sure query is not stateful
1677
+ ;
1678
+ continue;
1679
+ }
1680
+ instance[property] = scopedRouter[property];
1681
+ }
1682
+ // Events is a static property on the router, the router doesn't have to be initialized to use it
1683
+ instance.events = _router.default.events;
1684
+ coreMethodFields.forEach((field)=>{
1685
+ instance[field] = function() {
1686
+ for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
1687
+ args[_key] = arguments[_key];
1688
+ }
1689
+ return scopedRouter[field](...args);
1690
+ };
1691
+ });
1692
+ return instance;
1693
+ }
1694
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1695
+ Object.defineProperty(exports.default, '__esModule', {
1696
+ value: true
1697
+ });
1698
+ Object.assign(exports.default, exports);
1699
+ module.exports = exports.default;
1700
+ } //# sourceMappingURL=router.js.map
1701
+ }),
1702
+ "[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/route-announcer.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1703
+ "use strict";
1704
+
1705
+ Object.defineProperty(exports, "__esModule", {
1706
+ value: true
1707
+ });
1708
+ 0 && (module.exports = {
1709
+ RouteAnnouncer: null,
1710
+ default: null
1711
+ });
1712
+ function _export(target, all) {
1713
+ for(var name in all)Object.defineProperty(target, name, {
1714
+ enumerable: true,
1715
+ get: all[name]
1716
+ });
1717
+ }
1718
+ _export(exports, {
1719
+ RouteAnnouncer: function() {
1720
+ return RouteAnnouncer;
1721
+ },
1722
+ default: function() {
1723
+ return _default;
1724
+ }
1725
+ });
1726
+ 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)");
1727
+ const _jsxruntime = __turbopack_context__.r("[project]/node_modules/.pnpm/react@19.1.1/node_modules/react/jsx-runtime.js [client] (ecmascript)");
1728
+ const _react = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/.pnpm/react@19.1.1/node_modules/react/index.js [client] (ecmascript)"));
1729
+ 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)");
1730
+ const nextjsRouteAnnouncerStyles = {
1731
+ border: 0,
1732
+ clip: 'rect(0 0 0 0)',
1733
+ height: '1px',
1734
+ margin: '-1px',
1735
+ overflow: 'hidden',
1736
+ padding: 0,
1737
+ position: 'absolute',
1738
+ top: 0,
1739
+ width: '1px',
1740
+ // https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
1741
+ whiteSpace: 'nowrap',
1742
+ wordWrap: 'normal'
1743
+ };
1744
+ const RouteAnnouncer = ()=>{
1745
+ const { asPath } = (0, _router.useRouter)();
1746
+ const [routeAnnouncement, setRouteAnnouncement] = _react.default.useState('');
1747
+ // Only announce the path change, but not for the first load because screen
1748
+ // reader will do that automatically.
1749
+ const previouslyLoadedPath = _react.default.useRef(asPath);
1750
+ // Every time the path changes, announce the new page’s title following this
1751
+ // priority: first the document title (from head), otherwise the first h1, or
1752
+ // if none of these exist, then the pathname from the URL. This methodology is
1753
+ // inspired by Marcy Sutton’s accessible client routing user testing. More
1754
+ // information can be found here:
1755
+ // https://www.gatsbyjs.com/blog/2019-07-11-user-testing-accessible-client-routing/
1756
+ _react.default.useEffect({
1757
+ "RouteAnnouncer.useEffect": ()=>{
1758
+ // If the path hasn't change, we do nothing.
1759
+ if (previouslyLoadedPath.current === asPath) return;
1760
+ previouslyLoadedPath.current = asPath;
1761
+ if (document.title) {
1762
+ setRouteAnnouncement(document.title);
1763
+ } else {
1764
+ const pageHeader = document.querySelector('h1');
1765
+ var _pageHeader_innerText;
1766
+ const content = (_pageHeader_innerText = pageHeader == null ? void 0 : pageHeader.innerText) != null ? _pageHeader_innerText : pageHeader == null ? void 0 : pageHeader.textContent;
1767
+ setRouteAnnouncement(content || asPath);
1768
+ }
1769
+ }
1770
+ }["RouteAnnouncer.useEffect"], [
1771
+ asPath
1772
+ ]);
1773
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)("p", {
1774
+ "aria-live": "assertive" // Make the announcement immediately.
1775
+ ,
1776
+ id: "__next-route-announcer__",
1777
+ role: "alert",
1778
+ style: nextjsRouteAnnouncerStyles,
1779
+ children: routeAnnouncement
1780
+ });
1781
+ };
1782
+ const _default = RouteAnnouncer;
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=route-announcer.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/client/react-client-callbacks/report-global-error.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1792
+ "use strict";
1793
+
1794
+ Object.defineProperty(exports, "__esModule", {
1795
+ value: true
1796
+ });
1797
+ Object.defineProperty(exports, "reportGlobalError", {
1798
+ enumerable: true,
1799
+ get: function() {
1800
+ return reportGlobalError;
1801
+ }
1802
+ });
1803
+ const reportGlobalError = typeof reportError === 'function' ? reportError : (error)=>{
1804
+ // TODO: Dispatch error event
1805
+ globalThis.console.error(error);
1806
+ };
1807
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1808
+ Object.defineProperty(exports.default, '__esModule', {
1809
+ value: true
1810
+ });
1811
+ Object.assign(exports.default, exports);
1812
+ module.exports = exports.default;
1813
+ } //# sourceMappingURL=report-global-error.js.map
1814
+ }),
1815
+ "[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)", ((__turbopack_context__, module, exports) => {
1816
+ "use strict";
1817
+
1818
+ // This module can be shared between both pages router and app router
1819
+ 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)");
1820
+ "use strict";
1821
+ Object.defineProperty(exports, "__esModule", {
1822
+ value: true
1823
+ });
1824
+ 0 && (module.exports = {
1825
+ isRecoverableError: null,
1826
+ onRecoverableError: null
1827
+ });
1828
+ function _export(target, all) {
1829
+ for(var name in all)Object.defineProperty(target, name, {
1830
+ enumerable: true,
1831
+ get: all[name]
1832
+ });
1833
+ }
1834
+ _export(exports, {
1835
+ isRecoverableError: function() {
1836
+ return isRecoverableError;
1837
+ },
1838
+ onRecoverableError: function() {
1839
+ return onRecoverableError;
1840
+ }
1841
+ });
1842
+ 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)");
1843
+ const _bailouttocsr = __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/lazy-dynamic/bailout-to-csr.js [client] (ecmascript)");
1844
+ 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)"));
1845
+ const _reportglobalerror = __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/report-global-error.js [client] (ecmascript)");
1846
+ const recoverableErrors = new WeakSet();
1847
+ function isRecoverableError(error) {
1848
+ return recoverableErrors.has(error);
1849
+ }
1850
+ const onRecoverableError = (error)=>{
1851
+ // x-ref: https://github.com/facebook/react/pull/28736
1852
+ let cause = (0, _iserror.default)(error) && 'cause' in error ? error.cause : error;
1853
+ // Skip certain custom errors which are not expected to be reported on client
1854
+ if ((0, _bailouttocsr.isBailoutToCSRError)(cause)) return;
1855
+ if ("TURBOPACK compile-time truthy", 1) {
1856
+ const { decorateDevError } = __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)");
1857
+ const causeError = decorateDevError(cause);
1858
+ recoverableErrors.add(causeError);
1859
+ cause = causeError;
1860
+ }
1861
+ (0, _reportglobalerror.reportGlobalError)(cause);
1862
+ };
1863
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1864
+ Object.defineProperty(exports.default, '__esModule', {
1865
+ value: true
1866
+ });
1867
+ Object.assign(exports.default, exports);
1868
+ module.exports = exports.default;
1869
+ } //# sourceMappingURL=on-recoverable-error.js.map
1870
+ }),
1871
+ "[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/tracing/tracer.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1872
+ "use strict";
1873
+
1874
+ Object.defineProperty(exports, "__esModule", {
1875
+ value: true
1876
+ });
1877
+ Object.defineProperty(exports, "default", {
1878
+ enumerable: true,
1879
+ get: function() {
1880
+ return _default;
1881
+ }
1882
+ });
1883
+ 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)");
1884
+ const _mitt = /*#__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/mitt.js [client] (ecmascript)"));
1885
+ class Span {
1886
+ end(endTime) {
1887
+ if (this.state.state === 'ended') {
1888
+ throw Object.defineProperty(new Error('Span has already ended'), "__NEXT_ERROR_CODE", {
1889
+ value: "E17",
1890
+ enumerable: false,
1891
+ configurable: true
1892
+ });
1893
+ }
1894
+ this.state = {
1895
+ state: 'ended',
1896
+ endTime: endTime != null ? endTime : Date.now()
1897
+ };
1898
+ this.onSpanEnd(this);
1899
+ }
1900
+ constructor(name, options, onSpanEnd){
1901
+ this.name = name;
1902
+ var _options_attributes;
1903
+ this.attributes = (_options_attributes = options.attributes) != null ? _options_attributes : {};
1904
+ var _options_startTime;
1905
+ this.startTime = (_options_startTime = options.startTime) != null ? _options_startTime : Date.now();
1906
+ this.onSpanEnd = onSpanEnd;
1907
+ this.state = {
1908
+ state: 'inprogress'
1909
+ };
1910
+ }
1911
+ }
1912
+ class Tracer {
1913
+ startSpan(name, options) {
1914
+ return new Span(name, options, this.handleSpanEnd);
1915
+ }
1916
+ onSpanEnd(cb) {
1917
+ this._emitter.on('spanend', cb);
1918
+ return ()=>{
1919
+ this._emitter.off('spanend', cb);
1920
+ };
1921
+ }
1922
+ constructor(){
1923
+ this._emitter = (0, _mitt.default)();
1924
+ this.handleSpanEnd = (span)=>{
1925
+ this._emitter.emit('spanend', span);
1926
+ };
1927
+ }
1928
+ }
1929
+ const _default = new Tracer();
1930
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
1931
+ Object.defineProperty(exports.default, '__esModule', {
1932
+ value: true
1933
+ });
1934
+ Object.assign(exports.default, exports);
1935
+ module.exports = exports.default;
1936
+ } //# sourceMappingURL=tracer.js.map
1937
+ }),
1938
+ "[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/components/http-access-fallback/http-access-fallback.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
1939
+ "use strict";
1940
+
1941
+ Object.defineProperty(exports, "__esModule", {
1942
+ value: true
1943
+ });
1944
+ 0 && (module.exports = {
1945
+ HTTPAccessErrorStatus: null,
1946
+ HTTP_ERROR_FALLBACK_ERROR_CODE: null,
1947
+ getAccessFallbackErrorTypeByStatus: null,
1948
+ getAccessFallbackHTTPStatus: null,
1949
+ isHTTPAccessFallbackError: null
1950
+ });
1951
+ function _export(target, all) {
1952
+ for(var name in all)Object.defineProperty(target, name, {
1953
+ enumerable: true,
1954
+ get: all[name]
1955
+ });
1956
+ }
1957
+ _export(exports, {
1958
+ HTTPAccessErrorStatus: function() {
1959
+ return HTTPAccessErrorStatus;
1960
+ },
1961
+ HTTP_ERROR_FALLBACK_ERROR_CODE: function() {
1962
+ return HTTP_ERROR_FALLBACK_ERROR_CODE;
1963
+ },
1964
+ getAccessFallbackErrorTypeByStatus: function() {
1965
+ return getAccessFallbackErrorTypeByStatus;
1966
+ },
1967
+ getAccessFallbackHTTPStatus: function() {
1968
+ return getAccessFallbackHTTPStatus;
1969
+ },
1970
+ isHTTPAccessFallbackError: function() {
1971
+ return isHTTPAccessFallbackError;
1972
+ }
1973
+ });
1974
+ const HTTPAccessErrorStatus = {
1975
+ NOT_FOUND: 404,
1976
+ FORBIDDEN: 403,
1977
+ UNAUTHORIZED: 401
1978
+ };
1979
+ const ALLOWED_CODES = new Set(Object.values(HTTPAccessErrorStatus));
1980
+ const HTTP_ERROR_FALLBACK_ERROR_CODE = 'NEXT_HTTP_ERROR_FALLBACK';
1981
+ function isHTTPAccessFallbackError(error) {
1982
+ if (typeof error !== 'object' || error === null || !('digest' in error) || typeof error.digest !== 'string') {
1983
+ return false;
1984
+ }
1985
+ const [prefix, httpStatus] = error.digest.split(';');
1986
+ return prefix === HTTP_ERROR_FALLBACK_ERROR_CODE && ALLOWED_CODES.has(Number(httpStatus));
1987
+ }
1988
+ function getAccessFallbackHTTPStatus(error) {
1989
+ const httpStatus = error.digest.split(';')[1];
1990
+ return Number(httpStatus);
1991
+ }
1992
+ function getAccessFallbackErrorTypeByStatus(status) {
1993
+ switch(status){
1994
+ case 401:
1995
+ return 'unauthorized';
1996
+ case 403:
1997
+ return 'forbidden';
1998
+ case 404:
1999
+ return 'not-found';
2000
+ default:
2001
+ return;
2002
+ }
2003
+ }
2004
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2005
+ Object.defineProperty(exports.default, '__esModule', {
2006
+ value: true
2007
+ });
2008
+ Object.assign(exports.default, exports);
2009
+ module.exports = exports.default;
2010
+ } //# sourceMappingURL=http-access-fallback.js.map
2011
+ }),
2012
+ "[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/components/redirect-status-code.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2013
+ "use strict";
2014
+
2015
+ Object.defineProperty(exports, "__esModule", {
2016
+ value: true
2017
+ });
2018
+ Object.defineProperty(exports, "RedirectStatusCode", {
2019
+ enumerable: true,
2020
+ get: function() {
2021
+ return RedirectStatusCode;
2022
+ }
2023
+ });
2024
+ var RedirectStatusCode = /*#__PURE__*/ function(RedirectStatusCode) {
2025
+ RedirectStatusCode[RedirectStatusCode["SeeOther"] = 303] = "SeeOther";
2026
+ RedirectStatusCode[RedirectStatusCode["TemporaryRedirect"] = 307] = "TemporaryRedirect";
2027
+ RedirectStatusCode[RedirectStatusCode["PermanentRedirect"] = 308] = "PermanentRedirect";
2028
+ return RedirectStatusCode;
2029
+ }({});
2030
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2031
+ Object.defineProperty(exports.default, '__esModule', {
2032
+ value: true
2033
+ });
2034
+ Object.assign(exports.default, exports);
2035
+ module.exports = exports.default;
2036
+ } //# sourceMappingURL=redirect-status-code.js.map
2037
+ }),
2038
+ "[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/components/redirect-error.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2039
+ "use strict";
2040
+
2041
+ Object.defineProperty(exports, "__esModule", {
2042
+ value: true
2043
+ });
2044
+ 0 && (module.exports = {
2045
+ REDIRECT_ERROR_CODE: null,
2046
+ RedirectType: null,
2047
+ isRedirectError: null
2048
+ });
2049
+ function _export(target, all) {
2050
+ for(var name in all)Object.defineProperty(target, name, {
2051
+ enumerable: true,
2052
+ get: all[name]
2053
+ });
2054
+ }
2055
+ _export(exports, {
2056
+ REDIRECT_ERROR_CODE: function() {
2057
+ return REDIRECT_ERROR_CODE;
2058
+ },
2059
+ RedirectType: function() {
2060
+ return RedirectType;
2061
+ },
2062
+ isRedirectError: function() {
2063
+ return isRedirectError;
2064
+ }
2065
+ });
2066
+ const _redirectstatuscode = __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/components/redirect-status-code.js [client] (ecmascript)");
2067
+ const REDIRECT_ERROR_CODE = 'NEXT_REDIRECT';
2068
+ var RedirectType = /*#__PURE__*/ function(RedirectType) {
2069
+ RedirectType["push"] = "push";
2070
+ RedirectType["replace"] = "replace";
2071
+ return RedirectType;
2072
+ }({});
2073
+ function isRedirectError(error) {
2074
+ if (typeof error !== 'object' || error === null || !('digest' in error) || typeof error.digest !== 'string') {
2075
+ return false;
2076
+ }
2077
+ const digest = error.digest.split(';');
2078
+ const [errorCode, type] = digest;
2079
+ const destination = digest.slice(2, -2).join(';');
2080
+ const status = digest.at(-2);
2081
+ const statusCode = Number(status);
2082
+ return errorCode === REDIRECT_ERROR_CODE && (type === 'replace' || type === 'push') && typeof destination === 'string' && !isNaN(statusCode) && statusCode in _redirectstatuscode.RedirectStatusCode;
2083
+ }
2084
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2085
+ Object.defineProperty(exports.default, '__esModule', {
2086
+ value: true
2087
+ });
2088
+ Object.assign(exports.default, exports);
2089
+ module.exports = exports.default;
2090
+ } //# sourceMappingURL=redirect-error.js.map
2091
+ }),
2092
+ "[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/components/is-next-router-error.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2093
+ "use strict";
2094
+
2095
+ Object.defineProperty(exports, "__esModule", {
2096
+ value: true
2097
+ });
2098
+ Object.defineProperty(exports, "isNextRouterError", {
2099
+ enumerable: true,
2100
+ get: function() {
2101
+ return isNextRouterError;
2102
+ }
2103
+ });
2104
+ const _httpaccessfallback = __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/components/http-access-fallback/http-access-fallback.js [client] (ecmascript)");
2105
+ const _redirecterror = __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/components/redirect-error.js [client] (ecmascript)");
2106
+ function isNextRouterError(error) {
2107
+ return (0, _redirecterror.isRedirectError)(error) || (0, _httpaccessfallback.isHTTPAccessFallbackError)(error);
2108
+ }
2109
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2110
+ Object.defineProperty(exports.default, '__esModule', {
2111
+ value: true
2112
+ });
2113
+ Object.assign(exports.default, exports);
2114
+ module.exports = exports.default;
2115
+ } //# sourceMappingURL=is-next-router-error.js.map
2116
+ }),
2117
+ "[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/get-socket-url.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2118
+ "use strict";
2119
+
2120
+ Object.defineProperty(exports, "__esModule", {
2121
+ value: true
2122
+ });
2123
+ Object.defineProperty(exports, "getSocketUrl", {
2124
+ enumerable: true,
2125
+ get: function() {
2126
+ return getSocketUrl;
2127
+ }
2128
+ });
2129
+ const _normalizedassetprefix = __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/normalized-asset-prefix.js [client] (ecmascript)");
2130
+ function getSocketProtocol(assetPrefix) {
2131
+ let protocol = window.location.protocol;
2132
+ try {
2133
+ // assetPrefix is a url
2134
+ protocol = new URL(assetPrefix).protocol;
2135
+ } catch (e) {}
2136
+ return protocol === 'http:' ? 'ws:' : 'wss:';
2137
+ }
2138
+ function getSocketUrl(assetPrefix) {
2139
+ const prefix = (0, _normalizedassetprefix.normalizedAssetPrefix)(assetPrefix);
2140
+ const protocol = getSocketProtocol(assetPrefix || '');
2141
+ if (URL.canParse(prefix)) {
2142
+ // since normalized asset prefix is ensured to be a URL format,
2143
+ // we can safely replace the protocol
2144
+ return prefix.replace(/^http/, 'ws');
2145
+ }
2146
+ const { hostname, port } = window.location;
2147
+ return protocol + "//" + hostname + (port ? ":" + port : '') + prefix;
2148
+ }
2149
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2150
+ Object.defineProperty(exports.default, '__esModule', {
2151
+ value: true
2152
+ });
2153
+ Object.assign(exports.default, exports);
2154
+ module.exports = exports.default;
2155
+ } //# sourceMappingURL=get-socket-url.js.map
2156
+ }),
2157
+ "[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/websocket.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2158
+ "use strict";
2159
+
2160
+ Object.defineProperty(exports, "__esModule", {
2161
+ value: true
2162
+ });
2163
+ 0 && (module.exports = {
2164
+ addMessageListener: null,
2165
+ connectHMR: null,
2166
+ sendMessage: null
2167
+ });
2168
+ function _export(target, all) {
2169
+ for(var name in all)Object.defineProperty(target, name, {
2170
+ enumerable: true,
2171
+ get: all[name]
2172
+ });
2173
+ }
2174
+ _export(exports, {
2175
+ addMessageListener: function() {
2176
+ return addMessageListener;
2177
+ },
2178
+ connectHMR: function() {
2179
+ return connectHMR;
2180
+ },
2181
+ sendMessage: function() {
2182
+ return sendMessage;
2183
+ }
2184
+ });
2185
+ 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)");
2186
+ const _hotreloadertypes = __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/dev/hot-reloader-types.js [client] (ecmascript)");
2187
+ const _getsocketurl = __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/get-socket-url.js [client] (ecmascript)");
2188
+ let source;
2189
+ const eventCallbacks = [];
2190
+ function addMessageListener(callback) {
2191
+ eventCallbacks.push(callback);
2192
+ }
2193
+ function sendMessage(data) {
2194
+ if (!source || source.readyState !== source.OPEN) return;
2195
+ return source.send(data);
2196
+ }
2197
+ let reconnections = 0;
2198
+ let reloading = false;
2199
+ let serverSessionId = null;
2200
+ function connectHMR(options) {
2201
+ function init() {
2202
+ if (source) source.close();
2203
+ function handleOnline() {
2204
+ if (_forwardlogs.isTerminalLoggingEnabled) {
2205
+ _forwardlogs.logQueue.onSocketReady(source);
2206
+ }
2207
+ reconnections = 0;
2208
+ window.console.log('[HMR] connected');
2209
+ }
2210
+ function handleMessage(event) {
2211
+ // While the page is reloading, don't respond to any more messages.
2212
+ // On reconnect, the server may send an empty list of changes if it was restarted.
2213
+ if (reloading) {
2214
+ return;
2215
+ }
2216
+ // Coerce into HMR_ACTION_TYPES as that is the format.
2217
+ const msg = JSON.parse(event.data);
2218
+ if ('action' in msg && msg.action === _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_CONNECTED) {
2219
+ if (serverSessionId !== null && serverSessionId !== msg.data.sessionId) {
2220
+ // Either the server's session id has changed and it's a new server, or
2221
+ // it's been too long since we disconnected and we should reload the page.
2222
+ // There could be 1) unhandled server errors and/or 2) stale content.
2223
+ // Perform a hard reload of the page.
2224
+ window.location.reload();
2225
+ reloading = true;
2226
+ return;
2227
+ }
2228
+ serverSessionId = msg.data.sessionId;
2229
+ }
2230
+ for (const eventCallback of eventCallbacks){
2231
+ eventCallback(msg);
2232
+ }
2233
+ }
2234
+ let timer;
2235
+ function handleDisconnect() {
2236
+ source.onerror = null;
2237
+ source.onclose = null;
2238
+ source.close();
2239
+ reconnections++;
2240
+ // After 25 reconnects we'll want to reload the page as it indicates the dev server is no longer running.
2241
+ if (reconnections > 25) {
2242
+ reloading = true;
2243
+ window.location.reload();
2244
+ return;
2245
+ }
2246
+ clearTimeout(timer);
2247
+ // Try again after 5 seconds
2248
+ timer = setTimeout(init, reconnections > 5 ? 5000 : 1000);
2249
+ }
2250
+ const url = (0, _getsocketurl.getSocketUrl)(options.assetPrefix);
2251
+ source = new window.WebSocket("" + url + options.path);
2252
+ source.onopen = handleOnline;
2253
+ source.onerror = handleDisconnect;
2254
+ source.onclose = handleDisconnect;
2255
+ source.onmessage = handleMessage;
2256
+ }
2257
+ init();
2258
+ }
2259
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2260
+ Object.defineProperty(exports.default, '__esModule', {
2261
+ value: true
2262
+ });
2263
+ Object.assign(exports.default, exports);
2264
+ module.exports = exports.default;
2265
+ } //# sourceMappingURL=websocket.js.map
2266
+ }),
2267
+ "[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/shared.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2268
+ "use strict";
2269
+
2270
+ Object.defineProperty(exports, "__esModule", {
2271
+ value: true
2272
+ });
2273
+ 0 && (module.exports = {
2274
+ REACT_REFRESH_FULL_RELOAD: null,
2275
+ REACT_REFRESH_FULL_RELOAD_FROM_ERROR: null,
2276
+ reportInvalidHmrMessage: null
2277
+ });
2278
+ function _export(target, all) {
2279
+ for(var name in all)Object.defineProperty(target, name, {
2280
+ enumerable: true,
2281
+ get: all[name]
2282
+ });
2283
+ }
2284
+ _export(exports, {
2285
+ REACT_REFRESH_FULL_RELOAD: function() {
2286
+ return REACT_REFRESH_FULL_RELOAD;
2287
+ },
2288
+ REACT_REFRESH_FULL_RELOAD_FROM_ERROR: function() {
2289
+ return REACT_REFRESH_FULL_RELOAD_FROM_ERROR;
2290
+ },
2291
+ reportInvalidHmrMessage: function() {
2292
+ return reportInvalidHmrMessage;
2293
+ }
2294
+ });
2295
+ const REACT_REFRESH_FULL_RELOAD = '[Fast Refresh] performing full reload\n\n' + "Fast Refresh will perform a full reload when you edit a file that's imported by modules outside of the React rendering tree.\n" + 'You might have a file which exports a React component but also exports a value that is imported by a non-React component file.\n' + 'Consider migrating the non-React component export to a separate file and importing it into both files.\n\n' + 'It is also possible the parent component of the component you edited is a class component, which disables Fast Refresh.\n' + 'Fast Refresh requires at least one parent function component in your React tree.';
2296
+ const REACT_REFRESH_FULL_RELOAD_FROM_ERROR = '[Fast Refresh] performing full reload because your application had an unrecoverable error';
2297
+ function reportInvalidHmrMessage(message, err) {
2298
+ console.warn('[HMR] Invalid message: ' + JSON.stringify(message) + '\n' + (err instanceof Error && (err == null ? void 0 : err.stack) || ''));
2299
+ }
2300
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2301
+ Object.defineProperty(exports.default, '__esModule', {
2302
+ value: true
2303
+ });
2304
+ Object.assign(exports.default, exports);
2305
+ module.exports = exports.default;
2306
+ } //# sourceMappingURL=shared.js.map
2307
+ }),
2308
+ "[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/runtime-error-handler.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2309
+ "use strict";
2310
+
2311
+ Object.defineProperty(exports, "__esModule", {
2312
+ value: true
2313
+ });
2314
+ Object.defineProperty(exports, "RuntimeErrorHandler", {
2315
+ enumerable: true,
2316
+ get: function() {
2317
+ return RuntimeErrorHandler;
2318
+ }
2319
+ });
2320
+ const RuntimeErrorHandler = {
2321
+ hadRuntimeError: false
2322
+ };
2323
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2324
+ Object.defineProperty(exports.default, '__esModule', {
2325
+ value: true
2326
+ });
2327
+ Object.assign(exports.default, exports);
2328
+ module.exports = exports.default;
2329
+ } //# sourceMappingURL=runtime-error-handler.js.map
2330
+ }),
2331
+ "[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/report-hmr-latency.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2332
+ "use strict";
2333
+
2334
+ Object.defineProperty(exports, "__esModule", {
2335
+ value: true
2336
+ });
2337
+ Object.defineProperty(exports, /**
2338
+ * Logs information about a completed HMR to the console, the server (via a
2339
+ * `client-hmr-latency` event), and to `self.__NEXT_HMR_LATENCY_CB` (a debugging
2340
+ * hook).
2341
+ *
2342
+ * @param hasUpdate Set this to `false` to avoid reporting the HMR event via a
2343
+ * `client-hmr-latency` event or to `self.__NEXT_HMR_LATENCY_CB`. Used by
2344
+ * turbopack when we must report a message to the browser console (because we
2345
+ * already logged a "rebuilding" message), but it's not a real HMR, so we
2346
+ * don't want to impact our telemetry.
2347
+ */ "default", {
2348
+ enumerable: true,
2349
+ get: function() {
2350
+ return reportHmrLatency;
2351
+ }
2352
+ });
2353
+ function reportHmrLatency(sendMessage, updatedModules, startMsSinceEpoch, endMsSinceEpoch, hasUpdate) {
2354
+ if (hasUpdate === void 0) hasUpdate = true;
2355
+ const latencyMs = endMsSinceEpoch - startMsSinceEpoch;
2356
+ console.log("[Fast Refresh] done in " + latencyMs + "ms");
2357
+ if (!hasUpdate) {
2358
+ return;
2359
+ }
2360
+ sendMessage(JSON.stringify({
2361
+ event: 'client-hmr-latency',
2362
+ id: window.__nextDevClientId,
2363
+ startTime: startMsSinceEpoch,
2364
+ endTime: endMsSinceEpoch,
2365
+ page: window.location.pathname,
2366
+ updatedModules,
2367
+ // Whether the page (tab) was hidden at the time the event occurred.
2368
+ // This can impact the accuracy of the event's timing.
2369
+ isPageHidden: document.visibilityState === 'hidden'
2370
+ }));
2371
+ if (self.__NEXT_HMR_LATENCY_CB) {
2372
+ self.__NEXT_HMR_LATENCY_CB(latencyMs);
2373
+ }
2374
+ }
2375
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2376
+ Object.defineProperty(exports.default, '__esModule', {
2377
+ value: true
2378
+ });
2379
+ Object.assign(exports.default, exports);
2380
+ module.exports = exports.default;
2381
+ } //# sourceMappingURL=report-hmr-latency.js.map
2382
+ }),
2383
+ "[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/turbopack-hot-reloader-common.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2384
+ "use strict";
2385
+
2386
+ Object.defineProperty(exports, "__esModule", {
2387
+ value: true
2388
+ });
2389
+ Object.defineProperty(exports, "TurbopackHmr", {
2390
+ enumerable: true,
2391
+ get: function() {
2392
+ return TurbopackHmr;
2393
+ }
2394
+ });
2395
+ const _class_private_field_loose_base = __turbopack_context__.r("[project]/node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_class_private_field_loose_base.cjs [client] (ecmascript)");
2396
+ const _class_private_field_loose_key = __turbopack_context__.r("[project]/node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_class_private_field_loose_key.cjs [client] (ecmascript)");
2397
+ // How long to wait before reporting the HMR start, used to suppress irrelevant
2398
+ // `BUILDING` events. Does not impact reported latency.
2399
+ const TURBOPACK_HMR_START_DELAY_MS = 100;
2400
+ var _updatedModules = /*#__PURE__*/ _class_private_field_loose_key._("_updatedModules"), _startMsSinceEpoch = /*#__PURE__*/ _class_private_field_loose_key._("_startMsSinceEpoch"), _lastUpdateMsSinceEpoch = /*#__PURE__*/ _class_private_field_loose_key._("_lastUpdateMsSinceEpoch"), _deferredReportHmrStartId = /*#__PURE__*/ _class_private_field_loose_key._("_deferredReportHmrStartId"), _reportedHmrStart = /*#__PURE__*/ _class_private_field_loose_key._("_reportedHmrStart"), // as it reports *any* compilation, including fully no-op/cached compilations
2401
+ // and those unrelated to HMR. Fixing this would require significant
2402
+ // architectural changes.
2403
+ //
2404
+ // Work around this by deferring any "rebuilding" message by 100ms. If we get
2405
+ // a BUILT event within that threshold and nothing has changed, just suppress
2406
+ // the message entirely.
2407
+ _runDeferredReportHmrStart = /*#__PURE__*/ _class_private_field_loose_key._("_runDeferredReportHmrStart"), _cancelDeferredReportHmrStart = /*#__PURE__*/ _class_private_field_loose_key._("_cancelDeferredReportHmrStart"), /** Helper for other `onEvent` methods. */ _onUpdate = /*#__PURE__*/ _class_private_field_loose_key._("_onUpdate");
2408
+ class TurbopackHmr {
2409
+ onBuilding() {
2410
+ _class_private_field_loose_base._(this, _lastUpdateMsSinceEpoch)[_lastUpdateMsSinceEpoch] = undefined;
2411
+ _class_private_field_loose_base._(this, _cancelDeferredReportHmrStart)[_cancelDeferredReportHmrStart]();
2412
+ _class_private_field_loose_base._(this, _startMsSinceEpoch)[_startMsSinceEpoch] = Date.now();
2413
+ // report the HMR start after a short delay
2414
+ _class_private_field_loose_base._(this, _deferredReportHmrStartId)[_deferredReportHmrStartId] = setTimeout(()=>_class_private_field_loose_base._(this, _runDeferredReportHmrStart)[_runDeferredReportHmrStart](), self.__NEXT_HMR_TURBOPACK_REPORT_NOISY_NOOP_EVENTS ? 0 : TURBOPACK_HMR_START_DELAY_MS);
2415
+ }
2416
+ onTurbopackMessage(msg) {
2417
+ _class_private_field_loose_base._(this, _onUpdate)[_onUpdate]();
2418
+ const updatedModules = extractModulesFromTurbopackMessage(msg.data);
2419
+ for (const module1 of updatedModules){
2420
+ _class_private_field_loose_base._(this, _updatedModules)[_updatedModules].add(module1);
2421
+ }
2422
+ }
2423
+ onServerComponentChanges() {
2424
+ _class_private_field_loose_base._(this, _onUpdate)[_onUpdate]();
2425
+ }
2426
+ onReloadPage() {
2427
+ _class_private_field_loose_base._(this, _onUpdate)[_onUpdate]();
2428
+ }
2429
+ onPageAddRemove() {
2430
+ _class_private_field_loose_base._(this, _onUpdate)[_onUpdate]();
2431
+ }
2432
+ /**
2433
+ * @returns `null` if the caller should ignore the update entirely. Returns an
2434
+ * object with `hasUpdates: false` if the caller should report the end of
2435
+ * the HMR in the browser console, but the HMR was a no-op.
2436
+ */ onBuilt() {
2437
+ // Check that we got *any* `TurbopackMessageAction`, even if
2438
+ // `updatedModules` is empty (not everything gets recorded there).
2439
+ //
2440
+ // There's also a case where `onBuilt` gets called before `onBuilding`,
2441
+ // which can happen during initial page load. Ignore that too!
2442
+ const hasUpdates = _class_private_field_loose_base._(this, _lastUpdateMsSinceEpoch)[_lastUpdateMsSinceEpoch] != null && _class_private_field_loose_base._(this, _startMsSinceEpoch)[_startMsSinceEpoch] != null;
2443
+ if (!hasUpdates && !_class_private_field_loose_base._(this, _reportedHmrStart)[_reportedHmrStart]) {
2444
+ // suppress the update entirely
2445
+ _class_private_field_loose_base._(this, _cancelDeferredReportHmrStart)[_cancelDeferredReportHmrStart]();
2446
+ return null;
2447
+ }
2448
+ _class_private_field_loose_base._(this, _runDeferredReportHmrStart)[_runDeferredReportHmrStart]();
2449
+ var _class_private_field_loose_base__lastUpdateMsSinceEpoch;
2450
+ const result = {
2451
+ hasUpdates,
2452
+ updatedModules: _class_private_field_loose_base._(this, _updatedModules)[_updatedModules],
2453
+ startMsSinceEpoch: _class_private_field_loose_base._(this, _startMsSinceEpoch)[_startMsSinceEpoch],
2454
+ endMsSinceEpoch: (_class_private_field_loose_base__lastUpdateMsSinceEpoch = _class_private_field_loose_base._(this, _lastUpdateMsSinceEpoch)[_lastUpdateMsSinceEpoch]) != null ? _class_private_field_loose_base__lastUpdateMsSinceEpoch : Date.now()
2455
+ };
2456
+ _class_private_field_loose_base._(this, _updatedModules)[_updatedModules] = new Set();
2457
+ _class_private_field_loose_base._(this, _reportedHmrStart)[_reportedHmrStart] = false;
2458
+ return result;
2459
+ }
2460
+ constructor(){
2461
+ Object.defineProperty(this, _runDeferredReportHmrStart, {
2462
+ value: runDeferredReportHmrStart
2463
+ });
2464
+ Object.defineProperty(this, _cancelDeferredReportHmrStart, {
2465
+ value: cancelDeferredReportHmrStart
2466
+ });
2467
+ Object.defineProperty(this, _onUpdate, {
2468
+ value: onUpdate
2469
+ });
2470
+ Object.defineProperty(this, _updatedModules, {
2471
+ writable: true,
2472
+ value: void 0
2473
+ });
2474
+ Object.defineProperty(this, _startMsSinceEpoch, {
2475
+ writable: true,
2476
+ value: void 0
2477
+ });
2478
+ Object.defineProperty(this, _lastUpdateMsSinceEpoch, {
2479
+ writable: true,
2480
+ value: void 0
2481
+ });
2482
+ Object.defineProperty(this, _deferredReportHmrStartId, {
2483
+ writable: true,
2484
+ value: void 0
2485
+ });
2486
+ Object.defineProperty(this, _reportedHmrStart, {
2487
+ writable: true,
2488
+ value: void 0
2489
+ });
2490
+ _class_private_field_loose_base._(this, _updatedModules)[_updatedModules] = new Set();
2491
+ _class_private_field_loose_base._(this, _reportedHmrStart)[_reportedHmrStart] = false;
2492
+ }
2493
+ }
2494
+ function runDeferredReportHmrStart() {
2495
+ if (_class_private_field_loose_base._(this, _deferredReportHmrStartId)[_deferredReportHmrStartId] != null) {
2496
+ console.log('[Fast Refresh] rebuilding');
2497
+ _class_private_field_loose_base._(this, _reportedHmrStart)[_reportedHmrStart] = true;
2498
+ _class_private_field_loose_base._(this, _cancelDeferredReportHmrStart)[_cancelDeferredReportHmrStart]();
2499
+ }
2500
+ }
2501
+ function cancelDeferredReportHmrStart() {
2502
+ clearTimeout(_class_private_field_loose_base._(this, _deferredReportHmrStartId)[_deferredReportHmrStartId]);
2503
+ _class_private_field_loose_base._(this, _deferredReportHmrStartId)[_deferredReportHmrStartId] = undefined;
2504
+ }
2505
+ function onUpdate() {
2506
+ _class_private_field_loose_base._(this, _runDeferredReportHmrStart)[_runDeferredReportHmrStart]();
2507
+ _class_private_field_loose_base._(this, _lastUpdateMsSinceEpoch)[_lastUpdateMsSinceEpoch] = Date.now();
2508
+ }
2509
+ function extractModulesFromTurbopackMessage(data) {
2510
+ const updatedModules = new Set();
2511
+ const updates = Array.isArray(data) ? data : [
2512
+ data
2513
+ ];
2514
+ for (const update of updates){
2515
+ // TODO this won't capture changes to CSS since they don't result in a "merged" update
2516
+ if (update.type !== 'partial' || update.instruction.type !== 'ChunkListUpdate' || update.instruction.merged === undefined) {
2517
+ continue;
2518
+ }
2519
+ for (const mergedUpdate of update.instruction.merged){
2520
+ for (const name of Object.keys(mergedUpdate.entries)){
2521
+ const res = /(.*)\s+\[.*/.exec(name);
2522
+ if (res === null) {
2523
+ console.error('[Turbopack HMR] Expected module to match pattern: ' + name);
2524
+ continue;
2525
+ }
2526
+ updatedModules.add(res[1]);
2527
+ }
2528
+ }
2529
+ }
2530
+ return updatedModules;
2531
+ }
2532
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2533
+ Object.defineProperty(exports.default, '__esModule', {
2534
+ value: true
2535
+ });
2536
+ Object.assign(exports.default, exports);
2537
+ module.exports = exports.default;
2538
+ } //# sourceMappingURL=turbopack-hot-reloader-common.js.map
2539
+ }),
2540
+ "[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)", ((__turbopack_context__, module, exports) => {
2541
+ "use strict";
2542
+
2543
+ // TODO: Remove use of `any` type. Fix no-use-before-define violations.
2544
+ /* eslint-disable @typescript-eslint/no-use-before-define */ /**
2545
+ * MIT License
2546
+ *
2547
+ * Copyright (c) 2013-present, Facebook, Inc.
2548
+ *
2549
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
2550
+ * of this software and associated documentation files (the "Software"), to deal
2551
+ * in the Software without restriction, including without limitation the rights
2552
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2553
+ * copies of the Software, and to permit persons to whom the Software is
2554
+ * furnished to do so, subject to the following conditions:
2555
+ *
2556
+ * The above copyright notice and this permission notice shall be included in all
2557
+ * copies or substantial portions of the Software.
2558
+ *
2559
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2560
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2561
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2562
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2563
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2564
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2565
+ * SOFTWARE.
2566
+ */ /// <reference types="webpack/module.d.ts" />
2567
+ // This file is a modified version of the Create React App HMR dev client that
2568
+ // can be found here:
2569
+ // https://github.com/facebook/create-react-app/blob/v3.4.1/packages/react-dev-utils/webpackHotDevClient.js
2570
+ /// <reference types="webpack/module.d.ts" />
2571
+ 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)");
2572
+ "use strict";
2573
+ Object.defineProperty(exports, "__esModule", {
2574
+ value: true
2575
+ });
2576
+ 0 && (module.exports = {
2577
+ default: null,
2578
+ handleStaticIndicator: null,
2579
+ performFullReload: null
2580
+ });
2581
+ function _export(target, all) {
2582
+ for(var name in all)Object.defineProperty(target, name, {
2583
+ enumerable: true,
2584
+ get: all[name]
2585
+ });
2586
+ }
2587
+ _export(exports, {
2588
+ default: function() {
2589
+ return connect;
2590
+ },
2591
+ handleStaticIndicator: function() {
2592
+ return handleStaticIndicator;
2593
+ },
2594
+ performFullReload: function() {
2595
+ return performFullReload;
2596
+ }
2597
+ });
2598
+ 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)");
2599
+ 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)");
2600
+ const _pagesdevoverlaysetup = __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-setup.js [client] (ecmascript)");
2601
+ const _stripansi = /*#__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/compiled/strip-ansi/index.js [client] (ecmascript)"));
2602
+ const _websocket = __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/websocket.js [client] (ecmascript)");
2603
+ const _formatwebpackmessages = /*#__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/format-webpack-messages.js [client] (ecmascript)"));
2604
+ const _hotreloadertypes = __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/dev/hot-reloader-types.js [client] (ecmascript)");
2605
+ const _shared = __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/shared.js [client] (ecmascript)");
2606
+ const _runtimeerrorhandler = __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/runtime-error-handler.js [client] (ecmascript)");
2607
+ const _reporthmrlatency = /*#__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/client/dev/report-hmr-latency.js [client] (ecmascript)"));
2608
+ const _turbopackhotreloadercommon = __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/turbopack-hot-reloader-common.js [client] (ecmascript)");
2609
+ window.__nextDevClientId = Math.round(Math.random() * 100 + Date.now());
2610
+ let customHmrEventHandler;
2611
+ let turbopackMessageListeners = [];
2612
+ function connect() {
2613
+ (0, _pagesdevoverlaysetup.register)();
2614
+ (0, _websocket.addMessageListener)((payload)=>{
2615
+ if (!('action' in payload)) {
2616
+ return;
2617
+ }
2618
+ try {
2619
+ processMessage(payload);
2620
+ } catch (err) {
2621
+ (0, _shared.reportInvalidHmrMessage)(payload, err);
2622
+ }
2623
+ });
2624
+ return {
2625
+ subscribeToHmrEvent (handler) {
2626
+ customHmrEventHandler = handler;
2627
+ },
2628
+ onUnrecoverableError () {
2629
+ _runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError = true;
2630
+ },
2631
+ addTurbopackMessageListener (cb) {
2632
+ turbopackMessageListeners.push(cb);
2633
+ },
2634
+ sendTurbopackMessage (msg) {
2635
+ (0, _websocket.sendMessage)(msg);
2636
+ },
2637
+ handleUpdateError (err) {
2638
+ performFullReload(err);
2639
+ }
2640
+ };
2641
+ }
2642
+ // Remember some state related to hot module replacement.
2643
+ var isFirstCompilation = true;
2644
+ var mostRecentCompilationHash = null;
2645
+ var hasCompileErrors = false;
2646
+ function clearOutdatedErrors() {
2647
+ // Clean up outdated compile errors, if any.
2648
+ if (typeof console !== 'undefined' && typeof console.clear === 'function') {
2649
+ if (hasCompileErrors) {
2650
+ console.clear();
2651
+ }
2652
+ }
2653
+ }
2654
+ // Successful compilation.
2655
+ function handleSuccess() {
2656
+ clearOutdatedErrors();
2657
+ hasCompileErrors = false;
2658
+ if ("TURBOPACK compile-time truthy", 1) {
2659
+ const hmrUpdate = turbopackHmr.onBuilt();
2660
+ if (hmrUpdate != null) {
2661
+ (0, _reporthmrlatency.default)(_websocket.sendMessage, [
2662
+ ...hmrUpdate.updatedModules
2663
+ ], hmrUpdate.startMsSinceEpoch, hmrUpdate.endMsSinceEpoch, hmrUpdate.hasUpdates);
2664
+ }
2665
+ _nextdevtools.dispatcher.onBuildOk();
2666
+ } else //TURBOPACK unreachable
2667
+ ;
2668
+ isFirstCompilation = false;
2669
+ }
2670
+ // Compilation with warnings (e.g. ESLint).
2671
+ function handleWarnings(warnings) {
2672
+ clearOutdatedErrors();
2673
+ const isHotUpdate = !isFirstCompilation;
2674
+ isFirstCompilation = false;
2675
+ hasCompileErrors = false;
2676
+ function printWarnings() {
2677
+ // Print warnings to the console.
2678
+ const formatted = (0, _formatwebpackmessages.default)({
2679
+ warnings: warnings,
2680
+ errors: []
2681
+ });
2682
+ if (typeof console !== 'undefined' && typeof console.warn === 'function') {
2683
+ var _formatted_warnings;
2684
+ for(let i = 0; i < ((_formatted_warnings = formatted.warnings) == null ? void 0 : _formatted_warnings.length); i++){
2685
+ if (i === 5) {
2686
+ console.warn('There were more warnings in other files.\n' + 'You can find a complete log in the terminal.');
2687
+ break;
2688
+ }
2689
+ console.warn((0, _stripansi.default)(formatted.warnings[i]));
2690
+ }
2691
+ }
2692
+ }
2693
+ printWarnings();
2694
+ // Attempt to apply hot updates or reload.
2695
+ if (isHotUpdate) {
2696
+ tryApplyUpdatesWebpack();
2697
+ }
2698
+ }
2699
+ // Compilation with errors (e.g. syntax error or missing modules).
2700
+ function handleErrors(errors) {
2701
+ clearOutdatedErrors();
2702
+ isFirstCompilation = false;
2703
+ hasCompileErrors = true;
2704
+ // "Massage" webpack messages.
2705
+ var formatted = (0, _formatwebpackmessages.default)({
2706
+ errors: errors,
2707
+ warnings: []
2708
+ });
2709
+ // Only show the first error.
2710
+ _nextdevtools.dispatcher.onBuildError(formatted.errors[0]);
2711
+ // Also log them to the console.
2712
+ if (typeof console !== 'undefined' && typeof console.error === 'function') {
2713
+ for(var i = 0; i < formatted.errors.length; i++){
2714
+ console.error((0, _stripansi.default)(formatted.errors[i]));
2715
+ }
2716
+ }
2717
+ // Do not attempt to reload now.
2718
+ // We will reload on next success instead.
2719
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
2720
+ ;
2721
+ }
2722
+ let webpackStartMsSinceEpoch = null;
2723
+ const turbopackHmr = ("TURBOPACK compile-time truthy", 1) ? new _turbopackhotreloadercommon.TurbopackHmr() : "TURBOPACK unreachable";
2724
+ let isrManifest = {};
2725
+ // There is a newer version of the code available.
2726
+ function handleAvailableHash(hash) {
2727
+ // Update last known compilation hash.
2728
+ mostRecentCompilationHash = hash;
2729
+ }
2730
+ function handleStaticIndicator() {
2731
+ if ("TURBOPACK compile-time truthy", 1) {
2732
+ var _window_next_router_components__app;
2733
+ const routeInfo = window.next.router.components[window.next.router.pathname];
2734
+ const pageComponent = routeInfo == null ? void 0 : routeInfo.Component;
2735
+ const appComponent = (_window_next_router_components__app = window.next.router.components['/_app']) == null ? void 0 : _window_next_router_components__app.Component;
2736
+ const isDynamicPage = Boolean(pageComponent == null ? void 0 : pageComponent.getInitialProps) || Boolean(routeInfo == null ? void 0 : routeInfo.__N_SSP);
2737
+ const hasAppGetInitialProps = Boolean(appComponent == null ? void 0 : appComponent.getInitialProps) && (appComponent == null ? void 0 : appComponent.getInitialProps) !== (appComponent == null ? void 0 : appComponent.origGetInitialProps);
2738
+ const isPageStatic = window.location.pathname in isrManifest || !isDynamicPage && !hasAppGetInitialProps;
2739
+ _nextdevtools.dispatcher.onStaticIndicator(isPageStatic);
2740
+ }
2741
+ }
2742
+ /** Handles messages from the server for the Pages Router. */ function processMessage(obj) {
2743
+ if (!('action' in obj)) {
2744
+ return;
2745
+ }
2746
+ switch(obj.action){
2747
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.ISR_MANIFEST:
2748
+ {
2749
+ isrManifest = obj.data;
2750
+ handleStaticIndicator();
2751
+ break;
2752
+ }
2753
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.BUILDING:
2754
+ {
2755
+ _nextdevtools.dispatcher.buildingIndicatorShow();
2756
+ if ("TURBOPACK compile-time truthy", 1) {
2757
+ turbopackHmr.onBuilding();
2758
+ } else //TURBOPACK unreachable
2759
+ ;
2760
+ break;
2761
+ }
2762
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.BUILT:
2763
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.SYNC:
2764
+ {
2765
+ _nextdevtools.dispatcher.buildingIndicatorHide();
2766
+ if (obj.hash) handleAvailableHash(obj.hash);
2767
+ const { errors, warnings } = obj;
2768
+ // Is undefined when it's a 'built' event
2769
+ if ('versionInfo' in obj) _nextdevtools.dispatcher.onVersionInfo(obj.versionInfo);
2770
+ if ('devIndicator' in obj) _nextdevtools.dispatcher.onDevIndicator(obj.devIndicator);
2771
+ if ('devToolsConfig' in obj) _nextdevtools.dispatcher.onDevToolsConfig(obj.devToolsConfig);
2772
+ const hasErrors = Boolean(errors && errors.length);
2773
+ if (hasErrors) {
2774
+ (0, _websocket.sendMessage)(JSON.stringify({
2775
+ event: 'client-error',
2776
+ errorCount: errors.length,
2777
+ clientId: window.__nextDevClientId
2778
+ }));
2779
+ return handleErrors(errors);
2780
+ }
2781
+ // NOTE: Turbopack does not currently send warnings
2782
+ const hasWarnings = Boolean(warnings && warnings.length);
2783
+ if (hasWarnings) {
2784
+ (0, _websocket.sendMessage)(JSON.stringify({
2785
+ event: 'client-warning',
2786
+ warningCount: warnings.length,
2787
+ clientId: window.__nextDevClientId
2788
+ }));
2789
+ return handleWarnings(warnings);
2790
+ }
2791
+ (0, _websocket.sendMessage)(JSON.stringify({
2792
+ event: 'client-success',
2793
+ clientId: window.__nextDevClientId
2794
+ }));
2795
+ return handleSuccess();
2796
+ }
2797
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.SERVER_COMPONENT_CHANGES:
2798
+ {
2799
+ turbopackHmr == null ? void 0 : turbopackHmr.onServerComponentChanges();
2800
+ if (hasCompileErrors || _runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError) {
2801
+ window.location.reload();
2802
+ }
2803
+ return;
2804
+ }
2805
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.SERVER_ERROR:
2806
+ {
2807
+ const { errorJSON } = obj;
2808
+ if (errorJSON) {
2809
+ const { message, stack } = JSON.parse(errorJSON);
2810
+ const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
2811
+ value: "E394",
2812
+ enumerable: false,
2813
+ configurable: true
2814
+ });
2815
+ error.stack = stack;
2816
+ handleErrors([
2817
+ error
2818
+ ]);
2819
+ }
2820
+ return;
2821
+ }
2822
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_CONNECTED:
2823
+ {
2824
+ for (const listener of turbopackMessageListeners){
2825
+ listener({
2826
+ type: _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_CONNECTED,
2827
+ data: obj.data
2828
+ });
2829
+ }
2830
+ break;
2831
+ }
2832
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_MESSAGE:
2833
+ {
2834
+ turbopackHmr.onTurbopackMessage(obj);
2835
+ _nextdevtools.dispatcher.onBeforeRefresh();
2836
+ for (const listener of turbopackMessageListeners){
2837
+ listener({
2838
+ type: _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_MESSAGE,
2839
+ data: obj.data
2840
+ });
2841
+ }
2842
+ if (_runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError) {
2843
+ console.warn(_shared.REACT_REFRESH_FULL_RELOAD_FROM_ERROR);
2844
+ performFullReload(null);
2845
+ }
2846
+ _nextdevtools.dispatcher.onRefresh();
2847
+ break;
2848
+ }
2849
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.ADDED_PAGE:
2850
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.REMOVED_PAGE:
2851
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.RELOAD_PAGE:
2852
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.DEV_PAGES_MANIFEST_UPDATE:
2853
+ if (customHmrEventHandler) {
2854
+ customHmrEventHandler(obj);
2855
+ }
2856
+ break;
2857
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.DEVTOOLS_CONFIG:
2858
+ _nextdevtools.dispatcher.onDevToolsConfig(obj.data);
2859
+ break;
2860
+ default:
2861
+ obj;
2862
+ }
2863
+ }
2864
+ // Is there a newer version of this code available?
2865
+ function isUpdateAvailable() {
2866
+ /* globals __webpack_hash__ */ // __webpack_hash__ is the hash of the current compilation.
2867
+ // It's a global variable injected by Webpack.
2868
+ return mostRecentCompilationHash !== __webpack_hash__;
2869
+ }
2870
+ // Webpack disallows updates in other states.
2871
+ function canApplyUpdates() {
2872
+ return module.hot.status() === 'idle';
2873
+ }
2874
+ function afterApplyUpdates(fn) {
2875
+ if (canApplyUpdates()) {
2876
+ fn();
2877
+ } else {
2878
+ function handler(status) {
2879
+ if (status === 'idle') {
2880
+ module.hot.removeStatusHandler(handler);
2881
+ fn();
2882
+ }
2883
+ }
2884
+ module.hot.addStatusHandler(handler);
2885
+ }
2886
+ }
2887
+ // Attempt to update code on the fly, fall back to a hard reload.
2888
+ function tryApplyUpdatesWebpack() {
2889
+ if (!module.hot) {
2890
+ // HotModuleReplacementPlugin is not in Webpack configuration.
2891
+ console.error('HotModuleReplacementPlugin is not in Webpack configuration.');
2892
+ // window.location.reload();
2893
+ return;
2894
+ }
2895
+ if (!isUpdateAvailable() || !canApplyUpdates()) {
2896
+ _nextdevtools.dispatcher.onBuildOk();
2897
+ return;
2898
+ }
2899
+ function handleApplyUpdates(err, updatedModules) {
2900
+ if (err || _runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError || updatedModules == null) {
2901
+ if (err) {
2902
+ console.warn(_shared.REACT_REFRESH_FULL_RELOAD);
2903
+ } else if (_runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError) {
2904
+ console.warn(_shared.REACT_REFRESH_FULL_RELOAD_FROM_ERROR);
2905
+ }
2906
+ performFullReload(err);
2907
+ return;
2908
+ }
2909
+ _nextdevtools.dispatcher.onBuildOk();
2910
+ if (isUpdateAvailable()) {
2911
+ // While we were updating, there was a new update! Do it again.
2912
+ tryApplyUpdatesWebpack();
2913
+ return;
2914
+ }
2915
+ _nextdevtools.dispatcher.onRefresh();
2916
+ (0, _reporthmrlatency.default)(_websocket.sendMessage, updatedModules, webpackStartMsSinceEpoch, Date.now());
2917
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
2918
+ ;
2919
+ }
2920
+ // https://webpack.js.org/api/hot-module-replacement/#check
2921
+ module.hot.check(/* autoApply */ false).then((updatedModules)=>{
2922
+ if (updatedModules == null) {
2923
+ return null;
2924
+ }
2925
+ // We should always handle an update, even if updatedModules is empty (but
2926
+ // non-null) for any reason. That's what webpack would normally do:
2927
+ // https://github.com/webpack/webpack/blob/3aa6b6bc3a64/lib/hmr/HotModuleReplacement.runtime.js#L296-L298
2928
+ _nextdevtools.dispatcher.onBeforeRefresh();
2929
+ // https://webpack.js.org/api/hot-module-replacement/#apply
2930
+ return module.hot.apply();
2931
+ }).then((updatedModules)=>{
2932
+ handleApplyUpdates(null, updatedModules);
2933
+ }, (err)=>{
2934
+ handleApplyUpdates(err, null);
2935
+ });
2936
+ }
2937
+ function performFullReload(err) {
2938
+ const stackTrace = err && (err.stack && err.stack.split('\n').slice(0, 5).join('\n') || err.message || err + '');
2939
+ (0, _websocket.sendMessage)(JSON.stringify({
2940
+ event: 'client-full-reload',
2941
+ stackTrace,
2942
+ hadRuntimeError: !!_runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError,
2943
+ dependencyChain: err ? err.dependencyChain : undefined
2944
+ }));
2945
+ window.location.reload();
2946
+ }
2947
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2948
+ Object.defineProperty(exports.default, '__esModule', {
2949
+ value: true
2950
+ });
2951
+ Object.assign(exports.default, exports);
2952
+ module.exports = exports.default;
2953
+ } //# sourceMappingURL=hot-reloader-pages.js.map
2954
+ }),
2955
+ "[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/tracing/report-to-socket.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2956
+ "use strict";
2957
+
2958
+ Object.defineProperty(exports, "__esModule", {
2959
+ value: true
2960
+ });
2961
+ Object.defineProperty(exports, "default", {
2962
+ enumerable: true,
2963
+ get: function() {
2964
+ return reportToSocket;
2965
+ }
2966
+ });
2967
+ const _websocket = __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/websocket.js [client] (ecmascript)");
2968
+ function reportToSocket(span) {
2969
+ if (span.state.state !== 'ended') {
2970
+ throw Object.defineProperty(new Error('Expected span to be ended'), "__NEXT_ERROR_CODE", {
2971
+ value: "E302",
2972
+ enumerable: false,
2973
+ configurable: true
2974
+ });
2975
+ }
2976
+ (0, _websocket.sendMessage)(JSON.stringify({
2977
+ event: 'span-end',
2978
+ startTime: span.startTime,
2979
+ endTime: span.state.endTime,
2980
+ spanName: span.name,
2981
+ attributes: span.attributes
2982
+ }));
2983
+ }
2984
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
2985
+ Object.defineProperty(exports.default, '__esModule', {
2986
+ value: true
2987
+ });
2988
+ Object.assign(exports.default, exports);
2989
+ module.exports = exports.default;
2990
+ } //# sourceMappingURL=report-to-socket.js.map
2991
+ }),
2992
+ "[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/index.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
2993
+ "use strict";
2994
+
2995
+ /* global location */ // imports polyfill from `@next/polyfill-module` after build.
2996
+ 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)");
2997
+ "use strict";
2998
+ Object.defineProperty(exports, "__esModule", {
2999
+ value: true
3000
+ });
3001
+ 0 && (module.exports = {
3002
+ emitter: null,
3003
+ hydrate: null,
3004
+ initialize: null,
3005
+ router: null,
3006
+ version: null
3007
+ });
3008
+ function _export(target, all) {
3009
+ for(var name in all)Object.defineProperty(target, name, {
3010
+ enumerable: true,
3011
+ get: all[name]
3012
+ });
3013
+ }
3014
+ _export(exports, {
3015
+ emitter: function() {
3016
+ return emitter;
3017
+ },
3018
+ hydrate: function() {
3019
+ return hydrate;
3020
+ },
3021
+ initialize: function() {
3022
+ return initialize;
3023
+ },
3024
+ router: function() {
3025
+ return router;
3026
+ },
3027
+ version: function() {
3028
+ return version;
3029
+ }
3030
+ });
3031
+ 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)");
3032
+ const _jsxruntime = __turbopack_context__.r("[project]/node_modules/.pnpm/react@19.1.1/node_modules/react/jsx-runtime.js [client] (ecmascript)");
3033
+ __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/build/polyfills/polyfill-module.js [client] (ecmascript)");
3034
+ const _react = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/.pnpm/react@19.1.1/node_modules/react/index.js [client] (ecmascript)"));
3035
+ const _client = /*#__PURE__*/ _interop_require_default._(__turbopack_context__.r("[project]/node_modules/.pnpm/react-dom@19.1.1_react@19.1.1/node_modules/react-dom/client.js [client] (ecmascript)"));
3036
+ const _headmanagercontextsharedruntime = __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-manager-context.shared-runtime.js [client] (ecmascript)");
3037
+ const _mitt = /*#__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/mitt.js [client] (ecmascript)"));
3038
+ const _routercontextsharedruntime = __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/router-context.shared-runtime.js [client] (ecmascript)");
3039
+ const _disablesmoothscroll = __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/router/utils/disable-smooth-scroll.js [client] (ecmascript)");
3040
+ const _isdynamic = __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/router/utils/is-dynamic.js [client] (ecmascript)");
3041
+ const _querystring = __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/router/utils/querystring.js [client] (ecmascript)");
3042
+ const _runtimeconfigexternal = __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/runtime-config.external.js [client] (ecmascript)");
3043
+ const _utils = __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/utils.js [client] (ecmascript)");
3044
+ const _portal = __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/portal/index.js [client] (ecmascript)");
3045
+ const _headmanager = /*#__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/client/head-manager.js [client] (ecmascript)"));
3046
+ const _pageloader = /*#__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/client/page-loader.js [client] (ecmascript)"));
3047
+ const _routeannouncer = __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/route-announcer.js [client] (ecmascript)");
3048
+ 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)");
3049
+ const _iserror = __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)");
3050
+ const _imageconfigcontextsharedruntime = __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/image-config-context.shared-runtime.js [client] (ecmascript)");
3051
+ const _removebasepath = __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/remove-base-path.js [client] (ecmascript)");
3052
+ const _hasbasepath = __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/has-base-path.js [client] (ecmascript)");
3053
+ const _approutercontextsharedruntime = __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/app-router-context.shared-runtime.js [client] (ecmascript)");
3054
+ const _adapters = __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/router/adapters.js [client] (ecmascript)");
3055
+ const _hooksclientcontextsharedruntime = __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/hooks-client-context.shared-runtime.js [client] (ecmascript)");
3056
+ 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)");
3057
+ const _tracer = /*#__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/client/tracing/tracer.js [client] (ecmascript)"));
3058
+ const _isnextroutererror = __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/components/is-next-router-error.js [client] (ecmascript)");
3059
+ const version = "15.5.2";
3060
+ let router;
3061
+ const emitter = (0, _mitt.default)();
3062
+ const looseToArray = (input)=>[].slice.call(input);
3063
+ let initialData;
3064
+ let defaultLocale = undefined;
3065
+ let asPath;
3066
+ let pageLoader;
3067
+ let appElement;
3068
+ let headManager;
3069
+ let initialMatchesMiddleware = false;
3070
+ let lastAppProps;
3071
+ let lastRenderReject;
3072
+ let devClient;
3073
+ let CachedApp, onPerfEntry;
3074
+ let CachedComponent;
3075
+ class Container extends _react.default.Component {
3076
+ componentDidCatch(componentErr, info) {
3077
+ this.props.fn(componentErr, info);
3078
+ }
3079
+ componentDidMount() {
3080
+ this.scrollToHash();
3081
+ // We need to replace the router state if:
3082
+ // - the page was (auto) exported and has a query string or search (hash)
3083
+ // - it was auto exported and is a dynamic route (to provide params)
3084
+ // - if it is a client-side skeleton (fallback render)
3085
+ // - if middleware matches the current page (may have rewrite params)
3086
+ // - if rewrites in next.config.js match (may have rewrite params)
3087
+ if (router.isSsr && (initialData.isFallback || initialData.nextExport && ((0, _isdynamic.isDynamicRoute)(router.pathname) || location.search || ("TURBOPACK compile-time value", false) || initialMatchesMiddleware) || initialData.props && initialData.props.__N_SSG && (location.search || ("TURBOPACK compile-time value", false) || initialMatchesMiddleware))) {
3088
+ // update query on mount for exported pages
3089
+ router.replace(router.pathname + '?' + String((0, _querystring.assign)((0, _querystring.urlQueryToSearchParams)(router.query), new URLSearchParams(location.search))), asPath, {
3090
+ // @ts-ignore
3091
+ // WARNING: `_h` is an internal option for handing Next.js
3092
+ // client-side hydration. Your app should _never_ use this property.
3093
+ // It may change at any time without notice.
3094
+ _h: 1,
3095
+ // Fallback pages must trigger the data fetch, so the transition is
3096
+ // not shallow.
3097
+ // Other pages (strictly updating query) happens shallowly, as data
3098
+ // requirements would already be present.
3099
+ shallow: !initialData.isFallback && !initialMatchesMiddleware
3100
+ }).catch((err)=>{
3101
+ if (!err.cancelled) throw err;
3102
+ });
3103
+ }
3104
+ }
3105
+ componentDidUpdate() {
3106
+ this.scrollToHash();
3107
+ }
3108
+ scrollToHash() {
3109
+ let { hash } = location;
3110
+ hash = hash && hash.substring(1);
3111
+ if (!hash) return;
3112
+ const el = document.getElementById(hash);
3113
+ if (!el) return;
3114
+ // If we call scrollIntoView() in here without a setTimeout
3115
+ // it won't scroll properly.
3116
+ setTimeout(()=>el.scrollIntoView(), 0);
3117
+ }
3118
+ render() {
3119
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
3120
+ ;
3121
+ else {
3122
+ const { PagesDevOverlayBridge } = __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-setup.js [client] (ecmascript)");
3123
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(PagesDevOverlayBridge, {
3124
+ children: this.props.children
3125
+ });
3126
+ }
3127
+ }
3128
+ }
3129
+ async function initialize(opts) {
3130
+ if (opts === void 0) opts = {};
3131
+ // This makes sure this specific lines are removed in production
3132
+ if ("TURBOPACK compile-time truthy", 1) {
3133
+ _tracer.default.onSpanEnd(__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/tracing/report-to-socket.js [client] (ecmascript)").default);
3134
+ devClient = opts.devClient;
3135
+ }
3136
+ initialData = JSON.parse(document.getElementById('__NEXT_DATA__').textContent);
3137
+ window.__NEXT_DATA__ = initialData;
3138
+ defaultLocale = initialData.defaultLocale;
3139
+ const prefix = initialData.assetPrefix || '';
3140
+ self.__next_set_public_path__("" + prefix + "/_next/") //eslint-disable-line
3141
+ ;
3142
+ // Initialize next/config with the environment configuration
3143
+ (0, _runtimeconfigexternal.setConfig)({
3144
+ serverRuntimeConfig: {},
3145
+ publicRuntimeConfig: initialData.runtimeConfig || {}
3146
+ });
3147
+ asPath = (0, _utils.getURL)();
3148
+ // make sure not to attempt stripping basePath for 404s
3149
+ if ((0, _hasbasepath.hasBasePath)(asPath)) {
3150
+ asPath = (0, _removebasepath.removeBasePath)(asPath);
3151
+ }
3152
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
3153
+ ;
3154
+ if (initialData.scriptLoader) {
3155
+ const { initScriptLoader } = __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/script.js [client] (ecmascript)");
3156
+ initScriptLoader(initialData.scriptLoader);
3157
+ }
3158
+ pageLoader = new _pageloader.default(initialData.buildId, prefix);
3159
+ const register = (param)=>{
3160
+ let [r, f] = param;
3161
+ return pageLoader.routeLoader.onEntrypoint(r, f);
3162
+ };
3163
+ if (window.__NEXT_P) {
3164
+ // Defer page registration for another tick. This will increase the overall
3165
+ // latency in hydrating the page, but reduce the total blocking time.
3166
+ window.__NEXT_P.map((p)=>setTimeout(()=>register(p), 0));
3167
+ }
3168
+ window.__NEXT_P = [];
3169
+ window.__NEXT_P.push = register;
3170
+ headManager = (0, _headmanager.default)();
3171
+ headManager.getIsSsr = ()=>{
3172
+ return router.isSsr;
3173
+ };
3174
+ appElement = document.getElementById('__next');
3175
+ return {
3176
+ assetPrefix: prefix
3177
+ };
3178
+ }
3179
+ function renderApp(App, appProps) {
3180
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(App, {
3181
+ ...appProps
3182
+ });
3183
+ }
3184
+ function AppContainer(param) {
3185
+ let { children } = param;
3186
+ // Create a memoized value for next/navigation router context.
3187
+ const adaptedForAppRouter = _react.default.useMemo({
3188
+ "AppContainer.useMemo[adaptedForAppRouter]": ()=>{
3189
+ return (0, _adapters.adaptForAppRouterInstance)(router);
3190
+ }
3191
+ }["AppContainer.useMemo[adaptedForAppRouter]"], []);
3192
+ var _self___NEXT_DATA___autoExport;
3193
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(Container, {
3194
+ fn: (error)=>// eslint-disable-next-line @typescript-eslint/no-use-before-define
3195
+ renderError({
3196
+ App: CachedApp,
3197
+ err: error
3198
+ }).catch((err)=>console.error('Error rendering page: ', err)),
3199
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_approutercontextsharedruntime.AppRouterContext.Provider, {
3200
+ value: adaptedForAppRouter,
3201
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_hooksclientcontextsharedruntime.SearchParamsContext.Provider, {
3202
+ value: (0, _adapters.adaptForSearchParams)(router),
3203
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_adapters.PathnameContextProviderAdapter, {
3204
+ router: router,
3205
+ isAutoExport: (_self___NEXT_DATA___autoExport = self.__NEXT_DATA__.autoExport) != null ? _self___NEXT_DATA___autoExport : false,
3206
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_hooksclientcontextsharedruntime.PathParamsContext.Provider, {
3207
+ value: (0, _adapters.adaptForPathParams)(router),
3208
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_routercontextsharedruntime.RouterContext.Provider, {
3209
+ value: (0, _router.makePublicRouterInstance)(router),
3210
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_headmanagercontextsharedruntime.HeadManagerContext.Provider, {
3211
+ value: headManager,
3212
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_imageconfigcontextsharedruntime.ImageConfigContext.Provider, {
3213
+ value: ("TURBOPACK compile-time value", {
3214
+ "deviceSizes": ("TURBOPACK compile-time value", [
3215
+ ("TURBOPACK compile-time value", 640),
3216
+ ("TURBOPACK compile-time value", 750),
3217
+ ("TURBOPACK compile-time value", 828),
3218
+ ("TURBOPACK compile-time value", 1080),
3219
+ ("TURBOPACK compile-time value", 1200),
3220
+ ("TURBOPACK compile-time value", 1920),
3221
+ ("TURBOPACK compile-time value", 2048),
3222
+ ("TURBOPACK compile-time value", 3840)
3223
+ ]),
3224
+ "imageSizes": ("TURBOPACK compile-time value", [
3225
+ ("TURBOPACK compile-time value", 16),
3226
+ ("TURBOPACK compile-time value", 32),
3227
+ ("TURBOPACK compile-time value", 48),
3228
+ ("TURBOPACK compile-time value", 64),
3229
+ ("TURBOPACK compile-time value", 96),
3230
+ ("TURBOPACK compile-time value", 128),
3231
+ ("TURBOPACK compile-time value", 256),
3232
+ ("TURBOPACK compile-time value", 384)
3233
+ ]),
3234
+ "path": ("TURBOPACK compile-time value", "/_next/image"),
3235
+ "loader": ("TURBOPACK compile-time value", "default"),
3236
+ "dangerouslyAllowSVG": ("TURBOPACK compile-time value", false),
3237
+ "unoptimized": ("TURBOPACK compile-time value", false),
3238
+ "domains": ("TURBOPACK compile-time value", []),
3239
+ "remotePatterns": ("TURBOPACK compile-time value", []),
3240
+ "output": ("TURBOPACK compile-time value", "standalone")
3241
+ }),
3242
+ children: children
3243
+ })
3244
+ })
3245
+ })
3246
+ })
3247
+ })
3248
+ })
3249
+ })
3250
+ });
3251
+ }
3252
+ const wrapApp = (App)=>(wrappedAppProps)=>{
3253
+ const appProps = {
3254
+ ...wrappedAppProps,
3255
+ Component: CachedComponent,
3256
+ err: initialData.err,
3257
+ router
3258
+ };
3259
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(AppContainer, {
3260
+ children: renderApp(App, appProps)
3261
+ });
3262
+ };
3263
+ // This method handles all runtime and debug errors.
3264
+ // 404 and 500 errors are special kind of errors
3265
+ // and they are still handle via the main render method.
3266
+ function renderError(renderErrorProps) {
3267
+ let { App, err } = renderErrorProps;
3268
+ // In development runtime errors are caught by our overlay
3269
+ // In production we catch runtime errors using componentDidCatch which will trigger renderError
3270
+ if ("TURBOPACK compile-time truthy", 1) {
3271
+ // A Next.js rendering runtime error is always unrecoverable
3272
+ // FIXME: let's make this recoverable (error in GIP client-transition)
3273
+ devClient.onUnrecoverableError();
3274
+ // We need to render an empty <App> so that the `<ReactDevOverlay>` can
3275
+ // render itself.
3276
+ // TODO: Fix disabled eslint rule
3277
+ // eslint-disable-next-line @typescript-eslint/no-use-before-define
3278
+ return doRender({
3279
+ App: ()=>null,
3280
+ props: {},
3281
+ Component: ()=>null,
3282
+ styleSheets: []
3283
+ });
3284
+ }
3285
+ //TURBOPACK unreachable
3286
+ ;
3287
+ }
3288
+ // Dummy component that we render as a child of Root so that we can
3289
+ // toggle the correct styles before the page is rendered.
3290
+ function Head(param) {
3291
+ let { callback } = param;
3292
+ // We use `useLayoutEffect` to guarantee the callback is executed
3293
+ // as soon as React flushes the update.
3294
+ _react.default.useLayoutEffect({
3295
+ "Head.useLayoutEffect": ()=>callback()
3296
+ }["Head.useLayoutEffect"], [
3297
+ callback
3298
+ ]);
3299
+ return null;
3300
+ }
3301
+ const performanceMarks = {
3302
+ navigationStart: 'navigationStart',
3303
+ beforeRender: 'beforeRender',
3304
+ afterRender: 'afterRender',
3305
+ afterHydrate: 'afterHydrate',
3306
+ routeChange: 'routeChange'
3307
+ };
3308
+ const performanceMeasures = {
3309
+ hydration: 'Next.js-hydration',
3310
+ beforeHydration: 'Next.js-before-hydration',
3311
+ routeChangeToRender: 'Next.js-route-change-to-render',
3312
+ render: 'Next.js-render'
3313
+ };
3314
+ let reactRoot = null;
3315
+ // On initial render a hydrate should always happen
3316
+ let shouldHydrate = true;
3317
+ function clearMarks() {
3318
+ ;
3319
+ [
3320
+ performanceMarks.beforeRender,
3321
+ performanceMarks.afterHydrate,
3322
+ performanceMarks.afterRender,
3323
+ performanceMarks.routeChange
3324
+ ].forEach((mark)=>performance.clearMarks(mark));
3325
+ }
3326
+ function markHydrateComplete() {
3327
+ if (!_utils.ST) return;
3328
+ performance.mark(performanceMarks.afterHydrate) // mark end of hydration
3329
+ ;
3330
+ const hasBeforeRenderMark = performance.getEntriesByName(performanceMarks.beforeRender, 'mark').length;
3331
+ if (hasBeforeRenderMark) {
3332
+ const beforeHydrationMeasure = performance.measure(performanceMeasures.beforeHydration, performanceMarks.navigationStart, performanceMarks.beforeRender);
3333
+ const hydrationMeasure = performance.measure(performanceMeasures.hydration, performanceMarks.beforeRender, performanceMarks.afterHydrate);
3334
+ if (("TURBOPACK compile-time value", "development") === 'development' && // Old versions of Safari don't return `PerformanceMeasure`s from `performance.measure()`
3335
+ beforeHydrationMeasure && hydrationMeasure) {
3336
+ _tracer.default.startSpan('navigation-to-hydration', {
3337
+ startTime: performance.timeOrigin + beforeHydrationMeasure.startTime,
3338
+ attributes: {
3339
+ pathname: location.pathname,
3340
+ query: location.search
3341
+ }
3342
+ }).end(performance.timeOrigin + hydrationMeasure.startTime + hydrationMeasure.duration);
3343
+ }
3344
+ }
3345
+ if (onPerfEntry) {
3346
+ performance.getEntriesByName(performanceMeasures.hydration).forEach(onPerfEntry);
3347
+ }
3348
+ clearMarks();
3349
+ }
3350
+ function markRenderComplete() {
3351
+ if (!_utils.ST) return;
3352
+ performance.mark(performanceMarks.afterRender) // mark end of render
3353
+ ;
3354
+ const navStartEntries = performance.getEntriesByName(performanceMarks.routeChange, 'mark');
3355
+ if (!navStartEntries.length) return;
3356
+ const hasBeforeRenderMark = performance.getEntriesByName(performanceMarks.beforeRender, 'mark').length;
3357
+ if (hasBeforeRenderMark) {
3358
+ performance.measure(performanceMeasures.routeChangeToRender, navStartEntries[0].name, performanceMarks.beforeRender);
3359
+ performance.measure(performanceMeasures.render, performanceMarks.beforeRender, performanceMarks.afterRender);
3360
+ if (onPerfEntry) {
3361
+ performance.getEntriesByName(performanceMeasures.render).forEach(onPerfEntry);
3362
+ performance.getEntriesByName(performanceMeasures.routeChangeToRender).forEach(onPerfEntry);
3363
+ }
3364
+ }
3365
+ clearMarks();
3366
+ [
3367
+ performanceMeasures.routeChangeToRender,
3368
+ performanceMeasures.render
3369
+ ].forEach((measure)=>performance.clearMeasures(measure));
3370
+ }
3371
+ function renderReactElement(domEl, fn) {
3372
+ // mark start of hydrate/render
3373
+ if (_utils.ST) {
3374
+ performance.mark(performanceMarks.beforeRender);
3375
+ }
3376
+ const reactEl = fn(shouldHydrate ? markHydrateComplete : markRenderComplete);
3377
+ if (!reactRoot) {
3378
+ // Unlike with createRoot, you don't need a separate root.render() call here
3379
+ reactRoot = _client.default.hydrateRoot(domEl, reactEl, {
3380
+ onRecoverableError: _onrecoverableerror.onRecoverableError
3381
+ });
3382
+ // TODO: Remove shouldHydrate variable when React 18 is stable as it can depend on `reactRoot` existing
3383
+ shouldHydrate = false;
3384
+ } else {
3385
+ const startTransition = _react.default.startTransition;
3386
+ startTransition(()=>{
3387
+ reactRoot.render(reactEl);
3388
+ });
3389
+ }
3390
+ }
3391
+ function Root(param) {
3392
+ let { callbacks, children } = param;
3393
+ // We use `useLayoutEffect` to guarantee the callbacks are executed
3394
+ // as soon as React flushes the update
3395
+ _react.default.useLayoutEffect({
3396
+ "Root.useLayoutEffect": ()=>callbacks.forEach({
3397
+ "Root.useLayoutEffect": (callback)=>callback()
3398
+ }["Root.useLayoutEffect"])
3399
+ }["Root.useLayoutEffect"], [
3400
+ callbacks
3401
+ ]);
3402
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
3403
+ ;
3404
+ return children;
3405
+ }
3406
+ function doRender(input) {
3407
+ let { App, Component, props, err } = input;
3408
+ let styleSheets = 'initial' in input ? undefined : input.styleSheets;
3409
+ Component = Component || lastAppProps.Component;
3410
+ props = props || lastAppProps.props;
3411
+ const appProps = {
3412
+ ...props,
3413
+ Component,
3414
+ err,
3415
+ router
3416
+ };
3417
+ // lastAppProps has to be set before ReactDom.render to account for ReactDom throwing an error.
3418
+ lastAppProps = appProps;
3419
+ let canceled = false;
3420
+ let resolvePromise;
3421
+ const renderPromise = new Promise((resolve, reject)=>{
3422
+ if (lastRenderReject) {
3423
+ lastRenderReject();
3424
+ }
3425
+ resolvePromise = ()=>{
3426
+ lastRenderReject = null;
3427
+ resolve();
3428
+ };
3429
+ lastRenderReject = ()=>{
3430
+ canceled = true;
3431
+ lastRenderReject = null;
3432
+ const error = Object.defineProperty(new Error('Cancel rendering route'), "__NEXT_ERROR_CODE", {
3433
+ value: "E503",
3434
+ enumerable: false,
3435
+ configurable: true
3436
+ });
3437
+ error.cancelled = true;
3438
+ reject(error);
3439
+ };
3440
+ });
3441
+ // This function has a return type to ensure it doesn't start returning a
3442
+ // Promise. It should remain synchronous.
3443
+ function onStart() {
3444
+ if ("TURBOPACK compile-time truthy", 1) {
3445
+ return false;
3446
+ }
3447
+ //TURBOPACK unreachable
3448
+ ;
3449
+ const currentStyleTags = undefined;
3450
+ const currentHrefs = undefined;
3451
+ const noscript = undefined;
3452
+ const nonce = undefined;
3453
+ }
3454
+ function onHeadCommit() {
3455
+ if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
3456
+ ;
3457
+ if (input.scroll) {
3458
+ const { x, y } = input.scroll;
3459
+ (0, _disablesmoothscroll.disableSmoothScrollDuringRouteTransition)(()=>{
3460
+ window.scrollTo(x, y);
3461
+ });
3462
+ }
3463
+ }
3464
+ function onRootCommit() {
3465
+ resolvePromise();
3466
+ }
3467
+ onStart();
3468
+ const elem = /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
3469
+ children: [
3470
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(Head, {
3471
+ callback: onHeadCommit
3472
+ }),
3473
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(AppContainer, {
3474
+ children: [
3475
+ renderApp(App, appProps),
3476
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_portal.Portal, {
3477
+ type: "next-route-announcer",
3478
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_routeannouncer.RouteAnnouncer, {})
3479
+ })
3480
+ ]
3481
+ })
3482
+ ]
3483
+ });
3484
+ // We catch runtime errors using componentDidCatch which will trigger renderError
3485
+ renderReactElement(appElement, (callback)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(Root, {
3486
+ callbacks: [
3487
+ callback,
3488
+ onRootCommit
3489
+ ],
3490
+ children: ("TURBOPACK compile-time falsy", 0) ? /*#__PURE__*/ "TURBOPACK unreachable" : elem
3491
+ }));
3492
+ return renderPromise;
3493
+ }
3494
+ async function render(renderingProps) {
3495
+ // if an error occurs in a server-side page (e.g. in getInitialProps),
3496
+ // skip re-rendering the error page client-side as data-fetching operations
3497
+ // will already have been done on the server and NEXT_DATA contains the correct
3498
+ // data for straight-forward hydration of the error page
3499
+ if (renderingProps.err && // renderingProps.Component might be undefined if there is a top/module-level error
3500
+ (typeof renderingProps.Component === 'undefined' || !renderingProps.isHydratePass)) {
3501
+ await renderError(renderingProps);
3502
+ return;
3503
+ }
3504
+ try {
3505
+ await doRender(renderingProps);
3506
+ } catch (err) {
3507
+ const renderErr = (0, _iserror.getProperError)(err);
3508
+ // bubble up cancelation errors
3509
+ if (renderErr.cancelled) {
3510
+ throw renderErr;
3511
+ }
3512
+ if ("TURBOPACK compile-time truthy", 1) {
3513
+ // Ensure this error is displayed in the overlay in development
3514
+ setTimeout(()=>{
3515
+ throw renderErr;
3516
+ });
3517
+ }
3518
+ await renderError({
3519
+ ...renderingProps,
3520
+ err: renderErr
3521
+ });
3522
+ }
3523
+ }
3524
+ async function hydrate(opts) {
3525
+ let initialErr = initialData.err;
3526
+ try {
3527
+ const appEntrypoint = await pageLoader.routeLoader.whenEntrypoint('/_app');
3528
+ if ('error' in appEntrypoint) {
3529
+ throw appEntrypoint.error;
3530
+ }
3531
+ const { component: app, exports: mod } = appEntrypoint;
3532
+ CachedApp = app;
3533
+ if (mod && mod.reportWebVitals) {
3534
+ onPerfEntry = (param)=>{
3535
+ let { id, name, startTime, value, duration, entryType, entries, attribution } = param;
3536
+ // Combines timestamp with random number for unique ID
3537
+ const uniqueID = Date.now() + "-" + (Math.floor(Math.random() * (9e12 - 1)) + 1e12);
3538
+ let perfStartEntry;
3539
+ if (entries && entries.length) {
3540
+ perfStartEntry = entries[0].startTime;
3541
+ }
3542
+ const webVitals = {
3543
+ id: id || uniqueID,
3544
+ name,
3545
+ startTime: startTime || perfStartEntry,
3546
+ value: value == null ? duration : value,
3547
+ label: entryType === 'mark' || entryType === 'measure' ? 'custom' : 'web-vital'
3548
+ };
3549
+ if (attribution) {
3550
+ webVitals.attribution = attribution;
3551
+ }
3552
+ mod.reportWebVitals(webVitals);
3553
+ };
3554
+ }
3555
+ const pageEntrypoint = // error, so we need to skip waiting for the entrypoint.
3556
+ ("TURBOPACK compile-time value", "development") === 'development' && initialData.err ? {
3557
+ error: initialData.err
3558
+ } : await pageLoader.routeLoader.whenEntrypoint(initialData.page);
3559
+ if ('error' in pageEntrypoint) {
3560
+ throw pageEntrypoint.error;
3561
+ }
3562
+ CachedComponent = pageEntrypoint.component;
3563
+ if ("TURBOPACK compile-time truthy", 1) {
3564
+ const { isValidElementType } = __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/react-is/index.js [client] (ecmascript)");
3565
+ if (!isValidElementType(CachedComponent)) {
3566
+ throw Object.defineProperty(new Error('The default export is not a React Component in page: "' + initialData.page + '"'), "__NEXT_ERROR_CODE", {
3567
+ value: "E286",
3568
+ enumerable: false,
3569
+ configurable: true
3570
+ });
3571
+ }
3572
+ }
3573
+ } catch (error) {
3574
+ // This catches errors like throwing in the top level of a module
3575
+ initialErr = (0, _iserror.getProperError)(error);
3576
+ }
3577
+ if ("TURBOPACK compile-time truthy", 1) {
3578
+ const getServerError = __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/dev/node-stack-frames.js [client] (ecmascript)").getServerError;
3579
+ // Server-side runtime errors need to be re-thrown on the client-side so
3580
+ // that the overlay is rendered.
3581
+ if (initialErr) {
3582
+ if (initialErr === initialData.err) {
3583
+ setTimeout(()=>{
3584
+ let error;
3585
+ try {
3586
+ // Generate a new error object. We `throw` it because some browsers
3587
+ // will set the `stack` when thrown, and we want to ensure ours is
3588
+ // not overridden when we re-throw it below.
3589
+ throw Object.defineProperty(new Error(initialErr.message), "__NEXT_ERROR_CODE", {
3590
+ value: "E394",
3591
+ enumerable: false,
3592
+ configurable: true
3593
+ });
3594
+ } catch (e) {
3595
+ error = e;
3596
+ }
3597
+ error.name = initialErr.name;
3598
+ error.stack = initialErr.stack;
3599
+ const errSource = initialErr.source;
3600
+ // In development, error the navigation API usage in runtime,
3601
+ // since it's not allowed to be used in pages router as it doesn't contain error boundary like app router.
3602
+ if ((0, _isnextroutererror.isNextRouterError)(initialErr)) {
3603
+ error.message = 'Next.js navigation API is not allowed to be used in Pages Router.';
3604
+ }
3605
+ throw getServerError(error, errSource);
3606
+ });
3607
+ } else {
3608
+ setTimeout(()=>{
3609
+ throw initialErr;
3610
+ });
3611
+ }
3612
+ }
3613
+ }
3614
+ if (window.__NEXT_PRELOADREADY) {
3615
+ await window.__NEXT_PRELOADREADY(initialData.dynamicIds);
3616
+ }
3617
+ router = (0, _router.createRouter)(initialData.page, initialData.query, asPath, {
3618
+ initialProps: initialData.props,
3619
+ pageLoader,
3620
+ App: CachedApp,
3621
+ Component: CachedComponent,
3622
+ wrapApp,
3623
+ err: initialErr,
3624
+ isFallback: Boolean(initialData.isFallback),
3625
+ subscription: (info, App, scroll)=>render(Object.assign({}, info, {
3626
+ App,
3627
+ scroll
3628
+ })),
3629
+ locale: initialData.locale,
3630
+ locales: initialData.locales,
3631
+ defaultLocale,
3632
+ domainLocales: initialData.domainLocales,
3633
+ isPreview: initialData.isPreview
3634
+ });
3635
+ initialMatchesMiddleware = await router._initialMatchesMiddlewarePromise;
3636
+ const renderCtx = {
3637
+ App: CachedApp,
3638
+ initial: true,
3639
+ Component: CachedComponent,
3640
+ props: initialData.props,
3641
+ err: initialErr,
3642
+ isHydratePass: true
3643
+ };
3644
+ if (opts == null ? void 0 : opts.beforeRender) {
3645
+ await opts.beforeRender();
3646
+ }
3647
+ render(renderCtx);
3648
+ }
3649
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
3650
+ Object.defineProperty(exports.default, '__esModule', {
3651
+ value: true
3652
+ });
3653
+ Object.assign(exports.default, exports);
3654
+ module.exports = exports.default;
3655
+ } //# sourceMappingURL=index.js.map
3656
+ }),
3657
+ "[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-middleware-client.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
3658
+ "use strict";
3659
+
3660
+ Object.defineProperty(exports, "__esModule", {
3661
+ value: true
3662
+ });
3663
+ Object.defineProperty(exports, "default", {
3664
+ enumerable: true,
3665
+ get: function() {
3666
+ return _default;
3667
+ }
3668
+ });
3669
+ 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)");
3670
+ const _hotreloaderpages = /*#__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/client/dev/hot-reloader/pages/hot-reloader-pages.js [client] (ecmascript)"));
3671
+ const _websocket = __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/websocket.js [client] (ecmascript)");
3672
+ let reloading = false;
3673
+ const _default = ()=>{
3674
+ const devClient = (0, _hotreloaderpages.default)();
3675
+ devClient.subscribeToHmrEvent((obj)=>{
3676
+ var _window_next;
3677
+ if (reloading) return;
3678
+ // Retrieve the router if it's available
3679
+ const router = (_window_next = window.next) == null ? void 0 : _window_next.router;
3680
+ // Determine if we're on an error page or the router is not initialized
3681
+ const isOnErrorPage = !router || router.pathname === '/404' || router.pathname === '/_error';
3682
+ switch(obj.action){
3683
+ case 'reloadPage':
3684
+ {
3685
+ (0, _websocket.sendMessage)(JSON.stringify({
3686
+ event: 'client-reload-page',
3687
+ clientId: window.__nextDevClientId
3688
+ }));
3689
+ reloading = true;
3690
+ return window.location.reload();
3691
+ }
3692
+ case 'removedPage':
3693
+ {
3694
+ const [page] = obj.data;
3695
+ // Check if the removed page is the current page
3696
+ const isCurrentPage = page === (router == null ? void 0 : router.pathname);
3697
+ // We enter here if the removed page is currently being viewed
3698
+ // or if we happen to be on an error page.
3699
+ if (isCurrentPage || isOnErrorPage) {
3700
+ (0, _websocket.sendMessage)(JSON.stringify({
3701
+ event: 'client-removed-page',
3702
+ clientId: window.__nextDevClientId,
3703
+ page
3704
+ }));
3705
+ return window.location.reload();
3706
+ }
3707
+ return;
3708
+ }
3709
+ case 'addedPage':
3710
+ {
3711
+ var _router_components;
3712
+ const [page] = obj.data;
3713
+ // Check if the added page is the current page
3714
+ const isCurrentPage = page === (router == null ? void 0 : router.pathname);
3715
+ // Check if the page component is not yet loaded
3716
+ const isPageNotLoaded = typeof (router == null ? void 0 : (_router_components = router.components) == null ? void 0 : _router_components[page]) === 'undefined';
3717
+ // We enter this block if the newly added page is the one currently being viewed
3718
+ // but hasn't been loaded yet, or if we're on an error page.
3719
+ if (isCurrentPage && isPageNotLoaded || isOnErrorPage) {
3720
+ (0, _websocket.sendMessage)(JSON.stringify({
3721
+ event: 'client-added-page',
3722
+ clientId: window.__nextDevClientId,
3723
+ page
3724
+ }));
3725
+ return window.location.reload();
3726
+ }
3727
+ return;
3728
+ }
3729
+ case 'serverError':
3730
+ case 'devPagesManifestUpdate':
3731
+ case 'isrManifest':
3732
+ case 'building':
3733
+ case 'finishBuilding':
3734
+ {
3735
+ return;
3736
+ }
3737
+ default:
3738
+ {
3739
+ throw Object.defineProperty(new Error('Unexpected action ' + obj.action), "__NEXT_ERROR_CODE", {
3740
+ value: "E59",
3741
+ enumerable: false,
3742
+ configurable: true
3743
+ });
3744
+ }
3745
+ }
3746
+ });
3747
+ return devClient;
3748
+ };
3749
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
3750
+ Object.defineProperty(exports.default, '__esModule', {
3751
+ value: true
3752
+ });
3753
+ Object.assign(exports.default, exports);
3754
+ module.exports = exports.default;
3755
+ } //# sourceMappingURL=hot-middleware-client.js.map
3756
+ }),
3757
+ "[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/on-demand-entries-client.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
3758
+ "use strict";
3759
+
3760
+ 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)");
3761
+ "use strict";
3762
+ Object.defineProperty(exports, "__esModule", {
3763
+ value: true
3764
+ });
3765
+ Object.defineProperty(exports, "default", {
3766
+ enumerable: true,
3767
+ get: function() {
3768
+ return _default;
3769
+ }
3770
+ });
3771
+ 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)");
3772
+ const _router = /*#__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/client/router.js [client] (ecmascript)"));
3773
+ const _websocket = __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/websocket.js [client] (ecmascript)");
3774
+ const _default = async (page)=>{
3775
+ // Never send pings when using Turbopack as it's not used.
3776
+ // Pings were originally used to keep track of active routes in on-demand-entries with webpack.
3777
+ if ("TURBOPACK compile-time truthy", 1) {
3778
+ return;
3779
+ }
3780
+ //TURBOPACK unreachable
3781
+ ;
3782
+ };
3783
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
3784
+ Object.defineProperty(exports.default, '__esModule', {
3785
+ value: true
3786
+ });
3787
+ Object.assign(exports.default, exports);
3788
+ module.exports = exports.default;
3789
+ } //# sourceMappingURL=on-demand-entries-client.js.map
3790
+ }),
3791
+ "[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/fouc.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
3792
+ "use strict";
3793
+
3794
+ // This wrapper function is used to safely select the best available function
3795
+ // to schedule removal of the no-FOUC styles workaround. requestAnimationFrame
3796
+ // is the ideal choice, but when used in iframes, there are no guarantees that
3797
+ // the callback will actually be called, which could stall the promise returned
3798
+ // from displayContent.
3799
+ //
3800
+ // See: https://www.vector-logic.com/blog/posts/on-request-animation-frame-and-embedded-iframes
3801
+ Object.defineProperty(exports, "__esModule", {
3802
+ value: true
3803
+ });
3804
+ Object.defineProperty(exports, "displayContent", {
3805
+ enumerable: true,
3806
+ get: function() {
3807
+ return displayContent;
3808
+ }
3809
+ });
3810
+ const safeCallbackQueue = (callback)=>{
3811
+ if (window.requestAnimationFrame && window.self === window.top) {
3812
+ window.requestAnimationFrame(callback);
3813
+ } else {
3814
+ window.setTimeout(callback);
3815
+ }
3816
+ };
3817
+ function displayContent() {
3818
+ return new Promise((resolve)=>{
3819
+ safeCallbackQueue(function() {
3820
+ for(var x = document.querySelectorAll('[data-next-hide-fouc]'), i = x.length; i--;){
3821
+ x[i].parentNode.removeChild(x[i]);
3822
+ }
3823
+ resolve();
3824
+ });
3825
+ });
3826
+ }
3827
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
3828
+ Object.defineProperty(exports.default, '__esModule', {
3829
+ value: true
3830
+ });
3831
+ Object.assign(exports.default, exports);
3832
+ module.exports = exports.default;
3833
+ } //# sourceMappingURL=fouc.js.map
3834
+ }),
3835
+ "[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/page-bootstrap.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
3836
+ "use strict";
3837
+
3838
+ Object.defineProperty(exports, "__esModule", {
3839
+ value: true
3840
+ });
3841
+ Object.defineProperty(exports, "pageBootstrap", {
3842
+ enumerable: true,
3843
+ get: function() {
3844
+ return pageBootstrap;
3845
+ }
3846
+ });
3847
+ 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)");
3848
+ __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/require-instrumentation-client.js [client] (ecmascript)");
3849
+ const _ = __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/index.js [client] (ecmascript)");
3850
+ const _ondemandentriesclient = /*#__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/client/dev/on-demand-entries-client.js [client] (ecmascript)"));
3851
+ const _fouc = __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/fouc.js [client] (ecmascript)");
3852
+ const _websocket = __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/websocket.js [client] (ecmascript)");
3853
+ const _querystring = __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/router/utils/querystring.js [client] (ecmascript)");
3854
+ const _hotreloadertypes = __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/dev/hot-reloader-types.js [client] (ecmascript)");
3855
+ const _runtimeerrorhandler = __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/runtime-error-handler.js [client] (ecmascript)");
3856
+ const _shared = __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/shared.js [client] (ecmascript)");
3857
+ const _hotreloaderpages = __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)");
3858
+ 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)");
3859
+ function pageBootstrap(assetPrefix) {
3860
+ (0, _websocket.connectHMR)({
3861
+ assetPrefix,
3862
+ path: '/_next/webpack-hmr'
3863
+ });
3864
+ return (0, _.hydrate)({
3865
+ beforeRender: _fouc.displayContent
3866
+ }).then(()=>{
3867
+ (0, _ondemandentriesclient.default)();
3868
+ let reloading = false;
3869
+ (0, _websocket.addMessageListener)((payload)=>{
3870
+ if (reloading) return;
3871
+ if ('action' in payload) {
3872
+ switch(payload.action){
3873
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.SERVER_ERROR:
3874
+ {
3875
+ const { stack, message } = JSON.parse(payload.errorJSON);
3876
+ const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
3877
+ value: "E394",
3878
+ enumerable: false,
3879
+ configurable: true
3880
+ });
3881
+ error.stack = stack;
3882
+ throw error;
3883
+ }
3884
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.RELOAD_PAGE:
3885
+ {
3886
+ reloading = true;
3887
+ window.location.reload();
3888
+ break;
3889
+ }
3890
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.DEV_PAGES_MANIFEST_UPDATE:
3891
+ {
3892
+ fetch("" + assetPrefix + "/_next/static/development/_devPagesManifest.json").then((res)=>res.json()).then((manifest)=>{
3893
+ window.__DEV_PAGES_MANIFEST = manifest;
3894
+ }).catch((err)=>{
3895
+ console.log("Failed to fetch devPagesManifest", err);
3896
+ });
3897
+ break;
3898
+ }
3899
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.ADDED_PAGE:
3900
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.REMOVED_PAGE:
3901
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.SERVER_COMPONENT_CHANGES:
3902
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.SYNC:
3903
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.BUILT:
3904
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.BUILDING:
3905
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_MESSAGE:
3906
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_CONNECTED:
3907
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.ISR_MANIFEST:
3908
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.DEVTOOLS_CONFIG:
3909
+ break;
3910
+ default:
3911
+ payload;
3912
+ }
3913
+ } else if ('event' in payload) {
3914
+ switch(payload.event){
3915
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.MIDDLEWARE_CHANGES:
3916
+ {
3917
+ return window.location.reload();
3918
+ }
3919
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.CLIENT_CHANGES:
3920
+ {
3921
+ // This is used in `../server/dev/turbopack-utils.ts`.
3922
+ const isOnErrorPage = window.next.router.pathname === '/_error';
3923
+ // On the error page we want to reload the page when a page was changed
3924
+ if (isOnErrorPage) {
3925
+ if (_runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError) {
3926
+ console.warn(_shared.REACT_REFRESH_FULL_RELOAD_FROM_ERROR);
3927
+ }
3928
+ reloading = true;
3929
+ (0, _hotreloaderpages.performFullReload)(null);
3930
+ }
3931
+ break;
3932
+ }
3933
+ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.SERVER_ONLY_CHANGES:
3934
+ {
3935
+ if (_runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError) {
3936
+ console.warn(_shared.REACT_REFRESH_FULL_RELOAD_FROM_ERROR);
3937
+ (0, _hotreloaderpages.performFullReload)(null);
3938
+ }
3939
+ const { pages } = payload;
3940
+ // Make sure to reload when the dev-overlay is showing for an
3941
+ // API route
3942
+ // TODO: Fix `__NEXT_PAGE` type
3943
+ if (pages.includes(_.router.query.__NEXT_PAGE)) {
3944
+ return window.location.reload();
3945
+ }
3946
+ if (!_.router.clc && pages.includes(_.router.pathname)) {
3947
+ console.log('Refreshing page data due to server-side change');
3948
+ _nextdevtools.dispatcher.buildingIndicatorShow();
3949
+ const clearIndicator = _nextdevtools.dispatcher.buildingIndicatorHide;
3950
+ _.router.replace(_.router.pathname + '?' + String((0, _querystring.assign)((0, _querystring.urlQueryToSearchParams)(_.router.query), new URLSearchParams(location.search))), _.router.asPath, {
3951
+ scroll: false
3952
+ }).catch(()=>{
3953
+ // trigger hard reload when failing to refresh data
3954
+ // to show error overlay properly
3955
+ location.reload();
3956
+ }).finally(clearIndicator);
3957
+ }
3958
+ break;
3959
+ }
3960
+ default:
3961
+ payload;
3962
+ }
3963
+ }
3964
+ });
3965
+ });
3966
+ }
3967
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
3968
+ Object.defineProperty(exports.default, '__esModule', {
3969
+ value: true
3970
+ });
3971
+ Object.assign(exports.default, exports);
3972
+ module.exports = exports.default;
3973
+ } //# sourceMappingURL=page-bootstrap.js.map
3974
+ }),
3975
+ "[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/next-dev-turbopack.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
3976
+ "use strict";
3977
+
3978
+ // TODO: Remove use of `any` type.
3979
+ Object.defineProperty(exports, "__esModule", {
3980
+ value: true
3981
+ });
3982
+ 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)");
3983
+ const _ = __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/index.js [client] (ecmascript)");
3984
+ const _hotmiddlewareclient = /*#__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/client/dev/hot-middleware-client.js [client] (ecmascript)"));
3985
+ const _pagebootstrap = __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/page-bootstrap.js [client] (ecmascript)");
3986
+ const _hmrclientts = __turbopack_context__.r("[turbopack]/browser/dev/hmr-client/hmr-client.ts [client] (ecmascript)");
3987
+ window.next = {
3988
+ version: _.version,
3989
+ turbopack: true,
3990
+ // router is initialized later so it has to be live-binded
3991
+ get router () {
3992
+ return _.router;
3993
+ },
3994
+ emitter: _.emitter
3995
+ };
3996
+ self.__next_set_public_path__ = ()=>{};
3997
+ self.__webpack_hash__ = '';
3998
+ const devClient = (0, _hotmiddlewareclient.default)();
3999
+ (0, _.initialize)({
4000
+ devClient
4001
+ }).then((param)=>{
4002
+ let { assetPrefix } = param;
4003
+ // for the page loader
4004
+ ;
4005
+ self.__turbopack_load_page_chunks__ = (page, chunksData)=>{
4006
+ const chunkPromises = chunksData.map((c)=>/*TURBOPACK member replacement*/ __turbopack_context__.l(c));
4007
+ Promise.all(chunkPromises).catch((err)=>console.error('failed to load chunks for page ' + page, err));
4008
+ };
4009
+ (0, _hmrclientts.connect)({
4010
+ addMessageListener (cb) {
4011
+ devClient.addTurbopackMessageListener(cb);
4012
+ },
4013
+ sendMessage: devClient.sendTurbopackMessage,
4014
+ onUpdateError: devClient.handleUpdateError
4015
+ });
4016
+ return (0, _pagebootstrap.pageBootstrap)(assetPrefix);
4017
+ }).catch((err)=>{
4018
+ console.error('Error was not caught', err);
4019
+ });
4020
+ if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
4021
+ Object.defineProperty(exports.default, '__esModule', {
4022
+ value: true
4023
+ });
4024
+ Object.assign(exports.default, exports);
4025
+ module.exports = exports.default;
4026
+ } //# sourceMappingURL=next-dev-turbopack.js.map
4027
+ }),
4028
+ ]);
4029
+
4030
+ //# sourceMappingURL=b5d7d_next_dist_client_aca12300._.js.map