remote-components 0.4.8 → 0.4.10

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 (94) hide show
  1. package/dist/{chunk-JZRA6DPE.js → chunk-3PR3SWYZ.js} +7 -54
  2. package/dist/chunk-3PR3SWYZ.js.map +1 -0
  3. package/dist/{chunk-I7VKDF3E.cjs → chunk-6PZEDIAK.cjs} +5 -52
  4. package/dist/chunk-6PZEDIAK.cjs.map +1 -0
  5. package/dist/{chunk-FF4SXSSG.js → chunk-GR5FN73U.js} +3 -3
  6. package/dist/{chunk-EW5O3Q24.cjs → chunk-HZP4FWPG.cjs} +23 -23
  7. package/dist/{chunk-EW5O3Q24.cjs.map → chunk-HZP4FWPG.cjs.map} +1 -1
  8. package/dist/{chunk-WGSS7TJP.js → chunk-M6ACTSVB.js} +2 -2
  9. package/dist/{chunk-VJO4PTWG.js → chunk-N6AJM72A.js} +6 -6
  10. package/dist/chunk-N6AJM72A.js.map +1 -0
  11. package/dist/{chunk-O4ED3BUP.cjs → chunk-OSSMJQFE.cjs} +19 -19
  12. package/dist/{chunk-YJJFRORQ.cjs → chunk-PCHSF5LH.cjs} +315 -74
  13. package/dist/chunk-PCHSF5LH.cjs.map +1 -0
  14. package/dist/{chunk-KCUEMMYL.js → chunk-RHRDUJ3K.js} +3 -3
  15. package/dist/{chunk-KAFPXSRI.cjs → chunk-RZ224NSH.cjs} +18 -18
  16. package/dist/{chunk-STMO56U2.js → chunk-VFK4HGZT.js} +264 -23
  17. package/dist/chunk-VFK4HGZT.js.map +1 -0
  18. package/dist/{chunk-4MLJE6UP.cjs → chunk-XWRB6CEA.cjs} +3 -3
  19. package/dist/config/nextjs.cjs +5 -5
  20. package/dist/config/nextjs.cjs.map +1 -1
  21. package/dist/config/nextjs.js +1 -1
  22. package/dist/config/nextjs.js.map +1 -1
  23. package/dist/host/html.cjs +19 -19
  24. package/dist/host/html.js +7 -7
  25. package/dist/host/nextjs/app/client-only.cjs +11 -11
  26. package/dist/host/nextjs/app/client-only.js +6 -6
  27. package/dist/host/nextjs/pages/client-only.cjs +42 -24
  28. package/dist/host/nextjs/pages/client-only.cjs.map +1 -1
  29. package/dist/host/nextjs/pages/client-only.d.ts +1 -1
  30. package/dist/host/nextjs/pages/client-only.js +42 -24
  31. package/dist/host/nextjs/pages/client-only.js.map +1 -1
  32. package/dist/host/react.cjs +7 -7
  33. package/dist/host/react.js +6 -6
  34. package/dist/internal/config/webpack/apply-shared-modules.cjs +8 -0
  35. package/dist/internal/config/webpack/apply-shared-modules.cjs.map +1 -1
  36. package/dist/internal/config/webpack/apply-shared-modules.d.ts +6 -1
  37. package/dist/internal/config/webpack/apply-shared-modules.js +10 -0
  38. package/dist/internal/config/webpack/apply-shared-modules.js.map +1 -1
  39. package/dist/internal/config/webpack/provider-adapter.cjs +85 -0
  40. package/dist/internal/config/webpack/provider-adapter.cjs.map +1 -0
  41. package/dist/internal/config/webpack/provider-adapter.d.ts +7 -0
  42. package/dist/internal/config/webpack/provider-adapter.js +64 -0
  43. package/dist/internal/config/webpack/provider-adapter.js.map +1 -0
  44. package/dist/internal/config/webpack/shared-module-resolver.cjs +73 -0
  45. package/dist/internal/config/webpack/shared-module-resolver.cjs.map +1 -0
  46. package/dist/internal/config/webpack/shared-module-resolver.d.ts +35 -0
  47. package/dist/internal/config/webpack/shared-module-resolver.js +50 -0
  48. package/dist/internal/config/webpack/shared-module-resolver.js.map +1 -0
  49. package/dist/internal/host/shared/provider.cjs +188 -0
  50. package/dist/internal/host/shared/provider.cjs.map +1 -0
  51. package/dist/internal/host/shared/provider.d.ts +71 -0
  52. package/dist/internal/host/shared/provider.js +161 -0
  53. package/dist/internal/host/shared/provider.js.map +1 -0
  54. package/dist/internal/host/shared/shared-broker.cjs +0 -30
  55. package/dist/internal/host/shared/shared-broker.cjs.map +1 -1
  56. package/dist/internal/host/shared/shared-broker.d.ts +1 -7
  57. package/dist/internal/host/shared/shared-broker.js +0 -29
  58. package/dist/internal/host/shared/shared-broker.js.map +1 -1
  59. package/dist/internal/host/shared/shared-module-resolver.cjs +7 -29
  60. package/dist/internal/host/shared/shared-module-resolver.cjs.map +1 -1
  61. package/dist/internal/host/shared/shared-module-resolver.d.ts +13 -34
  62. package/dist/internal/host/shared/shared-module-resolver.js +5 -29
  63. package/dist/internal/host/shared/shared-module-resolver.js.map +1 -1
  64. package/dist/internal/runtime/loaders/component-loader.cjs +3 -2
  65. package/dist/internal/runtime/loaders/component-loader.cjs.map +1 -1
  66. package/dist/internal/runtime/loaders/component-loader.js +2 -4
  67. package/dist/internal/runtime/loaders/component-loader.js.map +1 -1
  68. package/dist/internal/runtime/turbopack/shared-modules.cjs +13 -19
  69. package/dist/internal/runtime/turbopack/shared-modules.cjs.map +1 -1
  70. package/dist/internal/runtime/turbopack/shared-modules.js +17 -21
  71. package/dist/internal/runtime/turbopack/shared-modules.js.map +1 -1
  72. package/dist/{turbopack-XDIGB4GI.js → turbopack-6BSS3SYN.js} +5 -5
  73. package/dist/turbopack-6BSS3SYN.js.map +1 -0
  74. package/dist/{turbopack-RXVSOWF7.cjs → turbopack-UMJ7SLJL.cjs} +12 -12
  75. package/dist/{turbopack-RXVSOWF7.cjs.map → turbopack-UMJ7SLJL.cjs.map} +1 -1
  76. package/dist/{webpack-3QXPAZN4.js → webpack-4QYGIVE6.js} +9 -7
  77. package/dist/webpack-4QYGIVE6.js.map +1 -0
  78. package/dist/{webpack-HKD7RZRE.cjs → webpack-65BVWX2U.cjs} +13 -11
  79. package/dist/webpack-65BVWX2U.cjs.map +1 -0
  80. package/package.json +1 -1
  81. package/dist/chunk-I7VKDF3E.cjs.map +0 -1
  82. package/dist/chunk-JZRA6DPE.js.map +0 -1
  83. package/dist/chunk-STMO56U2.js.map +0 -1
  84. package/dist/chunk-VJO4PTWG.js.map +0 -1
  85. package/dist/chunk-YJJFRORQ.cjs.map +0 -1
  86. package/dist/turbopack-XDIGB4GI.js.map +0 -1
  87. package/dist/webpack-3QXPAZN4.js.map +0 -1
  88. package/dist/webpack-HKD7RZRE.cjs.map +0 -1
  89. /package/dist/{chunk-FF4SXSSG.js.map → chunk-GR5FN73U.js.map} +0 -0
  90. /package/dist/{chunk-WGSS7TJP.js.map → chunk-M6ACTSVB.js.map} +0 -0
  91. /package/dist/{chunk-O4ED3BUP.cjs.map → chunk-OSSMJQFE.cjs.map} +0 -0
  92. /package/dist/{chunk-KCUEMMYL.js.map → chunk-RHRDUJ3K.js.map} +0 -0
  93. /package/dist/{chunk-KAFPXSRI.cjs.map → chunk-RZ224NSH.cjs.map} +0 -0
  94. /package/dist/{chunk-4MLJE6UP.cjs.map → chunk-XWRB6CEA.cjs.map} +0 -0
