@das-fed/mframe 0.0.22 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/es5.js +134 -134
  2. package/index.js +119 -119
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1045,30 +1045,30 @@ function iu(e, t, n = Ne) {
1045
1045
  un = L;
1046
1046
  }
1047
1047
  } : (h = Be, process.env.NODE_ENV !== "production" && E(e)), t && o) {
1048
- const L = h, ne = o === !0 ? 1 / 0 : o;
1049
- h = () => Bt(L(), ne);
1048
+ const L = h, re = o === !0 ? 1 / 0 : o;
1049
+ h = () => Bt(L(), re);
1050
1050
  }
1051
1051
  const Y = Ia(), ee = () => {
1052
1052
  d.stop(), Y && Y.active && Qo(Y.effects, d);
1053
1053
  };
1054
1054
  if (s && t) {
1055
1055
  const L = t;
1056
- t = (...ne) => {
1057
- L(...ne), ee();
1056
+ t = (...re) => {
1057
+ L(...re), ee();
1058
1058
  };
1059
1059
  }
1060
1060
  let G = F ? new Array(e.length).fill(_r) : _r;
1061
- const re = (L) => {
1061
+ const oe = (L) => {
1062
1062
  if (!(!(d.flags & 1) || !d.dirty && !L))
1063
1063
  if (t) {
1064
- const ne = d.run();
1065
- if (o || B || (F ? ne.some((ue, ge) => en(ue, G[ge])) : en(ne, G))) {
1064
+ const re = d.run();
1065
+ if (o || B || (F ? re.some((ue, ge) => en(ue, G[ge])) : en(re, G))) {
1066
1066
  S && S();
1067
1067
  const ue = un;
1068
1068
  un = d;
1069
1069
  try {
1070
1070
  const ge = [
1071
- ne,
1071
+ re,
1072
1072
  // pass undefined as the old value when it's changed for the first time
1073
1073
  G === _r ? void 0 : F && G[0] === _r ? [] : G,
1074
1074
  P
@@ -1076,7 +1076,7 @@ function iu(e, t, n = Ne) {
1076
1076
  l ? l(t, 3, ge) : (
1077
1077
  // @ts-expect-error
1078
1078
  t(...ge)
1079
- ), G = ne;
1079
+ ), G = re;
1080
1080
  } finally {
1081
1081
  un = ue;
1082
1082
  }
@@ -1084,16 +1084,16 @@ function iu(e, t, n = Ne) {
1084
1084
  } else
1085
1085
  d.run();
1086
1086
  };
1087
- return c && c(re), d = new Gi(h), d.scheduler = i ? () => i(re, !1) : re, P = (L) => su(L, !1, d), S = d.onStop = () => {
1087
+ return c && c(oe), d = new Gi(h), d.scheduler = i ? () => i(oe, !1) : oe, P = (L) => su(L, !1, d), S = d.onStop = () => {
1088
1088
  const L = Vr.get(d);
1089
1089
  if (L) {
1090
1090
  if (l)
1091
1091
  l(L, 4);
1092
1092
  else
1093
- for (const ne of L) ne();
1093
+ for (const re of L) re();
1094
1094
  Vr.delete(d);
1095
1095
  }
1096
- }, process.env.NODE_ENV !== "production" && (d.onTrack = n.onTrack, d.onTrigger = n.onTrigger), t ? r ? re(!0) : G = d.run() : i ? i(re.bind(null, !0), !0) : d.run(), ee.pause = d.pause.bind(d), ee.resume = d.resume.bind(d), ee.stop = ee, ee;
1096
+ }, process.env.NODE_ENV !== "production" && (d.onTrack = n.onTrack, d.onTrigger = n.onTrigger), t ? r ? oe(!0) : G = d.run() : i ? i(oe.bind(null, !0), !0) : d.run(), ee.pause = d.pause.bind(d), ee.resume = d.resume.bind(d), ee.stop = ee, ee;
1097
1097
  }
1098
1098
  function Bt(e, t = 1 / 0, n) {
1099
1099
  if (t <= 0 || !De(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
@@ -1891,14 +1891,14 @@ function qu(e) {
1891
1891
  beforeDestroy: Y,
1892
1892
  beforeUnmount: ee,
1893
1893
  destroyed: G,
1894
- unmounted: re,
1894
+ unmounted: oe,
1895
1895
  render: L,
1896
- renderTracked: ne,
1896
+ renderTracked: re,
1897
1897
  renderTriggered: ue,
1898
1898
  errorCaptured: ge,
1899
1899
  serverPrefetch: ce,
1900
1900
  // public API
1901
- expose: oe,
1901
+ expose: ne,
1902
1902
  inheritAttrs: j,
1903
1903
  // assets
1904
1904
  components: O,
@@ -1973,10 +1973,10 @@ function qu(e) {
1973
1973
  function pe(U, Z) {
1974
1974
  ae(Z) ? Z.forEach((_e) => U(_e.bind(n))) : Z && U(Z.bind(n));
1975
1975
  }
1976
- if (pe(Mu, d), pe(bc, h), pe(Lu, S), pe(Vu, P), pe(Pu, B), pe(Iu, F), pe(Bu, ge), pe(Fu, ne), pe(Wu, ue), pe(ju, ee), pe(wc, re), pe(Hu, ce), ae(oe))
1977
- if (oe.length) {
1976
+ if (pe(Mu, d), pe(bc, h), pe(Lu, S), pe(Vu, P), pe(Pu, B), pe(Iu, F), pe(Bu, ge), pe(Fu, re), pe(Wu, ue), pe(ju, ee), pe(wc, oe), pe(Hu, ce), ae(ne))
1977
+ if (ne.length) {
1978
1978
  const U = e.exposed || (e.exposed = {});
1979
- oe.forEach((Z) => {
1979
+ ne.forEach((Z) => {
1980
1980
  Object.defineProperty(U, Z, {
1981
1981
  get: () => n[Z],
1982
1982
  set: (_e) => n[Z] = _e
@@ -2635,7 +2635,7 @@ function vl(e, t) {
2635
2635
  );
2636
2636
  break;
2637
2637
  default:
2638
- M & 1 ? ne(
2638
+ M & 1 ? re(
2639
2639
  f,
2640
2640
  g,
2641
2641
  y,
@@ -2706,7 +2706,7 @@ function vl(e, t) {
2706
2706
  );
2707
2707
  } else
2708
2708
  g.el = f.el, g.anchor = f.anchor;
2709
- }, re = ({ el: f, anchor: g }, y, C) => {
2709
+ }, oe = ({ el: f, anchor: g }, y, C) => {
2710
2710
  let R;
2711
2711
  for (; f && f !== g; )
2712
2712
  R = h(f), r(f, y, C), f = R;
@@ -2716,7 +2716,7 @@ function vl(e, t) {
2716
2716
  for (; f && f !== g; )
2717
2717
  y = h(f), o(f), f = y;
2718
2718
  o(g);
2719
- }, ne = (f, g, y, C, R, _, I, b, N) => {
2719
+ }, re = (f, g, y, C, R, _, I, b, N) => {
2720
2720
  g.type === "svg" ? I = "svg" : g.type === "math" && (I = "mathml"), f == null ? ue(
2721
2721
  g,
2722
2722
  y,
@@ -2726,7 +2726,7 @@ function vl(e, t) {
2726
2726
  I,
2727
2727
  b,
2728
2728
  N
2729
- ) : oe(
2729
+ ) : ne(
2730
2730
  f,
2731
2731
  g,
2732
2732
  R,
@@ -2794,7 +2794,7 @@ function vl(e, t) {
2794
2794
  b
2795
2795
  );
2796
2796
  }
2797
- }, oe = (f, g, y, C, R, _, I) => {
2797
+ }, ne = (f, g, y, C, R, _, I) => {
2798
2798
  const b = g.el = f.el;
2799
2799
  process.env.NODE_ENV !== "production" && (b.__vnode = g);
2800
2800
  let { patchFlag: N, dynamicChildren: T, dirs: K } = g;
@@ -3272,7 +3272,7 @@ function vl(e, t) {
3272
3272
  return;
3273
3273
  }
3274
3274
  if (I === Rr) {
3275
- re(f, g, y);
3275
+ oe(f, g, y);
3276
3276
  return;
3277
3277
  }
3278
3278
  if (C !== 2 && T & 1 && b)
@@ -3620,7 +3620,7 @@ function Gs(e) {
3620
3620
  process.env.NODE_ENV !== "production" && (Go = !1);
3621
3621
  try {
3622
3622
  if (n.shapeFlag & 4) {
3623
- const L = o || r, ne = process.env.NODE_ENV !== "production" && S.__isScriptSetup ? new Proxy(L, {
3623
+ const L = o || r, re = process.env.NODE_ENV !== "production" && S.__isScriptSetup ? new Proxy(L, {
3624
3624
  get(ue, ge, ce) {
3625
3625
  return H(
3626
3626
  `Property '${String(
@@ -3631,7 +3631,7 @@ function Gs(e) {
3631
3631
  }) : L;
3632
3632
  Y = ht(
3633
3633
  E.call(
3634
- ne,
3634
+ re,
3635
3635
  L,
3636
3636
  p,
3637
3637
  process.env.NODE_ENV !== "production" ? xt(d) : d,
@@ -3661,19 +3661,19 @@ function Gs(e) {
3661
3661
  } catch (L) {
3662
3662
  tr.length = 0, pr(L, e, 1), Y = at(ut);
3663
3663
  }
3664
- let G = Y, re;
3665
- if (process.env.NODE_ENV !== "production" && Y.patchFlag > 0 && Y.patchFlag & 2048 && ([G, re] = Wc(Y)), ee && B !== !1) {
3666
- const L = Object.keys(ee), { shapeFlag: ne } = G;
3664
+ let G = Y, oe;
3665
+ if (process.env.NODE_ENV !== "production" && Y.patchFlag > 0 && Y.patchFlag & 2048 && ([G, oe] = Wc(Y)), ee && B !== !1) {
3666
+ const L = Object.keys(ee), { shapeFlag: re } = G;
3667
3667
  if (L.length) {
3668
- if (ne & 7)
3668
+ if (re & 7)
3669
3669
  s && L.some($r) && (ee = Nl(
3670
3670
  ee,
3671
3671
  s
3672
3672
  )), G = nn(G, ee, !1, !0);
3673
3673
  else if (process.env.NODE_ENV !== "production" && !Go && G.type !== ut) {
3674
3674
  const ue = Object.keys(c), ge = [], ce = [];
3675
- for (let oe = 0, j = ue.length; oe < j; oe++) {
3676
- const O = ue[oe];
3675
+ for (let ne = 0, j = ue.length; ne < j; ne++) {
3676
+ const O = ue[ne];
3677
3677
  lr(O) ? $r(O) || ge.push(O[2].toLowerCase() + O.slice(3)) : ce.push(O);
3678
3678
  }
3679
3679
  ce.length && H(
@@ -3688,7 +3688,7 @@ function Gs(e) {
3688
3688
  "Runtime directive used on component with non-element root node. The directives will not function as intended."
3689
3689
  ), G = nn(G, null, !1, !0), G.dirs = G.dirs ? G.dirs.concat(n.dirs) : n.dirs), n.transition && (process.env.NODE_ENV !== "production" && !Ks(G) && H(
3690
3690
  "Component inside <Transition> renders non-element root node that cannot be animated."
3691
- ), hs(G, n.transition)), process.env.NODE_ENV !== "production" && re ? re(G) : Y = G, Wr(F), Y;
3691
+ ), hs(G, n.transition)), process.env.NODE_ENV !== "production" && oe ? oe(G) : Y = G, Wr(F), Y;
3692
3692
  }
3693
3693
  const Wc = (e) => {
3694
3694
  const t = e.children, n = e.dynamicChildren, r = Es(t, !1);
@@ -4727,7 +4727,7 @@ const bf = { style: { flex: "1", display: "flex", "min-height": "0" } }, wf = {
4727
4727
  emits: ["layoutMounted"],
4728
4728
  setup(e, { emit: t }) {
4729
4729
  const n = e, r = t, o = St(() => p.value.microApps || []), s = Et("container"), i = Et("mainApp"), c = Et("microApp"), l = St(() => ["mainApp"].includes(n.type)), E = St(() => ["microApp"].includes(n.type)), p = Ye(s.data.get());
4730
- s.data.watch((oe) => p.value = oe);
4730
+ s.data.watch((ne) => p.value = ne);
4731
4731
  const d = St(() => ({
4732
4732
  nav: p.value.navVisible ?? p.value.frameVisible ?? p.value.visible ?? !0,
4733
4733
  menu: p.value.menuVisible ?? p.value.frameVisible ?? p.value.visible ?? !0,
@@ -4744,9 +4744,9 @@ const bf = { style: { flex: "1", display: "flex", "min-height": "0" } }, wf = {
4744
4744
  tab: Ye(null),
4745
4745
  mount: Ye(null)
4746
4746
  }, P = St(() => p.value.activeMicroAppName || ""), B = St(() => {
4747
- var oe, j, O, te, ie, he;
4747
+ var ne, j, O, te, ie, he;
4748
4748
  return {
4749
- navHeight: (((j = (oe = p.value) == null ? void 0 : oe.navRect) == null ? void 0 : j.height) || 0) + "px",
4749
+ navHeight: (((j = (ne = p.value) == null ? void 0 : ne.navRect) == null ? void 0 : j.height) || 0) + "px",
4750
4750
  menuWidth: (((te = (O = p.value) == null ? void 0 : O.menuRect) == null ? void 0 : te.width) || 0) + "px",
4751
4751
  tabHeight: (((he = (ie = p.value) == null ? void 0 : ie.tabRect) == null ? void 0 : he.height) || 0) + "px"
4752
4752
  };
@@ -4755,15 +4755,15 @@ const bf = { style: { flex: "1", display: "flex", "min-height": "0" } }, wf = {
4755
4755
  height: "100%",
4756
4756
  display: "flex",
4757
4757
  flexDirection: "column"
4758
- })), Y = (oe, j = 0, O = !1) => {
4758
+ })), Y = (ne, j = 0, O = !1) => {
4759
4759
  let te = null;
4760
4760
  return (...ie) => {
4761
- O && !te && oe(...ie), clearTimeout(te), te = setTimeout(() => {
4762
- oe(...ie);
4761
+ O && !te && ne(...ie), clearTimeout(te), te = setTimeout(() => {
4762
+ ne(...ie);
4763
4763
  }, j);
4764
4764
  };
4765
4765
  }, ee = () => {
4766
- function oe(O, te = 20) {
4766
+ function ne(O, te = 20) {
4767
4767
  if (!O) return;
4768
4768
  const ie = O.getBoundingClientRect(), { x: he, y: pe, width: U, height: Z } = ie, _e = he, D = pe, Oe = he + U, Re = pe + Z, Le = [
4769
4769
  document.documentElement,
@@ -4781,12 +4781,12 @@ const bf = { style: { flex: "1", display: "flex", "min-height": "0" } }, wf = {
4781
4781
  return Ve;
4782
4782
  }
4783
4783
  }
4784
- let j = oe(h.nav.value);
4785
- return j || (j = oe(h.tab.value)), j || (j = oe(h.menu.value)), j;
4786
- }, G = { x: -1, y: -1 }, re = Y(
4787
- (oe, j, O) => {
4784
+ let j = ne(h.nav.value);
4785
+ return j || (j = ne(h.tab.value)), j || (j = ne(h.menu.value)), j;
4786
+ }, G = { x: -1, y: -1 }, oe = Y(
4787
+ (ne, j, O) => {
4788
4788
  if (!(G.x === j.x && G.y === j.y)) {
4789
- if (G.x = j.x, G.y = j.x, oe === "mouseenter") {
4789
+ if (G.x = j.x, G.y = j.x, ne === "mouseenter") {
4790
4790
  if (l.value) {
4791
4791
  if (!P.value)
4792
4792
  return s.data.set({ microAppStickStatus: !1 });
@@ -4797,25 +4797,25 @@ const bf = { style: { flex: "1", display: "flex", "min-height": "0" } }, wf = {
4797
4797
  c.cors.send("microAppStickStatus", O === "mount");
4798
4798
  }
4799
4799
  }
4800
- if (oe === "mousemove" && E.value) {
4800
+ if (ne === "mousemove" && E.value) {
4801
4801
  if (ee()) return c.cors.send("microAppStickStatus", !0);
4802
4802
  c.cors.send("microAppStickStatus", O === "mount");
4803
4803
  }
4804
4804
  }
4805
4805
  },
4806
4806
  20
4807
- ), L = St(() => ({ ...E.value ? n.clearBackgroundStyles || {} : {} })), ne = Ye(!1), ue = Ye(!1);
4807
+ ), L = St(() => ({ ...E.value ? n.clearBackgroundStyles || {} : {} })), re = Ye(!1), ue = Ye(!1);
4808
4808
  Rt(
4809
4809
  () => P.value,
4810
- () => {
4811
- ue.value = !0, ne.value = !0, setTimeout(() => {
4810
+ (ne, j) => {
4811
+ ue.value = !0, ne !== j && (re.value = !0), setTimeout(() => {
4812
4812
  ue.value = !1;
4813
4813
  }, 300);
4814
4814
  }
4815
4815
  );
4816
4816
  const ge = St(() => {
4817
4817
  var j;
4818
- let oe = {
4818
+ let ne = {
4819
4819
  ...n.microAppsContainerStyle || {},
4820
4820
  display: (j = o.value) != null && j.length && P.value ? "block" : "none",
4821
4821
  position: "absolute",
@@ -4825,7 +4825,7 @@ const bf = { style: { flex: "1", display: "flex", "min-height": "0" } }, wf = {
4825
4825
  height: "100%",
4826
4826
  width: "100%"
4827
4827
  };
4828
- return l.value && (oe.pointerEvents = p.value.microAppStickStatus && P.value ? "all" : "none"), oe;
4828
+ return l.value && (ne.pointerEvents = p.value.microAppStickStatus && P.value ? "all" : "none"), ne;
4829
4829
  }), ce = Ye(null);
4830
4830
  if (l.value) {
4831
4831
  (async () => {
@@ -4860,7 +4860,7 @@ const bf = { style: { flex: "1", display: "flex", "min-height": "0" } }, wf = {
4860
4860
  var U, Z;
4861
4861
  const { getIframeInfo: ie } = Zo();
4862
4862
  let he = ie((U = te == null ? void 0 : te.appInfo) == null ? void 0 : U.name), pe = (Z = ce.value) == null ? void 0 : Z.querySelector(`#${he.id}`);
4863
- pe && (pe.style.display = "block", ne.value = !1);
4863
+ pe && (pe.style.display = "block", re.value = !1);
4864
4864
  });
4865
4865
  })(), s.data.watch(() => {
4866
4866
  const O = p.value.activeMicroAppName;
@@ -4875,12 +4875,12 @@ const bf = { style: { flex: "1", display: "flex", "min-height": "0" } }, wf = {
4875
4875
  }
4876
4876
  if (E.value) {
4877
4877
  s.data.set({ microAppStickStatus: !0 });
4878
- let oe = {};
4878
+ let ne = {};
4879
4879
  try {
4880
- oe = JSON.parse(window.name);
4880
+ ne = JSON.parse(window.name);
4881
4881
  } catch {
4882
4882
  }
4883
- const { appInfo: j, parentData: O = {} } = oe;
4883
+ const { appInfo: j, parentData: O = {} } = ne;
4884
4884
  setTimeout(() => {
4885
4885
  s.data.set(O.layoutData);
4886
4886
  }, 0), c.data.set({ appInfo: j }), c.cors.on("layoutDataChange", (ie) => {
@@ -4900,13 +4900,13 @@ const bf = { style: { flex: "1", display: "flex", "min-height": "0" } }, wf = {
4900
4900
  }
4901
4901
  return bc(() => {
4902
4902
  s.event.emit("onMounted");
4903
- }), (oe, j) => (Ot(), jt("div", {
4903
+ }), (ne, j) => (Ot(), jt("div", {
4904
4904
  style: Wt(F.value)
4905
4905
  }, [
4906
4906
  br(dt("header", {
4907
4907
  ref: h.nav,
4908
- onMouseenter: j[0] || (j[0] = (O) => Jt(re)("mouseenter", O, "nav")),
4909
- onMousemove: j[1] || (j[1] = (O) => Jt(re)("mousemove", O, "nav"))
4908
+ onMouseenter: j[0] || (j[0] = (O) => Jt(oe)("mouseenter", O, "nav")),
4909
+ onMousemove: j[1] || (j[1] = (O) => Jt(oe)("mousemove", O, "nav"))
4910
4910
  }, [
4911
4911
  l.value ? (Ot(), jt("div", {
4912
4912
  key: 0,
@@ -4923,8 +4923,8 @@ const bf = { style: { flex: "1", display: "flex", "min-height": "0" } }, wf = {
4923
4923
  br(dt("aside", {
4924
4924
  ref: h.menu,
4925
4925
  style: { height: "100%" },
4926
- onMouseenter: j[2] || (j[2] = (O) => Jt(re)("mouseenter", O, "menu")),
4927
- onMousemove: j[3] || (j[3] = (O) => Jt(re)("mousemove", O, "menu"))
4926
+ onMouseenter: j[2] || (j[2] = (O) => Jt(oe)("mouseenter", O, "menu")),
4927
+ onMousemove: j[3] || (j[3] = (O) => Jt(oe)("mousemove", O, "menu"))
4928
4928
  }, [
4929
4929
  l.value ? (Ot(), jt("div", {
4930
4930
  key: 0,
@@ -4941,8 +4941,8 @@ const bf = { style: { flex: "1", display: "flex", "min-height": "0" } }, wf = {
4941
4941
  dt("main", wf, [
4942
4942
  br(dt("header", {
4943
4943
  ref: h.tab,
4944
- onMouseenter: j[4] || (j[4] = (O) => Jt(re)("mouseenter", O, "tab")),
4945
- onMousemove: j[5] || (j[5] = (O) => Jt(re)("mousemove", O, "tab"))
4944
+ onMouseenter: j[4] || (j[4] = (O) => Jt(oe)("mouseenter", O, "tab")),
4945
+ onMousemove: j[5] || (j[5] = (O) => Jt(oe)("mousemove", O, "tab"))
4946
4946
  }, [
4947
4947
  l.value ? (Ot(), jt("div", {
4948
4948
  key: 0,
@@ -4959,9 +4959,9 @@ const bf = { style: { flex: "1", display: "flex", "min-height": "0" } }, wf = {
4959
4959
  class: "tttttttttttttttttt",
4960
4960
  ref: h.mount,
4961
4961
  style: Wt([{ flex: "1", "min-height": "0" }, L.value]),
4962
- onMouseenter: j[6] || (j[6] = (O) => Jt(re)("mouseenter", O, "mount"))
4962
+ onMouseenter: j[6] || (j[6] = (O) => Jt(oe)("mouseenter", O, "mount"))
4963
4963
  }, [
4964
- ne.value && P.value ? (Ot(), jt("div", Of, j[7] || (j[7] = [
4964
+ re.value && P.value ? (Ot(), jt("div", Of, j[7] || (j[7] = [
4965
4965
  dt("div", { class: "main-loader-container" }, [
4966
4966
  dt("div", { class: "loader" }),
4967
4967
  dt("span", null, "Loading...")
@@ -5030,7 +5030,7 @@ const Zc = async (e) => {
5030
5030
  d.on("mounted", (F) => {
5031
5031
  var G;
5032
5032
  o.expose.connectMicroApp(F);
5033
- const Y = r.data.get().microApps.find((re) => re.name === F.name);
5033
+ const Y = r.data.get().microApps.find((oe) => oe.name === F.name);
5034
5034
  if (!Y) return;
5035
5035
  if (!(((G = Y.router) == null ? void 0 : G.sync) ?? !0)) {
5036
5036
  B();
@@ -5046,10 +5046,10 @@ const Zc = async (e) => {
5046
5046
  if (!Y.appInfo) return;
5047
5047
  const ee = r.data.get().microApps.find((he) => he.name === Y.appInfo.name);
5048
5048
  if (!ee || !(((O = ee.router) == null ? void 0 : O.sync) ?? !0) || !h(ee.name, ["mounted", "activated"])) return;
5049
- const { pathname: re, hash: L, search: ne } = new URL(window.location.href);
5050
- let ue = re + ne;
5051
- const { pathname: ge, hash: ce, search: oe } = new URL(Y.href);
5052
- let j = ge + oe;
5049
+ const { pathname: oe, hash: L, search: re } = new URL(window.location.href);
5050
+ let ue = oe + re;
5051
+ const { pathname: ge, hash: ce, search: ne } = new URL(Y.href);
5052
+ let j = ge + ne;
5053
5053
  ((te = ee.router) == null ? void 0 : te.mode) === "hash" && (j = ce.replace("#", "")), ((ie = r.data.get().initOptions.router) == null ? void 0 : ie.mode) === "hash" && (ue = `/${L}`, j = `/#${j}`), ue !== j && (S.value = !0, setTimeout(() => {
5054
5054
  S.value = !1;
5055
5055
  }, 300), i.replaceState(j));
@@ -5058,10 +5058,10 @@ const Zc = async (e) => {
5058
5058
  (Y = F == null ? void 0 : F.data) != null && Y.eventName && o.event.emit(F.data.eventName, (ee = F.data) == null ? void 0 : ee.params);
5059
5059
  });
5060
5060
  const P = (F, Y) => {
5061
- var re;
5061
+ var oe;
5062
5062
  const { path: ee } = Y;
5063
5063
  let G = ee;
5064
- ((re = F.router) == null ? void 0 : re.mode) === "hash" && (G = `/#${ee}`), o.cors.send(F.name, "syncRouter", {
5064
+ ((oe = F.router) == null ? void 0 : oe.mode) === "hash" && (G = `/#${ee}`), o.cors.send(F.name, "syncRouter", {
5065
5065
  appInfo: F,
5066
5066
  parentRouter: Y,
5067
5067
  replacePath: G
@@ -5071,21 +5071,21 @@ const Zc = async (e) => {
5071
5071
  B();
5072
5072
  });
5073
5073
  const B = async () => {
5074
- var ce, oe;
5074
+ var ce, ne;
5075
5075
  if (S.value) return;
5076
5076
  await new Promise((j) => setTimeout(j, 0));
5077
5077
  const F = ((ce = r.data.get().initOptions.router) == null ? void 0 : ce.mode) || "history", { pathname: Y, hash: ee, search: G } = new URL(window.location.href);
5078
- let re = Y + G;
5079
- F === "hash" && (re = ee.replace("#", ""));
5080
- const L = i.match(re), ne = c.value.find((j) => L ? L === j.name : !1);
5081
- let ue = re;
5082
- if (((oe = ne == null ? void 0 : ne.router) == null ? void 0 : oe.mode) === "hash" && (ue = `/#${re}`), !ne) {
5078
+ let oe = Y + G;
5079
+ F === "hash" && (oe = ee.replace("#", ""));
5080
+ const L = i.match(oe), re = c.value.find((j) => L ? L === j.name : !1);
5081
+ let ue = oe;
5082
+ if (((ne = re == null ? void 0 : re.router) == null ? void 0 : ne.mode) === "hash" && (ue = `/#${oe}`), !re) {
5083
5083
  r.data.set({ activeMicroAppName: "" }), p();
5084
5084
  return;
5085
5085
  }
5086
- r.data.set({ activeMicroAppName: ne.name });
5087
- const ge = { href: window.location.href, mode: F, path: re };
5088
- h(ne.name, "deactivated") && (await E(ne.name), P(ne, ge)), h(ne.name, ["mounted", "activated"]) && P(ne, ge), h(ne.name, "registered") && await E(ne.name, { path: ue });
5086
+ r.data.set({ activeMicroAppName: re.name });
5087
+ const ge = { href: window.location.href, mode: F, path: oe };
5088
+ h(re.name, "deactivated") && (await E(re.name), P(re, ge)), h(re.name, ["mounted", "activated"]) && P(re, ge), h(re.name, "registered") && await E(re.name, { path: ue });
5089
5089
  };
5090
5090
  return s(["replaceState"], B), n;
5091
5091
  };
@@ -5127,7 +5127,7 @@ function oo() {
5127
5127
  START_ANCHOR: `(?:^|[${e}])`,
5128
5128
  END_ANCHOR: `(?:[${e}]|$)`,
5129
5129
  SEP: "\\"
5130
- }, re = {
5130
+ }, oe = {
5131
5131
  alnum: "a-zA-Z0-9",
5132
5132
  alpha: "a-zA-Z",
5133
5133
  ascii: "\\x00-\\x7F",
@@ -5145,7 +5145,7 @@ function oo() {
5145
5145
  };
5146
5146
  return Ao = {
5147
5147
  MAX_LENGTH: 1024 * 64,
5148
- POSIX_REGEX_SOURCE: re,
5148
+ POSIX_REGEX_SOURCE: oe,
5149
5149
  // regular expressions
5150
5150
  REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
5151
5151
  REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
@@ -5337,11 +5337,11 @@ function Nf() {
5337
5337
  } = /* @__PURE__ */ oo(), F = (G) => G === c || G === r, Y = (G) => {
5338
5338
  G.isPrefix !== !0 && (G.depth = G.isGlobstar ? 1 / 0 : 1);
5339
5339
  };
5340
- return No = (G, re) => {
5341
- const L = re || {}, ne = G.length - 1, ue = L.parts === !0 || L.scanToEnd === !0, ge = [], ce = [], oe = [];
5340
+ return No = (G, oe) => {
5341
+ const L = oe || {}, re = G.length - 1, ue = L.parts === !0 || L.scanToEnd === !0, ge = [], ce = [], ne = [];
5342
5342
  let j = G, O = -1, te = 0, ie = 0, he = !1, pe = !1, U = !1, Z = !1, _e = !1, D = !1, Oe = !1, Re = !1, Le = !1, A = !1, x = 0, Ve, J, me = { value: "", depth: 0, isGlob: !1 };
5343
- const Ie = () => O >= ne, be = () => j.charCodeAt(O + 1), W = () => (Ve = J, j.charCodeAt(++O));
5344
- for (; O < ne; ) {
5343
+ const Ie = () => O >= re, be = () => j.charCodeAt(O + 1), W = () => (Ve = J, j.charCodeAt(++O));
5344
+ for (; O < re; ) {
5345
5345
  J = W();
5346
5346
  let C;
5347
5347
  if (J === r) {
@@ -5474,13 +5474,13 @@ function Nf() {
5474
5474
  let C;
5475
5475
  for (let R = 0; R < ge.length; R++) {
5476
5476
  const _ = C ? C + 1 : te, I = ge[R], b = G.slice(_, I);
5477
- L.tokens && (R === 0 && te !== 0 ? (ce[R].isPrefix = !0, ce[R].value = f) : ce[R].value = b, Y(ce[R]), y.maxDepth += ce[R].depth), (R !== 0 || b !== "") && oe.push(b), C = I;
5477
+ L.tokens && (R === 0 && te !== 0 ? (ce[R].isPrefix = !0, ce[R].value = f) : ce[R].value = b, Y(ce[R]), y.maxDepth += ce[R].depth), (R !== 0 || b !== "") && ne.push(b), C = I;
5478
5478
  }
5479
5479
  if (C && C + 1 < G.length) {
5480
5480
  const R = G.slice(C + 1);
5481
- oe.push(R), L.tokens && (ce[ce.length - 1].value = R, Y(ce[ce.length - 1]), y.maxDepth += ce[ce.length - 1].depth);
5481
+ ne.push(R), L.tokens && (ce[ce.length - 1].value = R, Y(ce[ce.length - 1]), y.maxDepth += ce[ce.length - 1].depth);
5482
5482
  }
5483
- y.slashes = ge, y.parts = oe;
5483
+ y.slashes = ge, y.parts = ne;
5484
5484
  }
5485
5485
  return y;
5486
5486
  }, No;
@@ -5515,19 +5515,19 @@ function Tf() {
5515
5515
  if (P > S)
5516
5516
  throw new SyntaxError(`Input length: ${P}, exceeds maximum allowed length: ${S}`);
5517
5517
  const B = { type: "bos", value: "", output: h.prepend || "" }, F = [B], Y = h.capture ? "" : "?:", ee = e.globChars(h.windows), G = e.extglobChars(ee), {
5518
- DOT_LITERAL: re,
5518
+ DOT_LITERAL: oe,
5519
5519
  PLUS_LITERAL: L,
5520
- SLASH_LITERAL: ne,
5520
+ SLASH_LITERAL: re,
5521
5521
  ONE_CHAR: ue,
5522
5522
  DOTS_SLASH: ge,
5523
5523
  NO_DOT: ce,
5524
- NO_DOT_SLASH: oe,
5524
+ NO_DOT_SLASH: ne,
5525
5525
  NO_DOTS_SLASH: j,
5526
5526
  QMARK: O,
5527
5527
  QMARK_NO_DOT: te,
5528
5528
  STAR: ie,
5529
5529
  START_ANCHOR: he
5530
- } = ee, pe = (_) => `(${Y}(?:(?!${he}${_.dot ? ge : re}).)*?)`, U = h.dot ? "" : ce, Z = h.dot ? O : te;
5530
+ } = ee, pe = (_) => `(${Y}(?:(?!${he}${_.dot ? ge : oe}).)*?)`, U = h.dot ? "" : ce, Z = h.dot ? O : te;
5531
5531
  let _e = h.bash === !0 ? pe(h) : ie;
5532
5532
  h.capture && (_e = `(${_e})`), typeof h.noext == "boolean" && (h.noextglob = h.noext);
5533
5533
  const D = {
@@ -5591,7 +5591,7 @@ function Tf() {
5591
5591
  y({ type: "paren", extglob: !0, value: x, output: I }), g("parens");
5592
5592
  };
5593
5593
  if (h.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(p)) {
5594
- let _ = !1, I = p.replace(s, (b, N, T, K, M, X) => K === "\\" ? (_ = !0, b) : K === "?" ? N ? N + K + (M ? O.repeat(M.length) : "") : X === 0 ? Z + (M ? O.repeat(M.length) : "") : O.repeat(T.length) : K === "." ? re.repeat(T.length) : K === "*" ? N ? N + K + (M ? _e : "") : _e : N ? b : `\\${b}`);
5594
+ let _ = !1, I = p.replace(s, (b, N, T, K, M, X) => K === "\\" ? (_ = !0, b) : K === "?" ? N ? N + K + (M ? O.repeat(M.length) : "") : X === 0 ? Z + (M ? O.repeat(M.length) : "") : O.repeat(T.length) : K === "." ? oe.repeat(T.length) : K === "*" ? N ? N + K + (M ? _e : "") : _e : N ? b : `\\${b}`);
5595
5595
  return _ === !0 && (h.unescape === !0 ? I = I.replace(/\\/g, "") : I = I.replace(/\\+/g, (b) => b.length % 2 === 0 ? "\\\\" : b ? "\\" : "")), I === p && h.contains === !0 ? (D.output = p, D) : (D.output = t.wrapOutput(I, D, d), D);
5596
5596
  }
5597
5597
  for (; !Ve(); ) {
@@ -5731,21 +5731,21 @@ function Tf() {
5731
5731
  D.start = D.index + 1, D.consumed = "", D.output = "", F.pop(), A = B;
5732
5732
  continue;
5733
5733
  }
5734
- y({ type: "slash", value: x, output: ne });
5734
+ y({ type: "slash", value: x, output: re });
5735
5735
  continue;
5736
5736
  }
5737
5737
  if (x === ".") {
5738
5738
  if (D.braces > 0 && A.type === "dot") {
5739
- A.value === "." && (A.output = re);
5739
+ A.value === "." && (A.output = oe);
5740
5740
  const b = Re[Re.length - 1];
5741
5741
  A.type = "dots", A.output += x, A.value += x, b.dots = !0;
5742
5742
  continue;
5743
5743
  }
5744
5744
  if (D.braces + D.parens === 0 && A.type !== "bos" && A.type !== "slash") {
5745
- y({ type: "text", value: x, output: re });
5745
+ y({ type: "text", value: x, output: oe });
5746
5746
  continue;
5747
5747
  }
5748
- y({ type: "dot", value: x, output: re });
5748
+ y({ type: "dot", value: x, output: oe });
5749
5749
  continue;
5750
5750
  }
5751
5751
  if (x === "?") {
@@ -5846,11 +5846,11 @@ function Tf() {
5846
5846
  }
5847
5847
  if (b.type === "slash" && b.prev.type !== "bos" && _[0] === "/") {
5848
5848
  const se = _[1] !== void 0 ? "|$" : "";
5849
- D.output = D.output.slice(0, -(b.output + A.output).length), b.output = `(?:${b.output}`, A.type = "globstar", A.output = `${pe(h)}${ne}|${ne}${se})`, A.value += x, D.output += b.output + A.output, D.globstar = !0, be(x + me()), y({ type: "slash", value: "/", output: "" });
5849
+ D.output = D.output.slice(0, -(b.output + A.output).length), b.output = `(?:${b.output}`, A.type = "globstar", A.output = `${pe(h)}${re}|${re}${se})`, A.value += x, D.output += b.output + A.output, D.globstar = !0, be(x + me()), y({ type: "slash", value: "/", output: "" });
5850
5850
  continue;
5851
5851
  }
5852
5852
  if (b.type === "bos" && _[0] === "/") {
5853
- A.type = "globstar", A.value += x, A.output = `(?:^|${ne}|${pe(h)}${ne})`, D.output = A.output, D.globstar = !0, be(x + me()), y({ type: "slash", value: "/", output: "" });
5853
+ A.type = "globstar", A.value += x, A.output = `(?:^|${re}|${pe(h)}${re})`, D.output = A.output, D.globstar = !0, be(x + me()), y({ type: "slash", value: "/", output: "" });
5854
5854
  continue;
5855
5855
  }
5856
5856
  D.output = D.output.slice(0, -A.output.length), A.type = "globstar", A.output = pe(h), A.value += x, D.output += A.output, D.globstar = !0, be(x);
@@ -5865,7 +5865,7 @@ function Tf() {
5865
5865
  I.output = x, y(I);
5866
5866
  continue;
5867
5867
  }
5868
- (D.index === D.start || A.type === "slash" || A.type === "dot") && (A.type === "dot" ? (D.output += oe, A.output += oe) : h.dot === !0 ? (D.output += j, A.output += j) : (D.output += U, A.output += U), J() !== "*" && (D.output += ue, A.output += ue)), y(I);
5868
+ (D.index === D.start || A.type === "slash" || A.type === "dot") && (A.type === "dot" ? (D.output += ne, A.output += ne) : h.dot === !0 ? (D.output += j, A.output += j) : (D.output += U, A.output += U), J() !== "*" && (D.output += ue, A.output += ue)), y(I);
5869
5869
  }
5870
5870
  for (; D.brackets > 0; ) {
5871
5871
  if (h.strictBrackets === !0) throw new SyntaxError(l("closing", "]"));
@@ -5879,7 +5879,7 @@ function Tf() {
5879
5879
  if (h.strictBrackets === !0) throw new SyntaxError(l("closing", "}"));
5880
5880
  D.output = t.escapeLast(D.output, "{"), g("braces");
5881
5881
  }
5882
- if (h.strictSlashes !== !0 && (A.type === "star" || A.type === "bracket") && y({ type: "maybe_slash", value: "", output: `${ne}?` }), D.backtrack === !0) {
5882
+ if (h.strictSlashes !== !0 && (A.type === "star" || A.type === "bracket") && y({ type: "maybe_slash", value: "", output: `${re}?` }), D.backtrack === !0) {
5883
5883
  D.output = "";
5884
5884
  for (const _ of D.tokens)
5885
5885
  D.output += _.output != null ? _.output : _.value, _.suffix && (D.output += _.suffix);
@@ -5897,14 +5897,14 @@ function Tf() {
5897
5897
  ONE_CHAR: Y,
5898
5898
  DOTS_SLASH: ee,
5899
5899
  NO_DOT: G,
5900
- NO_DOTS: re,
5900
+ NO_DOTS: oe,
5901
5901
  NO_DOTS_SLASH: L,
5902
- STAR: ne,
5902
+ STAR: re,
5903
5903
  START_ANCHOR: ue
5904
- } = e.globChars(h.windows), ge = h.dot ? re : G, ce = h.dot ? L : G, oe = h.capture ? "" : "?:", j = { negated: !1, prefix: "" };
5905
- let O = h.bash === !0 ? ".*?" : ne;
5904
+ } = e.globChars(h.windows), ge = h.dot ? oe : G, ce = h.dot ? L : G, ne = h.capture ? "" : "?:", j = { negated: !1, prefix: "" };
5905
+ let O = h.bash === !0 ? ".*?" : re;
5906
5906
  h.capture && (O = `(${O})`);
5907
- const te = (U) => U.noglobstar === !0 ? O : `(${oe}(?:(?!${ue}${U.dot ? ee : B}).)*?)`, ie = (U) => {
5907
+ const te = (U) => U.noglobstar === !0 ? O : `(${ne}(?:(?!${ue}${U.dot ? ee : B}).)*?)`, ie = (U) => {
5908
5908
  switch (U) {
5909
5909
  case "*":
5910
5910
  return `${ge}${Y}${O}`;
@@ -5943,8 +5943,8 @@ function Rf() {
5943
5943
  const F = i.map((ee) => s(ee, c, l));
5944
5944
  return (ee) => {
5945
5945
  for (const G of F) {
5946
- const re = G(ee);
5947
- if (re) return re;
5946
+ const oe = G(ee);
5947
+ if (oe) return oe;
5948
5948
  }
5949
5949
  return !1;
5950
5950
  };
@@ -5960,7 +5960,7 @@ function Rf() {
5960
5960
  P = s(p.ignore, F, l);
5961
5961
  }
5962
5962
  const B = (F, Y = !1) => {
5963
- const { isMatch: ee, match: G, output: re } = s.test(F, h, c, { glob: i, posix: d }), L = { glob: i, state: S, regex: h, posix: d, input: F, output: re, match: G, isMatch: ee };
5963
+ const { isMatch: ee, match: G, output: oe } = s.test(F, h, c, { glob: i, posix: d }), L = { glob: i, state: S, regex: h, posix: d, input: F, output: oe, match: G, isMatch: ee };
5964
5964
  return typeof p.onResult == "function" && p.onResult(L), ee === !1 ? (L.isMatch = !1, Y ? L : !1) : P(F) ? (typeof p.onIgnore == "function" && p.onIgnore(L), L.isMatch = !1, Y ? L : !1) : (typeof p.onMatch == "function" && p.onMatch(L), Y ? L : !0);
5965
5965
  };
5966
5966
  return l && (B.state = S), B;
@@ -6901,7 +6901,7 @@ function mg() {
6901
6901
  }
6902
6902
  return u;
6903
6903
  }
6904
- var G = [], re = [];
6904
+ var G = [], oe = [];
6905
6905
  function L(a) {
6906
6906
  var u = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
6907
6907
  try {
@@ -6942,7 +6942,7 @@ function mg() {
6942
6942
  return -1;
6943
6943
  }(G, a);
6944
6944
  if (m !== -1) {
6945
- var v = re[m];
6945
+ var v = oe[m];
6946
6946
  if (v && function(w) {
6947
6947
  if (!w.contentWindow || !w.parentNode) return !0;
6948
6948
  var $ = w.ownerDocument;
@@ -6951,7 +6951,7 @@ function mg() {
6951
6951
  }
6952
6952
  return !1;
6953
6953
  }
6954
- function ne() {
6954
+ function re() {
6955
6955
  var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
6956
6956
  return h(a = a || window) || d(a) || void 0;
6957
6957
  }
@@ -7009,7 +7009,7 @@ function mg() {
7009
7009
  }
7010
7010
  return -1;
7011
7011
  }
7012
- var oe, j = function() {
7012
+ var ne, j = function() {
7013
7013
  function a() {
7014
7014
  if (function(u, m) {
7015
7015
  if (!(u instanceof a)) throw new TypeError("Cannot call a class as a function");
@@ -7169,7 +7169,7 @@ function mg() {
7169
7169
  CHILD_WINDOW_TIMEOUT: 5e3,
7170
7170
  ACK_TIMEOUT: window.navigator.userAgent.match(/MSIE/i) !== -1 ? 1e4 : 2e3,
7171
7171
  RES_TIMEOUT: -1,
7172
- ALLOWED_POST_MESSAGE_METHODS: (oe = {}, oe[O.SEND_STRATEGIES.POST_MESSAGE] = !0, oe[O.SEND_STRATEGIES.BRIDGE] = !0, oe[O.SEND_STRATEGIES.GLOBAL] = !0, oe),
7172
+ ALLOWED_POST_MESSAGE_METHODS: (ne = {}, ne[O.SEND_STRATEGIES.POST_MESSAGE] = !0, ne[O.SEND_STRATEGIES.BRIDGE] = !0, ne[O.SEND_STRATEGIES.GLOBAL] = !0, ne),
7173
7173
  ALLOW_SAME_ORIGIN: !1
7174
7174
  });
7175
7175
  window.location.href.indexOf(O.FILE_PROTOCOL) === 0 && (ie.ALLOW_POSTMESSAGE_POPUP = !0);
@@ -7817,7 +7817,7 @@ function mg() {
7817
7817
  z || (z = [], W.requestPromises.set($, z));
7818
7818
  var le = be.try(function() {
7819
7819
  if (function(Q, q) {
7820
- var de = ne(q);
7820
+ var de = re(q);
7821
7821
  if (de) return de === Q;
7822
7822
  if (q === Q || function() {
7823
7823
  var Pe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
@@ -7917,7 +7917,7 @@ function mg() {
7917
7917
  return (v = v || {}).window = a, v.name = u, v.data = m, tt(v);
7918
7918
  }
7919
7919
  function jn(a, u, m) {
7920
- var v = ne();
7920
+ var v = re();
7921
7921
  return v ? lt(v, a, u, m) : new be(function(w, $) {
7922
7922
  return $(new Error("Window does not have a parent"));
7923
7923
  });
@@ -8057,7 +8057,7 @@ function mg() {
8057
8057
  function Ns() {
8058
8058
  delete window[O.WINDOW_PROPS.POSTROBOT], window.removeEventListener("message", ot);
8059
8059
  }
8060
- var Ts = ne();
8060
+ var Ts = re();
8061
8061
  function Rs(a) {
8062
8062
  var u = W.requestPromises.get(a);
8063
8063
  if (u) for (var m = 0, v = u == null ? 0 : u.length; m < v; m++) u[m].reject(new Error("No response from window - cleaned up"));
@@ -8080,7 +8080,7 @@ function mg() {
8080
8080
  origin: V
8081
8081
  });
8082
8082
  });
8083
- var m, v = ne();
8083
+ var m, v = re();
8084
8084
  v && _(v).catch(Z);
8085
8085
  }(), f({
8086
8086
  on: Hn,