remote-components 0.4.7 → 0.4.9
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.
- package/dist/{chunk-ZSIOEMB3.js → chunk-4XWEMPKO.js} +6 -6
- package/dist/chunk-4XWEMPKO.js.map +1 -0
- package/dist/{chunk-W2TLJBAA.cjs → chunk-6NAV4SCF.cjs} +362 -82
- package/dist/chunk-6NAV4SCF.cjs.map +1 -0
- package/dist/{chunk-JZRA6DPE.js → chunk-6NUHDFSH.js} +6 -53
- package/dist/chunk-6NUHDFSH.js.map +1 -0
- package/dist/{chunk-7AUERPZ6.cjs → chunk-EZG36EB4.cjs} +23 -23
- package/dist/{chunk-7AUERPZ6.cjs.map → chunk-EZG36EB4.cjs.map} +1 -1
- package/dist/{chunk-YOFJE3RL.cjs → chunk-J42V6HSP.cjs} +18 -18
- package/dist/{chunk-KTUPOJQQ.js → chunk-JYGC7T6L.js} +313 -33
- package/dist/chunk-JYGC7T6L.js.map +1 -0
- package/dist/{chunk-I7VKDF3E.cjs → chunk-SELGX4Y2.cjs} +4 -51
- package/dist/chunk-SELGX4Y2.cjs.map +1 -0
- package/dist/{chunk-CFZOLSLP.js → chunk-T6E2WPAB.js} +3 -3
- package/dist/{chunk-4MLJE6UP.cjs → chunk-VB64GQX7.cjs} +3 -3
- package/dist/{chunk-VWEKLTPJ.js → chunk-X6SKTJ5N.js} +3 -3
- package/dist/{chunk-4WHSX7WW.cjs → chunk-XPMI4K3U.cjs} +19 -19
- package/dist/{chunk-WGSS7TJP.js → chunk-ZJW3GQTP.js} +2 -2
- package/dist/config/nextjs.cjs +5 -5
- package/dist/config/nextjs.cjs.map +1 -1
- package/dist/config/nextjs.js +1 -1
- package/dist/config/nextjs.js.map +1 -1
- package/dist/host/html.cjs +19 -19
- package/dist/host/html.js +7 -7
- package/dist/host/nextjs/app/client-only.cjs +11 -11
- package/dist/host/nextjs/app/client-only.js +6 -6
- package/dist/host/react.cjs +7 -7
- package/dist/host/react.js +6 -6
- package/dist/internal/config/webpack/apply-shared-modules.cjs +8 -0
- package/dist/internal/config/webpack/apply-shared-modules.cjs.map +1 -1
- package/dist/internal/config/webpack/apply-shared-modules.d.ts +6 -1
- package/dist/internal/config/webpack/apply-shared-modules.js +10 -0
- package/dist/internal/config/webpack/apply-shared-modules.js.map +1 -1
- package/dist/internal/config/webpack/provider-adapter.cjs +85 -0
- package/dist/internal/config/webpack/provider-adapter.cjs.map +1 -0
- package/dist/internal/config/webpack/provider-adapter.d.ts +7 -0
- package/dist/internal/config/webpack/provider-adapter.js +64 -0
- package/dist/internal/config/webpack/provider-adapter.js.map +1 -0
- package/dist/internal/config/webpack/shared-module-resolver.cjs +73 -0
- package/dist/internal/config/webpack/shared-module-resolver.cjs.map +1 -0
- package/dist/internal/config/webpack/shared-module-resolver.d.ts +35 -0
- package/dist/internal/config/webpack/shared-module-resolver.js +50 -0
- package/dist/internal/config/webpack/shared-module-resolver.js.map +1 -0
- package/dist/internal/host/shared/provider.cjs +188 -0
- package/dist/internal/host/shared/provider.cjs.map +1 -0
- package/dist/internal/host/shared/provider.d.ts +71 -0
- package/dist/internal/host/shared/provider.js +161 -0
- package/dist/internal/host/shared/provider.js.map +1 -0
- package/dist/internal/host/shared/shared-broker.cjs +0 -30
- package/dist/internal/host/shared/shared-broker.cjs.map +1 -1
- package/dist/internal/host/shared/shared-broker.d.ts +1 -7
- package/dist/internal/host/shared/shared-broker.js +0 -29
- package/dist/internal/host/shared/shared-broker.js.map +1 -1
- package/dist/internal/host/shared/shared-module-resolver.cjs +6 -28
- package/dist/internal/host/shared/shared-module-resolver.cjs.map +1 -1
- package/dist/internal/host/shared/shared-module-resolver.d.ts +9 -31
- package/dist/internal/host/shared/shared-module-resolver.js +4 -28
- package/dist/internal/host/shared/shared-module-resolver.js.map +1 -1
- package/dist/internal/runtime/loaders/component-loader.cjs +3 -2
- package/dist/internal/runtime/loaders/component-loader.cjs.map +1 -1
- package/dist/internal/runtime/loaders/component-loader.js +2 -4
- package/dist/internal/runtime/loaders/component-loader.js.map +1 -1
- package/dist/internal/runtime/turbopack/chunk-loader.cjs.map +1 -1
- package/dist/internal/runtime/turbopack/chunk-loader.js.map +1 -1
- package/dist/internal/runtime/turbopack/module.cjs +40 -8
- package/dist/internal/runtime/turbopack/module.cjs.map +1 -1
- package/dist/internal/runtime/turbopack/module.d.ts +7 -0
- package/dist/internal/runtime/turbopack/module.js +40 -8
- package/dist/internal/runtime/turbopack/module.js.map +1 -1
- package/dist/internal/runtime/turbopack/shared-modules.cjs +22 -21
- package/dist/internal/runtime/turbopack/shared-modules.cjs.map +1 -1
- package/dist/internal/runtime/turbopack/shared-modules.js +27 -24
- package/dist/internal/runtime/turbopack/shared-modules.js.map +1 -1
- package/dist/{turbopack-KFQ3A7UU.cjs → turbopack-6BXAJGS5.cjs} +11 -11
- package/dist/{turbopack-A2TW7XKF.js → turbopack-WAERWSWW.js} +4 -4
- package/dist/{webpack-XYIZEJQX.cjs → webpack-VTSF2B2G.cjs} +11 -11
- package/dist/webpack-VTSF2B2G.cjs.map +1 -0
- package/dist/{webpack-UYL4UYZL.js → webpack-ZYOBNVFE.js} +6 -6
- package/dist/webpack-ZYOBNVFE.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-I7VKDF3E.cjs.map +0 -1
- package/dist/chunk-JZRA6DPE.js.map +0 -1
- package/dist/chunk-KTUPOJQQ.js.map +0 -1
- package/dist/chunk-W2TLJBAA.cjs.map +0 -1
- package/dist/chunk-ZSIOEMB3.js.map +0 -1
- package/dist/webpack-UYL4UYZL.js.map +0 -1
- package/dist/webpack-XYIZEJQX.cjs.map +0 -1
- /package/dist/{chunk-YOFJE3RL.cjs.map → chunk-J42V6HSP.cjs.map} +0 -0
- /package/dist/{chunk-CFZOLSLP.js.map → chunk-T6E2WPAB.js.map} +0 -0
- /package/dist/{chunk-4MLJE6UP.cjs.map → chunk-VB64GQX7.cjs.map} +0 -0
- /package/dist/{chunk-VWEKLTPJ.js.map → chunk-X6SKTJ5N.js.map} +0 -0
- /package/dist/{chunk-4WHSX7WW.cjs.map → chunk-XPMI4K3U.cjs.map} +0 -0
- /package/dist/{chunk-WGSS7TJP.js.map → chunk-ZJW3GQTP.js.map} +0 -0
- /package/dist/{turbopack-KFQ3A7UU.cjs.map → turbopack-6BXAJGS5.cjs.map} +0 -0
- /package/dist/{turbopack-A2TW7XKF.js.map → turbopack-WAERWSWW.js.map} +0 -0
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
var _chunkSELGX4Y2cjs = require('./chunk-SELGX4Y2.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 = _chunkSELGX4Y2cjs.createSharedModulePlan.call(void 0, {
|
|
76
|
+
bundle,
|
|
77
|
+
hostShared,
|
|
78
|
+
remoteShared,
|
|
79
|
+
scope,
|
|
80
|
+
callerTag
|
|
81
|
+
});
|
|
82
|
+
const resolved = await _chunkSELGX4Y2cjs.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 === _chunkSELGX4Y2cjs.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(_chunkSELGX4Y2cjs.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 = _chunkSELGX4Y2cjs.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]) === _chunkSELGX4Y2cjs.SHARED_MODULE_MANIFEST_PROTOCOL) {
|
|
282
|
+
applyWebpackSharedProviderModules(bundle, metadata.entries);
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
38
285
|
const self = globalThis;
|
|
39
|
-
const scope =
|
|
40
|
-
const webpackBundle = _nullishCoalesce(_optionalChain([scope, 'optionalAccess',
|
|
286
|
+
const scope = _chunkSELGX4Y2cjs.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',
|
|
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',
|
|
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',
|
|
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 } =
|
|
131
|
-
const remoteRuntime = _optionalChain([self, 'access',
|
|
132
|
-
if (remoteRuntime ===
|
|
377
|
+
const { bundle, path, prefix } = _chunkSELGX4Y2cjs.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 === _chunkSELGX4Y2cjs.RUNTIME_WEBPACK) {
|
|
133
380
|
return Promise.resolve(void 0);
|
|
134
381
|
}
|
|
135
|
-
const rawPath = path ?
|
|
382
|
+
const rawPath = path ? _chunkSELGX4Y2cjs.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',
|
|
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 } =
|
|
435
|
+
const { bundle } = _chunkSELGX4Y2cjs.parseRemoteId.call(void 0, chunkId);
|
|
189
436
|
const bundleName = bundle || scriptBundle || "default";
|
|
190
|
-
const scope =
|
|
437
|
+
const scope = _chunkSELGX4Y2cjs.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',
|
|
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',
|
|
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
|
-
|
|
544
|
+
_chunkSELGX4Y2cjs.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, () => (
|
|
596
|
+
_nullishCoalesce(fullId, () => ( _chunkSELGX4Y2cjs.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,
|
|
669
|
+
const scopedRequire = (moduleId) => requireModule(scope, moduleId, _chunkSELGX4Y2cjs.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',
|
|
725
|
+
const { exportSource, exportName } = _nullishCoalesce(_optionalChain([/\s+<export (?<exportSource>.*?) as (?<exportName>.*?)>$/, 'access', _34 => _34.exec, 'call', _35 => _35(
|
|
479
726
|
importId
|
|
480
|
-
), 'optionalAccess',
|
|
727
|
+
), 'optionalAccess', _36 => _36.groups]), () => ( {}));
|
|
481
728
|
const normalizedId = importId.replace(
|
|
482
729
|
/\s+<export(?<specifier>.*)>$/,
|
|
483
730
|
""
|
|
@@ -510,13 +757,17 @@ function createTurbopackContext(scope, exports, moduleExports, modules, moduleIn
|
|
|
510
757
|
r(requireId) {
|
|
511
758
|
return scopedRequire(requireId);
|
|
512
759
|
},
|
|
513
|
-
//
|
|
760
|
+
// exportValue — mirrors upstream Turbopack's `exportValue`, which sets
|
|
761
|
+
// `module.exports = value` regardless of value type. Most importantly,
|
|
762
|
+
// when Turbopack emits an async-loader module the body is
|
|
763
|
+
// ctx.v((parentImport) => Promise.all([...]).then(() => parentImport(id)))
|
|
764
|
+
// The function must be stored as-is so that the consumer's `ctx.A(id)`
|
|
765
|
+
// can invoke it with the real parent-import resolver. Calling it eagerly
|
|
766
|
+
// here (the prior remote-components behavior) ran the loader with the
|
|
767
|
+
// wrong argument and stored a `Promise` as `exports.default`, which then
|
|
768
|
+
// crashed `ctx.A` with `.default is not a function`.
|
|
514
769
|
v(value) {
|
|
515
|
-
|
|
516
|
-
exports.default = value((vid) => scopedRequire(vid));
|
|
517
|
-
} else {
|
|
518
|
-
moduleExports.exports = value;
|
|
519
|
-
}
|
|
770
|
+
moduleExports.exports = value;
|
|
520
771
|
},
|
|
521
772
|
// exportUrl — used by static asset modules (images, fonts, JSON, etc.).
|
|
522
773
|
// Turbopack emits a tiny module whose entire body is ctx.q(url), which
|
|
@@ -529,6 +780,20 @@ function createTurbopackContext(scope, exports, moduleExports, modules, moduleIn
|
|
|
529
780
|
moduleExports.exports = value;
|
|
530
781
|
}
|
|
531
782
|
},
|
|
783
|
+
// exportNamespace — Turbopack emits `ctx.n(namespace, esmId?)` when a
|
|
784
|
+
// module's exports should be replaced wholesale with a precomputed ESM
|
|
785
|
+
// namespace object (commonly at module evaluation time for re-export
|
|
786
|
+
// patterns and CJS-to-ESM interop wrappers). Mirrors upstream
|
|
787
|
+
// `exportNamespace` which sets both `module.exports` and
|
|
788
|
+
// `module.namespaceObject`; remote-components keeps a single exports
|
|
789
|
+
// record per module, so we assign to `exports` only.
|
|
790
|
+
n(namespace, esmId) {
|
|
791
|
+
if (esmId != null) {
|
|
792
|
+
scope.moduleCache[String(esmId)] = namespace;
|
|
793
|
+
} else {
|
|
794
|
+
moduleExports.exports = namespace;
|
|
795
|
+
}
|
|
796
|
+
},
|
|
532
797
|
// async module initializer
|
|
533
798
|
async a(mod) {
|
|
534
799
|
let result;
|
|
@@ -539,10 +804,24 @@ function createTurbopackContext(scope, exports, moduleExports, modules, moduleIn
|
|
|
539
804
|
);
|
|
540
805
|
exports.default = result;
|
|
541
806
|
},
|
|
542
|
-
// async module loader — resolves directly via scope
|
|
807
|
+
// async module loader — resolves directly via scope.
|
|
808
|
+
//
|
|
809
|
+
// Upstream Turbopack's `asyncLoader` treats `require(id)` itself as the
|
|
810
|
+
// loader function (see `module.exports = loaderFn` set by the factory).
|
|
811
|
+
// remote-components additionally supports `{ default: loaderFn }`, which
|
|
812
|
+
// is what a factory using `ctx.s([['default', () => fn]], ...)` produces.
|
|
813
|
+
// Both shapes must be accepted: when `ctx.n(loaderFn, esmId)` injects a
|
|
814
|
+
// function directly into the cache, the require result is the function
|
|
815
|
+
// itself and there is no `.default` to dereference.
|
|
543
816
|
async A(Aid) {
|
|
544
817
|
const mod = scopedRequire(Aid);
|
|
545
|
-
|
|
818
|
+
const loader = typeof mod === "function" ? mod : _optionalChain([mod, 'optionalAccess', _37 => _37.default]);
|
|
819
|
+
if (typeof loader !== "function") {
|
|
820
|
+
throw new Error(
|
|
821
|
+
`Async module loader for "${Aid}" is not a function (got ${typeof loader})`
|
|
822
|
+
);
|
|
823
|
+
}
|
|
824
|
+
return loader((parentId) => scopedRequire(parentId));
|
|
546
825
|
},
|
|
547
826
|
// dynamic import tracking — no-op for remote components
|
|
548
827
|
j() {
|
|
@@ -559,7 +838,7 @@ function createTurbopackContext(scope, exports, moduleExports, modules, moduleIn
|
|
|
559
838
|
const nextIndex = scriptSrc.indexOf("/_next");
|
|
560
839
|
const baseUrl = nextIndex !== -1 ? scriptSrc.slice(0, nextIndex) : "";
|
|
561
840
|
const chunkUrl = `${baseUrl}/_next/${url}`;
|
|
562
|
-
return loadChunkWithScope(scope,
|
|
841
|
+
return loadChunkWithScope(scope, _chunkSELGX4Y2cjs.formatRemoteId.call(void 0, scope, chunkUrl));
|
|
563
842
|
}
|
|
564
843
|
}
|
|
565
844
|
throw new Error(
|
|
@@ -635,12 +914,19 @@ async function initializeSharedModules(scope, hostShared = {}, remoteShared = {}
|
|
|
635
914
|
"sharedModuleId"
|
|
636
915
|
);
|
|
637
916
|
if (sharedModuleId) {
|
|
638
|
-
const
|
|
917
|
+
const moduleExports = handleTurbopackModule(
|
|
639
918
|
scope,
|
|
640
919
|
sharedModuleId,
|
|
641
|
-
|
|
920
|
+
_chunkSELGX4Y2cjs.formatRemoteId.call(void 0, scope, String(sharedModuleInitializerId))
|
|
642
921
|
);
|
|
643
|
-
|
|
922
|
+
const loaderCandidate = typeof moduleExports === "function" ? moduleExports : _optionalChain([moduleExports, 'optionalAccess', _38 => _38.default]);
|
|
923
|
+
if (typeof loaderCandidate === "function") {
|
|
924
|
+
sharedModuleInitializer = loaderCandidate(
|
|
925
|
+
(parentId) => requireModule(scope, parentId)
|
|
926
|
+
);
|
|
927
|
+
} else if (loaderCandidate && typeof loaderCandidate.then === "function") {
|
|
928
|
+
sharedModuleInitializer = loaderCandidate;
|
|
929
|
+
}
|
|
644
930
|
}
|
|
645
931
|
}
|
|
646
932
|
if (sharedModuleInitializer) {
|
|
@@ -728,9 +1014,9 @@ function extractInlineSharedModuleIds(allModules, scope) {
|
|
|
728
1014
|
continue;
|
|
729
1015
|
INLINE_REMOTE_SHARED_RE.lastIndex = 0;
|
|
730
1016
|
for (const match of funcCode.matchAll(INLINE_REMOTE_SHARED_RE)) {
|
|
731
|
-
const specifier = _optionalChain([match, 'access',
|
|
1017
|
+
const specifier = _optionalChain([match, 'access', _39 => _39.groups, 'optionalAccess', _40 => _40.specifier]);
|
|
732
1018
|
const rawAsyncSharedModuleId = stripQuotes2(
|
|
733
|
-
_optionalChain([match, 'access',
|
|
1019
|
+
_optionalChain([match, 'access', _41 => _41.groups, 'optionalAccess', _42 => _42.asyncSharedModuleId])
|
|
734
1020
|
);
|
|
735
1021
|
const asyncSharedModuleId = rawAsyncSharedModuleId ? normalizeModuleId(rawAsyncSharedModuleId) : void 0;
|
|
736
1022
|
if (!specifier || !asyncSharedModuleId)
|
|
@@ -752,48 +1038,41 @@ function extractInlineSharedModuleIds(allModules, scope) {
|
|
|
752
1038
|
return sharedModuleIds;
|
|
753
1039
|
}
|
|
754
1040
|
function stripQuotes2(value) {
|
|
755
|
-
if (_optionalChain([value, 'optionalAccess',
|
|
1041
|
+
if (_optionalChain([value, 'optionalAccess', _43 => _43.startsWith, 'call', _44 => _44('"')]) && value.endsWith('"')) {
|
|
756
1042
|
return value.slice(1, -1);
|
|
757
1043
|
}
|
|
758
1044
|
return value;
|
|
759
1045
|
}
|
|
760
1046
|
function installSharedModules(scope, hostShared, sharedModuleIds, missingMessage) {
|
|
761
|
-
|
|
1047
|
+
return buildSharedProviderPlan({
|
|
762
1048
|
bundle: scope.name,
|
|
763
1049
|
hostShared,
|
|
764
1050
|
remoteShared: sharedModuleIds,
|
|
765
1051
|
scope: `remote:${scope.scopedName}`,
|
|
766
|
-
callerTag: "SharedModules"
|
|
767
|
-
});
|
|
768
|
-
for (const entry of plan.entries) {
|
|
769
|
-
if (entry.status === "resolved") {
|
|
770
|
-
delete scope.moduleCache[entry.id];
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
return _chunkI7VKDF3Ecjs.installSharedModulePlan.call(void 0, {
|
|
774
|
-
plan,
|
|
775
|
-
target: scope.sharedModules,
|
|
776
1052
|
callerTag: "SharedModules",
|
|
777
1053
|
onMissing: (entry) => {
|
|
778
1054
|
_chunkBBXVML3Dcjs.logError.call(void 0, "SharedModules", missingMessage(entry.id, entry.specifier));
|
|
779
1055
|
}
|
|
780
|
-
}).then(
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
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
|
+
);
|
|
788
1067
|
}
|
|
789
1068
|
function preferSharedManifest(sharedModuleIds, remoteShared) {
|
|
790
|
-
if (!
|
|
1069
|
+
if (!_chunkSELGX4Y2cjs.isSharedModuleManifest.call(void 0, remoteShared))
|
|
791
1070
|
return sharedModuleIds;
|
|
792
1071
|
const extractedIdBySpecifier = new Map(
|
|
793
1072
|
Object.entries(sharedModuleIds).map(([id, specifier]) => [specifier, id])
|
|
794
1073
|
);
|
|
795
1074
|
return {
|
|
796
|
-
protocol:
|
|
1075
|
+
protocol: _chunkSELGX4Y2cjs.SHARED_MODULE_MANIFEST_PROTOCOL,
|
|
797
1076
|
requirements: remoteShared.requirements.map((requirement) => {
|
|
798
1077
|
return {
|
|
799
1078
|
...requirement,
|
|
@@ -803,7 +1082,7 @@ function preferSharedManifest(sharedModuleIds, remoteShared) {
|
|
|
803
1082
|
};
|
|
804
1083
|
}
|
|
805
1084
|
function normalizeRemoteSharedForTurbopackFallback(remoteShared) {
|
|
806
|
-
if (
|
|
1085
|
+
if (_chunkSELGX4Y2cjs.isSharedModuleManifest.call(void 0, remoteShared)) {
|
|
807
1086
|
return {
|
|
808
1087
|
...remoteShared,
|
|
809
1088
|
requirements: remoteShared.requirements.map((requirement) => ({
|
|
@@ -849,8 +1128,8 @@ function nextClientPagesLoader(bundle, route, styleContainer = document.head) {
|
|
|
849
1128
|
const ns = _chunkZ2SLBFQLcjs.getNamespace.call(void 0, );
|
|
850
1129
|
ns.pageComponentCache ??= {};
|
|
851
1130
|
const cacheKey = `${bundle}:${route}`;
|
|
852
|
-
const remoteRequire = _optionalChain([self, 'access',
|
|
853
|
-
const turbopackScope = _optionalChain([remoteRequire, 'optionalAccess',
|
|
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" ? _chunkSELGX4Y2cjs.getScope.call(void 0, bundle) : void 0;
|
|
854
1133
|
const applyBundleCss = () => {
|
|
855
1134
|
const elements = _nullishCoalesce(ns.cssCache[bundle], () => ( []));
|
|
856
1135
|
if (styleContainer) {
|
|
@@ -871,10 +1150,10 @@ function nextClientPagesLoader(bundle, route, styleContainer = document.head) {
|
|
|
871
1150
|
const nextCssOriginal = document.querySelector(
|
|
872
1151
|
`[id="__next_css__DO_NOT_USE__"]:not([data-bundle="${bundle}"][data-route="${route}"])`
|
|
873
1152
|
);
|
|
874
|
-
const nextCssOriginalParent = _nullishCoalesce(_optionalChain([nextCssOriginal, 'optionalAccess',
|
|
875
|
-
const nextCssOriginalNextSibling = _nullishCoalesce(_optionalChain([nextCssOriginal, 'optionalAccess',
|
|
1153
|
+
const nextCssOriginalParent = _nullishCoalesce(_optionalChain([nextCssOriginal, 'optionalAccess', _48 => _48.parentNode]), () => ( null));
|
|
1154
|
+
const nextCssOriginalNextSibling = _nullishCoalesce(_optionalChain([nextCssOriginal, 'optionalAccess', _49 => _49.nextSibling]), () => ( null));
|
|
876
1155
|
if (nextCssOriginal) {
|
|
877
|
-
_optionalChain([nextCssOriginalParent, 'optionalAccess',
|
|
1156
|
+
_optionalChain([nextCssOriginalParent, 'optionalAccess', _50 => _50.removeChild, 'call', _51 => _51(nextCssOriginal)]);
|
|
878
1157
|
}
|
|
879
1158
|
const nextCss = document.createElement("noscript");
|
|
880
1159
|
nextCss.id = "__next_css__DO_NOT_USE__";
|
|
@@ -886,20 +1165,20 @@ function nextClientPagesLoader(bundle, route, styleContainer = document.head) {
|
|
|
886
1165
|
nextCssEnd.setAttribute("data-route", route);
|
|
887
1166
|
document.head.appendChild(nextCssEnd);
|
|
888
1167
|
document.head.appendChild(nextCss);
|
|
889
|
-
const componentLoaderChunk = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce((turbopackScope ? findTurbopackPagesLoaderId(turbopackScope, route) : void 0), () => ( Object.keys(_nullishCoalesce(_optionalChain([remoteRequire, 'optionalAccess',
|
|
1168
|
+
const componentLoaderChunk = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce((turbopackScope ? findTurbopackPagesLoaderId(turbopackScope, route) : void 0), () => ( Object.keys(_nullishCoalesce(_optionalChain([remoteRequire, 'optionalAccess', _52 => _52.m]), () => ( {}))).find(
|
|
890
1169
|
(key) => key.includes("/webpack/loaders/next-client-pages-loader.js") && key.includes(`page=${encodeURIComponent(route)}!`)
|
|
891
|
-
))), () => ( Object.keys(_nullishCoalesce(_optionalChain([remoteRequire, 'optionalAccess',
|
|
1170
|
+
))), () => ( Object.keys(_nullishCoalesce(_optionalChain([remoteRequire, 'optionalAccess', _53 => _53.m]), () => ( {}))).find(
|
|
892
1171
|
(key) => key.includes("/next/dist/client/page-loader.js")
|
|
893
|
-
))), () => ( _optionalChain([self, 'access',
|
|
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(
|
|
894
1173
|
(key) => key.includes("/webpack/loaders/next-client-pages-loader.js") && key.includes(`page=${encodeURIComponent(route)}!`)
|
|
895
1174
|
), () => ( Object.keys(_nullishCoalesce(self.__remote_webpack_module_map__[bundle], () => ( {}))).find(
|
|
896
1175
|
(key) => key.includes("/next/dist/client/page-loader.js")
|
|
897
1176
|
))), () => ( ""))]]))), () => ( -1));
|
|
898
|
-
const appLoaderChunk = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce((turbopackScope ? findTurbopackPagesLoaderId(turbopackScope, "/_app") : void 0), () => ( Object.keys(_nullishCoalesce(_optionalChain([remoteRequire, 'optionalAccess',
|
|
1177
|
+
const appLoaderChunk = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce((turbopackScope ? findTurbopackPagesLoaderId(turbopackScope, "/_app") : void 0), () => ( Object.keys(_nullishCoalesce(_optionalChain([remoteRequire, 'optionalAccess', _57 => _57.m]), () => ( {}))).find(
|
|
899
1178
|
(key) => key.includes("/webpack/loaders/next-client-pages-loader.js") && key.includes(`page=%2F_app`)
|
|
900
|
-
))), () => ( Object.keys(_nullishCoalesce(_optionalChain([remoteRequire, 'optionalAccess',
|
|
1179
|
+
))), () => ( Object.keys(_nullishCoalesce(_optionalChain([remoteRequire, 'optionalAccess', _58 => _58.m]), () => ( {}))).find(
|
|
901
1180
|
(key) => key.includes("/next/dist/client/page-loader.js")
|
|
902
|
-
))), () => ( _optionalChain([self, 'access',
|
|
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(
|
|
903
1182
|
(key) => key.includes("/webpack/loaders/next-client-pages-loader.js") && key.includes(`page=%2F_app`)
|
|
904
1183
|
), () => ( Object.keys(_nullishCoalesce(self.__remote_webpack_module_map__[bundle], () => ( {}))).find(
|
|
905
1184
|
(key) => key.includes("/next/dist/client/page-loader.js")
|
|
@@ -920,12 +1199,12 @@ function nextClientPagesLoader(bundle, route, styleContainer = document.head) {
|
|
|
920
1199
|
if (self.__NEXT_P) {
|
|
921
1200
|
_chunkBBXVML3Dcjs.logDebug.call(void 0,
|
|
922
1201
|
"ComponentLoader",
|
|
923
|
-
`Next.js Pages loader registry for "${route}" in "${bundle}": ${self.__NEXT_P.map((entry) => _nullishCoalesce(_optionalChain([entry, 'optionalAccess',
|
|
1202
|
+
`Next.js Pages loader registry for "${route}" in "${bundle}": ${self.__NEXT_P.map((entry) => _nullishCoalesce(_optionalChain([entry, 'optionalAccess', _62 => _62[0]]), () => ( "<empty>"))).join(", ")}`
|
|
924
1203
|
);
|
|
925
1204
|
const componentEntry = _nullishCoalesce(self.__NEXT_P.find(
|
|
926
|
-
(entry) => _optionalChain([entry, 'optionalAccess',
|
|
1205
|
+
(entry) => _optionalChain([entry, 'optionalAccess', _63 => _63[0]]) === route
|
|
927
1206
|
), () => ( self.__NEXT_P[0]));
|
|
928
|
-
const appEntry = _nullishCoalesce(self.__NEXT_P.find((entry) => _optionalChain([entry, 'optionalAccess',
|
|
1207
|
+
const appEntry = _nullishCoalesce(self.__NEXT_P.find((entry) => _optionalChain([entry, 'optionalAccess', _64 => _64[0]]) === "/_app"), () => ( self.__NEXT_P[2]));
|
|
929
1208
|
const [, componentLoader] = _nullishCoalesce(componentEntry, () => ( [
|
|
930
1209
|
void 0,
|
|
931
1210
|
() => ({ default: null })
|
|
@@ -941,13 +1220,13 @@ function nextClientPagesLoader(bundle, route, styleContainer = document.head) {
|
|
|
941
1220
|
const cssCache = ns.cssCache;
|
|
942
1221
|
if (!cssCache[bundle]) {
|
|
943
1222
|
const cssRE = /\.s?css$/;
|
|
944
|
-
Object.keys(_nullishCoalesce(_optionalChain([self, 'access',
|
|
945
|
-
_optionalChain([self, 'access',
|
|
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)]);
|
|
946
1225
|
});
|
|
947
|
-
Object.keys(_nullishCoalesce(_optionalChain([self, 'access',
|
|
948
|
-
const id = _optionalChain([self, 'access',
|
|
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]]);
|
|
949
1228
|
if (id) {
|
|
950
|
-
_optionalChain([self, 'access',
|
|
1229
|
+
_optionalChain([self, 'access', _76 => _76.__remote_webpack_require__, 'optionalAccess', _77 => _77[bundle], 'optionalCall', _78 => _78(id)]);
|
|
951
1230
|
}
|
|
952
1231
|
});
|
|
953
1232
|
const elements = [];
|
|
@@ -976,7 +1255,7 @@ function nextClientPagesLoader(bundle, route, styleContainer = document.head) {
|
|
|
976
1255
|
self.__NEXT_P = __NEXT_P_ORIGINAL;
|
|
977
1256
|
}
|
|
978
1257
|
if (nextCssOriginal && nextCssOriginalParent) {
|
|
979
|
-
const restoreBefore = _optionalChain([nextCssOriginalNextSibling, 'optionalAccess',
|
|
1258
|
+
const restoreBefore = _optionalChain([nextCssOriginalNextSibling, 'optionalAccess', _79 => _79.parentNode]) === nextCssOriginalParent ? nextCssOriginalNextSibling : null;
|
|
980
1259
|
nextCssOriginalParent.insertBefore(nextCssOriginal, restoreBefore);
|
|
981
1260
|
}
|
|
982
1261
|
nextCss.remove();
|
|
@@ -993,11 +1272,11 @@ function loadPagesLoaderModule(bundle, id, turbopackScope) {
|
|
|
993
1272
|
requireModule(turbopackScope, id);
|
|
994
1273
|
return;
|
|
995
1274
|
}
|
|
996
|
-
const remoteRequire = _optionalChain([self, 'access',
|
|
997
|
-
if (_optionalChain([remoteRequire, 'optionalAccess',
|
|
1275
|
+
const remoteRequire = _optionalChain([self, 'access', _80 => _80.__remote_webpack_require__, 'optionalAccess', _81 => _81[bundle]]);
|
|
1276
|
+
if (_optionalChain([remoteRequire, 'optionalAccess', _82 => _82.c])) {
|
|
998
1277
|
delete remoteRequire.c[id];
|
|
999
1278
|
}
|
|
1000
|
-
_optionalChain([remoteRequire, 'optionalCall',
|
|
1279
|
+
_optionalChain([remoteRequire, 'optionalCall', _83 => _83(id)]);
|
|
1001
1280
|
}
|
|
1002
1281
|
function findTurbopackPagesLoaderId(scope, route) {
|
|
1003
1282
|
const modules = getTurbopackModules(scope);
|
|
@@ -1066,5 +1345,6 @@ function findPreviousModuleId(entries, factoryIndex) {
|
|
|
1066
1345
|
|
|
1067
1346
|
|
|
1068
1347
|
|
|
1069
|
-
|
|
1070
|
-
|
|
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-6NAV4SCF.cjs.map
|