@@ -8,7 +8,8 @@
8
8
 
9
9
 
10
10
 
11
- var _chunkI7VKDF3Ecjs = require('./chunk-I7VKDF3E.cjs');
11
+
12
+ var _chunk6PZEDIAKcjs = require('./chunk-6PZEDIAK.cjs');
12
13
 
13
14
 
14
15
  var _chunkZ2SLBFQLcjs = require('./chunk-Z2SLBFQL.cjs');
@@ -24,6 +25,247 @@ var _chunkBBXVML3Dcjs = require('./chunk-BBXVML3D.cjs');
24
25
 
25
26
  var _chunkKE7QPAQ4cjs = require('./chunk-KE7QPAQ4.cjs');
26
27
 
28
+ // src/host/shared/provider.ts
29
+ var DEFAULT_VERSION = "0";
30
+ var GLOBAL_PROVIDER_SCOPES_KEY = "__remote_components_shared_provider_scopes__";
31
+ function getProviderScopes() {
32
+ const self = globalThis;
33
+ self[GLOBAL_PROVIDER_SCOPES_KEY] ??= {};
34
+ return self[GLOBAL_PROVIDER_SCOPES_KEY];
35
+ }
36
+ function createSharedProvider({
37
+ value,
38
+ from
39
+ }) {
40
+ return {
41
+ get: () => value,
42
+ from,
43
+ eager: true,
44
+ loaded: 1
45
+ };
46
+ }
47
+ function createSharedProviderEntry({
48
+ id,
49
+ specifier,
50
+ value,
51
+ required = true,
52
+ singleton = true,
53
+ scope,
54
+ from = "host"
55
+ }) {
56
+ return {
57
+ id,
58
+ specifier,
59
+ provider: createSharedProvider({ value, from }),
60
+ required,
61
+ singleton,
62
+ scope
63
+ };
64
+ }
65
+ async function buildSharedProviderPlan({
66
+ bundle,
67
+ hostShared,
68
+ remoteShared,
69
+ scope = `remote:${bundle}`,
70
+ callerTag = "SharedBroker",
71
+ normalizeId = (id) => id,
72
+ additionalEntries = [],
73
+ onMissing
74
+ }) {
75
+ const sharedModulePlan = _chunk6PZEDIAKcjs.createSharedModulePlan.call(void 0, {
76
+ bundle,
77
+ hostShared,
78
+ remoteShared,
79
+ scope,
80
+ callerTag
81
+ });
82
+ const resolved = await _chunk6PZEDIAKcjs.resolveSharedModulePlan.call(void 0, sharedModulePlan);
83
+ const entriesByIdAndSpecifier = /* @__PURE__ */ new Map();
84
+ const addEntry = (entry) => {
85
+ entriesByIdAndSpecifier.set(`${entry.id}\0${entry.specifier}`, entry);
86
+ };
87
+ for (const entry of additionalEntries) {
88
+ addEntry(
89
+ createSharedProviderEntry({
90
+ ...entry,
91
+ scope: _nullishCoalesce(entry.scope, () => ( scope))
92
+ })
93
+ );
94
+ }
95
+ for (const entry of sharedModulePlan.entries) {
96
+ if (entry.status !== "resolved") {
97
+ if (onMissing && !(sharedModulePlan.protocol === _chunk6PZEDIAKcjs.SHARED_MODULE_MANIFEST_PROTOCOL && entry.required)) {
98
+ onMissing(entry);
99
+ }
100
+ continue;
101
+ }
102
+ const value = resolved[entry.id];
103
+ if (typeof value === "undefined")
104
+ continue;
105
+ addEntry(
106
+ createSharedProviderEntry({
107
+ id: normalizeId(entry.id),
108
+ specifier: entry.specifier,
109
+ value,
110
+ required: entry.required,
111
+ singleton: entry.singleton,
112
+ scope: entry.scope
113
+ })
114
+ );
115
+ }
116
+ return {
117
+ protocol: sharedModulePlan.protocol,
118
+ entries: Array.from(entriesByIdAndSpecifier.values())
119
+ };
120
+ }
121
+ function installSharedProvider({
122
+ scope,
123
+ specifier,
124
+ value,
125
+ from,
126
+ provider,
127
+ version = DEFAULT_VERSION
128
+ }) {
129
+ const scopes = getProviderScopes();
130
+ const providerScope = scopes[scope] ??= {};
131
+ const versions = providerScope[specifier] ??= {};
132
+ const sharedProvider = _nullishCoalesce(provider, () => ( createSharedProvider({
133
+ value,
134
+ from: _nullishCoalesce(from, () => ( "host"))
135
+ })));
136
+ versions[version] = sharedProvider;
137
+ return sharedProvider;
138
+ }
139
+ function installSharedProviderEntry(entry) {
140
+ return installSharedProvider({
141
+ scope: entry.scope,
142
+ specifier: entry.specifier,
143
+ provider: entry.provider
144
+ });
145
+ }
146
+ function getSharedProvider({
147
+ scope,
148
+ specifier,
149
+ version = DEFAULT_VERSION
150
+ }) {
151
+ const versions = _optionalChain([getProviderScopes, 'call', _ => _(), 'access', _2 => _2[scope], 'optionalAccess', _3 => _3[specifier]]);
152
+ if (!versions)
153
+ return void 0;
154
+ return _nullishCoalesce(versions[version], () => ( (version === DEFAULT_VERSION ? void 0 : versions[DEFAULT_VERSION])));
155
+ }
156
+ function getSharedProviderModule({
157
+ scope,
158
+ specifier,
159
+ version
160
+ }) {
161
+ const provider = getSharedProvider({ scope, specifier, version });
162
+ if (!provider) {
163
+ throw new Error(
164
+ `Shared module "${specifier}" not found in provider scope "${scope}".`
165
+ );
166
+ }
167
+ provider.loaded = 1;
168
+ return provider.get();
169
+ }
170
+
171
+ // src/config/webpack/shared-module-resolver.ts
172
+ var WEBPACK_SHARED_RESOLVE_METADATA = Symbol.for(
173
+ "remote-components.webpackSharedResolveMetadata"
174
+ );
175
+ function normalizeWebpackSharedId(id) {
176
+ return id.replace(/^\(ssr\)\/(?<relative>\.\/)?/, "");
177
+ }
178
+ async function buildWebpackResolve(hostShared, remoteShared, bundle, reactModules, callerTag = "SharedModuleResolver") {
179
+ const sharedProviderPlan = await buildSharedProviderPlan({
180
+ bundle,
181
+ hostShared,
182
+ remoteShared,
183
+ callerTag,
184
+ normalizeId: normalizeWebpackSharedId,
185
+ additionalEntries: Object.entries(_chunk6PZEDIAKcjs.CORE_REACT_SHARED_MODULE_IDS).map(
186
+ ([specifier, id]) => ({
187
+ id,
188
+ specifier,
189
+ value: reactModules[id],
190
+ required: true,
191
+ singleton: true,
192
+ scope: `remote:${bundle}`
193
+ })
194
+ )
195
+ });
196
+ const resolve = {
197
+ ...Object.fromEntries(
198
+ sharedProviderPlan.entries.map((entry) => [
199
+ entry.id,
200
+ entry.provider.get()
201
+ ])
202
+ )
203
+ };
204
+ Object.defineProperty(resolve, WEBPACK_SHARED_RESOLVE_METADATA, {
205
+ enumerable: false,
206
+ value: {
207
+ protocol: sharedProviderPlan.protocol,
208
+ entries: sharedProviderPlan.entries
209
+ }
210
+ });
211
+ return resolve;
212
+ }
213
+
214
+ // src/config/webpack/provider-adapter.ts
215
+ function applyWebpackSharedProviderModules(bundle, entries) {
216
+ _chunkBBXVML3Dcjs.logDebug.call(void 0,
217
+ "SharedModules",
218
+ `applyWebpackSharedProviderModules called for bundle: "${bundle}"`
219
+ );
220
+ const self = globalThis;
221
+ const scope = _chunk6PZEDIAKcjs.getScope.call(void 0, bundle);
222
+ const webpackBundle = _nullishCoalesce(_optionalChain([scope, 'optionalAccess', _4 => _4.webpackRequire]), () => ( _optionalChain([self, 'access', _5 => _5.__remote_webpack_require__, 'optionalAccess', _6 => _6[bundle]])));
223
+ if (!webpackBundle) {
224
+ throw new (0, _chunkBBXVML3Dcjs.RemoteComponentsError)(
225
+ `No Webpack require found for manifest-aware Remote Component bundle "${bundle}".`
226
+ );
227
+ }
228
+ if (!webpackBundle.m) {
229
+ throw new (0, _chunkBBXVML3Dcjs.RemoteComponentsError)(
230
+ `Webpack module factories are not available for manifest-aware Remote Component bundle "${bundle}".`
231
+ );
232
+ }
233
+ const modulePaths = Object.keys(
234
+ _nullishCoalesce(_optionalChain([self, 'access', _7 => _7.__remote_webpack_module_map__, 'optionalAccess', _8 => _8[bundle]]), () => ( webpackBundle.m))
235
+ );
236
+ for (const entry of entries) {
237
+ installSharedProviderEntry(entry);
238
+ const ids = resolveWebpackModuleIds(bundle, modulePaths, entry.id);
239
+ if (ids.length === 0) {
240
+ continue;
241
+ }
242
+ for (const id of ids) {
243
+ const resolvedId = _optionalChain([self, 'access', _9 => _9.__remote_webpack_module_map__, 'optionalAccess', _10 => _10[bundle], 'optionalAccess', _11 => _11[id]]) ? `${self.__remote_webpack_module_map__[bundle][id]}` : id;
244
+ webpackBundle.m[resolvedId] = (module) => {
245
+ module.exports = getSharedProviderModule({
246
+ scope: entry.scope,
247
+ specifier: entry.specifier
248
+ });
249
+ };
250
+ }
251
+ }
252
+ }
253
+ function resolveWebpackModuleIds(bundle, modulePaths, id) {
254
+ const exactIds = modulePaths.filter((path) => path === id);
255
+ if (exactIds.length > 0) {
256
+ return exactIds;
257
+ }
258
+ const containedIds = modulePaths.filter((path) => path.includes(id));
259
+ if (containedIds.length > 0) {
260
+ return containedIds;
261
+ }
262
+ _chunkBBXVML3Dcjs.logDebug.call(void 0,
263
+ "SharedModules",
264
+ `No matching module path found for manifest shared module "${id}" in bundle "${bundle}"`
265
+ );
266
+ return [];
267
+ }
268
+
27
269
  // src/config/webpack/apply-shared-modules.ts
