@module-federation/bridge-vue3 2.7.0 → 2.8.1

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/index.js CHANGED
@@ -1,47 +1,49 @@
1
- import * as Kt from "vue";
2
- import { defineComponent as zt, ref as W, useAttrs as Jt, watch as Xt, onMounted as Yt, onActivated as Zt, nextTick as Qt, onDeactivated as er, onBeforeUnmount as tr, createVNode as rr, mergeProps as or, defineAsyncComponent as nr, h as sr } from "vue";
3
- import * as fe from "vue-router";
4
- import { useRoute as Ze } from "vue-router";
5
- const ir = ".json", ar = "FEDERATION_DEBUG", cr = ":";
6
- let ve = /* @__PURE__ */ function(e) {
1
+ import * as Xt from "vue";
2
+ import { defineComponent as Yt, ref as V, useAttrs as Qt, watch as er, onMounted as tr, onActivated as rr, nextTick as or, onDeactivated as nr, onBeforeUnmount as sr, createVNode as ir, mergeProps as ar, defineAsyncComponent as cr, h as lr } from "vue";
3
+ import * as de from "vue-router";
4
+ import { useRoute as rt } from "vue-router";
5
+ const ur = ".json", fr = "FEDERATION_DEBUG", hr = ":";
6
+ let Ne = /* @__PURE__ */ function(e) {
7
7
  return e[e.UNKNOWN = 1] = "UNKNOWN", e[e.CALCULATED = 2] = "CALCULATED", e[e.NO_USE = 0] = "NO_USE", e;
8
8
  }({});
9
- const x = typeof ENV_TARGET < "u" ? ENV_TARGET === "web" : typeof window < "u" && typeof window.document < "u";
10
- function Qe() {
11
- return x;
9
+ const G = typeof ENV_TARGET < "u" ? ENV_TARGET === "web" : typeof window < "u" && typeof window.document < "u";
10
+ function ot() {
11
+ return G;
12
12
  }
13
- function et() {
13
+ function nt() {
14
14
  return typeof navigator < "u" && (navigator == null ? void 0 : navigator.product) === "ReactNative";
15
15
  }
16
- function lr() {
16
+ function dr() {
17
17
  try {
18
- if (Qe() && window.localStorage) return !!localStorage.getItem(ar);
18
+ if (ot() && window.localStorage) return !!localStorage.getItem(fr);
19
19
  } catch {
20
20
  return !1;
21
21
  }
22
22
  return !1;
23
23
  }
24
- function Ne() {
25
- return typeof process < "u" && process.env && process.env.FEDERATION_DEBUG ? !!process.env.FEDERATION_DEBUG : typeof FEDERATION_DEBUG < "u" && FEDERATION_DEBUG ? !0 : lr();
24
+ function Ae() {
25
+ return typeof process < "u" && process.env && process.env.FEDERATION_DEBUG ? !!process.env.FEDERATION_DEBUG : typeof FEDERATION_DEBUG < "u" && FEDERATION_DEBUG ? !0 : dr();
26
26
  }
27
- const ur = "[ Federation Runtime ]", tt = function(...e) {
28
- return e.length ? e.reduce((t, r) => r ? t ? `${t}${cr}${r}` : r : t, "") : "";
29
- }, Te = (e, t) => {
27
+ const mr = "[ Federation Runtime ]", st = function(...e) {
28
+ return e.length ? e.reduce((t, r) => r ? t ? `${t}${hr}${r}` : r : t, "") : "";
29
+ };
30
+ function Me(e, t) {
30
31
  if ("getPublicPath" in e) {
31
32
  let r;
32
33
  return e.getPublicPath.startsWith("function") ? r = new Function("return " + e.getPublicPath)()() : r = new Function(e.getPublicPath)(), `${r}${t}`;
33
- } else return "publicPath" in e ? !Qe() && !et() && "ssrPublicPath" in e && typeof e.ssrPublicPath == "string" ? `${e.ssrPublicPath}${t}` : `${e.publicPath}${t}` : (console.warn("Cannot get resource URL. If in debug mode, please ignore.", e, t), "");
34
- }, rt = (e) => {
35
- console.warn(`${ur}: ${e}`);
34
+ } else return "publicPath" in e ? !ot() && !nt() && "ssrPublicPath" in e && typeof e.ssrPublicPath == "string" ? `${e.ssrPublicPath}${t}` : `${e.publicPath}${t}` : (console.warn("Cannot get resource URL. If in debug mode, please ignore.", e, t), "");
35
+ }
36
+ const it = (e) => {
37
+ console.warn(`${mr}: ${e}`);
36
38
  };
37
- function ot(e) {
39
+ function at(e) {
38
40
  try {
39
41
  return JSON.stringify(e, null, 2);
40
42
  } catch {
41
43
  return "";
42
44
  }
43
45
  }
44
- const be = (e, t) => {
46
+ const we = (e, t) => {
45
47
  if (!e) return t;
46
48
  const o = ((n) => {
47
49
  if (n === ".") return "";
@@ -54,19 +56,19 @@ const be = (e, t) => {
54
56
  })(e);
55
57
  return o ? o.endsWith("/") ? `${o}${t}` : `${o}/${t}` : t;
56
58
  };
57
- function fr(e) {
59
+ function pr(e) {
58
60
  return e.replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
59
61
  }
60
- function hr(e, t = {}) {
62
+ function yr(e, t = {}) {
61
63
  var R;
62
64
  const { remotes: r = {}, overrides: o = {}, version: n } = t;
63
65
  let s;
64
- const i = () => "publicPath" in e.metaData ? (e.metaData.publicPath === "auto" || e.metaData.publicPath === "") && n ? fr(n) : e.metaData.publicPath : e.metaData.getPublicPath, c = Object.keys(o);
66
+ const i = () => "publicPath" in e.metaData ? (e.metaData.publicPath === "auto" || e.metaData.publicPath === "") && n ? pr(n) : e.metaData.publicPath : e.metaData.getPublicPath, c = Object.keys(o);
65
67
  let a = {};
66
68
  Object.keys(r).length || (a = ((R = e.remotes) == null ? void 0 : R.reduce((g, _) => {
67
69
  let b;
68
- const $ = _.federationContainerName;
69
- return c.includes($) ? b = o[$] : "version" in _ ? b = _.version : b = _.entry, g[$] = { matchedVersion: b }, g;
70
+ const I = _.federationContainerName;
71
+ return c.includes(I) ? b = o[I] : "version" in _ ? b = _.version : b = _.entry, g[I] = { matchedVersion: b }, g;
70
72
  }, {})) || {}), Object.keys(r).forEach((g) => a[g] = { matchedVersion: c.includes(g) ? o[g] : r[g] });
71
73
  const { remoteEntry: { path: l, name: u, type: f }, types: m = {
72
74
  path: "",
@@ -78,9 +80,9 @@ function hr(e, t = {}) {
78
80
  version: n || "",
79
81
  buildVersion: h,
80
82
  globalName: d,
81
- remoteEntry: be(l, u),
83
+ remoteEntry: we(l, u),
82
84
  remoteEntryType: f,
83
- remoteTypes: be(m.path, m.name),
85
+ remoteTypes: we(m.path, m.name),
84
86
  remoteTypesZip: m.zip || "",
85
87
  remoteTypesAPI: m.api || "",
86
88
  remotesInfo: a,
@@ -103,15 +105,15 @@ function hr(e, t = {}) {
103
105
  ...y,
104
106
  getPublicPath: i()
105
107
  }, p) {
106
- const g = be(p.path, p.name);
108
+ const g = we(p.path, p.name);
107
109
  s.ssrRemoteEntry = g, s.ssrRemoteEntryType = p.type || "commonjs-module";
108
110
  }
109
111
  return s;
110
112
  }
111
- function nt(e) {
112
- return !!("remoteEntry" in e && e.remoteEntry.includes(ir));
113
+ function ct(e) {
114
+ return !!("remoteEntry" in e && e.remoteEntry.includes(ur));
113
115
  }
114
- const dr = "[ Module Federation ]", Q = console, mr = [
116
+ const Er = "[ Module Federation ]", Q = console, gr = [
115
117
  "logger.ts",
116
118
  "logger.js",
117
119
  "captureStackTrace",
@@ -122,12 +124,12 @@ const dr = "[ Module Federation ]", Q = console, mr = [
122
124
  "Logger.error",
123
125
  "Logger.debug"
124
126
  ];
125
- function pr() {
127
+ function Rr() {
126
128
  try {
127
129
  const e = (/* @__PURE__ */ new Error()).stack;
128
130
  if (!e) return;
129
131
  const [, ...t] = e.split(`
130
- `), r = t.filter((o) => !mr.some((n) => o.includes(n)));
132
+ `), r = t.filter((o) => !gr.some((n) => o.includes(n)));
131
133
  return r.length ? `Stack trace:
132
134
  ${r.slice(0, 5).join(`
133
135
  `)}` : void 0;
@@ -135,7 +137,7 @@ ${r.slice(0, 5).join(`
135
137
  return;
136
138
  }
137
139
  }
138
- var st = class {
140
+ var lt = class {
139
141
  constructor(e, t = Q) {
140
142
  this.prefix = e, this.delegate = t ?? Q;
141
143
  }
@@ -146,7 +148,7 @@ var st = class {
146
148
  this.delegate = e ?? Q;
147
149
  }
148
150
  emit(e, t) {
149
- const r = this.delegate, o = Ne() ? pr() : void 0, n = o ? [...t, o] : t, s = (() => {
151
+ const r = this.delegate, o = Ae() ? Rr() : void 0, n = o ? [...t, o] : t, s = (() => {
150
152
  switch (e) {
151
153
  case "log":
152
154
  return ["log", "info"];
@@ -202,39 +204,39 @@ var st = class {
202
204
  this.emit("info", e);
203
205
  }
204
206
  debug(...e) {
205
- Ne() && this.emit("debug", e);
207
+ Ae() && this.emit("debug", e);
206
208
  }
207
209
  };
208
- function it(e) {
209
- return new st(e);
210
+ function ut(e) {
211
+ return new lt(e);
210
212
  }
211
- function yr(e) {
212
- const t = new st(e);
213
+ function _r(e) {
214
+ const t = new lt(e);
213
215
  return Object.defineProperty(t, "__mf_infrastructure_logger__", {
214
216
  value: !0,
215
217
  enumerable: !1,
216
218
  configurable: !1
217
219
  }), t;
218
220
  }
219
- yr(dr);
220
- async function at(e, t) {
221
+ _r(Er);
222
+ async function ft(e, t) {
221
223
  try {
222
224
  return await e();
223
225
  } catch (r) {
224
- rt(r);
226
+ it(r);
225
227
  return;
226
228
  }
227
229
  }
228
- function Ae(e, t) {
230
+ function Pe(e, t) {
229
231
  const r = /^(https?:)?\/\//i;
230
232
  return e.replace(r, "").replace(/\/$/, "") === t.replace(r, "").replace(/\/$/, "");
231
233
  }
232
- function ct(e) {
234
+ function ht(e) {
233
235
  let t = null, r = !0, o = 2e4, n;
234
236
  const s = document.getElementsByTagName("script");
235
237
  for (let l = 0; l < s.length; l++) {
236
238
  const u = s[l], f = u.getAttribute("src");
237
- if (f && Ae(f, e.url)) {
239
+ if (f && Pe(f, e.url)) {
238
240
  t = u, r = !1;
239
241
  break;
240
242
  }
@@ -249,7 +251,7 @@ function ct(e) {
249
251
  }
250
252
  let i = null;
251
253
  const c = typeof window < "u" ? (l) => {
252
- if (l.filename && Ae(l.filename, e.url)) {
254
+ if (l.filename && Pe(l.filename, e.url)) {
253
255
  const u = /* @__PURE__ */ new Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${l.message} (${l.filename}:${l.lineno}:${l.colno})`);
254
256
  u.name = "ScriptExecutionError", i = u;
255
257
  }
@@ -263,7 +265,7 @@ function ct(e) {
263
265
  m.name = "ScriptNetworkError", e != null && e.onErrorCallback && (e == null || e.onErrorCallback(m));
264
266
  } else i ? e != null && e.onErrorCallback && (e == null || e.onErrorCallback(i)) : e != null && e.cb && (e == null || e.cb());
265
267
  };
266
- if (t && (t.onerror = null, t.onload = null, at(() => {
268
+ if (t && (t.onerror = null, t.onload = null, ft(() => {
267
269
  const { needDeleteScript: m = !0 } = e;
268
270
  m && t != null && t.parentNode && t.parentNode.removeChild(t);
269
271
  }), l && typeof l == "function")) {
@@ -286,12 +288,12 @@ function ct(e) {
286
288
  needAttach: r
287
289
  };
288
290
  }
289
- function Er(e) {
291
+ function br(e) {
290
292
  let t = null, r = !0, o = 2e4, n;
291
293
  const s = document.getElementsByTagName("link");
292
294
  for (let c = 0; c < s.length; c++) {
293
295
  const a = s[c], l = a.getAttribute("href"), u = a.getAttribute("rel");
294
- if (l && Ae(l, e.url) && u === e.attrs.rel) {
296
+ if (l && Pe(l, e.url) && u === e.attrs.rel) {
295
297
  t = a, r = !1;
296
298
  break;
297
299
  }
@@ -319,7 +321,7 @@ function Er(e) {
319
321
  u.name = "LinkNetworkError", e != null && e.onErrorCallback && (e == null || e.onErrorCallback(u));
320
322
  } else e != null && e.cb && (e == null || e.cb());
321
323
  };
322
- if (t && (t.onerror = null, t.onload = null, at(() => {
324
+ if (t && (t.onerror = null, t.onload = null, ft(() => {
323
325
  const { needDeleteLink: u = !0 } = e;
324
326
  u && t != null && t.parentNode && t.parentNode.removeChild(t);
325
327
  }), c)) {
@@ -338,10 +340,10 @@ function Er(e) {
338
340
  needAttach: r
339
341
  };
340
342
  }
341
- function gr(e, t) {
343
+ function Sr(e, t) {
342
344
  const { attrs: r = {}, createScriptHook: o } = t;
343
345
  return new Promise((n, s) => {
344
- const { script: i, needAttach: c } = ct({
346
+ const { script: i, needAttach: c } = ht({
345
347
  url: e,
346
348
  cb: n,
347
349
  onErrorCallback: s,
@@ -356,7 +358,7 @@ function gr(e, t) {
356
358
  });
357
359
  }
358
360
  const ce = /* @__PURE__ */ new Map();
359
- function H(e) {
361
+ function x(e) {
360
362
  if (!e) throw new Error("import specifier is required");
361
363
  if (ce.has(e)) return ce.get(e);
362
364
  const t = new Function("name", "return import(name)")(e).then((r) => r).catch((r) => {
@@ -364,10 +366,10 @@ function H(e) {
364
366
  });
365
367
  return ce.set(e, t), t;
366
368
  }
367
- const Rr = async (e, t, r) => {
369
+ const wr = async (e, t, r) => {
368
370
  const n = await ((s, i) => r.lifecycle.fetch.emit(s, i))(e, t || {});
369
371
  return !n || !(n instanceof Response) ? fetch(e, t || {}) : n;
370
- }, _r = typeof ENV_TARGET > "u" || ENV_TARGET !== "web" ? (e, t, r, o) => {
372
+ }, Ir = typeof ENV_TARGET > "u" || ENV_TARGET !== "web" ? (e, t, r, o) => {
371
373
  if (o != null && o.createScriptHook) {
372
374
  const c = o.createScriptHook(e);
373
375
  c && typeof c == "object" && "url" in c && (e = c.url);
@@ -379,19 +381,19 @@ const Rr = async (e, t, r) => {
379
381
  console.error("Error constructing URL:", c), t(/* @__PURE__ */ new Error(`Invalid URL: ${c}`));
380
382
  return;
381
383
  }
382
- const s = async () => o != null && o.fetch ? (c, a) => Rr(c, a, o) : fetch, i = async (c, a) => {
384
+ const s = async () => o != null && o.fetch ? (c, a) => wr(c, a, o) : fetch, i = async (c, a) => {
383
385
  var l;
384
386
  try {
385
- const f = await (await c(a.href)).text(), [m, h] = await Promise.all([H("path"), H("vm")]), d = {
387
+ const f = await (await c(a.href)).text(), [m, h] = await Promise.all([x("path"), x("vm")]), d = {
386
388
  exports: {},
387
389
  module: { exports: {} }
388
390
  }, p = a.pathname.split("/").slice(0, -1).join("/"), E = m.basename(a.pathname), y = new h.Script(`(function(exports, module, require, __dirname, __filename) {${f}
389
391
  })`, {
390
392
  filename: E,
391
- importModuleDynamically: ((l = h.constants) == null ? void 0 : l.USE_MAIN_CONTEXT_DEFAULT_LOADER) ?? H
393
+ importModuleDynamically: ((l = h.constants) == null ? void 0 : l.USE_MAIN_CONTEXT_DEFAULT_LOADER) ?? x
392
394
  });
393
395
  let R;
394
- R = (await H("node:module")).createRequire(a.protocol === "file:" || a.protocol === "node:" ? a.href : m.join(process.cwd(), "__mf_require_base__.js")), y.runInThisContext()(d.exports, d.module, R, p, E);
396
+ R = (await x("node:module")).createRequire(a.protocol === "file:" || a.protocol === "node:" ? a.href : m.join(process.cwd(), "__mf_require_base__.js")), y.runInThisContext()(d.exports, d.module, R, p, E);
395
397
  const g = d.module.exports || d.exports;
396
398
  if (r && g && r.globalName) {
397
399
  t(void 0, g[r.globalName] || g);
@@ -403,9 +405,9 @@ const Rr = async (e, t, r) => {
403
405
  }
404
406
  };
405
407
  s().then(async (c) => {
406
- if ((r == null ? void 0 : r.type) === "esm" || (r == null ? void 0 : r.type) === "module") return ft(n.href, {
408
+ if ((r == null ? void 0 : r.type) === "esm" || (r == null ? void 0 : r.type) === "module") return pt(n.href, {
407
409
  fetch: c,
408
- vm: await H("vm")
410
+ vm: await x("vm")
409
411
  }).then(async (a) => {
410
412
  await a.evaluate(), t(void 0, a.namespace);
411
413
  }).catch((a) => {
@@ -417,8 +419,8 @@ const Rr = async (e, t, r) => {
417
419
  });
418
420
  } : (e, t, r, o) => {
419
421
  t(/* @__PURE__ */ new Error("createScriptNode is disabled in non-Node.js environment"));
420
- }, br = typeof ENV_TARGET > "u" || ENV_TARGET !== "web" ? (e, t) => new Promise((r, o) => {
421
- _r(e, (n, s) => {
422
+ }, $r = typeof ENV_TARGET > "u" || ENV_TARGET !== "web" ? (e, t) => new Promise((r, o) => {
423
+ Ir(e, (n, s) => {
422
424
  var i, c;
423
425
  if (n) o(n);
424
426
  else {
@@ -428,111 +430,111 @@ const Rr = async (e, t, r) => {
428
430
  }, t.attrs, t.loaderHook);
429
431
  }) : (e, t) => {
430
432
  throw new Error("loadScriptNode is disabled in non-Node.js environment");
431
- }, J = /* @__PURE__ */ new Map(), lt = (e) => e.startsWith("http:") || e.startsWith("https:"), ut = (e) => !e.startsWith("./") && !e.startsWith("../") && !e.startsWith("/") && !e.includes(":");
432
- function Sr(e) {
433
+ }, Z = /* @__PURE__ */ new Map(), dt = (e) => e.startsWith("http:") || e.startsWith("https:"), mt = (e) => !e.startsWith("./") && !e.startsWith("../") && !e.startsWith("/") && !e.includes(":");
434
+ function Tr(e) {
433
435
  const t = new URL(e), r = encodeURIComponent(t.protocol.slice(0, -1)), o = encodeURIComponent(t.host), n = t.pathname.split("/").map((i) => encodeURIComponent(i)).join("/"), s = encodeURIComponent(`${t.search}${t.hash}`);
434
436
  return `/${r}/${o}${n}${s ? `/${s}` : ""}`;
435
437
  }
436
- function wr(e, t) {
438
+ function vr(e, t) {
437
439
  const r = t.endsWith("/") ? t : `${t}/`;
438
- return new URL(`__module_federation_remote__${Sr(e)}`, r).href;
440
+ return new URL(`__module_federation_remote__${Tr(e)}`, r).href;
439
441
  }
440
- async function $r(e) {
441
- return e.startsWith("node:") ? !0 : ut(e) ? (await H("node:module")).builtinModules.includes(e) : !1;
442
+ async function Nr(e) {
443
+ return e.startsWith("node:") ? !0 : mt(e) ? (await x("node:module")).builtinModules.includes(e) : !1;
442
444
  }
443
- function Ir(e) {
445
+ function Ar(e) {
444
446
  const t = e && (typeof e == "object" || typeof e == "function") ? e : { default: e }, r = { ...t };
445
447
  return Object.prototype.hasOwnProperty.call(r, "default") || (r.default = t), r;
446
448
  }
447
- async function vr(e, t, r) {
449
+ async function Mr(e, t, r) {
448
450
  if (typeof r.SyntheticModule != "function") throw new Error("vm.SyntheticModule is required to load Node.js built-in modules in ESM remote entries.");
449
- const o = Ir(t), n = Object.keys(o), s = new r.SyntheticModule(n, function() {
451
+ const o = Ar(t), n = Object.keys(o), s = new r.SyntheticModule(n, function() {
450
452
  for (const c of n) this.setExport(c, o[c]);
451
453
  }, { identifier: e });
452
- return J.set(e, s), await s.link(async () => {
454
+ return Z.set(e, s), await s.link(async () => {
453
455
  throw new Error(`Node.js built-in module "${e}" should not request child modules.`);
454
456
  }), await s.evaluate(), s;
455
457
  }
456
- async function Nr(e, t) {
458
+ async function Pr(e, t) {
457
459
  const r = `node-builtin:${e}`;
458
- return J.has(r) ? J.get(r) : vr(r, await H(e), t);
460
+ return Z.has(r) ? Z.get(r) : Mr(r, await x(e), t);
459
461
  }
460
- async function Be(e, t, r) {
461
- if (await $r(e)) return Nr(e, r.vm);
462
- if (ut(e)) throw new Error(`Unsupported ESM module specifier "${e}". Only relative or absolute http(s) remote modules and Node.js built-in modules are supported.`);
462
+ async function We(e, t, r) {
463
+ if (await Nr(e)) return Pr(e, r.vm);
464
+ if (mt(e)) throw new Error(`Unsupported ESM module specifier "${e}". Only relative or absolute http(s) remote modules and Node.js built-in modules are supported.`);
463
465
  const o = new URL(e, t).href;
464
- if (!lt(o)) throw new Error(`Unsupported ESM module specifier "${e}" resolved to "${o}". Only http(s) remote modules and Node.js built-in modules are supported.`);
465
- return ft(o, r);
466
+ if (!dt(o)) throw new Error(`Unsupported ESM module specifier "${e}" resolved to "${o}". Only http(s) remote modules and Node.js built-in modules are supported.`);
467
+ return pt(o, r);
466
468
  }
467
- async function Tr(e) {
469
+ async function kr(e) {
468
470
  if (e.status === "linked" && await e.evaluate(), e.status === "errored") throw e.error;
469
471
  return e;
470
472
  }
471
- async function ft(e, t) {
472
- if (J.has(e)) return J.get(e);
473
+ async function pt(e, t) {
474
+ if (Z.has(e)) return Z.get(e);
473
475
  const { fetch: r, vm: o } = t;
474
- if (!lt(e)) throw new Error(`Unsupported ESM module URL "${e}". Only http(s) remote modules and Node.js built-in modules are supported.`);
475
- const n = await (await r(e)).text(), s = (await H("node:url")).pathToFileURL(process.cwd()).href, i = new o.SourceTextModule(n, {
476
+ if (!dt(e)) throw new Error(`Unsupported ESM module URL "${e}". Only http(s) remote modules and Node.js built-in modules are supported.`);
477
+ const n = await (await r(e)).text(), s = (await x("node:url")).pathToFileURL(process.cwd()).href, i = new o.SourceTextModule(n, {
476
478
  identifier: e,
477
479
  initializeImportMeta: (c) => {
478
- c.url = wr(e, s);
480
+ c.url = vr(e, s);
479
481
  },
480
- importModuleDynamically: async (c) => Tr(await Be(c, e, t))
482
+ importModuleDynamically: async (c) => kr(await We(c, e, t))
481
483
  });
482
- return J.set(e, i), await i.link(async (c) => Be(c, e, t)), i;
484
+ return Z.set(e, i), await i.link(async (c) => We(c, e, t)), i;
483
485
  }
484
- const C = it("[ Module Federation Bridge Vue3 ]"), Ar = (e) => `View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`, ht = (e, t, r, o) => {
486
+ const C = ut("[ Module Federation Bridge Vue3 ]"), Or = (e) => `View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`, yt = (e, t, r, o) => {
485
487
  const n = [`${[t[e]]} #${e}`];
486
- return r && n.push(`args: ${JSON.stringify(r)}`), n.push(Ar(e)), o && n.push(`Original Error Message:
488
+ return r && n.push(`args: ${JSON.stringify(r)}`), n.push(Or(e)), o && n.push(`Original Error Message:
487
489
  ${o}`), n.join(`
488
490
  `);
489
491
  };
490
- function Pr(e, t, r, o, n, s) {
491
- return o(ht(e, t, r, n));
492
+ function Lr(e, t, r, o, n, s) {
493
+ return o(yt(e, t, r, n));
492
494
  }
493
- const G = "[ Federation Runtime ]", Pe = it(G);
494
- function O(e, t, r, o, n) {
495
+ const U = "[ Federation Runtime ]", ke = ut(U);
496
+ function L(e, t, r, o, n) {
495
497
  e || w(t);
496
498
  }
497
499
  function w(e, t, r, o, n) {
498
- if (t !== void 0) return Pr(e, t, r ?? {}, (i) => {
499
- throw new Error(`${G}: ${i}`);
500
+ if (t !== void 0) return Lr(e, t, r ?? {}, (i) => {
501
+ throw new Error(`${U}: ${i}`);
500
502
  }, o);
501
503
  const s = e;
502
- throw s instanceof Error ? (s.message.startsWith(G) || (s.message = `${G}: ${s.message}`), s) : new Error(`${G}: ${s}`);
504
+ throw s instanceof Error ? (s.message.startsWith(U) || (s.message = `${U}: ${s.message}`), s) : new Error(`${U}: ${s}`);
503
505
  }
504
506
  function oe(e) {
505
- e instanceof Error && (e.message.startsWith(G) || (e.message = `${G}: ${e.message}`)), Pe.warn(e);
507
+ e instanceof Error && (e.message.startsWith(U) || (e.message = `${U}: ${e.message}`)), ke.warn(e);
506
508
  }
507
- function kr(e, t) {
509
+ function Cr(e, t) {
508
510
  return e.findIndex((r) => r === t) === -1 && e.push(t), e;
509
511
  }
510
512
  function ne(e) {
511
513
  return "version" in e && e.version ? `${e.name}:${e.version}` : "entry" in e && e.entry ? `${e.name}:${e.entry}` : `${e.name}`;
512
514
  }
513
- function Le(e) {
515
+ function Ce(e) {
514
516
  return typeof e.entry < "u";
515
517
  }
516
- function dt(e) {
518
+ function Et(e) {
517
519
  return !e.entry.includes(".json");
518
520
  }
519
- function Oe(e) {
521
+ function Fe(e) {
520
522
  return e && typeof e == "object";
521
523
  }
522
- const Mr = Object.prototype.toString;
523
- function Lr(e) {
524
- return Mr.call(e) === "[object Object]";
524
+ const Fr = Object.prototype.toString;
525
+ function Hr(e) {
526
+ return Fr.call(e) === "[object Object]";
525
527
  }
526
- function mt(e) {
528
+ function gt(e) {
527
529
  return Array.isArray(e) ? e : [e];
528
530
  }
529
- function pt(e) {
531
+ function Rt(e) {
530
532
  const t = {
531
533
  url: "",
532
534
  type: "global",
533
535
  globalName: ""
534
536
  };
535
- return x || et() || !("ssrRemoteEntry" in e) ? "remoteEntry" in e ? {
537
+ return G || nt() || !("ssrRemoteEntry" in e) ? "remoteEntry" in e ? {
536
538
  url: e.remoteEntry,
537
539
  type: e.remoteEntryType,
538
540
  globalName: e.globalName
@@ -542,45 +544,45 @@ function pt(e) {
542
544
  globalName: e.globalName
543
545
  } : t;
544
546
  }
545
- const Or = (e, t) => {
547
+ const Dr = (e, t) => {
546
548
  let r;
547
549
  return e.endsWith("/") ? r = e.slice(0, -1) : r = e, t.startsWith(".") && (t = t.slice(1)), r = r + t, r;
548
- }, N = typeof globalThis == "object" ? globalThis : window, M = (() => {
550
+ }, v = typeof globalThis == "object" ? globalThis : window, k = (() => {
549
551
  try {
550
552
  return document.defaultView;
551
553
  } catch {
552
- return N;
554
+ return v;
553
555
  }
554
- })(), Re = M;
555
- function he(e, t, r) {
556
+ })(), be = k;
557
+ function me(e, t, r) {
556
558
  Object.defineProperty(e, t, {
557
559
  value: r,
558
560
  configurable: !1,
559
561
  writable: !0
560
562
  });
561
563
  }
562
- function de(e, t) {
564
+ function pe(e, t) {
563
565
  return Object.hasOwnProperty.call(e, t);
564
566
  }
565
- de(N, "__GLOBAL_LOADING_REMOTE_ENTRY__") || he(N, "__GLOBAL_LOADING_REMOTE_ENTRY__", {});
566
- const K = N.__GLOBAL_LOADING_REMOTE_ENTRY__;
567
- function yt(e) {
567
+ pe(v, "__GLOBAL_LOADING_REMOTE_ENTRY__") || me(v, "__GLOBAL_LOADING_REMOTE_ENTRY__", {});
568
+ const J = v.__GLOBAL_LOADING_REMOTE_ENTRY__;
569
+ function _t(e) {
568
570
  var t, r, o, n, s, i;
569
- de(e, "__VMOK__") && !de(e, "__FEDERATION__") && he(e, "__FEDERATION__", e.__VMOK__), de(e, "__FEDERATION__") || (he(e, "__FEDERATION__", {
571
+ pe(e, "__VMOK__") && !pe(e, "__FEDERATION__") && me(e, "__FEDERATION__", e.__VMOK__), pe(e, "__FEDERATION__") || (me(e, "__FEDERATION__", {
570
572
  __GLOBAL_PLUGIN__: [],
571
573
  __INSTANCES__: [],
572
574
  moduleInfo: {},
573
575
  __SHARE__: {},
574
576
  __MANIFEST_LOADING__: {},
575
577
  __PRELOADED_MAP__: /* @__PURE__ */ new Map()
576
- }), he(e, "__VMOK__", e.__FEDERATION__)), (t = e.__FEDERATION__).__GLOBAL_PLUGIN__ ?? (t.__GLOBAL_PLUGIN__ = []), (r = e.__FEDERATION__).__INSTANCES__ ?? (r.__INSTANCES__ = []), (o = e.__FEDERATION__).moduleInfo ?? (o.moduleInfo = {}), (n = e.__FEDERATION__).__SHARE__ ?? (n.__SHARE__ = {}), (s = e.__FEDERATION__).__MANIFEST_LOADING__ ?? (s.__MANIFEST_LOADING__ = {}), (i = e.__FEDERATION__).__PRELOADED_MAP__ ?? (i.__PRELOADED_MAP__ = /* @__PURE__ */ new Map());
578
+ }), me(e, "__VMOK__", e.__FEDERATION__)), (t = e.__FEDERATION__).__GLOBAL_PLUGIN__ ?? (t.__GLOBAL_PLUGIN__ = []), (r = e.__FEDERATION__).__INSTANCES__ ?? (r.__INSTANCES__ = []), (o = e.__FEDERATION__).moduleInfo ?? (o.moduleInfo = {}), (n = e.__FEDERATION__).__SHARE__ ?? (n.__SHARE__ = {}), (s = e.__FEDERATION__).__MANIFEST_LOADING__ ?? (s.__MANIFEST_LOADING__ = {}), (i = e.__FEDERATION__).__PRELOADED_MAP__ ?? (i.__PRELOADED_MAP__ = /* @__PURE__ */ new Map());
577
579
  }
578
- yt(N);
579
- yt(M);
580
- function Cr(e, t = Ne()) {
581
- t && (N.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = e, N.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "2.7.0");
580
+ _t(v);
581
+ _t(k);
582
+ function xr(e, t = Ae()) {
583
+ t && (v.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = e, v.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "2.8.1");
582
584
  }
583
- function j(e, t) {
585
+ function W(e, t) {
584
586
  if (typeof t == "string") {
585
587
  if (e[t]) return {
586
588
  value: e[t],
@@ -602,79 +604,79 @@ function j(e, t) {
602
604
  }
603
605
  } else w(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`);
604
606
  }
605
- const je = () => M.__FEDERATION__.moduleInfo, Fr = (e, t) => {
606
- const r = j(t, ne(e)).value;
607
+ const Ve = () => k.__FEDERATION__.moduleInfo, Gr = (e, t) => {
608
+ const r = W(t, ne(e)).value;
607
609
  if (r && !r.version && "version" in e && e.version && (r.version = e.version), r) return r;
608
610
  if ("version" in e && e.version) {
609
- const { version: o, ...n } = e, s = ne(n), i = j(M.__FEDERATION__.moduleInfo, s).value;
611
+ const { version: o, ...n } = e, s = ne(n), i = W(k.__FEDERATION__.moduleInfo, s).value;
610
612
  if ((i == null ? void 0 : i.version) === o) return i;
611
613
  }
612
- }, me = (e) => Fr(e, M.__FEDERATION__.moduleInfo), We = (e, t) => {
614
+ }, ye = (e) => Gr(e, k.__FEDERATION__.moduleInfo), qe = (e, t) => {
613
615
  const r = ne(e);
614
- return M.__FEDERATION__.moduleInfo[r] = t, M.__FEDERATION__.moduleInfo;
615
- }, Hr = (e) => (M.__FEDERATION__.moduleInfo = {
616
- ...M.__FEDERATION__.moduleInfo,
616
+ return k.__FEDERATION__.moduleInfo[r] = t, k.__FEDERATION__.moduleInfo;
617
+ }, Ur = (e) => (k.__FEDERATION__.moduleInfo = {
618
+ ...k.__FEDERATION__.moduleInfo,
617
619
  ...e
618
620
  }, () => {
619
621
  const t = Object.keys(e);
620
- for (const r of t) delete M.__FEDERATION__.moduleInfo[r];
621
- }), Ce = (e, t) => {
622
+ for (const r of t) delete k.__FEDERATION__.moduleInfo[r];
623
+ }), He = (e, t) => {
622
624
  const r = t || `__FEDERATION_${e}:custom__`;
623
625
  return {
624
626
  remoteEntryKey: r,
625
- entryExports: N[r]
627
+ entryExports: v[r]
626
628
  };
627
- }, Dr = () => M.__FEDERATION__.__GLOBAL_PLUGIN__, xr = (e) => N.__FEDERATION__.__PRELOADED_MAP__.get(e), Gr = (e) => N.__FEDERATION__.__PRELOADED_MAP__.set(e, !0), Ve = "[0-9A-Za-z-]+", Fe = `(?:\\+(${Ve}(?:\\.${Ve})*))`, re = "0|[1-9]\\d*", pe = "[0-9]+", Et = "\\d*[a-zA-Z-][a-zA-Z0-9-]*", qe = `(?:${pe}|${Et})`, Ur = `(?:-?(${qe}(?:\\.${qe})*))`, Ke = `(?:${re}|${Et})`, gt = `(?:-(${Ke}(?:\\.${Ke})*))`, Se = `${re}|x|X|\\*`, Z = `[v=\\s]*(${Se})(?:\\.(${Se})(?:\\.(${Se})(?:${gt})?${Fe}?)?)?`, Br = `^\\s*(${Z})\\s+-\\s+(${Z})\\s*$`, jr = `[v=\\s]*${`(${pe})\\.(${pe})\\.(${pe})`}${Ur}?${Fe}?`, He = "((?:<|>)?=?)", Wr = `(\\s*)${He}\\s*(${jr}|${Z})`, Rt = "(?:~>?)", Vr = `(\\s*)${Rt}\\s+`, _t = "(?:\\^)", qr = `(\\s*)${_t}\\s+`, Kr = "(<|>)?=?\\s*\\*", zr = `^${_t}${Z}$`, Jr = `v?${`(${re})\\.(${re})\\.(${re})`}${gt}?${Fe}?`, Xr = `^${Rt}${Z}$`, Yr = `^${He}\\s*${Z}$`, Zr = `^${He}\\s*(${Jr})$|^$`, Qr = "^\\s*>=\\s*0.0.0\\s*$";
628
- function L(e) {
629
+ }, Br = () => k.__FEDERATION__.__GLOBAL_PLUGIN__, jr = (e) => v.__FEDERATION__.__PRELOADED_MAP__.get(e), Wr = (e) => v.__FEDERATION__.__PRELOADED_MAP__.set(e, !0), ze = "[0-9A-Za-z-]+", De = `(?:\\+(${ze}(?:\\.${ze})*))`, re = "0|[1-9]\\d*", Ee = "[0-9]+", bt = "\\d*[a-zA-Z-][a-zA-Z0-9-]*", Ke = `(?:${Ee}|${bt})`, Vr = `(?:-?(${Ke}(?:\\.${Ke})*))`, Je = `(?:${re}|${bt})`, St = `(?:-(${Je}(?:\\.${Je})*))`, Ie = `${re}|x|X|\\*`, Y = `[v=\\s]*(${Ie})(?:\\.(${Ie})(?:\\.(${Ie})(?:${St})?${De}?)?)?`, qr = `^\\s*(${Y})\\s+-\\s+(${Y})\\s*$`, zr = `[v=\\s]*${`(${Ee})\\.(${Ee})\\.(${Ee})`}${Vr}?${De}?`, xe = "((?:<|>)?=?)", Kr = `(\\s*)${xe}\\s*(${zr}|${Y})`, wt = "(?:~>?)", Jr = `(\\s*)${wt}\\s+`, It = "(?:\\^)", Zr = `(\\s*)${It}\\s+`, Xr = "(<|>)?=?\\s*\\*", Yr = `^${It}${Y}$`, Qr = `v?${`(${re})\\.(${re})\\.(${re})`}${St}?${De}?`, eo = `^${wt}${Y}$`, to = `^${xe}\\s*${Y}$`, ro = `^${xe}\\s*(${Qr})$|^$`, oo = "^\\s*>=\\s*0.0.0\\s*$";
630
+ function O(e) {
629
631
  return new RegExp(e);
630
632
  }
631
- function T(e) {
633
+ function N(e) {
632
634
  return !e || e.toLowerCase() === "x" || e === "*";
633
635
  }
634
- function bt(...e) {
636
+ function $t(...e) {
635
637
  return (t) => e.reduce((r, o) => o(r), t);
636
638
  }
637
- function ze(e) {
638
- return e.match(L(Zr));
639
+ function Ze(e) {
640
+ return e.match(O(ro));
639
641
  }
640
- function Je(e, t, r, o) {
642
+ function Xe(e, t, r, o) {
641
643
  const n = `${e}.${t}.${r}`;
642
644
  return o ? `${n}-${o}` : n;
643
645
  }
644
- function eo(e) {
645
- return e.replace(L(Br), (t, r, o, n, s, i, c, a, l, u, f, m) => (T(o) ? r = "" : T(n) ? r = `>=${o}.0.0` : T(s) ? r = `>=${o}.${n}.0` : r = `>=${r}`, T(l) ? a = "" : T(u) ? a = `<${Number(l) + 1}.0.0-0` : T(f) ? a = `<${l}.${Number(u) + 1}.0-0` : m ? a = `<=${l}.${u}.${f}-${m}` : a = `<=${a}`, `${r} ${a}`.trim()));
646
+ function no(e) {
647
+ return e.replace(O(qr), (t, r, o, n, s, i, c, a, l, u, f, m) => (N(o) ? r = "" : N(n) ? r = `>=${o}.0.0` : N(s) ? r = `>=${o}.${n}.0` : r = `>=${r}`, N(l) ? a = "" : N(u) ? a = `<${Number(l) + 1}.0.0-0` : N(f) ? a = `<${l}.${Number(u) + 1}.0-0` : m ? a = `<=${l}.${u}.${f}-${m}` : a = `<=${a}`, `${r} ${a}`.trim()));
646
648
  }
647
- function to(e) {
648
- return e.replace(L(Wr), "$1$2$3");
649
+ function so(e) {
650
+ return e.replace(O(Kr), "$1$2$3");
649
651
  }
650
- function ro(e) {
651
- return e.replace(L(Vr), "$1~");
652
+ function io(e) {
653
+ return e.replace(O(Jr), "$1~");
652
654
  }
653
- function oo(e) {
654
- return e.replace(L(qr), "$1^");
655
+ function ao(e) {
656
+ return e.replace(O(Zr), "$1^");
655
657
  }
656
- function no(e) {
657
- return e.trim().split(/\s+/).map((t) => t.replace(L(zr), (r, o, n, s, i) => T(o) ? "" : T(n) ? `>=${o}.0.0 <${Number(o) + 1}.0.0-0` : T(s) ? o === "0" ? `>=${o}.${n}.0 <${o}.${Number(n) + 1}.0-0` : `>=${o}.${n}.0 <${Number(o) + 1}.0.0-0` : i ? o === "0" ? n === "0" ? `>=${o}.${n}.${s}-${i} <${o}.${n}.${Number(s) + 1}-0` : `>=${o}.${n}.${s}-${i} <${o}.${Number(n) + 1}.0-0` : `>=${o}.${n}.${s}-${i} <${Number(o) + 1}.0.0-0` : o === "0" ? n === "0" ? `>=${o}.${n}.${s} <${o}.${n}.${Number(s) + 1}-0` : `>=${o}.${n}.${s} <${o}.${Number(n) + 1}.0-0` : `>=${o}.${n}.${s} <${Number(o) + 1}.0.0-0`)).join(" ");
658
+ function co(e) {
659
+ return e.trim().split(/\s+/).map((t) => t.replace(O(Yr), (r, o, n, s, i) => N(o) ? "" : N(n) ? `>=${o}.0.0 <${Number(o) + 1}.0.0-0` : N(s) ? o === "0" ? `>=${o}.${n}.0 <${o}.${Number(n) + 1}.0-0` : `>=${o}.${n}.0 <${Number(o) + 1}.0.0-0` : i ? o === "0" ? n === "0" ? `>=${o}.${n}.${s}-${i} <${o}.${n}.${Number(s) + 1}-0` : `>=${o}.${n}.${s}-${i} <${o}.${Number(n) + 1}.0-0` : `>=${o}.${n}.${s}-${i} <${Number(o) + 1}.0.0-0` : o === "0" ? n === "0" ? `>=${o}.${n}.${s} <${o}.${n}.${Number(s) + 1}-0` : `>=${o}.${n}.${s} <${o}.${Number(n) + 1}.0-0` : `>=${o}.${n}.${s} <${Number(o) + 1}.0.0-0`)).join(" ");
658
660
  }
659
- function so(e) {
660
- return e.trim().split(/\s+/).map((t) => t.replace(L(Xr), (r, o, n, s, i) => T(o) ? "" : T(n) ? `>=${o}.0.0 <${Number(o) + 1}.0.0-0` : T(s) ? `>=${o}.${n}.0 <${o}.${Number(n) + 1}.0-0` : i ? `>=${o}.${n}.${s}-${i} <${o}.${Number(n) + 1}.0-0` : `>=${o}.${n}.${s} <${o}.${Number(n) + 1}.0-0`)).join(" ");
661
+ function lo(e) {
662
+ return e.trim().split(/\s+/).map((t) => t.replace(O(eo), (r, o, n, s, i) => N(o) ? "" : N(n) ? `>=${o}.0.0 <${Number(o) + 1}.0.0-0` : N(s) ? `>=${o}.${n}.0 <${o}.${Number(n) + 1}.0-0` : i ? `>=${o}.${n}.${s}-${i} <${o}.${Number(n) + 1}.0-0` : `>=${o}.${n}.${s} <${o}.${Number(n) + 1}.0-0`)).join(" ");
661
663
  }
662
- function io(e) {
663
- return e.split(/\s+/).map((t) => t.trim().replace(L(Yr), (r, o, n, s, i, c) => {
664
- const a = T(n), l = a || T(s), u = l || T(i);
664
+ function uo(e) {
665
+ return e.split(/\s+/).map((t) => t.trim().replace(O(to), (r, o, n, s, i, c) => {
666
+ const a = N(n), l = a || N(s), u = l || N(i);
665
667
  return o === "=" && u && (o = ""), c = "", a ? o === ">" || o === "<" ? "<0.0.0-0" : "*" : o && u ? (l && (s = 0), i = 0, o === ">" ? (o = ">=", l ? (n = Number(n) + 1, s = 0, i = 0) : (s = Number(s) + 1, i = 0)) : o === "<=" && (o = "<", l ? n = Number(n) + 1 : s = Number(s) + 1), o === "<" && (c = "-0"), `${o + n}.${s}.${i}${c}`) : l ? `>=${n}.0.0${c} <${Number(n) + 1}.0.0-0` : u ? `>=${n}.${s}.0${c} <${n}.${Number(s) + 1}.0-0` : r;
666
668
  })).join(" ");
667
669
  }
668
- function ao(e) {
669
- return e.trim().replace(L(Kr), "");
670
+ function fo(e) {
671
+ return e.trim().replace(O(Xr), "");
670
672
  }
671
- function co(e) {
672
- return e.trim().replace(L(Qr), "");
673
+ function ho(e) {
674
+ return e.trim().replace(O(oo), "");
673
675
  }
674
- function ye(e, t) {
676
+ function ge(e, t) {
675
677
  return e = Number(e) || e, t = Number(t) || t, e > t ? 1 : e === t ? 0 : -1;
676
678
  }
677
- function lo(e, t) {
679
+ function mo(e, t) {
678
680
  const { preRelease: r } = e, { preRelease: o } = t;
679
681
  if (r === void 0 && o) return 1;
680
682
  if (r && o === void 0) return -1;
@@ -682,48 +684,48 @@ function lo(e, t) {
682
684
  for (let n = 0, s = r.length; n <= s; n++) {
683
685
  const i = r[n], c = o[n];
684
686
  if (i !== c)
685
- return i === void 0 && c === void 0 ? 0 : i ? c ? ye(i, c) : -1 : 1;
687
+ return i === void 0 && c === void 0 ? 0 : i ? c ? ge(i, c) : -1 : 1;
686
688
  }
687
689
  return 0;
688
690
  }
689
691
  function le(e, t) {
690
- return ye(e.major, t.major) || ye(e.minor, t.minor) || ye(e.patch, t.patch) || lo(e, t);
692
+ return ge(e.major, t.major) || ge(e.minor, t.minor) || ge(e.patch, t.patch) || mo(e, t);
691
693
  }
692
- function we(e, t) {
694
+ function $e(e, t) {
693
695
  return e.version === t.version;
694
696
  }
695
- function uo(e, t) {
697
+ function po(e, t) {
696
698
  switch (e.operator) {
697
699
  case "":
698
700
  case "=":
699
- return we(e, t);
701
+ return $e(e, t);
700
702
  case ">":
701
703
  return le(e, t) < 0;
702
704
  case ">=":
703
- return we(e, t) || le(e, t) < 0;
705
+ return $e(e, t) || le(e, t) < 0;
704
706
  case "<":
705
707
  return le(e, t) > 0;
706
708
  case "<=":
707
- return we(e, t) || le(e, t) > 0;
709
+ return $e(e, t) || le(e, t) > 0;
708
710
  case void 0:
709
711
  return !0;
710
712
  default:
711
713
  return !1;
712
714
  }
713
715
  }
714
- function fo(e) {
715
- return bt(no, so, io, ao)(e);
716
+ function yo(e) {
717
+ return $t(co, lo, uo, fo)(e);
716
718
  }
717
- function ho(e) {
718
- return bt(eo, to, ro, oo)(e.trim()).split(/\s+/).join(" ");
719
+ function Eo(e) {
720
+ return $t(no, so, io, ao)(e.trim()).split(/\s+/).join(" ");
719
721
  }
720
722
  function te(e, t) {
721
723
  if (!e) return !1;
722
- const r = ze(e);
724
+ const r = Ze(e);
723
725
  if (!r) return !1;
724
726
  const [, o, , n, s, i, c] = r, a = {
725
727
  operator: o,
726
- version: Je(n, s, i, c),
728
+ version: Xe(n, s, i, c),
727
729
  major: n,
728
730
  minor: s,
729
731
  patch: i,
@@ -733,27 +735,27 @@ function te(e, t) {
733
735
  const f = u.trim();
734
736
  if (!f || f === "*" || f === "x") return !0;
735
737
  try {
736
- const m = ho(f);
738
+ const m = Eo(f);
737
739
  if (!m.trim()) return !0;
738
- const h = m.split(" ").map((E) => fo(E)).join(" ");
740
+ const h = m.split(" ").map((E) => yo(E)).join(" ");
739
741
  if (!h.trim()) return !0;
740
- const d = h.split(/\s+/).map((E) => co(E)).filter(Boolean);
742
+ const d = h.split(/\s+/).map((E) => ho(E)).filter(Boolean);
741
743
  if (d.length === 0) continue;
742
744
  let p = !0;
743
745
  for (const E of d) {
744
- const y = ze(E);
746
+ const y = Ze(E);
745
747
  if (!y) {
746
748
  p = !1;
747
749
  break;
748
750
  }
749
- const [, R, , g, _, b, $] = y;
750
- if (!uo({
751
+ const [, R, , g, _, b, I] = y;
752
+ if (!po({
751
753
  operator: R,
752
- version: Je(g, _, b, $),
754
+ version: Xe(g, _, b, I),
753
755
  major: g,
754
756
  minor: _,
755
757
  patch: b,
756
- preRelease: $ == null ? void 0 : $.split(".")
758
+ preRelease: I == null ? void 0 : I.split(".")
757
759
  }, a)) {
758
760
  p = !1;
759
761
  break;
@@ -767,8 +769,8 @@ function te(e, t) {
767
769
  }
768
770
  return !1;
769
771
  }
770
- const ae = "default", St = "global";
771
- function mo(e, t, r, o) {
772
+ const ae = "default", Tt = "global";
773
+ function go(e, t, r, o) {
772
774
  var s, i;
773
775
  let n;
774
776
  return "get" in e ? n = e.get : "lib" in e ? n = () => Promise.resolve(e.lib) : n = () => Promise.resolve(() => {
@@ -794,16 +796,16 @@ function mo(e, t, r, o) {
794
796
  treeShaking: e.treeShaking ? {
795
797
  ...e.treeShaking,
796
798
  mode: e.treeShaking.mode ?? "server-calc",
797
- status: e.treeShaking.status ?? ve.UNKNOWN,
799
+ status: e.treeShaking.status ?? Ne.UNKNOWN,
798
800
  useIn: []
799
801
  } : void 0
800
802
  };
801
803
  }
802
- function wt(e, t) {
804
+ function vt(e, t) {
803
805
  const r = t.shared || {}, o = t.name, n = Object.keys(r).reduce((i, c) => {
804
- const a = mt(r[c]);
806
+ const a = gt(r[c]);
805
807
  return i[c] = i[c] || [], a.forEach((l) => {
806
- i[c].push(mo(l, o, c, t.shareStrategy));
808
+ i[c].push(go(l, o, c, t.shareStrategy));
807
809
  }), i;
808
810
  }, {}), s = { ...e.shared };
809
811
  return Object.keys(n).forEach((i) => {
@@ -818,9 +820,9 @@ function wt(e, t) {
818
820
  function se(e, t) {
819
821
  if (!e) return !1;
820
822
  const { status: r, mode: o } = e;
821
- return r === ve.NO_USE ? !1 : r === ve.CALCULATED ? !0 : o === "runtime-infer" ? t ? yo(e, t) : !0 : !1;
823
+ return r === Ne.NO_USE ? !1 : r === Ne.CALCULATED ? !0 : o === "runtime-infer" ? t ? _o(e, t) : !0 : !1;
822
824
  }
823
- function U(e, t) {
825
+ function B(e, t) {
824
826
  const r = (o) => {
825
827
  if (!Number.isNaN(Number(o))) {
826
828
  const n = o.split(".");
@@ -834,19 +836,19 @@ function U(e, t) {
834
836
  }
835
837
  const ie = (e, t) => {
836
838
  const r = t || function(o, n) {
837
- return U(o, n);
839
+ return B(o, n);
838
840
  };
839
841
  return Object.keys(e).reduce((o, n) => !o || r(o, n) || o === "0" ? n : o, 0);
840
- }, ge = (e) => !!e.loaded || typeof e.lib == "function", po = (e) => !!e.loading, yo = (e, t) => {
842
+ }, _e = (e) => !!e.loaded || typeof e.lib == "function", Ro = (e) => !!e.loading, _o = (e, t) => {
841
843
  if (!e || !t) return !1;
842
844
  const { usedExports: r } = e;
843
845
  return r ? !!t.every((o) => r.includes(o)) : !1;
844
846
  };
845
- function Eo(e, t, r, o) {
847
+ function bo(e, t, r, o) {
846
848
  const n = e[t][r];
847
849
  let s = "", i = se(o);
848
850
  const c = function(a, l) {
849
- return i ? n[a].treeShaking ? n[l].treeShaking ? !ge(n[a].treeShaking) && U(a, l) : !1 : !0 : !ge(n[a]) && U(a, l);
851
+ return i ? n[a].treeShaking ? n[l].treeShaking ? !_e(n[a].treeShaking) && B(a, l) : !1 : !0 : !_e(n[a]) && B(a, l);
850
852
  };
851
853
  if (i) {
852
854
  if (s = ie(e[t][r], c), s) return {
@@ -860,18 +862,18 @@ function Eo(e, t, r, o) {
860
862
  useTreesShaking: i
861
863
  };
862
864
  }
863
- const V = (e) => ge(e) || po(e);
864
- function go(e, t, r, o) {
865
+ const q = (e) => _e(e) || Ro(e);
866
+ function So(e, t, r, o) {
865
867
  const n = e[t][r];
866
868
  let s = "", i = se(o);
867
869
  const c = function(a, l) {
868
870
  if (i) {
869
871
  if (!n[a].treeShaking) return !0;
870
872
  if (!n[l].treeShaking) return !1;
871
- if (V(n[l].treeShaking)) return V(n[a].treeShaking) ? !!U(a, l) : !0;
872
- if (V(n[a].treeShaking)) return !1;
873
+ if (q(n[l].treeShaking)) return q(n[a].treeShaking) ? !!B(a, l) : !0;
874
+ if (q(n[a].treeShaking)) return !1;
873
875
  }
874
- return V(n[l]) ? V(n[a]) ? !!U(a, l) : !0 : V(n[a]) ? !1 : U(a, l);
876
+ return q(n[l]) ? q(n[a]) ? !!B(a, l) : !0 : q(n[a]) ? !1 : B(a, l);
875
877
  };
876
878
  if (i) {
877
879
  if (s = ie(e[t][r], c), s) return {
@@ -885,14 +887,14 @@ function go(e, t, r, o) {
885
887
  useTreesShaking: i
886
888
  };
887
889
  }
888
- function Ro(e) {
889
- return e === "loaded-first" ? go : Eo;
890
+ function wo(e) {
891
+ return e === "loaded-first" ? So : bo;
890
892
  }
891
- function Ee(e, t, r, o) {
893
+ function Re(e, t, r, o) {
892
894
  if (!e) return;
893
895
  const { shareConfig: n, scope: s = ae, strategy: i, treeShaking: c } = r, a = Array.isArray(s) ? s : [s];
894
896
  for (const l of a) if (n && e[l] && e[l][t]) {
895
- const { requiredVersion: u } = n, { version: f, useTreesShaking: m } = Ro(i)(e, l, t, c), h = () => {
897
+ const { requiredVersion: u } = n, { version: f, useTreesShaking: m } = wo(i)(e, l, t, c), h = () => {
896
898
  const p = e[l][t][f];
897
899
  if (n.singleton) {
898
900
  if (typeof u == "string" && !te(f, u)) {
@@ -931,24 +933,24 @@ function Ee(e, t, r, o) {
931
933
  scope: l,
932
934
  pkgName: t,
933
935
  version: f,
934
- GlobalFederation: Re.__FEDERATION__,
936
+ GlobalFederation: be.__FEDERATION__,
935
937
  shareInfo: r,
936
938
  resolver: h
937
939
  };
938
940
  return (o.emit(d) || d).resolver();
939
941
  }
940
942
  }
941
- function $t() {
942
- return Re.__FEDERATION__.__SHARE__;
943
+ function Nt() {
944
+ return be.__FEDERATION__.__SHARE__;
943
945
  }
944
- function Xe(e) {
946
+ function Ye(e) {
945
947
  const { pkgName: t, extraOptions: r, shareInfos: o } = e, n = (a) => {
946
948
  if (!a) return;
947
949
  const l = {};
948
950
  return a.forEach((f) => {
949
951
  l[f.version] = f;
950
952
  }), l[ie(l, function(f, m) {
951
- return !ge(l[f]) && U(f, m);
953
+ return !_e(l[f]) && B(f, m);
952
954
  })];
953
955
  }, s = (r == null ? void 0 : r.resolver) ?? n, i = (a) => a !== null && typeof a == "object" && !Array.isArray(a), c = (...a) => {
954
956
  const l = {};
@@ -962,16 +964,16 @@ function Xe(e) {
962
964
  };
963
965
  return c(s(o[t]), r == null ? void 0 : r.customShareInfo);
964
966
  }
965
- const q = (e, t) => {
966
- e.useIn || (e.useIn = []), kr(e.useIn, t);
967
+ const z = (e, t) => {
968
+ e.useIn || (e.useIn = []), Cr(e.useIn, t);
967
969
  };
968
970
  function ue(e, t) {
969
971
  return t && e.treeShaking ? e.treeShaking : e;
970
972
  }
971
- function De(e, t) {
973
+ function Ge(e, t) {
972
974
  return !t || t === "." ? e : `${e}/${t.replace(/^\.\//, "")}`;
973
975
  }
974
- function Ye(e, t) {
976
+ function Qe(e, t) {
975
977
  for (const r of e) {
976
978
  const o = t.startsWith(r.name);
977
979
  let n = t.replace(r.name, "");
@@ -1007,35 +1009,38 @@ function Ye(e, t) {
1007
1009
  }
1008
1010
  }
1009
1011
  }
1010
- function _o(e, t) {
1012
+ function Io(e, t) {
1011
1013
  for (const r of e)
1012
1014
  if (t === r.name || r.alias && t === r.alias) return r;
1013
1015
  }
1014
- const It = "RUNTIME-001", vt = "RUNTIME-002", Nt = "RUNTIME-003", Tt = "RUNTIME-004", At = "RUNTIME-005", ke = "RUNTIME-006", Pt = "RUNTIME-007", xe = "RUNTIME-008", bo = "RUNTIME-009", kt = "RUNTIME-010", Mt = "RUNTIME-011", So = "RUNTIME-012", Lt = "RUNTIME-013", Ot = "RUNTIME-014", Ct = "RUNTIME-015", P = {
1015
- [It]: "Failed to get remoteEntry exports.",
1016
- [vt]: 'The remote entry interface does not contain "init"',
1017
- [Nt]: "Failed to get manifest.",
1018
- [Tt]: "Failed to locate remote.",
1019
- [At]: "Invalid loadShareSync function call from bundler runtime",
1020
- [ke]: "Invalid loadShareSync function call from runtime",
1021
- [Pt]: "Failed to get remote snapshot.",
1022
- [xe]: "Failed to load script resources.",
1023
- [bo]: "Please call createInstance first.",
1024
- [kt]: 'The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.',
1025
- [Mt]: "The remoteEntry URL is missing from the remote snapshot.",
1026
- [So]: 'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.',
1027
- [Lt]: "The manifest is not a valid Module Federation manifest.",
1028
- [Ot]: "The remote does not expose the requested module.",
1029
- [Ct]: "Remote container initialization failed."
1016
+ const At = "RUNTIME-001", Mt = "RUNTIME-002", Pt = "RUNTIME-003", kt = "RUNTIME-004", Ot = "RUNTIME-005", Oe = "RUNTIME-006", Lt = "RUNTIME-007", Ue = "RUNTIME-008", $o = "RUNTIME-009", Ct = "RUNTIME-010", Ft = "RUNTIME-011", To = "RUNTIME-012", Ht = "RUNTIME-013", Dt = "RUNTIME-014", xt = "RUNTIME-015", M = {
1017
+ [At]: "Failed to get remoteEntry exports.",
1018
+ [Mt]: 'The remote entry interface does not contain "init"',
1019
+ [Pt]: "Failed to get manifest.",
1020
+ [kt]: "Failed to locate remote.",
1021
+ [Ot]: "Invalid loadShareSync function call from bundler runtime",
1022
+ [Oe]: "Invalid loadShareSync function call from runtime",
1023
+ [Lt]: "Failed to get remote snapshot.",
1024
+ [Ue]: "Failed to load script resources.",
1025
+ [$o]: "Please call createInstance first.",
1026
+ [Ct]: 'The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.',
1027
+ [Ft]: "The remoteEntry URL is missing from the remote snapshot.",
1028
+ [To]: 'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.',
1029
+ [Ht]: "The manifest is not a valid Module Federation manifest.",
1030
+ [Dt]: "The remote does not expose the requested module.",
1031
+ [xt]: "Remote container initialization failed."
1030
1032
  };
1031
1033
  ({
1032
- ...P
1034
+ ...M
1033
1035
  });
1034
- const Ft = ".then(callbacks[0]).catch(callbacks[1])";
1035
- async function wo({ entry: e, remoteEntryExports: t }) {
1036
+ const Gt = ".then(callbacks[0]).catch(callbacks[1])";
1037
+ function Ut(e) {
1038
+ return e === "esm" || e === "module";
1039
+ }
1040
+ async function vo({ entry: e, remoteEntryExports: t }) {
1036
1041
  return new Promise((r, o) => {
1037
1042
  try {
1038
- t ? r(t) : typeof FEDERATION_ALLOW_NEW_FUNCTION < "u" ? new Function("callbacks", `import("${e}")${Ft}`)([r, o]) : import(
1043
+ t ? r(t) : typeof FEDERATION_ALLOW_NEW_FUNCTION < "u" ? new Function("callbacks", `import("${e}")${Gt}`)([r, o]) : import(
1039
1044
  /* webpackIgnore: true */
1040
1045
  /* @vite-ignore */
1041
1046
  e
@@ -1045,28 +1050,28 @@ async function wo({ entry: e, remoteEntryExports: t }) {
1045
1050
  }
1046
1051
  });
1047
1052
  }
1048
- async function $o({ entry: e, remoteEntryExports: t }) {
1053
+ async function No({ entry: e, remoteEntryExports: t }) {
1049
1054
  return new Promise((r, o) => {
1050
1055
  try {
1051
- t ? r(t) : typeof __system_context__ > "u" ? System.import(e).then(r).catch(o) : new Function("callbacks", `System.import("${e}")${Ft}`)([r, o]);
1056
+ t ? r(t) : typeof __system_context__ > "u" ? System.import(e).then(r).catch(o) : new Function("callbacks", `System.import("${e}")${Gt}`)([r, o]);
1052
1057
  } catch (n) {
1053
1058
  w(`Failed to load SystemJS entry from "${e}". ${n instanceof Error ? n.message : String(n)}`);
1054
1059
  }
1055
1060
  });
1056
1061
  }
1057
- function Ht(e, t, r) {
1058
- const { remoteEntryKey: o, entryExports: n } = Ce(e, t);
1059
- return n || w(It, P, {
1062
+ function Bt(e, t, r) {
1063
+ const { remoteEntryKey: o, entryExports: n } = He(e, t);
1064
+ return n || w(At, M, {
1060
1065
  remoteName: e,
1061
1066
  remoteEntryUrl: r,
1062
1067
  remoteEntryKey: o
1063
1068
  }), n;
1064
1069
  }
1065
- async function Io({ name: e, globalName: t, entry: r, remoteInfo: o, loaderHook: n, getEntryUrl: s, resourceContext: i }) {
1066
- const { entryExports: c } = Ce(e, t);
1070
+ async function Ao({ name: e, globalName: t, entry: r, remoteInfo: o, loaderHook: n, getEntryUrl: s, resourceContext: i }) {
1071
+ const { entryExports: c } = He(e, t);
1067
1072
  if (c) return c;
1068
1073
  const a = s ? s(r) : r;
1069
- return gr(a, {
1074
+ return Sr(a, {
1070
1075
  attrs: {},
1071
1076
  createScriptHook: (l, u) => {
1072
1077
  const f = n.lifecycle.createScript.emit({
@@ -1081,43 +1086,35 @@ async function Io({ name: e, globalName: t, entry: r, remoteInfo: o, loaderHook:
1081
1086
  if (f && (f instanceof HTMLScriptElement || "script" in f || "timeout" in f))
1082
1087
  return f;
1083
1088
  }
1084
- }).then(() => Ht(e, t, r), (l) => {
1089
+ }).then(() => Bt(e, t, r), (l) => {
1085
1090
  const u = l instanceof Error ? l.message : String(l);
1086
- w(xe, P, {
1091
+ w(Ue, M, {
1087
1092
  remoteName: e,
1088
1093
  resourceUrl: a
1089
1094
  }, u);
1090
1095
  });
1091
1096
  }
1092
- async function vo({ remoteInfo: e, remoteEntryExports: t, loaderHook: r, getEntryUrl: o, resourceContext: n }) {
1097
+ async function Mo({ remoteInfo: e, remoteEntryExports: t, loaderHook: r, getEntryUrl: o, resourceContext: n }) {
1093
1098
  const { entry: s, entryGlobalName: i, name: c, type: a } = e;
1094
- switch (a) {
1095
- case "esm":
1096
- case "module":
1097
- return wo({
1098
- entry: s,
1099
- remoteEntryExports: t
1100
- });
1101
- case "system":
1102
- return $o({
1103
- entry: s,
1104
- remoteEntryExports: t
1105
- });
1106
- default:
1107
- return Io({
1108
- entry: s,
1109
- globalName: i,
1110
- name: c,
1111
- remoteInfo: e,
1112
- loaderHook: r,
1113
- getEntryUrl: o,
1114
- resourceContext: n
1115
- });
1116
- }
1099
+ return Ut(a) ? vo({
1100
+ entry: s,
1101
+ remoteEntryExports: t
1102
+ }) : a === "system" ? No({
1103
+ entry: s,
1104
+ remoteEntryExports: t
1105
+ }) : Ao({
1106
+ entry: s,
1107
+ globalName: i,
1108
+ name: c,
1109
+ remoteInfo: e,
1110
+ loaderHook: r,
1111
+ getEntryUrl: o,
1112
+ resourceContext: n
1113
+ });
1117
1114
  }
1118
- async function No({ remoteInfo: e, loaderHook: t, resourceContext: r }) {
1119
- const { entry: o, entryGlobalName: n, name: s, type: i } = e, { entryExports: c } = Ce(s, n);
1120
- return c || br(o, {
1115
+ async function Po({ remoteInfo: e, loaderHook: t, resourceContext: r }) {
1116
+ const { entry: o, entryGlobalName: n, name: s, type: i } = e, { entryExports: c } = He(s, n);
1117
+ return c || $r(o, {
1121
1118
  attrs: {
1122
1119
  name: s,
1123
1120
  globalName: n,
@@ -1136,31 +1133,31 @@ async function No({ remoteInfo: e, loaderHook: t, resourceContext: r }) {
1136
1133
  if (u && "url" in u)
1137
1134
  return u;
1138
1135
  } }
1139
- }).then(() => Ht(s, n, o)).catch((a) => {
1136
+ }).then(() => Bt(s, n, o)).catch((a) => {
1140
1137
  w(`Failed to load Node.js entry for remote "${s}" from "${o}". ${a instanceof Error ? a.message : String(a)}`);
1141
1138
  });
1142
1139
  }
1143
- function Me(e) {
1140
+ function Le(e) {
1144
1141
  const { entry: t, name: r } = e;
1145
- return tt(r, t);
1142
+ return st(r, t);
1146
1143
  }
1147
- async function Ge(e) {
1148
- const { origin: t, remoteEntryExports: r, remoteInfo: o, getEntryUrl: n, resourceContext: s, _inErrorHandling: i = !1 } = e, c = Me(o);
1144
+ async function Be(e) {
1145
+ const { origin: t, remoteEntryExports: r, remoteInfo: o, getEntryUrl: n, resourceContext: s, _inErrorHandling: i = !1 } = e, c = Le(o);
1149
1146
  if (r) return r;
1150
- if (!K[c]) {
1147
+ if (!J[c]) {
1151
1148
  const a = t.remoteHandler.hooks.lifecycle.loadEntry, l = t.loaderHook;
1152
- K[c] = a.emit({
1149
+ J[c] = a.emit({
1153
1150
  origin: t,
1154
1151
  loaderHook: l,
1155
1152
  remoteInfo: o,
1156
1153
  remoteEntryExports: r
1157
- }).then((u) => u || ((typeof ENV_TARGET < "u" ? ENV_TARGET === "web" : x) ? vo({
1154
+ }).then((u) => u || ((typeof ENV_TARGET < "u" ? ENV_TARGET === "web" : G) ? Mo({
1158
1155
  remoteInfo: o,
1159
1156
  remoteEntryExports: r,
1160
1157
  loaderHook: l,
1161
1158
  getEntryUrl: n,
1162
1159
  resourceContext: s
1163
- }) : No({
1160
+ }) : Po({
1164
1161
  remoteInfo: o,
1165
1162
  loaderHook: l,
1166
1163
  resourceContext: s
@@ -1169,9 +1166,9 @@ async function Ge(e) {
1169
1166
  remoteInfo: o,
1170
1167
  remoteEntryExports: u
1171
1168
  }), u)).catch(async (u) => {
1172
- const f = Me(o), m = u instanceof Error && u.message.includes("ScriptExecutionError");
1173
- if (u instanceof Error && u.message.includes(xe) && !m && !i) {
1174
- const h = (p) => Ge({
1169
+ const f = Le(o), m = u instanceof Error && u.message.includes("ScriptExecutionError");
1170
+ if (u instanceof Error && u.message.includes(Ue) && !m && !i) {
1171
+ const h = (p) => Be({
1175
1172
  ...p,
1176
1173
  _inErrorHandling: !0
1177
1174
  }), d = await t.loaderHook.lifecycle.loadEntryError.emit({
@@ -1179,7 +1176,7 @@ async function Ge(e) {
1179
1176
  origin: t,
1180
1177
  remoteInfo: o,
1181
1178
  remoteEntryExports: r,
1182
- globalLoading: K,
1179
+ globalLoading: J,
1183
1180
  uniqueKey: f
1184
1181
  });
1185
1182
  if (d)
@@ -1197,22 +1194,22 @@ async function Ge(e) {
1197
1194
  }), u;
1198
1195
  });
1199
1196
  }
1200
- return K[c];
1197
+ return J[c];
1201
1198
  }
1202
- function z(e) {
1199
+ function K(e) {
1203
1200
  return {
1204
1201
  ...e,
1205
1202
  entry: "entry" in e ? e.entry : "",
1206
- type: e.type || St,
1203
+ type: e.type || Tt,
1207
1204
  entryGlobalName: e.entryGlobalName || e.name,
1208
1205
  shareScope: e.shareScope || ae
1209
1206
  };
1210
1207
  }
1211
- function To() {
1208
+ function ko() {
1212
1209
  return typeof FEDERATION_BUILD_IDENTIFIER < "u" ? FEDERATION_BUILD_IDENTIFIER : "";
1213
1210
  }
1214
- function Ao(e, t) {
1215
- const r = Dr(), o = [
1211
+ function Oo(e, t) {
1212
+ const r = Br(), o = [
1216
1213
  t.hooks,
1217
1214
  t.remoteHandler.hooks,
1218
1215
  t.sharedHandler.hooks,
@@ -1228,7 +1225,7 @@ function Ao(e, t) {
1228
1225
  });
1229
1226
  }), e;
1230
1227
  }
1231
- function Po(e) {
1228
+ function Lo(e) {
1232
1229
  return {
1233
1230
  name: e.name,
1234
1231
  alias: e.alias,
@@ -1259,12 +1256,12 @@ function F(e) {
1259
1256
  },
1260
1257
  mfConfig: {
1261
1258
  name: e.name,
1262
- remotes: ((c = e.remotes) == null ? void 0 : c.map(Po)) ?? [],
1259
+ remotes: ((c = e.remotes) == null ? void 0 : c.map(Lo)) ?? [],
1263
1260
  shared: t
1264
1261
  }
1265
1262
  };
1266
1263
  }
1267
- function Dt(e) {
1264
+ function jt(e) {
1268
1265
  return {
1269
1266
  resourceCategory: "sync",
1270
1267
  share: !0,
@@ -1272,25 +1269,25 @@ function Dt(e) {
1272
1269
  ...e
1273
1270
  };
1274
1271
  }
1275
- function ko(e, t) {
1272
+ function Co(e, t) {
1276
1273
  return t.map((r) => {
1277
- const o = _o(e, r.nameOrAlias);
1278
- return O(o, `Unable to preload ${r.nameOrAlias} as it is not included in ${!o && ot({
1274
+ const o = Io(e, r.nameOrAlias);
1275
+ return L(o, `Unable to preload ${r.nameOrAlias} as it is not included in ${!o && at({
1279
1276
  remoteInfo: o,
1280
1277
  remotes: e
1281
1278
  })}`), {
1282
1279
  remote: o,
1283
- preloadConfig: Dt(r)
1280
+ preloadConfig: jt(r)
1284
1281
  };
1285
1282
  });
1286
1283
  }
1287
- function Mo(e) {
1284
+ function Fo(e) {
1288
1285
  return e ? e.map((t) => t === "." ? t : t.startsWith("./") ? t.replace("./", "") : t) : [];
1289
1286
  }
1290
- function Ue(e) {
1287
+ function je(e) {
1291
1288
  return e instanceof Error ? e.message.includes("timed out") || e.name.includes("Timeout") : !1;
1292
1289
  }
1293
- function B(e, t, r, o) {
1290
+ function j(e, t, r, o) {
1294
1291
  return {
1295
1292
  url: t,
1296
1293
  status: r,
@@ -1300,11 +1297,11 @@ function B(e, t, r, o) {
1300
1297
  error: o
1301
1298
  };
1302
1299
  }
1303
- async function Lo(e, t, r, o) {
1300
+ async function Ho(e, t, r, o) {
1304
1301
  const n = e.moduleCache.get(r.name), s = r.entry;
1305
- if (n != null && n.remoteEntryExports) return B(o, s, "cached");
1302
+ if (n != null && n.remoteEntryExports) return j(o, s, "cached");
1306
1303
  try {
1307
- if (!await Ge({
1304
+ if (!await Be({
1308
1305
  origin: e,
1309
1306
  remoteInfo: r,
1310
1307
  remoteEntryExports: n == null ? void 0 : n.remoteEntryExports,
@@ -1313,20 +1310,20 @@ async function Lo(e, t, r, o) {
1313
1310
  url: s
1314
1311
  }
1315
1312
  })) throw new Error(`Failed to load remoteEntry "${s}".`);
1316
- return B(o, s, "success");
1313
+ return j(o, s, "success");
1317
1314
  } catch (i) {
1318
- return B(o, s, Ue(i) ? "timeout" : "error", i);
1315
+ return j(o, s, je(i) ? "timeout" : "error", i);
1319
1316
  }
1320
1317
  }
1321
- function $e({ host: e, remoteInfo: t, url: r, attrs: o, context: n, needDeleteLink: s }) {
1318
+ function fe({ host: e, remoteInfo: t, url: r, attrs: o, context: n, needDeleteLink: s }) {
1322
1319
  return new Promise((i) => {
1323
- const { link: c, needAttach: a } = Er({
1320
+ const { link: c, needAttach: a } = br({
1324
1321
  url: r,
1325
1322
  cb: () => {
1326
- i(B(n, r, a ? "success" : "cached"));
1323
+ i(j(n, r, a ? "success" : "cached"));
1327
1324
  },
1328
1325
  onErrorCallback: (l) => {
1329
- i(B(n, r, Ue(l) ? "timeout" : "error", l));
1326
+ i(j(n, r, je(l) ? "timeout" : "error", l));
1330
1327
  },
1331
1328
  attrs: o,
1332
1329
  createLinkHook: (l, u) => {
@@ -1346,15 +1343,15 @@ function $e({ host: e, remoteInfo: t, url: r, attrs: o, context: n, needDeleteLi
1346
1343
  a && document.head.appendChild(c);
1347
1344
  });
1348
1345
  }
1349
- function Oo({ host: e, remoteInfo: t, url: r, attrs: o, context: n }) {
1346
+ function Do({ host: e, remoteInfo: t, url: r, attrs: o, context: n }) {
1350
1347
  return new Promise((s) => {
1351
- const { script: i, needAttach: c } = ct({
1348
+ const { script: i, needAttach: c } = ht({
1352
1349
  url: r,
1353
1350
  cb: () => {
1354
- s(B(n, r, c ? "success" : "cached"));
1351
+ s(j(n, r, c ? "success" : "cached"));
1355
1352
  },
1356
1353
  onErrorCallback: (a) => {
1357
- s(B(n, r, Ue(a) ? "timeout" : "error", a));
1354
+ s(j(n, r, je(a) ? "timeout" : "error", a));
1358
1355
  },
1359
1356
  attrs: o,
1360
1357
  createScriptHook: (a, l) => {
@@ -1374,89 +1371,79 @@ function Oo({ host: e, remoteInfo: t, url: r, attrs: o, context: n }) {
1374
1371
  c && document.head.appendChild(i);
1375
1372
  });
1376
1373
  }
1377
- function ee(e, t) {
1374
+ function he(e, t) {
1378
1375
  return {
1379
1376
  ...e,
1380
1377
  resourceType: t
1381
1378
  };
1382
1379
  }
1383
- function xt(e, t, r, o = !0, n = {
1380
+ function Wt(e, t, r, o = !0, n = {
1384
1381
  initiator: "preloadRemote",
1385
1382
  id: e.name
1386
1383
  }) {
1387
1384
  const { cssAssets: s, jsAssetsWithoutEntry: i, entryAssets: c } = r, a = [];
1388
1385
  if (t.options.inBrowser) {
1389
- if (c.forEach((l) => {
1390
- const { moduleInfo: u } = l;
1391
- a.push(Lo(t, e, u, ee(n, "remoteEntry")));
1386
+ if (c.forEach((f) => {
1387
+ const { moduleInfo: m } = f;
1388
+ a.push(Ho(t, e, m, he(n, "remoteEntry")));
1392
1389
  }), o) {
1393
- const l = {
1390
+ const f = {
1394
1391
  rel: "preload",
1395
1392
  as: "style"
1396
1393
  };
1397
- s.forEach((u) => {
1398
- a.push($e({
1394
+ s.forEach((m) => {
1395
+ a.push(fe({
1399
1396
  host: t,
1400
1397
  remoteInfo: e,
1401
- url: u,
1402
- attrs: l,
1403
- context: ee(n, "css")
1398
+ url: m,
1399
+ attrs: f,
1400
+ context: he(n, "css")
1404
1401
  }));
1405
1402
  });
1406
1403
  } else {
1407
- const l = {
1404
+ const f = {
1408
1405
  rel: "stylesheet",
1409
1406
  type: "text/css"
1410
1407
  };
1411
- s.forEach((u) => {
1412
- a.push($e({
1408
+ s.forEach((m) => {
1409
+ a.push(fe({
1413
1410
  host: t,
1414
1411
  remoteInfo: e,
1415
- url: u,
1416
- attrs: l,
1412
+ url: m,
1413
+ attrs: f,
1417
1414
  needDeleteLink: !1,
1418
- context: ee(n, "css")
1419
- }));
1420
- });
1421
- }
1422
- if (o) {
1423
- const l = {
1424
- rel: "preload",
1425
- as: "script"
1426
- };
1427
- i.forEach((u) => {
1428
- a.push($e({
1429
- host: t,
1430
- remoteInfo: e,
1431
- url: u,
1432
- attrs: l,
1433
- context: ee(n, "js")
1434
- }));
1435
- });
1436
- } else {
1437
- const l = {
1438
- fetchpriority: "high",
1439
- type: (e == null ? void 0 : e.type) === "module" ? "module" : "text/javascript"
1440
- };
1441
- i.forEach((u) => {
1442
- a.push(Oo({
1443
- host: t,
1444
- remoteInfo: e,
1445
- url: u,
1446
- attrs: l,
1447
- context: ee(n, "js")
1415
+ context: he(n, "css")
1448
1416
  }));
1449
1417
  });
1450
1418
  }
1419
+ let l = Do, u = {
1420
+ fetchpriority: "high",
1421
+ type: "text/javascript"
1422
+ };
1423
+ o ? (l = fe, u = {
1424
+ rel: "preload",
1425
+ as: "script"
1426
+ }) : Ut(e.type) && (l = fe, u = {
1427
+ rel: "modulepreload",
1428
+ fetchpriority: "high"
1429
+ }), i.forEach((f) => {
1430
+ a.push(l({
1431
+ host: t,
1432
+ remoteInfo: e,
1433
+ url: f,
1434
+ attrs: u,
1435
+ context: he(n, "js")
1436
+ }));
1437
+ });
1451
1438
  }
1452
1439
  return Promise.all(a);
1453
1440
  }
1454
- function Co(e) {
1441
+ function xo(e) {
1455
1442
  if (!e || !("modules" in e) || !Array.isArray(e.modules)) return;
1456
1443
  const t = e.modules.map((r) => r.moduleName).filter(Boolean);
1457
1444
  return t.length ? t.join(",") : void 0;
1458
1445
  }
1459
- function Fo(e, t, r) {
1446
+ function Go(e, t, r) {
1460
1447
  const o = t, n = Array.isArray(e.shareScope) ? e.shareScope : [e.shareScope];
1461
1448
  n.length || n.push("default"), n.forEach((i) => {
1462
1449
  o[i] || (o[i] = {});
@@ -1474,24 +1461,24 @@ function Fo(e, t, r) {
1474
1461
  initScope: r ?? []
1475
1462
  };
1476
1463
  }
1477
- var Gt = class {
1464
+ var et = class {
1478
1465
  constructor({ remoteInfo: e, host: t }) {
1479
1466
  this.inited = !1, this.initing = !1, this.lib = void 0, this.remoteInfo = e, this.host = t;
1480
1467
  }
1481
1468
  async getEntry(e) {
1482
1469
  if (this.remoteEntryExports) return this.remoteEntryExports;
1483
- const t = await Ge({
1470
+ const t = await Be({
1484
1471
  origin: this.host,
1485
1472
  remoteInfo: this.remoteInfo,
1486
1473
  remoteEntryExports: this.remoteEntryExports,
1487
1474
  resourceContext: {
1488
1475
  initiator: "loadRemote",
1489
- id: De(this.remoteInfo.name, e),
1476
+ id: Ge(this.remoteInfo.name, e),
1490
1477
  resourceType: "remoteEntry"
1491
1478
  }
1492
1479
  });
1493
- return O(t, `remoteEntryExports is undefined
1494
- ${ot(this.remoteInfo)}`), this.remoteEntryExports = t, this.remoteEntryExports;
1480
+ return L(t, `remoteEntryExports is undefined
1481
+ ${at(this.remoteInfo)}`), this.remoteEntryExports = t, this.remoteEntryExports;
1495
1482
  }
1496
1483
  async init(e, t, r, o) {
1497
1484
  const n = await this.getEntry(o);
@@ -1534,14 +1521,14 @@ var Gt = class {
1534
1521
  remoteSnapshot: t,
1535
1522
  origin: this.host
1536
1523
  });
1537
- const { remoteEntryInitOptions: s, shareScope: i, initScope: c } = Fo(this.remoteInfo, this.host.shareScopeMap, r), a = await this.host.hooks.lifecycle.beforeInitContainer.emit({
1524
+ const { remoteEntryInitOptions: s, shareScope: i, initScope: c } = Go(this.remoteInfo, this.host.shareScopeMap, r), a = await this.host.hooks.lifecycle.beforeInitContainer.emit({
1538
1525
  shareScope: i,
1539
1526
  remoteEntryInitOptions: s,
1540
1527
  initScope: c,
1541
1528
  remoteInfo: this.remoteInfo,
1542
1529
  origin: this.host
1543
1530
  });
1544
- typeof (n == null ? void 0 : n.init) > "u" && w(vt, P, {
1531
+ typeof (n == null ? void 0 : n.init) > "u" && w(Mt, M, {
1545
1532
  hostName: this.host.name,
1546
1533
  remoteName: this.remoteInfo.name,
1547
1534
  remoteEntryUrl: this.remoteInfo.entry,
@@ -1550,7 +1537,7 @@ var Gt = class {
1550
1537
  try {
1551
1538
  await n.init(a.shareScope, a.initScope, a.remoteEntryInitOptions);
1552
1539
  } catch (l) {
1553
- w(Ct, P, {
1540
+ w(xt, M, {
1554
1541
  hostName: this.host.name,
1555
1542
  remoteName: this.remoteInfo.name,
1556
1543
  remoteEntryUrl: this.remoteInfo.entry,
@@ -1603,13 +1590,13 @@ var Gt = class {
1603
1590
  expose: t,
1604
1591
  moduleInfo: this.remoteInfo
1605
1592
  });
1606
- i = typeof l == "function" ? l : void 0, i || (i = await s.get(t)), i || w(Ot, P, {
1593
+ i = typeof l == "function" ? l : void 0, i || (i = await s.get(t)), i || w(Dt, M, {
1607
1594
  hostName: this.host.name,
1608
1595
  remoteName: this.remoteInfo.name,
1609
1596
  remoteEntryUrl: this.remoteInfo.entry,
1610
1597
  expose: t,
1611
1598
  requestId: e,
1612
- availableExposes: Co(o)
1599
+ availableExposes: xo(o)
1613
1600
  }, void 0, F(this.host.options)), await this.host.loaderHook.lifecycle.afterGetExpose.emit({
1614
1601
  id: e,
1615
1602
  expose: t,
@@ -1628,7 +1615,7 @@ var Gt = class {
1628
1615
  origin: this.host
1629
1616
  }), l;
1630
1617
  }
1631
- const c = Or(this.remoteInfo.name, t), a = this.wraperFactory(i, c);
1618
+ const c = Dr(this.remoteInfo.name, t), a = this.wraperFactory(i, c);
1632
1619
  if (!n) return a;
1633
1620
  await this.host.loaderHook.lifecycle.beforeExecuteFactory.emit({
1634
1621
  id: e,
@@ -1670,6 +1657,26 @@ var Gt = class {
1670
1657
  return o instanceof Promise ? o.then((n) => (r(n, t), n)) : (r(o, t), o);
1671
1658
  };
1672
1659
  }
1660
+ }, H = class {
1661
+ constructor(e) {
1662
+ this.registerPlugins = {}, this.lifecycle = e, this.lifecycleKeys = Object.keys(e);
1663
+ }
1664
+ applyPlugin(e, t) {
1665
+ var o;
1666
+ L(Hr(e), "Plugin configuration is invalid.");
1667
+ const r = e.name;
1668
+ L(r, "A name must be provided by the plugin."), this.registerPlugins[r] || (this.registerPlugins[r] = e, (o = e.apply) == null || o.call(e, t), Object.keys(this.lifecycle).forEach((n) => {
1669
+ const s = e[n];
1670
+ s && this.lifecycle[n].on(s);
1671
+ }));
1672
+ }
1673
+ removePlugin(e) {
1674
+ L(e, "A name is required.");
1675
+ const t = this.registerPlugins[e];
1676
+ L(t, `The plugin "${e}" is not registered.`), Object.keys(t).forEach((r) => {
1677
+ r !== "name" && this.lifecycle[r].remove(t[r]);
1678
+ });
1679
+ }
1673
1680
  }, A = class {
1674
1681
  constructor(e) {
1675
1682
  this.type = "", this.listeners = /* @__PURE__ */ new Set(), e && (this.type = e);
@@ -1696,7 +1703,7 @@ var Gt = class {
1696
1703
  removeAll() {
1697
1704
  this.listeners.clear();
1698
1705
  }
1699
- }, v = class extends A {
1706
+ }, T = class extends A {
1700
1707
  emit(...e) {
1701
1708
  let t;
1702
1709
  const r = Array.from(this.listeners);
@@ -1708,8 +1715,8 @@ var Gt = class {
1708
1715
  return Promise.resolve(t);
1709
1716
  }
1710
1717
  };
1711
- function Ut(e, t) {
1712
- if (!Oe(t)) return !1;
1718
+ function Vt(e, t) {
1719
+ if (!Fe(t)) return !1;
1713
1720
  if (e !== t) {
1714
1721
  for (const r in e) if (!(r in t)) return !1;
1715
1722
  }
@@ -1720,11 +1727,11 @@ var X = class extends A {
1720
1727
  super(), this.onerror = w, this.type = e;
1721
1728
  }
1722
1729
  emit(e) {
1723
- Oe(e) || w(`The data for the "${this.type}" hook should be an object.`);
1730
+ Fe(e) || w(`The data for the "${this.type}" hook should be an object.`);
1724
1731
  for (const t of this.listeners) try {
1725
1732
  const r = t(e);
1726
1733
  if (r === void 0) continue;
1727
- if (Ut(e, r)) e = r;
1734
+ if (Vt(e, r)) e = r;
1728
1735
  else {
1729
1736
  this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);
1730
1737
  break;
@@ -1739,12 +1746,12 @@ var X = class extends A {
1739
1746
  super(), this.onerror = w, this.type = e;
1740
1747
  }
1741
1748
  emit(e) {
1742
- Oe(e) || w(`The response data for the "${this.type}" hook must be an object.`);
1749
+ Fe(e) || w(`The response data for the "${this.type}" hook must be an object.`);
1743
1750
  const t = Array.from(this.listeners);
1744
1751
  if (t.length > 0) {
1745
1752
  let r = 0;
1746
1753
  const o = (s) => (oe(s), this.onerror(s), e), n = (s) => {
1747
- if (s !== void 0 && Ut(e, s)) e = s;
1754
+ if (s !== void 0 && Vt(e, s)) e = s;
1748
1755
  else if (s !== void 0)
1749
1756
  return this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`), e;
1750
1757
  if (r < t.length) try {
@@ -1758,44 +1765,48 @@ var X = class extends A {
1758
1765
  }
1759
1766
  return Promise.resolve(e);
1760
1767
  }
1761
- }, Y = class {
1762
- constructor(e) {
1763
- this.registerPlugins = {}, this.lifecycle = e, this.lifecycleKeys = Object.keys(e);
1768
+ };
1769
+ const ee = "Remote loading is disabled by experiments.optimization.disableRemote.";
1770
+ var Uo = class {
1771
+ constructor() {
1772
+ this.hooks = new H({});
1764
1773
  }
1765
- applyPlugin(e, t) {
1766
- var o;
1767
- O(Lr(e), "Plugin configuration is invalid.");
1768
- const r = e.name;
1769
- O(r, "A name must be provided by the plugin."), this.registerPlugins[r] || (this.registerPlugins[r] = e, (o = e.apply) == null || o.call(e, t), Object.keys(this.lifecycle).forEach((n) => {
1770
- const s = e[n];
1771
- s && this.lifecycle[n].on(s);
1772
- }));
1774
+ formatAndRegisterRemote() {
1775
+ return [];
1773
1776
  }
1774
- removePlugin(e) {
1775
- O(e, "A name is required.");
1776
- const t = this.registerPlugins[e];
1777
- O(t, `The plugin "${e}" is not registered.`), Object.keys(t).forEach((r) => {
1778
- r !== "name" && this.lifecycle[r].remove(t[r]);
1779
- });
1777
+ loadRemote() {
1778
+ throw new Error(ee);
1779
+ }
1780
+ preloadRemote() {
1781
+ throw new Error(ee);
1782
+ }
1783
+ registerRemotes() {
1784
+ throw new Error(ee);
1785
+ }
1786
+ getRemoteModuleAndOptions() {
1787
+ throw new Error(ee);
1788
+ }
1789
+ initRawContainer() {
1790
+ throw new Error(ee);
1780
1791
  }
1781
1792
  };
1782
- function Bt(e, t) {
1783
- const r = pt(t);
1784
- r.url || w(Mt, P, { remoteName: e.name });
1785
- let o = Te(t, r.url);
1786
- !x && !o.startsWith("http") && (o = `https:${o}`), e.type = r.type, e.entryGlobalName = r.globalName, e.entry = o, e.version = t.version, e.buildVersion = t.buildVersion;
1793
+ function qt(e, t) {
1794
+ const r = Rt(t);
1795
+ r.url || w(Ft, M, { remoteName: e.name });
1796
+ let o = Me(t, r.url);
1797
+ !G && !o.startsWith("http") && (o = `https:${o}`), e.type = r.type, e.entryGlobalName = r.globalName, e.entry = o, e.version = t.version, e.buildVersion = t.buildVersion;
1787
1798
  }
1788
- function Ho() {
1799
+ function Bo() {
1789
1800
  return {
1790
1801
  name: "snapshot-plugin",
1791
1802
  async afterResolve(e) {
1792
1803
  const { remote: t, pkgNameOrAlias: r, expose: o, origin: n, remoteInfo: s, id: i } = e;
1793
- if (!Le(t) || !dt(t)) {
1804
+ if (!Ce(t) || !Et(t)) {
1794
1805
  const { remoteSnapshot: c, globalSnapshot: a } = await n.snapshotHandler.loadRemoteSnapshotInfo({
1795
1806
  moduleInfo: t,
1796
- id: De(t.name, o)
1807
+ id: Ge(t.name, o)
1797
1808
  });
1798
- Bt(s, c);
1809
+ qt(s, c);
1799
1810
  const l = {
1800
1811
  remote: t,
1801
1812
  preloadConfig: {
@@ -1813,7 +1824,7 @@ function Ho() {
1813
1824
  remoteSnapshot: c,
1814
1825
  globalSnapshot: a
1815
1826
  });
1816
- return u && xt(s, n, u, !1, {
1827
+ return u && Wt(s, n, u, !1, {
1817
1828
  initiator: "loadRemote",
1818
1829
  id: i
1819
1830
  }).catch(() => {
@@ -1826,7 +1837,7 @@ function Ho() {
1826
1837
  }
1827
1838
  };
1828
1839
  }
1829
- function Do(e) {
1840
+ function jo(e) {
1830
1841
  const t = e.split(":");
1831
1842
  return t.length === 1 ? {
1832
1843
  name: t[0],
@@ -1839,35 +1850,35 @@ function Do(e) {
1839
1850
  version: t[2]
1840
1851
  };
1841
1852
  }
1842
- function jt(e, t, r, o, n = {}, s) {
1843
- const { value: i } = j(e, ne(t)), c = s || i;
1844
- if (c && !nt(c) && (r(c, t, o), c.remotesInfo)) {
1853
+ function zt(e, t, r, o, n = {}, s) {
1854
+ const { value: i } = W(e, ne(t)), c = s || i;
1855
+ if (c && !ct(c) && (r(c, t, o), c.remotesInfo)) {
1845
1856
  const a = Object.keys(c.remotesInfo);
1846
1857
  for (const l of a) {
1847
1858
  if (n[l]) continue;
1848
1859
  n[l] = !0;
1849
- const u = Do(l), f = c.remotesInfo[l];
1850
- jt(e, {
1860
+ const u = jo(l), f = c.remotesInfo[l];
1861
+ zt(e, {
1851
1862
  name: u.name,
1852
1863
  version: f.matchedVersion
1853
1864
  }, r, !1, n, void 0);
1854
1865
  }
1855
1866
  }
1856
1867
  }
1857
- const Ie = (e, t) => document.querySelector(`${e}[${e === "link" ? "href" : "src"}="${t}"]`);
1858
- function xo(e, t, r, o, n) {
1868
+ const Te = (e, t) => document.querySelector(`${e}[${e === "link" ? "href" : "src"}="${t}"]`);
1869
+ function Wo(e, t, r, o, n) {
1859
1870
  const s = [], i = [], c = [], a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set(), { options: u } = e, { preloadConfig: f } = t, { depsRemote: m } = f;
1860
- if (jt(o, r, (d, p, E) => {
1861
- var $;
1871
+ if (zt(o, r, (d, p, E) => {
1872
+ var I;
1862
1873
  let y;
1863
1874
  if (E) y = f;
1864
1875
  else if (Array.isArray(m)) {
1865
- const S = m.find((I) => I.nameOrAlias === p.name || I.nameOrAlias === p.alias);
1876
+ const S = m.find(($) => $.nameOrAlias === p.name || $.nameOrAlias === p.alias);
1866
1877
  if (!S) return;
1867
- y = Dt(S);
1878
+ y = jt(S);
1868
1879
  } else if (m === !0) y = f;
1869
1880
  else return;
1870
- const R = Te(d, pt(d).url);
1881
+ const R = Me(d, Rt(d).url);
1871
1882
  R && c.push({
1872
1883
  name: p.name,
1873
1884
  moduleInfo: {
@@ -1881,29 +1892,29 @@ function xo(e, t, r, o, n) {
1881
1892
  url: R
1882
1893
  });
1883
1894
  let g = "modules" in d ? d.modules : [];
1884
- const _ = Mo(y.exposes);
1885
- _.length && "modules" in d && (g = ($ = d == null ? void 0 : d.modules) == null ? void 0 : $.reduce((S, I) => ((_ == null ? void 0 : _.indexOf(I.moduleName)) !== -1 && S.push(I), S), []));
1895
+ const _ = Fo(y.exposes);
1896
+ _.length && "modules" in d && (g = (I = d == null ? void 0 : d.modules) == null ? void 0 : I.reduce((S, $) => ((_ == null ? void 0 : _.indexOf($.moduleName)) !== -1 && S.push($), S), []));
1886
1897
  function b(S) {
1887
- const I = S.map((k) => Te(d, k));
1888
- return y.filter ? I.filter(y.filter) : I;
1898
+ const $ = S.map((P) => Me(d, P));
1899
+ return y.filter ? $.filter(y.filter) : $;
1889
1900
  }
1890
1901
  if (g) {
1891
1902
  const S = g.length;
1892
- for (let I = 0; I < S; I++) {
1893
- const k = g[I], _e = `${p.name}/${k.moduleName}`;
1903
+ for (let $ = 0; $ < S; $++) {
1904
+ const P = g[$], Se = `${p.name}/${P.moduleName}`;
1894
1905
  e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({
1895
- id: k.moduleName === "." ? p.name : _e,
1906
+ id: P.moduleName === "." ? p.name : Se,
1896
1907
  name: p.name,
1897
1908
  remoteSnapshot: d,
1898
1909
  preloadConfig: y,
1899
1910
  remote: p,
1900
1911
  origin: e
1901
- }), !xr(_e) && (y.resourceCategory === "all" ? (s.push(...b(k.assets.css.async)), s.push(...b(k.assets.css.sync)), i.push(...b(k.assets.js.async)), i.push(...b(k.assets.js.sync))) : y.resourceCategory === "sync" && (s.push(...b(k.assets.css.sync)), i.push(...b(k.assets.js.sync))), Gr(_e));
1912
+ }), !jr(Se) && (y.resourceCategory === "all" ? (s.push(...b(P.assets.css.async)), s.push(...b(P.assets.css.sync)), i.push(...b(P.assets.js.async)), i.push(...b(P.assets.js.sync))) : y.resourceCategory === "sync" && (s.push(...b(P.assets.css.sync)), i.push(...b(P.assets.js.sync))), Wr(Se));
1902
1913
  }
1903
1914
  }
1904
1915
  }, !0, {}, n), n.shared && n.shared.length > 0) {
1905
1916
  const d = (p, E) => {
1906
- const { shared: y } = Ee(e.shareScopeMap, E.sharedName, p, e.sharedHandler.hooks.lifecycle.resolveShare) || {};
1917
+ const { shared: y } = Re(e.shareScopeMap, E.sharedName, p, e.sharedHandler.hooks.lifecycle.resolveShare) || {};
1907
1918
  y && typeof y.lib == "function" && (E.assets.js.sync.forEach((R) => {
1908
1919
  a.add(R);
1909
1920
  }), E.assets.css.sync.forEach((R) => {
@@ -1915,24 +1926,24 @@ function xo(e, t, r, o, n) {
1915
1926
  const E = (R = u.shared) == null ? void 0 : R[p.sharedName];
1916
1927
  if (!E) return;
1917
1928
  const y = p.version ? E.find((g) => g.version === p.version) : E;
1918
- y && mt(y).forEach((g) => {
1929
+ y && gt(y).forEach((g) => {
1919
1930
  d(g, p);
1920
1931
  });
1921
1932
  });
1922
1933
  }
1923
- const h = i.filter((d) => !a.has(d) && !Ie("script", d));
1934
+ const h = i.filter((d) => !a.has(d) && !Te("script", d));
1924
1935
  return {
1925
- cssAssets: s.filter((d) => !l.has(d) && !Ie("link", d)),
1936
+ cssAssets: s.filter((d) => !l.has(d) && !Te("link", d)),
1926
1937
  jsAssetsWithoutEntry: h,
1927
- entryAssets: c.filter((d) => !Ie("script", d.url))
1938
+ entryAssets: c.filter((d) => !Te("script", d.url))
1928
1939
  };
1929
1940
  }
1930
- const Go = function() {
1941
+ const Vo = function() {
1931
1942
  return {
1932
1943
  name: "generate-preload-assets-plugin",
1933
1944
  async generatePreloadAssets(e) {
1934
1945
  const { origin: t, preloadOptions: r, remoteInfo: o, remote: n, globalSnapshot: s, remoteSnapshot: i } = e;
1935
- return x ? Le(n) && dt(n) ? {
1946
+ return G ? Ce(n) && Et(n) ? {
1936
1947
  cssAssets: [],
1937
1948
  jsAssetsWithoutEntry: [],
1938
1949
  entryAssets: [{
@@ -1946,7 +1957,7 @@ const Go = function() {
1946
1957
  shareScope: ""
1947
1958
  }
1948
1959
  }]
1949
- } : (Bt(o, i), xo(t, r, o, s, i)) : {
1960
+ } : (qt(o, i), Wo(t, r, o, s, i)) : {
1950
1961
  cssAssets: [],
1951
1962
  jsAssetsWithoutEntry: [],
1952
1963
  entryAssets: []
@@ -1954,35 +1965,35 @@ const Go = function() {
1954
1965
  }
1955
1966
  };
1956
1967
  };
1957
- function Wt(e, t) {
1958
- const r = me({
1968
+ function Kt(e, t) {
1969
+ const r = ye({
1959
1970
  name: t.name,
1960
1971
  version: t.options.version
1961
- }), o = r && "remotesInfo" in r && r.remotesInfo && j(r.remotesInfo, e.name).value;
1972
+ }), o = r && "remotesInfo" in r && r.remotesInfo && W(r.remotesInfo, e.name).value;
1962
1973
  return o && o.matchedVersion ? {
1963
1974
  hostGlobalSnapshot: r,
1964
- globalSnapshot: je(),
1965
- remoteSnapshot: me({
1975
+ globalSnapshot: Ve(),
1976
+ remoteSnapshot: ye({
1966
1977
  name: e.name,
1967
1978
  version: o.matchedVersion
1968
1979
  })
1969
1980
  } : {
1970
1981
  hostGlobalSnapshot: void 0,
1971
- globalSnapshot: je(),
1972
- remoteSnapshot: me({
1982
+ globalSnapshot: Ve(),
1983
+ remoteSnapshot: ye({
1973
1984
  name: e.name,
1974
1985
  version: "version" in e ? e.version : void 0
1975
1986
  })
1976
1987
  };
1977
1988
  }
1978
- var Uo = class {
1989
+ var qo = class {
1979
1990
  constructor(e) {
1980
- this.loadingHostSnapshot = null, this.manifestCache = /* @__PURE__ */ new Map(), this.hooks = new Y({
1981
- beforeLoadRemoteSnapshot: new v("beforeLoadRemoteSnapshot"),
1991
+ this.loadingHostSnapshot = null, this.manifestCache = /* @__PURE__ */ new Map(), this.hooks = new H({
1992
+ beforeLoadRemoteSnapshot: new T("beforeLoadRemoteSnapshot"),
1982
1993
  loadSnapshot: new D("loadGlobalSnapshot"),
1983
1994
  loadRemoteSnapshot: new D("loadRemoteSnapshot"),
1984
1995
  afterLoadSnapshot: new D("afterLoadSnapshot")
1985
- }), this.manifestLoading = Re.__FEDERATION__.__MANIFEST_LOADING__, this.HostInstance = e, this.loaderHook = e.loaderHook;
1996
+ }), this.manifestLoading = be.__FEDERATION__.__MANIFEST_LOADING__, this.HostInstance = e, this.loaderHook = e.loaderHook;
1986
1997
  }
1987
1998
  async loadRemoteSnapshotInfo({ moduleInfo: e, id: t, initiator: r = "loadRemote" }) {
1988
1999
  const { options: o } = this.HostInstance;
@@ -1991,7 +2002,7 @@ var Uo = class {
1991
2002
  moduleInfo: e,
1992
2003
  origin: this.HostInstance
1993
2004
  });
1994
- let n = me({
2005
+ let n = ye({
1995
2006
  name: this.HostInstance.options.name,
1996
2007
  version: this.HostInstance.options.version
1997
2008
  });
@@ -1999,7 +2010,7 @@ var Uo = class {
1999
2010
  version: this.HostInstance.options.version || "",
2000
2011
  remoteEntry: "",
2001
2012
  remotesInfo: {}
2002
- }, Hr({ [this.HostInstance.options.name]: n })), n && "remotesInfo" in n && !j(n.remotesInfo, e.name).value && ("version" in e || "entry" in e) && (n.remotesInfo = {
2013
+ }, Ur({ [this.HostInstance.options.name]: n })), n && "remotesInfo" in n && !W(n.remotesInfo, e.name).value && ("version" in e || "entry" in e) && (n.remotesInfo = {
2003
2014
  ...n == null ? void 0 : n.remotesInfo,
2004
2015
  [e.name]: { matchedVersion: "version" in e ? e.version : e.entry }
2005
2016
  });
@@ -2011,11 +2022,11 @@ var Uo = class {
2011
2022
  globalSnapshot: c
2012
2023
  });
2013
2024
  let u, f;
2014
- if (a) if (nt(a)) {
2015
- const m = x ? a.remoteEntry : a.ssrRemoteEntry || a.remoteEntry || "", h = await this.loadManifestSnapshot(m, e, {}, {
2025
+ if (a) if (ct(a)) {
2026
+ const m = G ? a.remoteEntry : a.ssrRemoteEntry || a.remoteEntry || "", h = await this.loadManifestSnapshot(m, e, {}, {
2016
2027
  initiator: r,
2017
2028
  id: t || e.name
2018
- }), d = We({
2029
+ }), d = qe({
2019
2030
  ...e,
2020
2031
  entry: m
2021
2032
  }, h);
@@ -2029,13 +2040,13 @@ var Uo = class {
2029
2040
  });
2030
2041
  u = m, f = l;
2031
2042
  }
2032
- else if (Le(e)) {
2043
+ else if (Ce(e)) {
2033
2044
  const m = await this.loadManifestSnapshot(e.entry, e, {}, {
2034
2045
  initiator: r,
2035
2046
  id: t || e.name
2036
- }), h = We(e, m);
2047
+ }), h = qe(e, m);
2037
2048
  u = m, f = h;
2038
- } else w(Pt, P, {
2049
+ } else w(Lt, M, {
2039
2050
  remoteName: e.name,
2040
2051
  remoteVersion: e.version,
2041
2052
  hostName: this.HostInstance.options.name,
@@ -2053,11 +2064,11 @@ var Uo = class {
2053
2064
  };
2054
2065
  }
2055
2066
  getGlobalRemoteInfo(e) {
2056
- return Wt(e, this.HostInstance);
2067
+ return Kt(e, this.HostInstance);
2057
2068
  }
2058
2069
  async getManifestJson(e, t, r, o) {
2059
2070
  return (async () => {
2060
- const s = z(t);
2071
+ const s = K(t);
2061
2072
  let i = this.manifestCache.get(e);
2062
2073
  if (i) return i;
2063
2074
  try {
@@ -2075,7 +2086,7 @@ var Uo = class {
2075
2086
  lifecycle: "afterResolve",
2076
2087
  remote: s,
2077
2088
  origin: this.HostInstance
2078
- }), i || (delete this.manifestLoading[e], w(Nt, P, {
2089
+ }), i || (delete this.manifestLoading[e], w(Pt, M, {
2079
2090
  manifestUrl: e,
2080
2091
  moduleName: t.name,
2081
2092
  hostName: this.HostInstance.options.name
@@ -2093,7 +2104,7 @@ var Uo = class {
2093
2104
  lifecycle: "afterResolve",
2094
2105
  remote: s,
2095
2106
  origin: this.HostInstance
2096
- }), c.length > 0 && w(Lt, P, {
2107
+ }), c.length > 0 && w(Ht, M, {
2097
2108
  manifestUrl: e,
2098
2109
  moduleName: t.name,
2099
2110
  hostName: this.HostInstance.options.name,
@@ -2103,7 +2114,7 @@ var Uo = class {
2103
2114
  }
2104
2115
  async loadManifestSnapshot(e, t, r, o) {
2105
2116
  const n = async () => {
2106
- const s = await this.getManifestJson(e, t, r, o), i = hr(s, { version: e }), { remoteSnapshot: c } = await this.hooks.lifecycle.loadRemoteSnapshot.emit({
2117
+ const s = await this.getManifestJson(e, t, r, o), i = yr(s, { version: e }), { remoteSnapshot: c } = await this.hooks.lifecycle.loadRemoteSnapshot.emit({
2107
2118
  options: this.HostInstance.options,
2108
2119
  moduleInfo: t,
2109
2120
  manifestJson: s,
@@ -2115,13 +2126,17 @@ var Uo = class {
2115
2126
  };
2116
2127
  return this.manifestLoading[e] || (this.manifestLoading[e] = n().then((s) => s)), this.manifestLoading[e];
2117
2128
  }
2118
- }, Bo = class {
2129
+ }, zo = class {
2130
+ constructor() {
2131
+ this.hooks = new H({});
2132
+ }
2133
+ }, Ko = class {
2119
2134
  constructor(e) {
2120
- this.hooks = new Y({
2135
+ this.hooks = new H({
2121
2136
  beforeRegisterShare: new X("beforeRegisterShare"),
2122
2137
  afterResolve: new D("afterResolve"),
2123
2138
  beforeLoadShare: new D("beforeLoadShare"),
2124
- loadShare: new v(),
2139
+ loadShare: new T(),
2125
2140
  afterLoadShare: new A("afterLoadShare"),
2126
2141
  errorLoadShare: new A("errorLoadShare"),
2127
2142
  resolveShare: new X("resolveShare"),
@@ -2160,7 +2175,7 @@ var Uo = class {
2160
2175
  }
2161
2176
  }
2162
2177
  registerShared(e, t) {
2163
- const { newShareInfos: r, allShareInfos: o } = wt(e, t);
2178
+ const { newShareInfos: r, allShareInfos: o } = vt(e, t);
2164
2179
  return Object.keys(r).forEach((n) => {
2165
2180
  r[n].forEach((s) => {
2166
2181
  s.scope.forEach((i) => {
@@ -2185,7 +2200,7 @@ var Uo = class {
2185
2200
  };
2186
2201
  }
2187
2202
  async loadShare(e, t) {
2188
- const { host: r } = this, o = Xe({
2203
+ const { host: r } = this, o = Ye({
2189
2204
  pkgName: e,
2190
2205
  extraOptions: t,
2191
2206
  shareInfos: r.options.shared
@@ -2199,12 +2214,12 @@ var Uo = class {
2199
2214
  shareInfo: o,
2200
2215
  shared: r.options.shared,
2201
2216
  origin: r
2202
- })).shareInfo, O(n, `Cannot find shared "${e}" in host "${r.options.name}". Ensure the shared config for "${e}" is declared in the federation plugin options and the host has been initialized before loading shares.`);
2203
- const s = n, { shared: i, useTreesShaking: c } = Ee(this.shareScopeMap, e, n, this.hooks.lifecycle.resolveShare) || {};
2217
+ })).shareInfo, L(n, `Cannot find shared "${e}" in host "${r.options.name}". Ensure the shared config for "${e}" is declared in the federation plugin options and the host has been initialized before loading shares.`);
2218
+ const s = n, { shared: i, useTreesShaking: c } = Re(this.shareScopeMap, e, n, this.hooks.lifecycle.resolveShare) || {};
2204
2219
  if (i) {
2205
2220
  const a = ue(i, c);
2206
2221
  if (a.lib)
2207
- return q(a, r.options.name), this.emitAfterLoadShare({
2222
+ return z(a, r.options.name), this.emitAfterLoadShare({
2208
2223
  lifecycle: "loadShare",
2209
2224
  pkgName: e,
2210
2225
  shareInfo: s,
@@ -2212,7 +2227,7 @@ var Uo = class {
2212
2227
  }), a.lib;
2213
2228
  if (a.loading && !a.loaded) {
2214
2229
  const l = await a.loading;
2215
- return a.loaded = !0, a.lib || (a.lib = l), q(a, r.options.name), this.emitAfterLoadShare({
2230
+ return a.loaded = !0, a.lib || (a.lib = l), z(a, r.options.name), this.emitAfterLoadShare({
2216
2231
  lifecycle: "loadShare",
2217
2232
  pkgName: e,
2218
2233
  shareInfo: s,
@@ -2221,7 +2236,7 @@ var Uo = class {
2221
2236
  } else {
2222
2237
  const u = (async () => {
2223
2238
  const m = await a.get();
2224
- return q(a, r.options.name), a.loaded = !0, a.lib = m, m;
2239
+ return z(a, r.options.name), a.loaded = !0, a.lib = m, m;
2225
2240
  })();
2226
2241
  this.setShared({
2227
2242
  pkgName: e,
@@ -2250,8 +2265,8 @@ var Uo = class {
2250
2265
  }), !1;
2251
2266
  const a = se(s.treeShaking), l = ue(s, a), f = (async () => {
2252
2267
  const h = await l.get();
2253
- l.lib = h, l.loaded = !0, q(l, r.options.name);
2254
- const { shared: d, useTreesShaking: p } = Ee(this.shareScopeMap, e, s, this.hooks.lifecycle.resolveShare) || {};
2268
+ l.lib = h, l.loaded = !0, z(l, r.options.name);
2269
+ const { shared: d, useTreesShaking: p } = Re(this.shareScopeMap, e, s, this.hooks.lifecycle.resolveShare) || {};
2255
2270
  if (d) {
2256
2271
  const E = ue(d, p);
2257
2272
  E.lib = h, E.loaded = !0, d.from = s.from;
@@ -2335,7 +2350,7 @@ var Uo = class {
2335
2350
  }), i;
2336
2351
  }
2337
2352
  loadShareSync(e, t) {
2338
- const { host: r } = this, o = Xe({
2353
+ const { host: r } = this, o = Ye({
2339
2354
  pkgName: e,
2340
2355
  extraOptions: t,
2341
2356
  shareInfos: r.options.shared
@@ -2344,10 +2359,10 @@ var Uo = class {
2344
2359
  o != null && o.scope && o.scope.forEach((s) => {
2345
2360
  this.initializeSharing(s, { strategy: o.strategy });
2346
2361
  });
2347
- const { shared: n } = Ee(this.shareScopeMap, e, o, this.hooks.lifecycle.resolveShare) || {};
2362
+ const { shared: n } = Re(this.shareScopeMap, e, o, this.hooks.lifecycle.resolveShare) || {};
2348
2363
  if (n) {
2349
2364
  if (typeof n.lib == "function")
2350
- return q(n, r.options.name), n.loaded || (n.loaded = !0, n.from === r.options.name && (o.loaded = !0)), this.emitAfterLoadShare({
2365
+ return z(n, r.options.name), n.loaded || (n.loaded = !0, n.from === r.options.name && (o.loaded = !0)), this.emitAfterLoadShare({
2351
2366
  lifecycle: "loadShareSync",
2352
2367
  pkgName: e,
2353
2368
  shareInfo: o,
@@ -2356,7 +2371,7 @@ var Uo = class {
2356
2371
  if (typeof n.get == "function") {
2357
2372
  const s = n.get();
2358
2373
  if (!(s instanceof Promise))
2359
- return q(n, r.options.name), this.setShared({
2374
+ return z(n, r.options.name), this.setShared({
2360
2375
  pkgName: e,
2361
2376
  loaded: !0,
2362
2377
  from: r.options.name,
@@ -2379,7 +2394,7 @@ var Uo = class {
2379
2394
  }), o.lib;
2380
2395
  if (o.get) {
2381
2396
  const s = o.get();
2382
- return s instanceof Promise && w((t == null ? void 0 : t.from) === "build" ? At : ke, P, {
2397
+ return s instanceof Promise && w((t == null ? void 0 : t.from) === "build" ? Ot : Oe, M, {
2383
2398
  hostName: r.options.name,
2384
2399
  sharedPkgName: e
2385
2400
  }, void 0, F(r.options)), o.lib = s, this.setShared({
@@ -2395,7 +2410,7 @@ var Uo = class {
2395
2410
  selectedShared: o
2396
2411
  }), o.lib;
2397
2412
  }
2398
- w(ke, P, {
2413
+ w(Oe, M, {
2399
2414
  hostName: r.options.name,
2400
2415
  sharedPkgName: e
2401
2416
  }, void 0, F(r.options));
@@ -2437,24 +2452,46 @@ var Uo = class {
2437
2452
  });
2438
2453
  }
2439
2454
  _setGlobalShareScopeMap(e) {
2440
- const t = $t(), r = e.id || e.name;
2455
+ const t = Nt(), r = e.id || e.name;
2441
2456
  r && !t[r] && (t[r] = this.shareScopeMap);
2442
2457
  }
2443
- }, jo = class {
2458
+ }, Jo = class {
2459
+ constructor() {
2460
+ this.shareScopeMap = {}, this.hooks = new H({ afterResolve: new D("afterResolve") });
2461
+ }
2462
+ registerShared() {
2463
+ return {
2464
+ newShareInfos: {},
2465
+ allShareInfos: {}
2466
+ };
2467
+ }
2468
+ loadShare() {
2469
+ throw new Error("Shared dependency loading is disabled by experiments.optimization.disableShared.");
2470
+ }
2471
+ loadShareSync() {
2472
+ throw new Error("Shared dependency loading is disabled by experiments.optimization.disableShared.");
2473
+ }
2474
+ initializeSharing() {
2475
+ return [];
2476
+ }
2477
+ initShareScopeMap(e, t) {
2478
+ this.shareScopeMap[e] = t;
2479
+ }
2480
+ }, Zo = class {
2444
2481
  constructor(e) {
2445
- this.hooks = new Y({
2482
+ this.hooks = new H({
2446
2483
  beforeRegisterRemote: new X("beforeRegisterRemote"),
2447
2484
  registerRemote: new X("registerRemote"),
2448
2485
  beforeRequest: new D("beforeRequest"),
2449
- afterMatchRemote: new v("afterMatchRemote"),
2450
- onLoad: new v("onLoad"),
2451
- afterLoadRemote: new v("afterLoadRemote"),
2486
+ afterMatchRemote: new T("afterMatchRemote"),
2487
+ onLoad: new T("onLoad"),
2488
+ afterLoadRemote: new T("afterLoadRemote"),
2452
2489
  handlePreloadModule: new A("handlePreloadModule"),
2453
- errorLoadRemote: new v("errorLoadRemote"),
2454
- beforePreloadRemote: new v("beforePreloadRemote"),
2455
- generatePreloadAssets: new v("generatePreloadAssets"),
2456
- afterPreloadRemote: new v("afterPreloadRemote"),
2457
- loadEntry: new v()
2490
+ errorLoadRemote: new T("errorLoadRemote"),
2491
+ beforePreloadRemote: new T("beforePreloadRemote"),
2492
+ generatePreloadAssets: new T("generatePreloadAssets"),
2493
+ afterPreloadRemote: new T("afterPreloadRemote"),
2494
+ loadEntry: new T()
2458
2495
  }), this.host = e, this.idToRemoteMap = {};
2459
2496
  }
2460
2497
  formatAndRegisterRemote(e, t) {
@@ -2482,11 +2519,11 @@ var Uo = class {
2482
2519
  }
2483
2520
  }
2484
2521
  async loadRemote(e, t) {
2485
- const { host: r } = this, o = Ye(r.options.remotes, e);
2486
- let n = e, s = o == null ? void 0 : o.expose, i = o ? z(o.remote) : void 0, c;
2522
+ const { host: r } = this, o = Qe(r.options.remotes, e);
2523
+ let n = e, s = o == null ? void 0 : o.expose, i = o ? K(o.remote) : void 0, c;
2487
2524
  try {
2488
2525
  const { loadFactory: a = !0 } = t || { loadFactory: !0 }, { module: l, moduleOptions: u, remoteMatchInfo: f } = await this.getRemoteModuleAndOptions({ id: e }), { pkgNameOrAlias: m, remote: h, expose: d, id: p, remoteSnapshot: E } = f;
2489
- n = p, s = d, i = z(h);
2526
+ n = p, s = d, i = K(h);
2490
2527
  const y = await l.get(p, d, t, E), R = await this.hooks.lifecycle.onLoad.emit({
2491
2528
  id: p,
2492
2529
  pkgNameOrAlias: m,
@@ -2557,7 +2594,7 @@ var Uo = class {
2557
2594
  options: t.options,
2558
2595
  origin: t
2559
2596
  });
2560
- const o = ko(t.options.remotes, e), n = (c) => {
2597
+ const o = Co(t.options.remotes, e), n = (c) => {
2561
2598
  const { preloadConfig: a, remote: l } = c, u = a.exposes || [];
2562
2599
  return u.length ? u.map((f) => ({
2563
2600
  ops: {
@@ -2567,7 +2604,7 @@ var Uo = class {
2567
2604
  exposes: [f]
2568
2605
  }
2569
2606
  },
2570
- id: De(l.name, f)
2607
+ id: Ge(l.name, f)
2571
2608
  })) : [{
2572
2609
  ops: c,
2573
2610
  id: `${l.name}/*`
@@ -2575,7 +2612,7 @@ var Uo = class {
2575
2612
  };
2576
2613
  let s;
2577
2614
  await Promise.all(o.flatMap(n).map(async (c) => {
2578
- const { ops: a, id: l } = c, { remote: u, preloadConfig: f } = a, m = z(u);
2615
+ const { ops: a, id: l } = c, { remote: u, preloadConfig: f } = a, m = K(u);
2579
2616
  try {
2580
2617
  const { globalSnapshot: h, remoteSnapshot: d } = await t.snapshotHandler.loadRemoteSnapshotInfo({
2581
2618
  moduleInfo: u,
@@ -2590,7 +2627,7 @@ var Uo = class {
2590
2627
  remoteSnapshot: d
2591
2628
  });
2592
2629
  if (!p) return;
2593
- const E = await xt(m, t, p, !0, {
2630
+ const E = await Wt(m, t, p, !0, {
2594
2631
  initiator: "preloadRemote",
2595
2632
  id: l
2596
2633
  });
@@ -2636,6 +2673,16 @@ var Uo = class {
2636
2673
  this.registerRemote(o, r.options.remotes, { force: t == null ? void 0 : t.force });
2637
2674
  });
2638
2675
  }
2676
+ initRawContainer(e, t, r) {
2677
+ const { host: o } = this, n = new et({
2678
+ host: o,
2679
+ remoteInfo: K({
2680
+ name: e,
2681
+ entry: t
2682
+ })
2683
+ });
2684
+ return n.remoteEntryExports = r, o.moduleCache.set(e, n), n;
2685
+ }
2639
2686
  async getRemoteModuleAndOptions(e) {
2640
2687
  const { host: t } = this, { id: r } = e;
2641
2688
  let o;
@@ -2655,9 +2702,9 @@ var Uo = class {
2655
2702
  lifecycle: "beforeRequest"
2656
2703
  }), !o) throw h;
2657
2704
  }
2658
- const { id: n } = o, s = Ye(t.options.remotes, n);
2705
+ const { id: n } = o, s = Qe(t.options.remotes, n);
2659
2706
  if (!s) try {
2660
- w(Tt, P, {
2707
+ w(kt, M, {
2661
2708
  hostName: t.options.name,
2662
2709
  requestId: n
2663
2710
  }, void 0, F(t.options));
@@ -2669,7 +2716,7 @@ var Uo = class {
2669
2716
  origin: t
2670
2717
  }), h;
2671
2718
  }
2672
- const { remote: i } = s, c = z(i);
2719
+ const { remote: i } = s, c = K(i);
2673
2720
  await this.hooks.lifecycle.afterMatchRemote.emit({
2674
2721
  id: n,
2675
2722
  ...s,
@@ -2684,13 +2731,13 @@ var Uo = class {
2684
2731
  origin: t,
2685
2732
  remoteInfo: c
2686
2733
  }), { remote: l, expose: u } = a;
2687
- O(l && u, `The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${n}.`);
2734
+ L(l && u, `The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${n}.`);
2688
2735
  let f = t.moduleCache.get(l.name);
2689
2736
  const m = {
2690
2737
  host: t,
2691
2738
  remoteInfo: c
2692
2739
  };
2693
- return f || (f = new Gt(m), t.moduleCache.set(l.name, f)), {
2740
+ return f || (f = new et(m), t.moduleCache.set(l.name, f)), {
2694
2741
  module: f,
2695
2742
  moduleOptions: m,
2696
2743
  remoteMatchInfo: a
@@ -2703,9 +2750,9 @@ var Uo = class {
2703
2750
  var a;
2704
2751
  return e.alias && (c.name.startsWith(e.alias) || ((a = c.alias) == null ? void 0 : a.startsWith(e.alias)));
2705
2752
  });
2706
- O(!i, `The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${i && i.name} name or alias`);
2753
+ L(!i, `The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${i && i.name} name or alias`);
2707
2754
  }
2708
- "entry" in e && x && typeof window < "u" && !e.entry.startsWith("http") && (e.entry = new URL(e.entry, window.location.origin).href), e.shareScope || (e.shareScope = ae), e.type || (e.type = St);
2755
+ "entry" in e && G && typeof window < "u" && !e.entry.startsWith("http") && (e.entry = new URL(e.entry, window.location.origin).href), e.shareScope || (e.shareScope = ae), e.type || (e.type = Tt);
2709
2756
  };
2710
2757
  this.hooks.lifecycle.beforeRegisterRemote.emit({
2711
2758
  remote: e,
@@ -2722,7 +2769,7 @@ var Uo = class {
2722
2769
  r != null && r.force && (this.removeRemote(s), n(), t.push(e), this.hooks.lifecycle.registerRemote.emit({
2723
2770
  remote: e,
2724
2771
  origin: o
2725
- }), rt(i.join(" ")));
2772
+ }), it(i.join(" ")));
2726
2773
  }
2727
2774
  }
2728
2775
  removeRemote(e) {
@@ -2730,25 +2777,25 @@ var Uo = class {
2730
2777
  try {
2731
2778
  const { host: r } = this, { name: o } = e, n = r.options.remotes.findIndex((a) => a.name === o);
2732
2779
  n !== -1 && r.options.remotes.splice(n, 1);
2733
- const s = j(N.__FEDERATION__.moduleInfo, ne(e)).key;
2734
- delete N.__FEDERATION__.moduleInfo[s], "entry" in e && (r.snapshotHandler.manifestCache.delete(e.entry), delete Re.__FEDERATION__.__MANIFEST_LOADING__[e.entry]);
2735
- const { hostGlobalSnapshot: i } = Wt(e, r);
2780
+ const s = W(v.__FEDERATION__.moduleInfo, ne(e)).key;
2781
+ delete v.__FEDERATION__.moduleInfo[s], "entry" in e && (r.snapshotHandler.manifestCache.delete(e.entry), delete be.__FEDERATION__.__MANIFEST_LOADING__[e.entry]);
2782
+ const { hostGlobalSnapshot: i } = Kt(e, r);
2736
2783
  if (i) {
2737
- const a = i && "remotesInfo" in i && i.remotesInfo && j(i.remotesInfo, e.name).key;
2784
+ const a = i && "remotesInfo" in i && i.remotesInfo && W(i.remotesInfo, e.name).key;
2738
2785
  a && delete i.remotesInfo[a];
2739
2786
  }
2740
2787
  const c = r.moduleCache.get(e.name);
2741
2788
  if (c) {
2742
2789
  const a = c.remoteInfo, l = a.entryGlobalName;
2743
- N[l] && ((t = Object.getOwnPropertyDescriptor(N, l)) != null && t.configurable ? delete N[l] : N[l] = void 0);
2744
- const u = Me(c.remoteInfo);
2745
- K[u] && delete K[u];
2746
- let f = a.buildVersion ? tt(a.name, a.buildVersion) : a.name;
2747
- const m = N.__FEDERATION__.__INSTANCES__.findIndex((h) => a.buildVersion ? h.options.id === f : h.name === f);
2790
+ v[l] && ((t = Object.getOwnPropertyDescriptor(v, l)) != null && t.configurable ? delete v[l] : v[l] = void 0);
2791
+ const u = Le(c.remoteInfo);
2792
+ J[u] && delete J[u];
2793
+ let f = a.buildVersion ? st(a.name, a.buildVersion) : a.name;
2794
+ const m = v.__FEDERATION__.__INSTANCES__.findIndex((h) => a.buildVersion ? h.options.id === f : h.name === f);
2748
2795
  if (m !== -1) {
2749
- const h = N.__FEDERATION__.__INSTANCES__[m];
2796
+ const h = v.__FEDERATION__.__INSTANCES__[m];
2750
2797
  f = h.options.id || f;
2751
- const d = $t();
2798
+ const d = Nt();
2752
2799
  let p = !0;
2753
2800
  const E = [];
2754
2801
  Object.keys(d).forEach((y) => {
@@ -2756,10 +2803,10 @@ var Uo = class {
2756
2803
  R && Object.keys(R).forEach((g) => {
2757
2804
  const _ = R[g];
2758
2805
  _ && Object.keys(_).forEach((b) => {
2759
- const $ = _[b];
2760
- $ && Object.keys($).forEach((S) => {
2761
- const I = $[S];
2762
- I && typeof I == "object" && I.from === a.name && (I.loaded || I.loading ? (I.useIn = I.useIn.filter((k) => k !== a.name), I.useIn.length ? p = !1 : E.push([
2806
+ const I = _[b];
2807
+ I && Object.keys(I).forEach((S) => {
2808
+ const $ = I[S];
2809
+ $ && typeof $ == "object" && $.from === a.name && ($.loaded || $.loading ? ($.useIn = $.useIn.filter((P) => P !== a.name), $.useIn.length ? p = !1 : E.push([
2763
2810
  y,
2764
2811
  g,
2765
2812
  b,
@@ -2774,57 +2821,57 @@ var Uo = class {
2774
2821
  });
2775
2822
  });
2776
2823
  }), p && (h.shareScopeMap = {}, delete d[f]), E.forEach(([y, R, g, _]) => {
2777
- var b, $, S;
2778
- (S = ($ = (b = d[y]) == null ? void 0 : b[R]) == null ? void 0 : $[g]) == null || delete S[_];
2779
- }), N.__FEDERATION__.__INSTANCES__.splice(m, 1);
2824
+ var b, I, S;
2825
+ (S = (I = (b = d[y]) == null ? void 0 : b[R]) == null ? void 0 : I[g]) == null || delete S[_];
2826
+ }), v.__FEDERATION__.__INSTANCES__.splice(m, 1);
2780
2827
  }
2781
2828
  r.moduleCache.delete(e.name);
2782
2829
  }
2783
2830
  } catch (r) {
2784
- Pe.error(`removeRemote failed: ${r instanceof Error ? r.message : String(r)}`);
2831
+ ke.error(`removeRemote failed: ${r instanceof Error ? r.message : String(r)}`);
2785
2832
  }
2786
2833
  }
2787
2834
  };
2788
- const Wo = typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN == "boolean" ? !FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN : !0;
2789
- var Vo = class {
2835
+ const Xo = typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN == "boolean" ? !FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN : !0, ve = typeof FEDERATION_OPTIMIZE_NO_REMOTE == "boolean" ? !FEDERATION_OPTIMIZE_NO_REMOTE : !0, tt = typeof FEDERATION_OPTIMIZE_NO_SHARED == "boolean" ? !FEDERATION_OPTIMIZE_NO_SHARED : !0;
2836
+ var Yo = class {
2790
2837
  constructor(e) {
2791
- this.hooks = new Y({
2838
+ this.hooks = new H({
2792
2839
  beforeInit: new X("beforeInit"),
2793
2840
  init: new A(),
2794
2841
  beforeInitContainer: new D("beforeInitContainer"),
2795
2842
  initContainer: new D("initContainer")
2796
- }), this.version = "2.7.0", this.moduleCache = /* @__PURE__ */ new Map(), this.loaderHook = new Y({
2843
+ }), this.version = "2.8.1", this.moduleCache = /* @__PURE__ */ new Map(), this.loaderHook = new H({
2797
2844
  getModuleInfo: new A(),
2798
2845
  createScript: new A(),
2799
2846
  createLink: new A(),
2800
- fetch: new v(),
2801
- loadEntryError: new v(),
2802
- afterLoadEntry: new v("afterLoadEntry"),
2803
- beforeInitRemote: new v("beforeInitRemote"),
2804
- afterInitRemote: new v("afterInitRemote"),
2805
- beforeGetExpose: new v("beforeGetExpose"),
2806
- afterGetExpose: new v("afterGetExpose"),
2807
- beforeExecuteFactory: new v("beforeExecuteFactory"),
2808
- afterExecuteFactory: new v("afterExecuteFactory"),
2809
- getModuleFactory: new v()
2810
- }), this.bridgeHook = new Y({
2847
+ fetch: new T(),
2848
+ loadEntryError: new T(),
2849
+ afterLoadEntry: new T("afterLoadEntry"),
2850
+ beforeInitRemote: new T("beforeInitRemote"),
2851
+ afterInitRemote: new T("afterInitRemote"),
2852
+ beforeGetExpose: new T("beforeGetExpose"),
2853
+ afterGetExpose: new T("afterGetExpose"),
2854
+ beforeExecuteFactory: new T("beforeExecuteFactory"),
2855
+ afterExecuteFactory: new T("afterExecuteFactory"),
2856
+ getModuleFactory: new T()
2857
+ }), this.bridgeHook = new H({
2811
2858
  beforeBridgeRender: new A(),
2812
2859
  afterBridgeRender: new A(),
2813
2860
  beforeBridgeDestroy: new A(),
2814
2861
  afterBridgeDestroy: new A()
2815
2862
  });
2816
- const t = Wo ? [Ho(), Go()] : [], r = {
2817
- id: To(),
2863
+ const t = ve && Xo ? [Bo(), Vo()] : [], r = {
2864
+ id: ko(),
2818
2865
  name: e.name,
2819
2866
  plugins: t,
2820
2867
  remotes: [],
2821
2868
  shared: {},
2822
- inBrowser: x
2869
+ inBrowser: G
2823
2870
  };
2824
- this.name = e.name, this.options = r, this.snapshotHandler = new Uo(this), this.sharedHandler = new Bo(this), this.remoteHandler = new jo(this), this.shareScopeMap = this.sharedHandler.shareScopeMap, this.registerPlugins([...r.plugins, ...e.plugins || []]), this.options = this.formatOptions(r, e);
2871
+ this.name = e.name, this.options = r, this.snapshotHandler = ve ? new qo(this) : new zo(), this.sharedHandler = tt ? new Ko(this) : new Jo(), this.remoteHandler = ve ? new Zo(this) : new Uo(), this.shareScopeMap = this.sharedHandler.shareScopeMap, this.registerPlugins([...r.plugins, ...e.plugins || []]), this.options = this.formatOptions(r, e);
2825
2872
  }
2826
2873
  initOptions(e) {
2827
- e.name && e.name !== this.options.name && w(ht(kt, P)), this.registerPlugins(e.plugins);
2874
+ e.name && e.name !== this.options.name && w(yt(Ct, M)), this.registerPlugins(e.plugins);
2828
2875
  const t = this.formatOptions(this.options, e);
2829
2876
  return this.options = t, t;
2830
2877
  }
@@ -2838,14 +2885,7 @@ var Vo = class {
2838
2885
  return this.sharedHandler.initializeSharing(e, t);
2839
2886
  }
2840
2887
  initRawContainer(e, t, r) {
2841
- const o = z({
2842
- name: e,
2843
- entry: t
2844
- }), n = new Gt({
2845
- host: this,
2846
- remoteInfo: o
2847
- });
2848
- return n.remoteEntryExports = r, this.moduleCache.set(e, n), n;
2888
+ return this.remoteHandler.initRawContainer(e, t, r);
2849
2889
  }
2850
2890
  async loadRemote(e, t) {
2851
2891
  return this.remoteHandler.loadRemote(e, t);
@@ -2857,7 +2897,7 @@ var Vo = class {
2857
2897
  this.sharedHandler.initShareScopeMap(e, t, r);
2858
2898
  }
2859
2899
  formatOptions(e, t) {
2860
- const { allShareInfos: r } = wt(e, t), { userOptions: o, options: n } = this.hooks.lifecycle.beforeInit.emit({
2900
+ const r = tt ? vt(e, t).allShareInfos : {}, { userOptions: o, options: n } = this.hooks.lifecycle.beforeInit.emit({
2861
2901
  origin: this,
2862
2902
  userOptions: t,
2863
2903
  options: e,
@@ -2880,7 +2920,7 @@ var Vo = class {
2880
2920
  }), a;
2881
2921
  }
2882
2922
  registerPlugins(e) {
2883
- const t = Ao(e, this);
2923
+ const t = Oo(e, this);
2884
2924
  this.options.plugins = this.options.plugins.reduce((r, o) => (o && r && !r.find((n) => n.name === o.name) && r.push(o), r), t || []);
2885
2925
  }
2886
2926
  registerRemotes(e, t) {
@@ -2893,12 +2933,12 @@ var Vo = class {
2893
2933
  });
2894
2934
  }
2895
2935
  };
2896
- let qo = null;
2897
- function Vt(e) {
2898
- return qo;
2936
+ let Qo = null;
2937
+ function Jt(e) {
2938
+ return Qo;
2899
2939
  }
2900
- Cr(Vo);
2901
- function qt(e, t) {
2940
+ xr(Yo);
2941
+ function Zt(e, t) {
2902
2942
  const r = (o) => {
2903
2943
  if (!o.startsWith("/")) return o;
2904
2944
  const n = o.length > 1 && o.endsWith("/"), s = `${t}/${o}`.replace(/\/+/g, "/").replace(/\/$/, "") || "/";
@@ -2912,20 +2952,20 @@ function qt(e, t) {
2912
2952
  return typeof o.redirect == "string" ? n.redirect = r(o.redirect) : o.redirect && typeof o.redirect == "object" && "path" in o.redirect && typeof o.redirect.path == "string" && (n.redirect = {
2913
2953
  ...o.redirect,
2914
2954
  path: r(o.redirect.path)
2915
- }), o.children && o.children.length > 0 && (n.children = qt(
2955
+ }), o.children && o.children.length > 0 && (n.children = Zt(
2916
2956
  o.children,
2917
2957
  t
2918
2958
  )), n;
2919
2959
  });
2920
2960
  }
2921
- function Ko(e) {
2961
+ function en(e) {
2922
2962
  const t = e.replace(/\/+$/, ""), r = (s) => s.startsWith("/") && s !== t && !s.startsWith(t + "/"), o = (s) => `${t}${s}`.replace(/\/+/g, "/"), n = (s) => typeof s == "string" ? r(s) ? o(s) : s : "path" in s && typeof s.path == "string" && r(s.path) ? { ...s, path: o(s.path) } : s;
2923
2963
  return (s) => {
2924
2964
  const i = s.push.bind(s), c = s.replace.bind(s), a = s.resolve.bind(s);
2925
2965
  s.push = (l) => i(n(l)), s.replace = (l) => c(n(l)), s.resolve = (l, ...u) => a(n(l), ...u);
2926
2966
  };
2927
2967
  }
2928
- function zo(e) {
2968
+ function tn(e) {
2929
2969
  const { router: t, basename: r, memoryRoute: o, hashRoute: n } = e, s = t.getRoutes().sort(
2930
2970
  (h, d) => h.path.split("/").filter((p) => p).length - d.path.split("/").filter((p) => p).length
2931
2971
  ), i = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Set();
@@ -2958,12 +2998,12 @@ function zo(e) {
2958
2998
  c.add(h), u.push(d);
2959
2999
  }
2960
3000
  let f, m;
2961
- return o ? f = fe.createMemoryHistory(r) : n ? (f = fe.createWebHashHistory(), r && (u = qt(u, r), m = Ko(r))) : f = fe.createWebHistory(r), { history: f, routes: u, patchRouter: m };
3001
+ return o ? f = de.createMemoryHistory(r) : n ? (f = de.createWebHashHistory(), r && (u = Zt(u, r), m = en(r))) : f = de.createWebHistory(r), { history: f, routes: u, patchRouter: m };
2962
3002
  }
2963
- function en(e) {
2964
- const t = /* @__PURE__ */ new Map(), r = Vt();
3003
+ function cn(e) {
3004
+ const t = /* @__PURE__ */ new Map(), r = Jt();
2965
3005
  return () => ({
2966
- __APP_VERSION__: "2.7.0",
3006
+ __APP_VERSION__: "2.8.1",
2967
3007
  async render(o) {
2968
3008
  var d, p, E, y, R, g;
2969
3009
  C.debug("createBridgeComponent render Info", o);
@@ -2974,7 +3014,7 @@ function en(e) {
2974
3014
  memoryRoute: c,
2975
3015
  hashRoute: a,
2976
3016
  ...l
2977
- } = o, u = Kt.createApp(e.rootComponent, l);
3017
+ } = o, u = Xt.createApp(e.rootComponent, l);
2978
3018
  t.set(s, u);
2979
3019
  const f = await ((E = (p = (d = r == null ? void 0 : r.bridgeHook) == null ? void 0 : d.lifecycle) == null ? void 0 : p.beforeBridgeRender) == null ? void 0 : E.emit(o)), m = f && typeof f == "object" && (f != null && f.extraProps) ? f == null ? void 0 : f.extraProps : {}, h = e.appOptions({
2980
3020
  app: u,
@@ -2985,17 +3025,17 @@ function en(e) {
2985
3025
  ...m
2986
3026
  });
2987
3027
  if (h != null && h.router) {
2988
- const { history: _, routes: b, patchRouter: $ } = zo({
3028
+ const { history: _, routes: b, patchRouter: I } = tn({
2989
3029
  router: h.router,
2990
3030
  basename: o.basename,
2991
3031
  memoryRoute: o.memoryRoute,
2992
3032
  hashRoute: o.hashRoute
2993
- }), S = fe.createRouter({
3033
+ }), S = de.createRouter({
2994
3034
  ...h.router.options,
2995
3035
  history: _,
2996
3036
  routes: b
2997
3037
  });
2998
- $ && $(S), h.afterRouterCreate && h.afterRouterCreate(S), C.debug("createBridgeComponent render router info>>>", {
3038
+ I && I(S), h.afterRouterCreate && h.afterRouterCreate(S), C.debug("createBridgeComponent render router info>>>", {
2999
3039
  moduleName: n,
3000
3040
  router: S
3001
3041
  }), c && await S.push(c.entryPath), u.use(S);
@@ -3010,11 +3050,11 @@ function en(e) {
3010
3050
  }
3011
3051
  });
3012
3052
  }
3013
- function Jo() {
3053
+ function rn() {
3014
3054
  const e = new PopStateEvent("popstate", { state: window.history.state });
3015
3055
  window.dispatchEvent(e);
3016
3056
  }
3017
- const Xo = /* @__PURE__ */ zt({
3057
+ const on = /* @__PURE__ */ Yt({
3018
3058
  name: "RemoteApp",
3019
3059
  props: {
3020
3060
  moduleName: String,
@@ -3026,14 +3066,14 @@ const Xo = /* @__PURE__ */ zt({
3026
3066
  },
3027
3067
  inheritAttrs: !1,
3028
3068
  setup(e) {
3029
- const t = W(null), r = W(null), o = W(""), n = W(!1), s = W(!1), i = W(!1), c = Ze(), a = Vt(), l = Jt(), u = () => ({
3069
+ const t = V(null), r = V(null), o = V(""), n = V(!1), s = V(!1), i = V(!1), c = rt(), a = Jt(), l = Qt(), u = () => ({
3030
3070
  name: e.moduleName,
3031
3071
  dom: t.value,
3032
3072
  basename: e.basename,
3033
3073
  memoryRoute: e.memoryRoute,
3034
3074
  hashRoute: e.hashRoute
3035
3075
  }), f = async () => {
3036
- var y, R, g, _, b, $, S;
3076
+ var y, R, g, _, b, I, S;
3037
3077
  if (!t.value || n.value)
3038
3078
  return;
3039
3079
  const d = (y = e.providerInfo) == null ? void 0 : y.call(e);
@@ -3051,7 +3091,7 @@ const Xo = /* @__PURE__ */ zt({
3051
3091
  p = {
3052
3092
  ...p,
3053
3093
  ...E.extraProps
3054
- }, d.render(p), n.value = !0, (S = ($ = (b = a == null ? void 0 : a.bridgeHook) == null ? void 0 : b.lifecycle) == null ? void 0 : $.afterBridgeRender) == null || S.emit(p);
3094
+ }, d.render(p), n.value = !0, (S = (I = (b = a == null ? void 0 : a.bridgeHook) == null ? void 0 : b.lifecycle) == null ? void 0 : I.afterBridgeRender) == null || S.emit(p);
3055
3095
  }, m = () => {
3056
3096
  var E, y, R, g, _, b;
3057
3097
  const d = r.value;
@@ -3064,34 +3104,34 @@ const Xo = /* @__PURE__ */ zt({
3064
3104
  (R = (y = (E = a == null ? void 0 : a.bridgeHook) == null ? void 0 : E.lifecycle) == null ? void 0 : y.beforeBridgeDestroy) == null || R.emit(p), d.destroy({
3065
3105
  dom: t.value
3066
3106
  }), r.value = null, n.value = !1, (b = (_ = (g = a == null ? void 0 : a.bridgeHook) == null ? void 0 : g.lifecycle) == null ? void 0 : _.afterBridgeDestroy) == null || b.emit(p);
3067
- }, h = Xt(() => c == null ? void 0 : c.path, (d) => {
3107
+ }, h = er(() => c == null ? void 0 : c.path, (d) => {
3068
3108
  s.value && o.value !== "" && o.value !== d && (C.debug("createRemoteAppComponent dispatchPopstateEnv >>>", {
3069
3109
  ...e,
3070
3110
  pathname: c.path
3071
- }), Jo()), o.value = d;
3111
+ }), rn()), o.value = d;
3072
3112
  });
3073
- return Yt(() => {
3113
+ return tr(() => {
3074
3114
  s.value = !0, f();
3075
- }), Zt(async () => {
3076
- s.value = !0, i.value && (i.value = !1, await Qt(), f());
3077
- }), er(() => {
3115
+ }), rr(async () => {
3116
+ s.value = !0, i.value && (i.value = !1, await or(), f());
3117
+ }), nr(() => {
3078
3118
  s.value = !1, i.value = !0, m();
3079
- }), tr(() => {
3119
+ }), sr(() => {
3080
3120
  h(), m();
3081
- }), () => rr("div", or(e.rootAttrs || {}, {
3121
+ }), () => ir("div", ar(e.rootAttrs || {}, {
3082
3122
  ref: t
3083
3123
  }), null);
3084
3124
  }
3085
3125
  });
3086
- function Yo(e) {
3087
- return nr({
3126
+ function nn(e) {
3127
+ return cr({
3088
3128
  // @ts-ignore
3089
- __APP_VERSION__: "2.7.0",
3129
+ __APP_VERSION__: "2.8.1",
3090
3130
  ...e.asyncComponentOptions,
3091
3131
  //@ts-ignore
3092
3132
  loader: async () => {
3093
3133
  var a, l;
3094
- const t = Ze();
3134
+ const t = rt();
3095
3135
  let r = "/";
3096
3136
  const o = (l = (a = t == null ? void 0 : t.matched) == null ? void 0 : a[0]) == null ? void 0 : l.path;
3097
3137
  o && (o.endsWith("/:pathMatch(.*)*") ? r = o.replace("/:pathMatch(.*)*", "") : r = t.matched[0].path);
@@ -3110,7 +3150,7 @@ function Yo(e) {
3110
3150
  ), n in s && typeof c == "function")
3111
3151
  return {
3112
3152
  render() {
3113
- return sr(Xo, {
3153
+ return lr(on, {
3114
3154
  moduleName: i,
3115
3155
  providerInfo: c,
3116
3156
  basename: r,
@@ -3124,13 +3164,13 @@ function Yo(e) {
3124
3164
  }
3125
3165
  });
3126
3166
  }
3127
- function tn(e) {
3167
+ function ln(e) {
3128
3168
  return C.warn(
3129
3169
  "createRemoteComponent is deprecated, please use createRemoteAppComponent instead!"
3130
- ), Yo(e);
3170
+ ), nn(e);
3131
3171
  }
3132
3172
  export {
3133
- en as createBridgeComponent,
3134
- Yo as createRemoteAppComponent,
3135
- tn as createRemoteComponent
3173
+ cn as createBridgeComponent,
3174
+ nn as createRemoteAppComponent,
3175
+ ln as createRemoteComponent
3136
3176
  };