28
270
  var DEDUPLICATION_SKIPPED = "shared module deduplication skipped. The remote may load its own copy of shared dependencies.";
29
271
  function applySharedModules(bundle, resolve) {
@@ -35,12 +277,17 @@ function applySharedModules(bundle, resolve) {
35
277
  "SharedModules",
36
278
  `Shared modules to resolve: ${Object.keys(resolve)}`
37
279
  );
280
+ const metadata = resolve[WEBPACK_SHARED_RESOLVE_METADATA];
281
+ if (_optionalChain([metadata, 'optionalAccess', _12 => _12.protocol]) === _chunk6PZEDIAKcjs.SHARED_MODULE_MANIFEST_PROTOCOL) {
282
+ applyWebpackSharedProviderModules(bundle, metadata.entries);
283
+ return;
284
+ }
38
285
  const self = globalThis;
39
- const scope = _chunkI7VKDF3Ecjs.getScope.call(void 0, bundle);
40
- const webpackBundle = _nullishCoalesce(_optionalChain([scope, 'optionalAccess', _ => _.webpackRequire]), () => ( _optionalChain([self, 'access', _2 => _2.__remote_webpack_require__, 'optionalAccess', _3 => _3[bundle]])));
286
+ const scope = _chunk6PZEDIAKcjs.getScope.call(void 0, bundle);
287
+ const webpackBundle = _nullishCoalesce(_optionalChain([scope, 'optionalAccess', _13 => _13.webpackRequire]), () => ( _optionalChain([self, 'access', _14 => _14.__remote_webpack_require__, 'optionalAccess', _15 => _15[bundle]])));
41
288
  if (webpackBundle) {
42
289
  const modulePaths = Object.keys(
43
- _nullishCoalesce(_nullishCoalesce(_optionalChain([self, 'access', _4 => _4.__remote_webpack_module_map__, 'optionalAccess', _5 => _5[bundle]]), () => ( webpackBundle.m)), () => ( {}))
290
+ _nullishCoalesce(_nullishCoalesce(_optionalChain([self, 'access', _16 => _16.__remote_webpack_module_map__, 'optionalAccess', _17 => _17[bundle]]), () => ( webpackBundle.m)), () => ( {}))
44
291
  );
45
292
  _chunkBBXVML3Dcjs.logDebug.call(void 0,
46
293
  "SharedModules",
@@ -57,7 +304,7 @@ function applySharedModules(bundle, resolve) {
57
304
  }
58
305
  for (const id of ids) {
59
306
  if (webpackBundle.m) {
60
- const resolvedId = _optionalChain([self, 'access', _6 => _6.__remote_webpack_module_map__, 'optionalAccess', _7 => _7[bundle], 'optionalAccess', _8 => _8[id]]) ? `${self.__remote_webpack_module_map__[bundle][id]}` : id;
307
+ const resolvedId = _optionalChain([self, 'access', _18 => _18.__remote_webpack_module_map__, 'optionalAccess', _19 => _19[bundle], 'optionalAccess', _20 => _20[id]]) ? `${self.__remote_webpack_module_map__[bundle][id]}` : id;
61
308
  if (resolvedId !== id) {
62
309
  _chunkBBXVML3Dcjs.logDebug.call(void 0,
63
310
  "SharedModules",
@@ -102,7 +349,7 @@ function normalizeModuleId(value) {
102
349
  return value;
103
350
  }
104
351
  function extractGroup(re, input, group) {
105
- const raw = _optionalChain([re, 'access', _9 => _9.exec, 'call', _10 => _10(input), 'optionalAccess', _11 => _11.groups, 'optionalAccess', _12 => _12[group]]);
352
+ const raw = _optionalChain([re, 'access', _21 => _21.exec, 'call', _22 => _22(input), 'optionalAccess', _23 => _23.groups, 'optionalAccess', _24 => _24[group]]);
106
353
  if (!raw)
107
354
  return void 0;
108
355
  return normalizeModuleId(stripQuotes(raw));
@@ -127,12 +374,12 @@ function loadChunkWithScope(scope, chunkId) {
127
374
  );
128
375
  const self = globalThis;
129
376
  const ns = _chunkZ2SLBFQLcjs.getNamespace.call(void 0, );
130
- const { bundle, path, prefix } = _chunkI7VKDF3Ecjs.parseRemoteId.call(void 0, chunkId);
131
- const remoteRuntime = _optionalChain([self, 'access', _13 => _13.__remote_webpack_require__, 'optionalAccess', _14 => _14[_nullishCoalesce(bundle, () => ( "default"))]]) ? _optionalChain([self, 'access', _15 => _15.__remote_webpack_require__, 'access', _16 => _16[_nullishCoalesce(bundle, () => ( "default"))], 'optionalAccess', _17 => _17.type]) || "webpack" : scope.runtime;
132
- if (remoteRuntime === _chunkI7VKDF3Ecjs.RUNTIME_WEBPACK) {
377
+ const { bundle, path, prefix } = _chunk6PZEDIAKcjs.parseRemoteId.call(void 0, chunkId);
378
+ const remoteRuntime = _optionalChain([self, 'access', _25 => _25.__remote_webpack_require__, 'optionalAccess', _26 => _26[_nullishCoalesce(bundle, () => ( "default"))]]) ? _optionalChain([self, 'access', _27 => _27.__remote_webpack_require__, 'access', _28 => _28[_nullishCoalesce(bundle, () => ( "default"))], 'optionalAccess', _29 => _29.type]) || "webpack" : scope.runtime;
379
+ if (remoteRuntime === _chunk6PZEDIAKcjs.RUNTIME_WEBPACK) {
133
380
  return Promise.resolve(void 0);
134
381
  }
135
- const rawPath = path ? _chunkI7VKDF3Ecjs.collapseDoubleSlashes.call(void 0, `${prefix}${path}`) : "/";
382
+ const rawPath = path ? _chunk6PZEDIAKcjs.collapseDoubleSlashes.call(void 0, `${prefix}${path}`) : "/";
136
383
  const url = new URL(rawPath, scope.url).href;
137
384
  if (url.endsWith(".css")) {
138
385
  return;
@@ -141,7 +388,7 @@ function loadChunkWithScope(scope, chunkId) {
141
388
  _chunkBBXVML3Dcjs.logDebug.call(void 0, "ChunkLoader", `Cache hit for "${chunkId}" (url="${url}")`);
142
389
  return ns.chunkCache[url];
143
390
  }
144
- const resolvedUrl = _nullishCoalesce(_optionalChain([scope, 'access', _18 => _18.resolveClientUrl, 'optionalCall', _19 => _19(url)]), () => ( url));
391
+ const resolvedUrl = _nullishCoalesce(_optionalChain([scope, 'access', _30 => _30.resolveClientUrl, 'optionalCall', _31 => _31(url)]), () => ( url));
145
392
  if (resolvedUrl !== url) {
146
393
  _chunkBBXVML3Dcjs.logDebug.call(void 0, "ChunkLoader", `Proxied chunk URL: "${url}" \u2192 "${resolvedUrl}"`);
147
394
  }
@@ -185,12 +432,12 @@ function loadChunkWithScope(scope, chunkId) {
185
432
  function createChunkDispatcher() {
186
433
  return function __chunk_dispatcher__(chunkId, scriptBundle) {
187
434
  _chunkBBXVML3Dcjs.logDebug.call(void 0, "ChunkDispatcher", `Dispatching chunk: "${chunkId}"`);
188
- const { bundle } = _chunkI7VKDF3Ecjs.parseRemoteId.call(void 0, chunkId);
435
+ const { bundle } = _chunk6PZEDIAKcjs.parseRemoteId.call(void 0, chunkId);
189
436
  const bundleName = bundle || scriptBundle || "default";
190
- const scope = _chunkI7VKDF3Ecjs.getScope.call(void 0, bundleName);
437
+ const scope = _chunk6PZEDIAKcjs.getScope.call(void 0, bundleName);
191
438
  _chunkBBXVML3Dcjs.logDebug.call(void 0,
192
439
  "ChunkDispatcher",
193
- `Scope resolution: bundle="${bundleName}", scope=${_nullishCoalesce(_optionalChain([scope, 'optionalAccess', _20 => _20.scopedName]), () => ( "null"))}`
440
+ `Scope resolution: bundle="${bundleName}", scope=${_nullishCoalesce(_optionalChain([scope, 'optionalAccess', _32 => _32.scopedName]), () => ( "null"))}`
194
441
  );
195
442
  if (!scope) {
196
443
  _chunkBBXVML3Dcjs.logWarn.call(void 0, "ChunkDispatcher", `No scope found for bundle "${bundleName}"`);
@@ -287,14 +534,14 @@ async function handleTurbopackChunk(code, scope, url, renameTurbopackGlobal) {
287
534
  });
288
535
  const chunkLists = self[`${globalProp}_CHUNK_LISTS`];
289
536
  const loadChunkPromises = [];
290
- while (_optionalChain([chunkLists, 'optionalAccess', _21 => _21.length])) {
537
+ while (_optionalChain([chunkLists, 'optionalAccess', _33 => _33.length])) {
291
538
  const { chunks } = _nullishCoalesce(chunkLists.shift(), () => ( { chunks: [] }));
292
539
  if (chunks.length > 0) {
293
540
  for (const id of chunks) {
294
541
  const baseUrl = url.slice(0, url.indexOf("/_next"));
295
542
  const chunkLoadResult = loadChunkWithScope(
296
543
  scope,
297
- _chunkI7VKDF3Ecjs.formatRemoteId.call(void 0, scope, `${baseUrl}/_next/${id}`)
544
+ _chunk6PZEDIAKcjs.formatRemoteId.call(void 0, scope, `${baseUrl}/_next/${id}`)
298
545
  );
299
546
  if (chunkLoadResult) {
300
547
  loadChunkPromises.push(chunkLoadResult);
@@ -346,7 +593,7 @@ function requireModule(scope, moduleId, fullId) {
346
593
  return handleTurbopackModule(
347
594
  scope,
348
595
  idStr,
349
- _nullishCoalesce(fullId, () => ( _chunkI7VKDF3Ecjs.formatRemoteId.call(void 0, scope, idStr)))
596
+ _nullishCoalesce(fullId, () => ( _chunk6PZEDIAKcjs.formatRemoteId.call(void 0, scope, idStr)))
350
597
  );
351
598
  }
352
599
  function handleTurbopackModule(scope, moduleId, id) {
@@ -419,7 +666,7 @@ function findModuleInit(modules, moduleId) {
419
666
  return void 0;
420
667
  }
421
668
  function createTurbopackContext(scope, exports, moduleExports, modules, moduleInit, id) {
422
- const scopedRequire = (moduleId) => requireModule(scope, moduleId, _chunkI7VKDF3Ecjs.formatRemoteId.call(void 0, scope, String(moduleId)));
669
+ const scopedRequire = (moduleId) => requireModule(scope, moduleId, _chunk6PZEDIAKcjs.formatRemoteId.call(void 0, scope, String(moduleId)));
423
670
  return {
424
671
  // HMR not implemented for Remote Components
425
672
  k: {
@@ -475,9 +722,9 @@ function createTurbopackContext(scope, exports, moduleExports, modules, moduleIn
475
722
  i(importId) {
476
723
  let mod;
477
724
  if (typeof importId === "string") {
478
- const { exportSource, exportName } = _nullishCoalesce(_optionalChain([/\s+<export (?<exportSource>.*?) as (?<exportName>.*?)>$/, 'access', _22 => _22.exec, 'call', _23 => _23(
725
+ const { exportSource, exportName } = _nullishCoalesce(_optionalChain([/\s+<export (?<exportSource>.*?) as (?<exportName>.*?)>$/, 'access', _34 => _34.exec, 'call', _35 => _35(
479
726
  importId
480
- ), 'optionalAccess', _24 => _24.groups]), () => ( {}));
727
+ ), 'optionalAccess', _36 => _36.groups]), () => ( {}));
481
728
  const normalizedId = importId.replace(
482
729
  /\s+<export(?<specifier>.*)>$/,
483
730
  ""
@@ -568,7 +815,7 @@ function createTurbopackContext(scope, exports, moduleExports, modules, moduleIn
568
815
  // itself and there is no `.default` to dereference.
569
816
  async A(Aid) {
570
817
  const mod = scopedRequire(Aid);
571
- const loader = typeof mod === "function" ? mod : _optionalChain([mod, 'optionalAccess', _25 => _25.default]);
818
+ const loader = typeof mod === "function" ? mod : _optionalChain([mod, 'optionalAccess', _37 => _37.default]);
572
819
  if (typeof loader !== "function") {
573
820
  throw new Error(
574
821
  `Async module loader for "${Aid}" is not a function (got ${typeof loader})`
@@ -591,7 +838,7 @@ function createTurbopackContext(scope, exports, moduleExports, modules, moduleIn
591
838
  const nextIndex = scriptSrc.indexOf("/_next");
592
839
  const baseUrl = nextIndex !== -1 ? scriptSrc.slice(0, nextIndex) : "";
593
840
  const chunkUrl = `${baseUrl}/_next/${url}`;
594
- return loadChunkWithScope(scope, _chunkI7VKDF3Ecjs.formatRemoteId.call(void 0, scope, chunkUrl));
841
+ return loadChunkWithScope(scope, _chunk6PZEDIAKcjs.formatRemoteId.call(void 0, scope, chunkUrl));
595
842
  }
596
843
  }
597
844
  throw new Error(
@@ -670,9 +917,9 @@ async function initializeSharedModules(scope, hostShared = {}, remoteShared = {}
670
917
  const moduleExports = handleTurbopackModule(
671
918
  scope,
672
919
  sharedModuleId,
673
- _chunkI7VKDF3Ecjs.formatRemoteId.call(void 0, scope, String(sharedModuleInitializerId))
920
+ _chunk6PZEDIAKcjs.formatRemoteId.call(void 0, scope, String(sharedModuleInitializerId))
674
921
  );
675
- const loaderCandidate = typeof moduleExports === "function" ? moduleExports : _optionalChain([moduleExports, 'optionalAccess', _26 => _26.default]);
922
+ const loaderCandidate = typeof moduleExports === "function" ? moduleExports : _optionalChain([moduleExports, 'optionalAccess', _38 => _38.default]);
676
923
  if (typeof loaderCandidate === "function") {
677
924
  sharedModuleInitializer = loaderCandidate(
678
925
  (parentId) => requireModule(scope, parentId)
@@ -767,9 +1014,9 @@ function extractInlineSharedModuleIds(allModules, scope) {
767
1014
  continue;
768
1015
  INLINE_REMOTE_SHARED_RE.lastIndex = 0;
769
1016
  for (const match of funcCode.matchAll(INLINE_REMOTE_SHARED_RE)) {
770
- const specifier = _optionalChain([match, 'access', _27 => _27.groups, 'optionalAccess', _28 => _28.specifier]);
1017
+ const specifier = _optionalChain([match, 'access', _39 => _39.groups, 'optionalAccess', _40 => _40.specifier]);
771
1018
  const rawAsyncSharedModuleId = stripQuotes2(
772
- _optionalChain([match, 'access', _29 => _29.groups, 'optionalAccess', _30 => _30.asyncSharedModuleId])
1019
+ _optionalChain([match, 'access', _41 => _41.groups, 'optionalAccess', _42 => _42.asyncSharedModuleId])
773
1020
  );
774
1021
  const asyncSharedModuleId = rawAsyncSharedModuleId ? normalizeModuleId(rawAsyncSharedModuleId) : void 0;
775
1022
  if (!specifier || !asyncSharedModuleId)
@@ -791,48 +1038,41 @@ function extractInlineSharedModuleIds(allModules, scope) {
791
1038
  return sharedModuleIds;
792
1039
  }
793
1040
  function stripQuotes2(value) {
794
- if (_optionalChain([value, 'optionalAccess', _31 => _31.startsWith, 'call', _32 => _32('"')]) && value.endsWith('"')) {
1041
+ if (_optionalChain([value, 'optionalAccess', _43 => _43.startsWith, 'call', _44 => _44('"')]) && value.endsWith('"')) {
795
1042
  return value.slice(1, -1);
796
1043
  }
797
1044
  return value;
798
1045
  }
799
1046
  function installSharedModules(scope, hostShared, sharedModuleIds, missingMessage) {
800
- const plan = _chunkI7VKDF3Ecjs.createSharedModulePlan.call(void 0, {
1047
+ return buildSharedProviderPlan({
801
1048
  bundle: scope.name,
802
1049
  hostShared,
803
1050
  remoteShared: sharedModuleIds,
804
1051
  scope: `remote:${scope.scopedName}`,
805
- callerTag: "SharedModules"
806
- });
807
- for (const entry of plan.entries) {
808
- if (entry.status === "resolved") {
809
- delete scope.moduleCache[entry.id];
810
- }
811
- }
812
- return _chunkI7VKDF3Ecjs.installSharedModulePlan.call(void 0, {
813
- plan,
814
- target: scope.sharedModules,
815
1052
  callerTag: "SharedModules",
816
1053
  onMissing: (entry) => {
817
1054
  _chunkBBXVML3Dcjs.logError.call(void 0, "SharedModules", missingMessage(entry.id, entry.specifier));
818
1055
  }
819
- }).then((results) => {
820
- for (const entry of plan.entries) {
821
- if (entry.status === "resolved") {
822
- delete scope.moduleCache[entry.id];
823
- }
824
- }
825
- return results;
826
- });
1056
+ }).then(
1057
+ (results) => results.entries.map((entry) => {
1058
+ installSharedProviderEntry(entry);
1059
+ scope.sharedModules[entry.id] = getSharedProviderModule({
1060
+ scope: entry.scope,
1061
+ specifier: entry.specifier
1062
+ });
1063
+ delete scope.moduleCache[entry.id];
1064
+ return void 0;
1065
+ })
1066
+ );
827
1067
  }
828
1068
  function preferSharedManifest(sharedModuleIds, remoteShared) {
829
- if (!_chunkI7VKDF3Ecjs.isSharedModuleManifest.call(void 0, remoteShared))
1069
+ if (!_chunk6PZEDIAKcjs.isSharedModuleManifest.call(void 0, remoteShared))
830
1070
  return sharedModuleIds;
831
1071
  const extractedIdBySpecifier = new Map(
832
1072
  Object.entries(sharedModuleIds).map(([id, specifier]) => [specifier, id])
833
1073
  );
834
1074
  return {
835
- protocol: _chunkI7VKDF3Ecjs.SHARED_MODULE_MANIFEST_PROTOCOL,
1075
+ protocol: _chunk6PZEDIAKcjs.SHARED_MODULE_MANIFEST_PROTOCOL,
836
1076
  requirements: remoteShared.requirements.map((requirement) => {
837
1077
  return {
838
1078
  ...requirement,
@@ -842,7 +1082,7 @@ function preferSharedManifest(sharedModuleIds, remoteShared) {
842
1082
  };
843
1083
  }
844
1084
  function normalizeRemoteSharedForTurbopackFallback(remoteShared) {
845
- if (_chunkI7VKDF3Ecjs.isSharedModuleManifest.call(void 0, remoteShared)) {
1085
+ if (_chunk6PZEDIAKcjs.isSharedModuleManifest.call(void 0, remoteShared)) {
846
1086
  return {
847
1087
  ...remoteShared,
848
1088
  requirements: remoteShared.requirements.map((requirement) => ({
@@ -888,8 +1128,8 @@ function nextClientPagesLoader(bundle, route, styleContainer = document.head) {
888
1128
  const ns = _chunkZ2SLBFQLcjs.getNamespace.call(void 0, );
889
1129
  ns.pageComponentCache ??= {};
890
1130
  const cacheKey = `${bundle}:${route}`;
891
- const remoteRequire = _optionalChain([self, 'access', _33 => _33.__remote_webpack_require__, 'optionalAccess', _34 => _34[bundle]]);
892
- const turbopackScope = _optionalChain([remoteRequire, 'optionalAccess', _35 => _35.type]) === "turbopack" ? _chunkI7VKDF3Ecjs.getScope.call(void 0, bundle) : void 0;
1131
+ const remoteRequire = _optionalChain([self, 'access', _45 => _45.__remote_webpack_require__, 'optionalAccess', _46 => _46[bundle]]);
1132
+ const turbopackScope = _optionalChain([remoteRequire, 'optionalAccess', _47 => _47.type]) === "turbopack" ? _chunk6PZEDIAKcjs.getScope.call(void 0, bundle) : void 0;
893
1133
  const applyBundleCss = () => {
894
1134
  const elements = _nullishCoalesce(ns.cssCache[bundle], () => ( []));
895
1135
  if (styleContainer) {
@@ -910,10 +1150,10 @@ function nextClientPagesLoader(bundle, route, styleContainer = document.head) {
910
1150
  const nextCssOriginal = document.querySelector(
911
1151
  `[id="__next_css__DO_NOT_USE__"]:not([data-bundle="${bundle}"][data-route="${route}"])`
912
1152
  );
913
- const nextCssOriginalParent = _nullishCoalesce(_optionalChain([nextCssOriginal, 'optionalAccess', _36 => _36.parentNode]), () => ( null));
914
- const nextCssOriginalNextSibling = _nullishCoalesce(_optionalChain([nextCssOriginal, 'optionalAccess', _37 => _37.nextSibling]), () => ( null));
1153
+ const nextCssOriginalParent = _nullishCoalesce(_optionalChain([nextCssOriginal, 'optionalAccess', _48 => _48.parentNode]), () => ( null));
1154
+ const nextCssOriginalNextSibling = _nullishCoalesce(_optionalChain([nextCssOriginal, 'optionalAccess', _49 => _49.nextSibling]), () => ( null));
915
1155
  if (nextCssOriginal) {
916
- _optionalChain([nextCssOriginalParent, 'optionalAccess', _38 => _38.removeChild, 'call', _39 => _39(nextCssOriginal)]);
1156
+ _optionalChain([nextCssOriginalParent, 'optionalAccess', _50 => _50.removeChild, 'call', _51 => _51(nextCssOriginal)]);
917
1157
  }
918
1158
  const nextCss = document.createElement("noscript");
919
1159
  nextCss.id = "__next_css__DO_NOT_USE__";
@@ -925,20 +1165,20 @@ function nextClientPagesLoader(bundle, route, styleContainer = document.head) {
925
1165
  nextCssEnd.setAttribute("data-route", route);
926
1166
  document.head.appendChild(nextCssEnd);
927
1167
  document.head.appendChild(nextCss);
928
- const componentLoaderChunk = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce((turbopackScope ? findTurbopackPagesLoaderId(turbopackScope, route) : void 0), () => ( Object.keys(_nullishCoalesce(_optionalChain([remoteRequire, 'optionalAccess', _40 => _40.m]), () => ( {}))).find(
1168
+ const componentLoaderChunk = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce((turbopackScope ? findTurbopackPagesLoaderId(turbopackScope, route) : void 0), () => ( Object.keys(_nullishCoalesce(_optionalChain([remoteRequire, 'optionalAccess', _52 => _52.m]), () => ( {}))).find(
929
1169
  (key) => key.includes("/webpack/loaders/next-client-pages-loader.js") && key.includes(`page=${encodeURIComponent(route)}!`)
930
- ))), () => ( Object.keys(_nullishCoalesce(_optionalChain([remoteRequire, 'optionalAccess', _41 => _41.m]), () => ( {}))).find(
1170
+ ))), () => ( Object.keys(_nullishCoalesce(_optionalChain([remoteRequire, 'optionalAccess', _53 => _53.m]), () => ( {}))).find(
931
1171
  (key) => key.includes("/next/dist/client/page-loader.js")
932
- ))), () => ( _optionalChain([self, 'access', _42 => _42.__remote_webpack_module_map__, 'optionalAccess', _43 => _43[bundle], 'optionalAccess', _44 => _44[_nullishCoalesce(_nullishCoalesce(Object.keys(_nullishCoalesce(self.__remote_webpack_module_map__[bundle], () => ( {}))).find(
1172
+ ))), () => ( _optionalChain([self, 'access', _54 => _54.__remote_webpack_module_map__, 'optionalAccess', _55 => _55[bundle], 'optionalAccess', _56 => _56[_nullishCoalesce(_nullishCoalesce(Object.keys(_nullishCoalesce(self.__remote_webpack_module_map__[bundle], () => ( {}))).find(
933
1173
  (key) => key.includes("/webpack/loaders/next-client-pages-loader.js") && key.includes(`page=${encodeURIComponent(route)}!`)
934
1174
  ), () => ( Object.keys(_nullishCoalesce(self.__remote_webpack_module_map__[bundle], () => ( {}))).find(
935
1175
  (key) => key.includes("/next/dist/client/page-loader.js")
936
1176
  ))), () => ( ""))]]))), () => ( -1));
937
- const appLoaderChunk = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce((turbopackScope ? findTurbopackPagesLoaderId(turbopackScope, "/_app") : void 0), () => ( Object.keys(_nullishCoalesce(_optionalChain([remoteRequire, 'optionalAccess', _45 => _45.m]), () => ( {}))).find(
1177
+ const appLoaderChunk = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce((turbopackScope ? findTurbopackPagesLoaderId(turbopackScope, "/_app") : void 0), () => ( Object.keys(_nullishCoalesce(_optionalChain([remoteRequire, 'optionalAccess', _57 => _57.m]), () => ( {}))).find(
938
1178
  (key) => key.includes("/webpack/loaders/next-client-pages-loader.js") && key.includes(`page=%2F_app`)
939
- ))), () => ( Object.keys(_nullishCoalesce(_optionalChain([remoteRequire, 'optionalAccess', _46 => _46.m]), () => ( {}))).find(
1179
+ ))), () => ( Object.keys(_nullishCoalesce(_optionalChain([remoteRequire, 'optionalAccess', _58 => _58.m]), () => ( {}))).find(
940
1180
  (key) => key.includes("/next/dist/client/page-loader.js")
941
- ))), () => ( _optionalChain([self, 'access', _47 => _47.__remote_webpack_module_map__, 'optionalAccess', _48 => _48[bundle], 'optionalAccess', _49 => _49[_nullishCoalesce(_nullishCoalesce(Object.keys(_nullishCoalesce(self.__remote_webpack_module_map__[bundle], () => ( {}))).find(
1181
+ ))), () => ( _optionalChain([self, 'access', _59 => _59.__remote_webpack_module_map__, 'optionalAccess', _60 => _60[bundle], 'optionalAccess', _61 => _61[_nullishCoalesce(_nullishCoalesce(Object.keys(_nullishCoalesce(self.__remote_webpack_module_map__[bundle], () => ( {}))).find(
942
1182
  (key) => key.includes("/webpack/loaders/next-client-pages-loader.js") && key.includes(`page=%2F_app`)
943
1183
  ), () => ( Object.keys(_nullishCoalesce(self.__remote_webpack_module_map__[bundle], () => ( {}))).find(
944
1184
  (key) => key.includes("/next/dist/client/page-loader.js")
@@ -959,12 +1199,12 @@ function nextClientPagesLoader(bundle, route, styleContainer = document.head) {
959
1199
  if (self.__NEXT_P) {
960
1200
  _chunkBBXVML3Dcjs.logDebug.call(void 0,
961
1201
  "ComponentLoader",
962
- `Next.js Pages loader registry for "${route}" in "${bundle}": ${self.__NEXT_P.map((entry) => _nullishCoalesce(_optionalChain([entry, 'optionalAccess', _50 => _50[0]]), () => ( "<empty>"))).join(", ")}`
1202
+ `Next.js Pages loader registry for "${route}" in "${bundle}": ${self.__NEXT_P.map((entry) => _nullishCoalesce(_optionalChain([entry, 'optionalAccess', _62 => _62[0]]), () => ( "<empty>"))).join(", ")}`
963
1203
  );
964
1204
  const componentEntry = _nullishCoalesce(self.__NEXT_P.find(
965
- (entry) => _optionalChain([entry, 'optionalAccess', _51 => _51[0]]) === route
1205
+ (entry) => _optionalChain([entry, 'optionalAccess', _63 => _63[0]]) === route
966
1206
  ), () => ( self.__NEXT_P[0]));
967
- const appEntry = _nullishCoalesce(self.__NEXT_P.find((entry) => _optionalChain([entry, 'optionalAccess', _52 => _52[0]]) === "/_app"), () => ( self.__NEXT_P[2]));
1207
+ const appEntry = _nullishCoalesce(self.__NEXT_P.find((entry) => _optionalChain([entry, 'optionalAccess', _64 => _64[0]]) === "/_app"), () => ( self.__NEXT_P[2]));
968
1208
  const [, componentLoader] = _nullishCoalesce(componentEntry, () => ( [
969
1209
  void 0,
970
1210
  () => ({ default: null })
@@ -980,13 +1220,13 @@ function nextClientPagesLoader(bundle, route, styleContainer = document.head) {
980
1220
  const cssCache = ns.cssCache;
981
1221
  if (!cssCache[bundle]) {
982
1222
  const cssRE = /\.s?css$/;
983
- Object.keys(_nullishCoalesce(_optionalChain([self, 'access', _53 => _53.__remote_webpack_require__, 'optionalAccess', _54 => _54[bundle], 'optionalAccess', _55 => _55.m]), () => ( {}))).filter((id) => cssRE.test(id)).forEach((id) => {
984
- _optionalChain([self, 'access', _56 => _56.__remote_webpack_require__, 'optionalAccess', _57 => _57[bundle], 'optionalCall', _58 => _58(id)]);
1223
+ Object.keys(_nullishCoalesce(_optionalChain([self, 'access', _65 => _65.__remote_webpack_require__, 'optionalAccess', _66 => _66[bundle], 'optionalAccess', _67 => _67.m]), () => ( {}))).filter((id) => cssRE.test(id)).forEach((id) => {
1224
+ _optionalChain([self, 'access', _68 => _68.__remote_webpack_require__, 'optionalAccess', _69 => _69[bundle], 'optionalCall', _70 => _70(id)]);
985
1225
  });
986
- Object.keys(_nullishCoalesce(_optionalChain([self, 'access', _59 => _59.__remote_webpack_module_map__, 'optionalAccess', _60 => _60[bundle]]), () => ( {}))).filter((path) => cssRE.test(path)).forEach((path) => {
987
- const id = _optionalChain([self, 'access', _61 => _61.__remote_webpack_module_map__, 'optionalAccess', _62 => _62[bundle], 'optionalAccess', _63 => _63[path]]);
1226
+ Object.keys(_nullishCoalesce(_optionalChain([self, 'access', _71 => _71.__remote_webpack_module_map__, 'optionalAccess', _72 => _72[bundle]]), () => ( {}))).filter((path) => cssRE.test(path)).forEach((path) => {
1227
+ const id = _optionalChain([self, 'access', _73 => _73.__remote_webpack_module_map__, 'optionalAccess', _74 => _74[bundle], 'optionalAccess', _75 => _75[path]]);
988
1228
  if (id) {
989
- _optionalChain([self, 'access', _64 => _64.__remote_webpack_require__, 'optionalAccess', _65 => _65[bundle], 'optionalCall', _66 => _66(id)]);
1229
+ _optionalChain([self, 'access', _76 => _76.__remote_webpack_require__, 'optionalAccess', _77 => _77[bundle], 'optionalCall', _78 => _78(id)]);
990
1230
  }
991
1231
  });
992
1232
  const elements = [];
@@ -1015,7 +1255,7 @@ function nextClientPagesLoader(bundle, route, styleContainer = document.head) {
1015
1255
  self.__NEXT_P = __NEXT_P_ORIGINAL;
1016
1256
  }
1017
1257
  if (nextCssOriginal && nextCssOriginalParent) {
1018
- const restoreBefore = _optionalChain([nextCssOriginalNextSibling, 'optionalAccess', _67 => _67.parentNode]) === nextCssOriginalParent ? nextCssOriginalNextSibling : null;
1258
+ const restoreBefore = _optionalChain([nextCssOriginalNextSibling, 'optionalAccess', _79 => _79.parentNode]) === nextCssOriginalParent ? nextCssOriginalNextSibling : null;
1019
1259
  nextCssOriginalParent.insertBefore(nextCssOriginal, restoreBefore);
1020
1260
  }
1021
1261
  nextCss.remove();
@@ -1032,11 +1272,11 @@ function loadPagesLoaderModule(bundle, id, turbopackScope) {
1032
1272
  requireModule(turbopackScope, id);
1033
1273
  return;
1034
1274
  }
1035
- const remoteRequire = _optionalChain([self, 'access', _68 => _68.__remote_webpack_require__, 'optionalAccess', _69 => _69[bundle]]);
1036
- if (_optionalChain([remoteRequire, 'optionalAccess', _70 => _70.c])) {
1275
+ const remoteRequire = _optionalChain([self, 'access', _80 => _80.__remote_webpack_require__, 'optionalAccess', _81 => _81[bundle]]);
1276
+ if (_optionalChain([remoteRequire, 'optionalAccess', _82 => _82.c])) {
1037
1277
  delete remoteRequire.c[id];
1038
1278
  }
1039
- _optionalChain([remoteRequire, 'optionalCall', _71 => _71(id)]);
1279
+ _optionalChain([remoteRequire, 'optionalCall', _83 => _83(id)]);
1040
1280
  }
1041
1281
  function findTurbopackPagesLoaderId(scope, route) {
1042
1282
  const modules = getTurbopackModules(scope);
@@ -1105,5 +1345,6 @@ function findPreviousModuleId(entries, factoryIndex) {
1105
1345
 
1106
1346
 
1107
1347
 
1108
- exports.applySharedModules = applySharedModules; exports.loadChunkWithScope = loadChunkWithScope; exports.createChunkDispatcher = createChunkDispatcher; exports.initializeSharedModules = initializeSharedModules; exports.requireModule = requireModule; exports.nextClientPagesLoader = nextClientPagesLoader;
1109
- //# sourceMappingURL=chunk-YJJFRORQ.cjs.map
1348
+
1349
+ exports.buildWebpackResolve = buildWebpackResolve; exports.applySharedModules = applySharedModules; exports.loadChunkWithScope = loadChunkWithScope; exports.createChunkDispatcher = createChunkDispatcher; exports.initializeSharedModules = initializeSharedModules; exports.requireModule = requireModule; exports.nextClientPagesLoader = nextClientPagesLoader;
1350
+ //# sourceMappingURL=chunk-PCHSF5LH.cjs.map