@das-fed/mframe 0.0.24 → 0.0.25

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 (4) hide show
  1. package/es5.js +248 -246
  2. package/index.d.ts +2 -2
  3. package/index.js +223 -221
  4. package/package.json +1 -1
package/index.js CHANGED
@@ -1048,13 +1048,13 @@ function iu(e, t, n = Ne) {
1048
1048
  const L = h, re = o === !0 ? 1 / 0 : o;
1049
1049
  h = () => Bt(L(), re);
1050
1050
  }
1051
- const k = Ia(), te = () => {
1052
- d.stop(), k && k.active && Qo(k.effects, d);
1051
+ const K = Ia(), Q = () => {
1052
+ d.stop(), K && K.active && Qo(K.effects, d);
1053
1053
  };
1054
1054
  if (s && t) {
1055
1055
  const L = t;
1056
1056
  t = (...re) => {
1057
- L(...re), te();
1057
+ L(...re), Q();
1058
1058
  };
1059
1059
  }
1060
1060
  let U = W ? new Array(e.length).fill(_r) : _r;
@@ -1093,7 +1093,7 @@ function iu(e, t, n = Ne) {
1093
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 ? oe(!0) : U = d.run() : i ? i(oe.bind(null, !0), !0) : d.run(), te.pause = d.pause.bind(d), te.resume = d.resume.bind(d), te.stop = te, te;
1096
+ }, process.env.NODE_ENV !== "production" && (d.onTrack = n.onTrack, d.onTrigger = n.onTrigger), t ? r ? oe(!0) : U = d.run() : i ? i(oe.bind(null, !0), !0) : d.run(), Q.pause = d.pause.bind(d), Q.resume = d.resume.bind(d), Q.stop = Q, Q;
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)))
@@ -1624,8 +1624,8 @@ function Fr(e, t, n, r, o = !1) {
1624
1624
  if (P || F) {
1625
1625
  const W = () => {
1626
1626
  if (e.f) {
1627
- const k = P ? S(l) ? d[l] : p[l] : l.value;
1628
- o ? ae(k) && Qo(k, s) : ae(k) ? k.includes(s) || k.push(s) : P ? (p[l] = [s], S(l) && (d[l] = p[l])) : (l.value = [s], e.k && (p[e.k] = l.value));
1627
+ const K = P ? S(l) ? d[l] : p[l] : l.value;
1628
+ o ? ae(K) && Qo(K, s) : ae(K) ? K.includes(s) || K.push(s) : P ? (p[l] = [s], S(l) && (d[l] = p[l])) : (l.value = [s], e.k && (p[e.k] = l.value));
1629
1629
  } else P ? (p[l] = i, S(l) && (d[l] = i)) : F ? (l.value = i, e.k && (p[e.k] = i)) : process.env.NODE_ENV !== "production" && j("Invalid template ref type:", l, `(${typeof l})`);
1630
1630
  };
1631
1631
  i ? (W.id = -1, st(W, n)) : W();
@@ -1888,8 +1888,8 @@ function qu(e) {
1888
1888
  updated: P,
1889
1889
  activated: F,
1890
1890
  deactivated: W,
1891
- beforeDestroy: k,
1892
- beforeUnmount: te,
1891
+ beforeDestroy: K,
1892
+ beforeUnmount: Q,
1893
1893
  destroyed: U,
1894
1894
  unmounted: oe,
1895
1895
  render: L,
@@ -1908,19 +1908,19 @@ function qu(e) {
1908
1908
  if (process.env.NODE_ENV !== "production") {
1909
1909
  const [B] = e.propsOptions;
1910
1910
  if (B)
1911
- for (const Q in B)
1912
- ce("Props", Q);
1911
+ for (const ee in B)
1912
+ ce("Props", ee);
1913
1913
  }
1914
1914
  if (E && zu(E, r, ce), i)
1915
1915
  for (const B in i) {
1916
- const Q = i[B];
1917
- pe(Q) ? (process.env.NODE_ENV !== "production" ? Object.defineProperty(r, B, {
1918
- value: Q.bind(n),
1916
+ const ee = i[B];
1917
+ pe(ee) ? (process.env.NODE_ENV !== "production" ? Object.defineProperty(r, B, {
1918
+ value: ee.bind(n),
1919
1919
  configurable: !0,
1920
1920
  enumerable: !0,
1921
1921
  writable: !0
1922
- }) : r[B] = Q.bind(n), process.env.NODE_ENV !== "production" && ce("Methods", B)) : process.env.NODE_ENV !== "production" && j(
1923
- `Method "${B}" has type "${typeof Q}" in the component definition. Did you reference the function correctly?`
1922
+ }) : r[B] = ee.bind(n), process.env.NODE_ENV !== "production" && ce("Methods", B)) : process.env.NODE_ENV !== "production" && j(
1923
+ `Method "${B}" has type "${typeof ee}" in the component definition. Did you reference the function correctly?`
1924
1924
  );
1925
1925
  }
1926
1926
  if (o) {
@@ -1933,19 +1933,19 @@ function qu(e) {
1933
1933
  ), !De(B))
1934
1934
  process.env.NODE_ENV !== "production" && j("data() should return an object.");
1935
1935
  else if (e.data = us(B), process.env.NODE_ENV !== "production")
1936
- for (const Q in B)
1937
- ce("Data", Q), ms(Q[0]) || Object.defineProperty(r, Q, {
1936
+ for (const ee in B)
1937
+ ce("Data", ee), ms(ee[0]) || Object.defineProperty(r, ee, {
1938
1938
  configurable: !0,
1939
1939
  enumerable: !0,
1940
- get: () => B[Q],
1940
+ get: () => B[ee],
1941
1941
  set: Be
1942
1942
  });
1943
1943
  }
1944
1944
  if (Wo = !0, s)
1945
1945
  for (const B in s) {
1946
- const Q = s[B], ve = pe(Q) ? Q.bind(n, n) : pe(Q.get) ? Q.get.bind(n, n) : Be;
1946
+ const ee = s[B], ve = pe(ee) ? ee.bind(n, n) : pe(ee.get) ? ee.get.bind(n, n) : Be;
1947
1947
  process.env.NODE_ENV !== "production" && ve === Be && j(`Computed property "${B}" has no getter.`);
1948
- const T = !pe(Q) && pe(Q.set) ? Q.set.bind(n) : process.env.NODE_ENV !== "production" ? () => {
1948
+ const T = !pe(ee) && pe(ee.set) ? ee.set.bind(n) : process.env.NODE_ENV !== "production" ? () => {
1949
1949
  j(
1950
1950
  `Write operation failed: computed property "${B}" is readonly.`
1951
1951
  );
@@ -1965,21 +1965,21 @@ function qu(e) {
1965
1965
  Sc(c[B], r, n, B);
1966
1966
  if (l) {
1967
1967
  const B = pe(l) ? l.call(n) : l;
1968
- Reflect.ownKeys(B).forEach((Q) => {
1969
- tl(Q, B[Q]);
1968
+ Reflect.ownKeys(B).forEach((ee) => {
1969
+ tl(ee, B[ee]);
1970
1970
  });
1971
1971
  }
1972
1972
  p && Vs(p, e, "c");
1973
- function ie(B, Q) {
1974
- ae(Q) ? Q.forEach((ve) => B(ve.bind(n))) : Q && B(Q.bind(n));
1973
+ function ie(B, ee) {
1974
+ ae(ee) ? ee.forEach((ve) => B(ve.bind(n))) : ee && B(ee.bind(n));
1975
1975
  }
1976
- if (ie(Mu, d), ie(bc, h), ie(Lu, S), ie(Vu, P), ie(Pu, F), ie(Iu, W), ie(Bu, he), ie(Fu, re), ie(Wu, ue), ie(ju, te), ie(wc, oe), ie(Hu, le), ae(be))
1976
+ if (ie(Mu, d), ie(bc, h), ie(Lu, S), ie(Vu, P), ie(Pu, F), ie(Iu, W), ie(Bu, he), ie(Fu, re), ie(Wu, ue), ie(ju, Q), ie(wc, oe), ie(Hu, le), ae(be))
1977
1977
  if (be.length) {
1978
1978
  const B = e.exposed || (e.exposed = {});
1979
- be.forEach((Q) => {
1980
- Object.defineProperty(B, Q, {
1981
- get: () => n[Q],
1982
- set: (ve) => n[Q] = ve
1979
+ be.forEach((ee) => {
1980
+ Object.defineProperty(B, ee, {
1981
+ get: () => n[ee],
1982
+ set: (ve) => n[ee] = ve
1983
1983
  });
1984
1984
  });
1985
1985
  } else e.exposed || (e.exposed = {});
@@ -2417,8 +2417,8 @@ function Cc(e, t, n = !1) {
2417
2417
  const h = s[p], S = i[d] = ae(h) || pe(h) ? { type: h } : He({}, h), P = S.type;
2418
2418
  let F = !1, W = !0;
2419
2419
  if (ae(P))
2420
- for (let k = 0; k < P.length; ++k) {
2421
- const te = P[k], U = pe(te) && te.name;
2420
+ for (let K = 0; K < P.length; ++K) {
2421
+ const Q = P[K], U = pe(Q) && Q.name;
2422
2422
  if (U === "Boolean") {
2423
2423
  F = !0;
2424
2424
  break;
@@ -2616,10 +2616,10 @@ function vl(e, t) {
2616
2616
  W(f, g, y, C);
2617
2617
  break;
2618
2618
  case ut:
2619
- k(f, g, y, C);
2619
+ K(f, g, y, C);
2620
2620
  break;
2621
2621
  case Rr:
2622
- f == null ? te(g, y, C, I) : process.env.NODE_ENV !== "production" && U(f, g, y, I);
2622
+ f == null ? Q(g, y, C, I) : process.env.NODE_ENV !== "production" && U(f, g, y, I);
2623
2623
  break;
2624
2624
  case Nt:
2625
2625
  q(
@@ -2680,13 +2680,13 @@ function vl(e, t) {
2680
2680
  const x = g.el = f.el;
2681
2681
  g.children !== f.children && E(x, g.children);
2682
2682
  }
2683
- }, k = (f, g, y, C) => {
2683
+ }, K = (f, g, y, C) => {
2684
2684
  f == null ? r(
2685
2685
  g.el = l(g.children || ""),
2686
2686
  y,
2687
2687
  C
2688
2688
  ) : g.el = f.el;
2689
- }, te = (f, g, y, C) => {
2689
+ }, Q = (f, g, y, C) => {
2690
2690
  [f.el, f.anchor] = P(
2691
2691
  f.children,
2692
2692
  g,
@@ -2955,7 +2955,7 @@ function vl(e, t) {
2955
2955
  if (process.env.NODE_ENV !== "production" && b.type.__hmrId && gu(b), process.env.NODE_ENV !== "production" && (Or(f), bn(b, "mount")), gs(f) && (b.ctx.renderer = H), process.env.NODE_ENV !== "production" && bn(b, "init"), Fl(b, !1, I), process.env.NODE_ENV !== "production" && wn(b, "init"), b.asyncDep) {
2956
2956
  if (process.env.NODE_ENV !== "production" && Dt && (f.el = null), x && x.registerDep(b, B, I), !f.el) {
2957
2957
  const N = b.subTree = at(ut);
2958
- k(null, N, g, y);
2958
+ K(null, N, g, y);
2959
2959
  }
2960
2960
  } else
2961
2961
  B(
@@ -2972,7 +2972,7 @@ function vl(e, t) {
2972
2972
  const C = g.component = f.component;
2973
2973
  if (Tl(f, g, y))
2974
2974
  if (C.asyncDep && !C.asyncResolved) {
2975
- process.env.NODE_ENV !== "production" && Or(g), Q(C, g, y), process.env.NODE_ENV !== "production" && Sr();
2975
+ process.env.NODE_ENV !== "production" && Or(g), ee(C, g, y), process.env.NODE_ENV !== "production" && Sr();
2976
2976
  return;
2977
2977
  } else
2978
2978
  C.next = g, C.update();
@@ -2985,14 +2985,14 @@ function vl(e, t) {
2985
2985
  {
2986
2986
  const tt = Lc(f);
2987
2987
  if (tt) {
2988
- M && (M.el = Te.el, Q(f, M, I)), tt.asyncDep.then(() => {
2988
+ M && (M.el = Te.el, ee(f, M, I)), tt.asyncDep.then(() => {
2989
2989
  f.isUnmounted || b();
2990
2990
  });
2991
2991
  return;
2992
2992
  }
2993
2993
  }
2994
2994
  let Se = M, qe;
2995
- process.env.NODE_ENV !== "production" && Or(M || f.vnode), sn(f, !1), M ? (M.el = Te.el, Q(f, M, I)) : M = Te, Z && Bn(Z), (qe = M.props && M.props.onVnodeBeforeUpdate) && bt(qe, ye, M, Te), sn(f, !0), process.env.NODE_ENV !== "production" && bn(f, "render");
2995
+ process.env.NODE_ENV !== "production" && Or(M || f.vnode), sn(f, !1), M ? (M.el = Te.el, ee(f, M, I)) : M = Te, Z && Bn(Z), (qe = M.props && M.props.onVnodeBeforeUpdate) && bt(qe, ye, M, Te), sn(f, !0), process.env.NODE_ENV !== "production" && bn(f, "render");
2996
2996
  const ke = Gs(f);
2997
2997
  process.env.NODE_ENV !== "production" && wn(f, "render");
2998
2998
  const ot = f.subTree;
@@ -3042,7 +3042,7 @@ function vl(e, t) {
3042
3042
  f.scope.off();
3043
3043
  const R = f.update = N.run.bind(N), G = f.job = N.runIfDirty.bind(N);
3044
3044
  G.i = f, G.id = f.uid, N.scheduler = () => Zr(G), sn(f, !0), process.env.NODE_ENV !== "production" && (N.onTrack = f.rtc ? (M) => Bn(f.rtc, M) : void 0, N.onTrigger = f.rtg ? (M) => Bn(f.rtg, M) : void 0), R();
3045
- }, Q = (f, g, y) => {
3045
+ }, ee = (f, g, y) => {
3046
3046
  g.component = f;
3047
3047
  const C = f.vnode.props;
3048
3048
  f.vnode = g, f.next = null, ol(f, g.props, C, y), hl(f, g.children, y), Gt(), $s(f), Kt();
@@ -3616,7 +3616,7 @@ function Gs(e) {
3616
3616
  ctx: P,
3617
3617
  inheritAttrs: F
3618
3618
  } = e, W = Wr(e);
3619
- let k, te;
3619
+ let K, Q;
3620
3620
  process.env.NODE_ENV !== "production" && (Go = !1);
3621
3621
  try {
3622
3622
  if (n.shapeFlag & 4) {
@@ -3629,7 +3629,7 @@ function Gs(e) {
3629
3629
  ), Reflect.get(ue, he, le);
3630
3630
  }
3631
3631
  }) : L;
3632
- k = ht(
3632
+ K = ht(
3633
3633
  E.call(
3634
3634
  re,
3635
3635
  L,
@@ -3639,10 +3639,10 @@ function Gs(e) {
3639
3639
  h,
3640
3640
  P
3641
3641
  )
3642
- ), te = c;
3642
+ ), Q = c;
3643
3643
  } else {
3644
3644
  const L = t;
3645
- process.env.NODE_ENV !== "production" && c === d && Gr(), k = ht(
3645
+ process.env.NODE_ENV !== "production" && c === d && Gr(), K = ht(
3646
3646
  L.length > 1 ? L(
3647
3647
  process.env.NODE_ENV !== "production" ? xt(d) : d,
3648
3648
  process.env.NODE_ENV !== "production" ? {
@@ -3656,20 +3656,20 @@ function Gs(e) {
3656
3656
  process.env.NODE_ENV !== "production" ? xt(d) : d,
3657
3657
  null
3658
3658
  )
3659
- ), te = t.props ? c : Al(c);
3659
+ ), Q = t.props ? c : Al(c);
3660
3660
  }
3661
3661
  } catch (L) {
3662
- tr.length = 0, pr(L, e, 1), k = at(ut);
3662
+ tr.length = 0, pr(L, e, 1), K = at(ut);
3663
3663
  }
3664
- let U = k, oe;
3665
- if (process.env.NODE_ENV !== "production" && k.patchFlag > 0 && k.patchFlag & 2048 && ([U, oe] = Wc(k)), te && F !== !1) {
3666
- const L = Object.keys(te), { shapeFlag: re } = U;
3664
+ let U = K, oe;
3665
+ if (process.env.NODE_ENV !== "production" && K.patchFlag > 0 && K.patchFlag & 2048 && ([U, oe] = Wc(K)), Q && F !== !1) {
3666
+ const L = Object.keys(Q), { shapeFlag: re } = U;
3667
3667
  if (L.length) {
3668
3668
  if (re & 7)
3669
- s && L.some($r) && (te = Nl(
3670
- te,
3669
+ s && L.some($r) && (Q = Nl(
3670
+ Q,
3671
3671
  s
3672
- )), U = nn(U, te, !1, !0);
3672
+ )), U = nn(U, Q, !1, !0);
3673
3673
  else if (process.env.NODE_ENV !== "production" && !Go && U.type !== ut) {
3674
3674
  const ue = Object.keys(c), he = [], le = [];
3675
3675
  for (let be = 0, Y = ue.length; be < Y; be++) {
@@ -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
  ), U = nn(U, null, !1, !0), U.dirs = U.dirs ? U.dirs.concat(n.dirs) : n.dirs), n.transition && (process.env.NODE_ENV !== "production" && !Ks(U) && j(
3690
3690
  "Component inside <Transition> renders non-element root node that cannot be animated."
3691
- ), hs(U, n.transition)), process.env.NODE_ENV !== "production" && oe ? oe(U) : k = U, Wr(W), k;
3691
+ ), hs(U, n.transition)), process.env.NODE_ENV !== "production" && oe ? oe(U) : K = U, Wr(W), K;
3692
3692
  }
3693
3693
  const Wc = (e) => {
3694
3694
  const t = e.children, n = e.dynamicChildren, r = Es(t, !1);
@@ -4755,17 +4755,17 @@ const bf = { style: { flex: "1", display: "flex", "min-height": "0" } }, wf = {
4755
4755
  height: "100%",
4756
4756
  display: "flex",
4757
4757
  flexDirection: "column"
4758
- })), k = (Y, w = 0, q = !1) => {
4758
+ })), K = (Y, w = 0, q = !1) => {
4759
4759
  let ne = null;
4760
4760
  return (...ce) => {
4761
4761
  q && !ne && Y(...ce), clearTimeout(ne), ne = setTimeout(() => {
4762
4762
  Y(...ce);
4763
4763
  }, w);
4764
4764
  };
4765
- }, te = () => {
4765
+ }, Q = () => {
4766
4766
  function Y(q, ne = 20) {
4767
4767
  if (!q) return;
4768
- const ce = q.getBoundingClientRect(), { x: ie, y: B, width: Q, height: ve } = ce, T = ie, _e = B, Re = ie + Q, Le = B + ve, A = [
4768
+ const ce = q.getBoundingClientRect(), { x: ie, y: B, width: ee, height: ve } = ce, T = ie, _e = B, Re = ie + ee, Le = B + ve, A = [
4769
4769
  document.documentElement,
4770
4770
  document.body,
4771
4771
  q,
@@ -4783,7 +4783,7 @@ const bf = { style: { flex: "1", display: "flex", "min-height": "0" } }, wf = {
4783
4783
  }
4784
4784
  let w = Y(h.nav.value);
4785
4785
  return w || (w = Y(h.tab.value)), w || (w = Y(h.menu.value)), w;
4786
- }, U = { x: -1, y: -1 }, oe = k(
4786
+ }, U = { x: -1, y: -1 }, oe = K(
4787
4787
  (Y, w, q) => {
4788
4788
  if (!(U.x === w.x && U.y === w.y)) {
4789
4789
  if (U.x = w.x, U.y = w.x, Y === "mouseenter") {
@@ -4793,12 +4793,12 @@ const bf = { style: { flex: "1", display: "flex", "min-height": "0" } }, wf = {
4793
4793
  s.data.set({ microAppStickStatus: q === "mount" });
4794
4794
  }
4795
4795
  if (E.value) {
4796
- if (te()) return c.cors.send("microAppStickStatus", !0);
4796
+ if (Q()) return c.cors.send("microAppStickStatus", !0);
4797
4797
  c.cors.send("microAppStickStatus", q === "mount");
4798
4798
  }
4799
4799
  }
4800
4800
  if (Y === "mousemove" && E.value) {
4801
- if (te()) return c.cors.send("microAppStickStatus", !0);
4801
+ if (Q()) return c.cors.send("microAppStickStatus", !0);
4802
4802
  c.cors.send("microAppStickStatus", q === "mount");
4803
4803
  }
4804
4804
  }
@@ -4832,15 +4832,15 @@ const bf = { style: { flex: "1", display: "flex", "min-height": "0" } }, wf = {
4832
4832
  const q = (ne) => {
4833
4833
  var B;
4834
4834
  const ce = (B = h[ne]) == null ? void 0 : B.value, ie = () => {
4835
- const { x: Q, y: ve, width: T, height: _e } = (ce == null ? void 0 : ce.getBoundingClientRect()) || {};
4836
- s.data.set({ [`${ne}Rect`]: { x: Q, y: ve, width: T, height: _e } });
4835
+ const { x: ee, y: ve, width: T, height: _e } = (ce == null ? void 0 : ce.getBoundingClientRect()) || {};
4836
+ s.data.set({ [`${ne}Rect`]: { x: ee, y: ve, width: T, height: _e } });
4837
4837
  };
4838
4838
  ie(), new MutationObserver(ie).observe(ce, {
4839
4839
  childList: !0,
4840
4840
  subtree: !0
4841
- }), new IntersectionObserver((Q) => {
4841
+ }), new IntersectionObserver((ee) => {
4842
4842
  var ve;
4843
- (ve = Q == null ? void 0 : Q[0]) != null && ve.isIntersecting && ie();
4843
+ (ve = ee == null ? void 0 : ee[0]) != null && ve.isIntersecting && ie();
4844
4844
  }).observe(ce);
4845
4845
  };
4846
4846
  await Promise.all([
@@ -4857,9 +4857,9 @@ const bf = { style: { flex: "1", display: "flex", "min-height": "0" } }, wf = {
4857
4857
  tabDom: S.tab.value,
4858
4858
  mountDom: S.mount.value
4859
4859
  }), i.event.on("mountMicroContent", (ne) => {
4860
- var Q, ve, T;
4860
+ var ee, ve, T;
4861
4861
  const { getIframeInfo: ce } = Zo();
4862
- let ie = ce((Q = ne == null ? void 0 : ne.appInfo) == null ? void 0 : Q.name), B = (ve = be.value) == null ? void 0 : ve.querySelector(`#${ie.id}`);
4862
+ let ie = ce((ee = ne == null ? void 0 : ne.appInfo) == null ? void 0 : ee.name), B = (ve = be.value) == null ? void 0 : ve.querySelector(`#${ie.id}`);
4863
4863
  B && (B.style.display = "block", re.value = !1, he.value[(T = ne == null ? void 0 : ne.appInfo) == null ? void 0 : T.name] = !0);
4864
4864
  });
4865
4865
  })(), s.data.watch(() => {
@@ -5030,40 +5030,42 @@ const Zc = async (e) => {
5030
5030
  d.on("mounted", (W) => {
5031
5031
  var U;
5032
5032
  o.expose.connectMicroApp(W);
5033
- const k = r.data.get().microApps.find((oe) => oe.name === W.name);
5034
- if (!k) return;
5035
- if (!(((U = k.router) == null ? void 0 : U.sync) ?? !0)) {
5033
+ const K = r.data.get().microApps.find((oe) => oe.name === W.name);
5034
+ if (!K) return;
5035
+ if (!(((U = K.router) == null ? void 0 : U.sync) ?? !0)) {
5036
5036
  F();
5037
5037
  return;
5038
5038
  }
5039
5039
  }), t.filter((W) => W.activeRule).map((W) => {
5040
- i.addRule(W.name, W.activeRule), l(W.name, W);
5040
+ (Array.isArray(W.activeRule) ? W.activeRule : [W.activeRule]).forEach((Q) => {
5041
+ i.addRule(W.name, Q);
5042
+ }), l(W.name, W);
5041
5043
  });
5042
5044
  const S = Ge(!1);
5043
5045
  o.cors.on("reportRouter", (W) => {
5044
5046
  var w, q, ne;
5045
- const { data: k } = W || {};
5046
- if (!k.appInfo) return;
5047
- const te = r.data.get().microApps.find((ce) => ce.name === k.appInfo.name);
5048
- if (!te || !(((w = te.router) == null ? void 0 : w.sync) ?? !0) || !h(te.name, ["mounted", "activated"])) return;
5047
+ const { data: K } = W || {};
5048
+ if (!K.appInfo) return;
5049
+ const Q = r.data.get().microApps.find((ce) => ce.name === K.appInfo.name);
5050
+ if (!Q || !(((w = Q.router) == null ? void 0 : w.sync) ?? !0) || !h(Q.name, ["mounted", "activated"])) return;
5049
5051
  const { pathname: oe, hash: L, search: re } = new URL(window.location.href);
5050
5052
  let ue = oe + re;
5051
- const { pathname: he, hash: le, search: be } = new URL(k.href);
5053
+ const { pathname: he, hash: le, search: be } = new URL(K.href);
5052
5054
  let Y = he + be;
5053
- ((q = te.router) == null ? void 0 : q.mode) === "hash" && (Y = le.replace("#", "")), ((ne = r.data.get().initOptions.router) == null ? void 0 : ne.mode) === "hash" && (ue = `/${L}`, Y = `/#${Y}`), ue !== Y && (S.value = !0, setTimeout(() => {
5055
+ ((q = Q.router) == null ? void 0 : q.mode) === "hash" && (Y = le.replace("#", "")), ((ne = r.data.get().initOptions.router) == null ? void 0 : ne.mode) === "hash" && (ue = `/${L}`, Y = `/#${Y}`), ue !== Y && (S.value = !0, setTimeout(() => {
5054
5056
  S.value = !1;
5055
5057
  }, 300), i.replaceState(Y));
5056
5058
  }), o.cors.on("customEventFromMicro", (W) => {
5057
- var k, te;
5058
- (k = W == null ? void 0 : W.data) != null && k.eventName && o.event.emit(W.data.eventName, (te = W.data) == null ? void 0 : te.params);
5059
+ var K, Q;
5060
+ (K = W == null ? void 0 : W.data) != null && K.eventName && o.event.emit(W.data.eventName, (Q = W.data) == null ? void 0 : Q.params);
5059
5061
  });
5060
- const P = (W, k) => {
5062
+ const P = (W, K) => {
5061
5063
  var oe;
5062
- const { path: te } = k;
5063
- let U = te;
5064
- ((oe = W.router) == null ? void 0 : oe.mode) === "hash" && (U = `/#${te}`), o.cors.send(W.name, "syncRouter", {
5064
+ const { path: Q } = K;
5065
+ let U = Q;
5066
+ ((oe = W.router) == null ? void 0 : oe.mode) === "hash" && (U = `/#${Q}`), o.cors.send(W.name, "syncRouter", {
5065
5067
  appInfo: W,
5066
- parentRouter: k,
5068
+ parentRouter: K,
5067
5069
  replacePath: U
5068
5070
  });
5069
5071
  };
@@ -5074,9 +5076,9 @@ const Zc = async (e) => {
5074
5076
  var le, be;
5075
5077
  if (S.value) return;
5076
5078
  await new Promise((Y) => setTimeout(Y, 0));
5077
- const W = ((le = r.data.get().initOptions.router) == null ? void 0 : le.mode) || "history", { pathname: k, hash: te, search: U } = new URL(window.location.href);
5078
- let oe = k + U;
5079
- W === "hash" && (oe = te.replace("#", ""));
5079
+ const W = ((le = r.data.get().initOptions.router) == null ? void 0 : le.mode) || "history", { pathname: K, hash: Q, search: U } = new URL(window.location.href);
5080
+ let oe = K + U;
5081
+ W === "hash" && (oe = Q.replace("#", ""));
5080
5082
  const L = i.match(oe), re = c.value.find((Y) => L ? L === Y.name : !1);
5081
5083
  let ue = oe;
5082
5084
  if (((be = re == null ? void 0 : re.router) == null ? void 0 : be.mode) === "hash" && (ue = `/#${oe}`), !re) {
@@ -5096,7 +5098,7 @@ var So = {}, Ao, li;
5096
5098
  function oo() {
5097
5099
  if (li) return Ao;
5098
5100
  li = 1;
5099
- const e = "\\\\/", t = `[^${e}]`, n = "\\.", r = "\\+", o = "\\?", s = "\\/", i = "(?=.)", c = "[^/]", l = `(?:${s}|$)`, E = `(?:^|${s})`, p = `${n}{1,2}${l}`, d = `(?!${n})`, h = `(?!${E}${p})`, S = `(?!${n}{0,1}${l})`, P = `(?!${p})`, F = `[^.${s}]`, W = `${c}*?`, te = {
5101
+ const e = "\\\\/", t = `[^${e}]`, n = "\\.", r = "\\+", o = "\\?", s = "\\/", i = "(?=.)", c = "[^/]", l = `(?:${s}|$)`, E = `(?:^|${s})`, p = `${n}{1,2}${l}`, d = `(?!${n})`, h = `(?!${E}${p})`, S = `(?!${n}{0,1}${l})`, P = `(?!${p})`, F = `[^.${s}]`, W = `${c}*?`, Q = {
5100
5102
  DOT_LITERAL: n,
5101
5103
  PLUS_LITERAL: r,
5102
5104
  QMARK_LITERAL: o,
@@ -5114,7 +5116,7 @@ function oo() {
5114
5116
  START_ANCHOR: E,
5115
5117
  SEP: "/"
5116
5118
  }, U = {
5117
- ...te,
5119
+ ...Q,
5118
5120
  SLASH_LITERAL: `[${e}]`,
5119
5121
  QMARK: t,
5120
5122
  STAR: `${t}*?`,
@@ -5264,7 +5266,7 @@ function oo() {
5264
5266
  * Create GLOB_CHARS
5265
5267
  */
5266
5268
  globChars(L) {
5267
- return L === !0 ? U : te;
5269
+ return L === !0 ? U : Q;
5268
5270
  }
5269
5271
  }, Ao;
5270
5272
  }
@@ -5334,12 +5336,12 @@ function Nf() {
5334
5336
  /* ) */
5335
5337
  CHAR_RIGHT_SQUARE_BRACKET: F
5336
5338
  /* ] */
5337
- } = /* @__PURE__ */ oo(), W = (U) => U === c || U === r, k = (U) => {
5339
+ } = /* @__PURE__ */ oo(), W = (U) => U === c || U === r, K = (U) => {
5338
5340
  U.isPrefix !== !0 && (U.depth = U.isGlobstar ? 1 / 0 : 1);
5339
5341
  };
5340
5342
  return No = (U, oe) => {
5341
5343
  const L = oe || {}, re = U.length - 1, ue = L.parts === !0 || L.scanToEnd === !0, he = [], le = [], be = [];
5342
- let Y = U, w = -1, q = 0, ne = 0, ce = !1, ie = !1, B = !1, Q = !1, ve = !1, T = !1, _e = !1, Re = !1, Le = !1, A = !1, D = 0, Ve, J, ge = { value: "", depth: 0, isGlob: !1 };
5344
+ let Y = U, w = -1, q = 0, ne = 0, ce = !1, ie = !1, B = !1, ee = !1, ve = !1, T = !1, _e = !1, Re = !1, Le = !1, A = !1, D = 0, Ve, J, ge = { value: "", depth: 0, isGlob: !1 };
5343
5345
  const Ie = () => w >= re, we = () => Y.charCodeAt(w + 1), H = () => (Ve = J, Y.charCodeAt(++w));
5344
5346
  for (; w < re; ) {
5345
5347
  J = H();
@@ -5387,7 +5389,7 @@ function Nf() {
5387
5389
  continue;
5388
5390
  }
5389
5391
  if (L.noext !== !0 && (J === d || J === n || J === t || J === h || J === i) === !0 && we() === E) {
5390
- if (B = ge.isGlob = !0, Q = ge.isExtglob = !0, A = !0, J === i && w === q && (Le = !0), ue === !0) {
5392
+ if (B = ge.isGlob = !0, ee = ge.isExtglob = !0, A = !0, J === i && w === q && (Le = !0), ue === !0) {
5391
5393
  for (; Ie() !== !0 && (J = H()); ) {
5392
5394
  if (J === r) {
5393
5395
  _e = ge.backslashes = !0, J = H();
@@ -5453,7 +5455,7 @@ function Nf() {
5453
5455
  break;
5454
5456
  }
5455
5457
  }
5456
- L.noext === !0 && (Q = !1, B = !1);
5458
+ L.noext === !0 && (ee = !1, B = !1);
5457
5459
  let $e = Y, f = "", g = "";
5458
5460
  q > 0 && (f = Y.slice(0, q), Y = Y.slice(q), ne -= q), $e && B === !0 && ne > 0 ? ($e = Y.slice(0, ne), g = Y.slice(ne)) : B === !0 ? ($e = "", g = Y) : $e = Y, $e && $e !== "" && $e !== "/" && $e !== Y && W($e.charCodeAt($e.length - 1)) && ($e = $e.slice(0, -1)), L.unescape === !0 && (g && (g = e.removeBackslashes(g)), $e && _e === !0 && ($e = e.removeBackslashes($e)));
5459
5461
  const y = {
@@ -5465,7 +5467,7 @@ function Nf() {
5465
5467
  isBrace: ce,
5466
5468
  isBracket: ie,
5467
5469
  isGlob: B,
5468
- isExtglob: Q,
5470
+ isExtglob: ee,
5469
5471
  isGlobstar: ve,
5470
5472
  negated: Re,
5471
5473
  negatedExtglob: Le
@@ -5474,11 +5476,11 @@ function Nf() {
5474
5476
  let C;
5475
5477
  for (let x = 0; x < he.length; x++) {
5476
5478
  const _ = C ? C + 1 : q, I = he[x], b = U.slice(_, I);
5477
- L.tokens && (x === 0 && q !== 0 ? (le[x].isPrefix = !0, le[x].value = f) : le[x].value = b, k(le[x]), y.maxDepth += le[x].depth), (x !== 0 || b !== "") && be.push(b), C = I;
5479
+ L.tokens && (x === 0 && q !== 0 ? (le[x].isPrefix = !0, le[x].value = f) : le[x].value = b, K(le[x]), y.maxDepth += le[x].depth), (x !== 0 || b !== "") && be.push(b), C = I;
5478
5480
  }
5479
5481
  if (C && C + 1 < U.length) {
5480
5482
  const x = U.slice(C + 1);
5481
- be.push(x), L.tokens && (le[le.length - 1].value = x, k(le[le.length - 1]), y.maxDepth += le[le.length - 1].depth);
5483
+ be.push(x), L.tokens && (le[le.length - 1].value = x, K(le[le.length - 1]), y.maxDepth += le[le.length - 1].depth);
5482
5484
  }
5483
5485
  y.slashes = he, y.parts = be;
5484
5486
  }
@@ -5514,7 +5516,7 @@ function Tf() {
5514
5516
  let P = p.length;
5515
5517
  if (P > S)
5516
5518
  throw new SyntaxError(`Input length: ${P}, exceeds maximum allowed length: ${S}`);
5517
- const F = { type: "bos", value: "", output: h.prepend || "" }, W = [F], k = h.capture ? "" : "?:", te = e.globChars(h.windows), U = e.extglobChars(te), {
5519
+ const F = { type: "bos", value: "", output: h.prepend || "" }, W = [F], K = h.capture ? "" : "?:", Q = e.globChars(h.windows), U = e.extglobChars(Q), {
5518
5520
  DOT_LITERAL: oe,
5519
5521
  PLUS_LITERAL: L,
5520
5522
  SLASH_LITERAL: re,
@@ -5527,7 +5529,7 @@ function Tf() {
5527
5529
  QMARK_NO_DOT: q,
5528
5530
  STAR: ne,
5529
5531
  START_ANCHOR: ce
5530
- } = te, ie = (_) => `(${k}(?:(?!${ce}${_.dot ? he : oe}).)*?)`, B = h.dot ? "" : le, Q = h.dot ? w : q;
5532
+ } = Q, ie = (_) => `(${K}(?:(?!${ce}${_.dot ? he : oe}).)*?)`, B = h.dot ? "" : le, ee = h.dot ? w : q;
5531
5533
  let ve = h.bash === !0 ? ie(h) : ne;
5532
5534
  h.capture && (ve = `(${ve})`), typeof h.noext == "boolean" && (h.noextglob = h.noext);
5533
5535
  const T = {
@@ -5591,7 +5593,7 @@ function Tf() {
5591
5593
  y({ type: "paren", extglob: !0, value: D, output: I }), g("parens");
5592
5594
  };
5593
5595
  if (h.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(p)) {
5594
- let _ = !1, I = p.replace(s, (b, N, R, G, M, Z) => G === "\\" ? (_ = !0, b) : G === "?" ? N ? N + G + (M ? w.repeat(M.length) : "") : Z === 0 ? Q + (M ? w.repeat(M.length) : "") : w.repeat(R.length) : G === "." ? oe.repeat(R.length) : G === "*" ? N ? N + G + (M ? ve : "") : ve : N ? b : `\\${b}`);
5596
+ let _ = !1, I = p.replace(s, (b, N, R, G, M, Z) => G === "\\" ? (_ = !0, b) : G === "?" ? N ? N + G + (M ? w.repeat(M.length) : "") : Z === 0 ? ee + (M ? w.repeat(M.length) : "") : w.repeat(R.length) : G === "." ? oe.repeat(R.length) : G === "*" ? N ? N + G + (M ? ve : "") : ve : N ? b : `\\${b}`);
5595
5597
  return _ === !0 && (h.unescape === !0 ? I = I.replace(/\\/g, "") : I = I.replace(/\\+/g, (b) => b.length % 2 === 0 ? "\\\\" : b ? "\\" : "")), I === p && h.contains === !0 ? (T.output = p, T) : (T.output = t.wrapOutput(I, T, d), T);
5596
5598
  }
5597
5599
  for (; !Ve(); ) {
@@ -5679,7 +5681,7 @@ function Tf() {
5679
5681
  T.output += N, A.value = N;
5680
5682
  continue;
5681
5683
  }
5682
- A.value = `(${k}${N}|${A.value})`, T.output += A.value;
5684
+ A.value = `(${K}${N}|${A.value})`, T.output += A.value;
5683
5685
  continue;
5684
5686
  }
5685
5687
  if (D === "{" && h.nobrace !== !0) {
@@ -5894,8 +5896,8 @@ function Tf() {
5894
5896
  const {
5895
5897
  DOT_LITERAL: F,
5896
5898
  SLASH_LITERAL: W,
5897
- ONE_CHAR: k,
5898
- DOTS_SLASH: te,
5899
+ ONE_CHAR: K,
5900
+ DOTS_SLASH: Q,
5899
5901
  NO_DOT: U,
5900
5902
  NO_DOTS: oe,
5901
5903
  NO_DOTS_SLASH: L,
@@ -5904,29 +5906,29 @@ function Tf() {
5904
5906
  } = e.globChars(h.windows), he = h.dot ? oe : U, le = h.dot ? L : U, be = h.capture ? "" : "?:", Y = { negated: !1, prefix: "" };
5905
5907
  let w = h.bash === !0 ? ".*?" : re;
5906
5908
  h.capture && (w = `(${w})`);
5907
- const q = (B) => B.noglobstar === !0 ? w : `(${be}(?:(?!${ue}${B.dot ? te : F}).)*?)`, ne = (B) => {
5909
+ const q = (B) => B.noglobstar === !0 ? w : `(${be}(?:(?!${ue}${B.dot ? Q : F}).)*?)`, ne = (B) => {
5908
5910
  switch (B) {
5909
5911
  case "*":
5910
- return `${he}${k}${w}`;
5912
+ return `${he}${K}${w}`;
5911
5913
  case ".*":
5912
- return `${F}${k}${w}`;
5914
+ return `${F}${K}${w}`;
5913
5915
  case "*.*":
5914
- return `${he}${w}${F}${k}${w}`;
5916
+ return `${he}${w}${F}${K}${w}`;
5915
5917
  case "*/*":
5916
- return `${he}${w}${W}${k}${le}${w}`;
5918
+ return `${he}${w}${W}${K}${le}${w}`;
5917
5919
  case "**":
5918
5920
  return he + q(h);
5919
5921
  case "**/*":
5920
- return `(?:${he}${q(h)}${W})?${le}${k}${w}`;
5922
+ return `(?:${he}${q(h)}${W})?${le}${K}${w}`;
5921
5923
  case "**/*.*":
5922
- return `(?:${he}${q(h)}${W})?${le}${w}${F}${k}${w}`;
5924
+ return `(?:${he}${q(h)}${W})?${le}${w}${F}${K}${w}`;
5923
5925
  case "**/.*":
5924
- return `(?:${he}${q(h)}${W})?${F}${k}${w}`;
5926
+ return `(?:${he}${q(h)}${W})?${F}${K}${w}`;
5925
5927
  default: {
5926
- const Q = /^(.*?)\.(\w+)$/.exec(B);
5927
- if (!Q) return;
5928
- const ve = ne(Q[1]);
5929
- return ve ? ve + F + Q[2] : void 0;
5928
+ const ee = /^(.*?)\.(\w+)$/.exec(B);
5929
+ if (!ee) return;
5930
+ const ve = ne(ee[1]);
5931
+ return ve ? ve + F + ee[2] : void 0;
5930
5932
  }
5931
5933
  }
5932
5934
  }, ce = t.removePrefix(p, Y);
@@ -5940,10 +5942,10 @@ function Rf() {
5940
5942
  hi = 1;
5941
5943
  const e = /* @__PURE__ */ Nf(), t = /* @__PURE__ */ Tf(), n = /* @__PURE__ */ so(), r = /* @__PURE__ */ oo(), o = (i) => i && typeof i == "object" && !Array.isArray(i), s = (i, c, l = !1) => {
5942
5944
  if (Array.isArray(i)) {
5943
- const W = i.map((te) => s(te, c, l));
5944
- return (te) => {
5945
+ const W = i.map((Q) => s(Q, c, l));
5946
+ return (Q) => {
5945
5947
  for (const U of W) {
5946
- const oe = U(te);
5948
+ const oe = U(Q);
5947
5949
  if (oe) return oe;
5948
5950
  }
5949
5951
  return !1;
@@ -5959,9 +5961,9 @@ function Rf() {
5959
5961
  const W = { ...c, ignore: null, onMatch: null, onResult: null };
5960
5962
  P = s(p.ignore, W, l);
5961
5963
  }
5962
- const F = (W, k = !1) => {
5963
- const { isMatch: te, match: U, output: oe } = s.test(W, h, c, { glob: i, posix: d }), L = { glob: i, state: S, regex: h, posix: d, input: W, output: oe, match: U, isMatch: te };
5964
- return typeof p.onResult == "function" && p.onResult(L), te === !1 ? (L.isMatch = !1, k ? L : !1) : P(W) ? (typeof p.onIgnore == "function" && p.onIgnore(L), L.isMatch = !1, k ? L : !1) : (typeof p.onMatch == "function" && p.onMatch(L), k ? L : !0);
5964
+ const F = (W, K = !1) => {
5965
+ const { isMatch: Q, match: U, output: oe } = s.test(W, h, c, { glob: i, posix: d }), L = { glob: i, state: S, regex: h, posix: d, input: W, output: oe, match: U, isMatch: Q };
5966
+ return typeof p.onResult == "function" && p.onResult(L), Q === !1 ? (L.isMatch = !1, K ? L : !1) : P(W) ? (typeof p.onIgnore == "function" && p.onIgnore(L), L.isMatch = !1, K ? L : !1) : (typeof p.onMatch == "function" && p.onMatch(L), K ? L : !0);
5965
5967
  };
5966
5968
  return l && (F.state = S), F;
5967
5969
  };
@@ -6851,7 +6853,7 @@ function mg() {
6851
6853
  }
6852
6854
  return !1;
6853
6855
  }
6854
- function k(a, u) {
6856
+ function K(a, u) {
6855
6857
  if (!a || !u) return !1;
6856
6858
  var m = d(u);
6857
6859
  return m ? m === a : function(v) {
@@ -6864,7 +6866,7 @@ function mg() {
6864
6866
  return O;
6865
6867
  }(u).indexOf(a) !== -1;
6866
6868
  }
6867
- function te(a) {
6869
+ function Q(a) {
6868
6870
  var u = [], m = void 0;
6869
6871
  try {
6870
6872
  m = a.frames;
@@ -6890,14 +6892,14 @@ function mg() {
6890
6892
  return u;
6891
6893
  }
6892
6894
  for (var V = 0; V < 100; V++) {
6893
- var K = void 0;
6895
+ var k = void 0;
6894
6896
  try {
6895
- K = m[V];
6897
+ k = m[V];
6896
6898
  } catch {
6897
6899
  return u;
6898
6900
  }
6899
- if (!K) return u;
6900
- u.push(K);
6901
+ if (!k) return u;
6902
+ u.push(k);
6901
6903
  }
6902
6904
  return u;
6903
6905
  }
@@ -7064,8 +7066,8 @@ function mg() {
7064
7066
  } catch {
7065
7067
  }
7066
7068
  this._cleanupClosedWindows();
7067
- var V = this.keys, K = this.values, X = le(V, u);
7068
- X === -1 ? (V.push(u), K.push(m)) : K[X] = m;
7069
+ var V = this.keys, k = this.values, X = le(V, u);
7070
+ X === -1 ? (V.push(u), k.push(m)) : k[X] = m;
7069
7071
  }, a.prototype.get = function(u) {
7070
7072
  if (!u) throw new Error("WeakMap expected key");
7071
7073
  var m = this.weakmap;
@@ -7204,7 +7206,7 @@ function mg() {
7204
7206
  return u = !0, a.apply(this, arguments);
7205
7207
  };
7206
7208
  };
7207
- function Q() {
7209
+ function ee() {
7208
7210
  }
7209
7211
  function ve() {
7210
7212
  var a = "0123456789abcdef";
@@ -7221,10 +7223,10 @@ function mg() {
7221
7223
  v = [];
7222
7224
  } else v = {};
7223
7225
  return function(O, $) {
7224
- Array.isArray(O) ? function(V, K) {
7225
- for (var X = 0; X < V.length; X++) K(V[X], X);
7226
- }(O, $) : (O === void 0 ? "undefined" : ce(O)) === "object" && O !== null && function(V, K) {
7227
- for (var X in V) V.hasOwnProperty(X) && K(V[X], X);
7226
+ Array.isArray(O) ? function(V, k) {
7227
+ for (var X = 0; X < V.length; X++) k(V[X], X);
7228
+ }(O, $) : (O === void 0 ? "undefined" : ce(O)) === "object" && O !== null && function(V, k) {
7229
+ for (var X in V) V.hasOwnProperty(X) && k(V[X], X);
7228
7230
  }(O, $);
7229
7231
  }(a, function(O, $) {
7230
7232
  var V = u(O, $);
@@ -7269,19 +7271,19 @@ function mg() {
7269
7271
  if (function(X, fe) {
7270
7272
  if (!(X instanceof a)) throw new TypeError("Cannot call a class as a function");
7271
7273
  }(this), this.resolved = !1, this.rejected = !1, this.errorHandled = !1, this.handlers = [], u) {
7272
- var v = void 0, O = void 0, $ = !1, V = !1, K = !1;
7274
+ var v = void 0, O = void 0, $ = !1, V = !1, k = !1;
7273
7275
  ge();
7274
7276
  try {
7275
7277
  u(function(X) {
7276
- K ? m.resolve(X) : ($ = !0, v = X);
7278
+ k ? m.resolve(X) : ($ = !0, v = X);
7277
7279
  }, function(X) {
7278
- K ? m.reject(X) : (V = !0, O = X);
7280
+ k ? m.reject(X) : (V = !0, O = X);
7279
7281
  });
7280
7282
  } catch (X) {
7281
7283
  Ie(), this.reject(X);
7282
7284
  return;
7283
7285
  }
7284
- Ie(), K = !0, $ ? this.resolve(v) : V && this.reject(O);
7286
+ Ie(), k = !0, $ ? this.resolve(v) : V && this.reject(O);
7285
7287
  }
7286
7288
  }
7287
7289
  return a.prototype.resolve = function(u) {
@@ -7319,26 +7321,26 @@ function mg() {
7319
7321
  me.reject(Me);
7320
7322
  });
7321
7323
  }, V = 0; V < O.length; V++) {
7322
- var K = O[V], X = K.onSuccess, fe = K.onError, ee = K.promise, z = void 0;
7324
+ var k = O[V], X = k.onSuccess, fe = k.onError, te = k.promise, z = void 0;
7323
7325
  if (m) try {
7324
7326
  z = X ? X(this.value) : this.value;
7325
7327
  } catch (de) {
7326
- ee.reject(de);
7328
+ te.reject(de);
7327
7329
  continue;
7328
7330
  }
7329
7331
  else if (v) {
7330
7332
  if (!fe) {
7331
- ee.reject(this.error);
7333
+ te.reject(this.error);
7332
7334
  continue;
7333
7335
  }
7334
7336
  try {
7335
7337
  z = fe(this.error);
7336
7338
  } catch (de) {
7337
- ee.reject(de);
7339
+ te.reject(de);
7338
7340
  continue;
7339
7341
  }
7340
7342
  }
7341
- z instanceof a && (z.resolved || z.rejected) ? (z.resolved ? ee.resolve(z.value) : ee.reject(z.error), z.errorHandled = !0) : Re(z) ? z instanceof a && (z.resolved || z.rejected) ? z.resolved ? ee.resolve(z.value) : ee.reject(z.error) : $(z, ee) : ee.resolve(z);
7343
+ z instanceof a && (z.resolved || z.rejected) ? (z.resolved ? te.resolve(z.value) : te.reject(z.error), z.errorHandled = !0) : Re(z) ? z instanceof a && (z.resolved || z.rejected) ? z.resolved ? te.resolve(z.value) : te.reject(z.error) : $(z, te) : te.resolve(z);
7342
7344
  }
7343
7345
  O.length = 0, this.dispatching = !1, Ie();
7344
7346
  }
@@ -7388,24 +7390,24 @@ function mg() {
7388
7390
  var m = new a(), v = u.length, O = [];
7389
7391
  if (!v)
7390
7392
  return m.resolve(O), m;
7391
- for (var $ = function(X, fe, ee) {
7393
+ for (var $ = function(X, fe, te) {
7392
7394
  return fe.then(function(z) {
7393
7395
  O[X] = z, (v -= 1) == 0 && m.resolve(O);
7394
7396
  }, function(z) {
7395
- ee.reject(z);
7397
+ te.reject(z);
7396
7398
  });
7397
7399
  }, V = 0; V < u.length; V++) {
7398
- var K = u[V];
7399
- if (K instanceof a) {
7400
- if (K.resolved) {
7401
- O[V] = K.value, v -= 1;
7400
+ var k = u[V];
7401
+ if (k instanceof a) {
7402
+ if (k.resolved) {
7403
+ O[V] = k.value, v -= 1;
7402
7404
  continue;
7403
7405
  }
7404
- } else if (!Re(K)) {
7405
- O[V] = K, v -= 1;
7406
+ } else if (!Re(k)) {
7407
+ O[V] = k, v -= 1;
7406
7408
  continue;
7407
7409
  }
7408
- $(V, a.resolve(K), m);
7410
+ $(V, a.resolve(k), m);
7409
7411
  }
7410
7412
  return v === 0 && m.resolve(O), m;
7411
7413
  }, a.hash = function(u) {
@@ -7553,25 +7555,25 @@ function mg() {
7553
7555
  function N(a, u, m) {
7554
7556
  return we.try(function() {
7555
7557
  var v;
7556
- if (u = function(V, K) {
7557
- var X = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, fe = ve(), ee = function() {
7558
+ if (u = function(V, k) {
7559
+ var X = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, fe = ve(), te = function() {
7558
7560
  var de = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
7559
7561
  return !!h(de);
7560
7562
  }() ? w.WINDOW_TYPES.POPUP : function() {
7561
7563
  var de = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
7562
7564
  return !!d(de);
7563
7565
  }() ? w.WINDOW_TYPES.IFRAME : w.WINDOW_TYPES.FULLPAGE, z = F(window);
7564
- return b({}, K, X, {
7566
+ return b({}, k, X, {
7565
7567
  sourceDomain: z,
7566
- id: K.id || fe,
7567
- windowType: ee
7568
+ id: k.id || fe,
7569
+ windowType: te
7568
7570
  });
7569
7571
  }(a, u, {
7570
- data: function(V, K, X) {
7572
+ data: function(V, k, X) {
7571
7573
  return T({
7572
7574
  obj: u.data
7573
- }, function(fe, ee) {
7574
- return typeof fe == "function" ? y(V, K, fe, ee.toString()) : fe instanceof Error ? (z = fe, {
7575
+ }, function(fe, te) {
7576
+ return typeof fe == "function" ? y(V, k, fe, te.toString()) : fe instanceof Error ? (z = fe, {
7575
7577
  __type__: w.SERIALIZATION_TYPES.ERROR,
7576
7578
  __message__: ie(z),
7577
7579
  __code__: z.code
@@ -7582,14 +7584,14 @@ function mg() {
7582
7584
  return ze.then(Je, Ye);
7583
7585
  }, Pe + ".then")
7584
7586
  };
7585
- }(V, K, fe, ee.toString()) : we.isPromise(fe) ? function(me, Me, ze, Pe) {
7587
+ }(V, k, fe, te.toString()) : we.isPromise(fe) ? function(me, Me, ze, Pe) {
7586
7588
  return {
7587
7589
  __type__: w.SERIALIZATION_TYPES.ZALGO_PROMISE,
7588
7590
  __then__: y(me, Me, function(Je, Ye) {
7589
7591
  return ze.then(Je, Ye);
7590
7592
  }, Pe + ".then")
7591
7593
  };
7592
- }(V, K, fe, ee.toString()) : _e(fe) ? (de = fe, {
7594
+ }(V, k, fe, te.toString()) : _e(fe) ? (de = fe, {
7593
7595
  __type__: w.SERIALIZATION_TYPES.REGEX,
7594
7596
  __source__: de.source
7595
7597
  }) : void 0;
@@ -7599,17 +7601,17 @@ function mg() {
7599
7601
  domain: m
7600
7602
  }), a === window && !ne.ALLOW_SAME_ORIGIN) throw new Error("Attemping to send message to self");
7601
7603
  if (L(a)) throw new Error("Window is closed");
7602
- var O = [], $ = function(V, K, X) {
7603
- var fe = void 0, ee = void 0;
7604
+ var O = [], $ = function(V, k, X) {
7605
+ var fe = void 0, te = void 0;
7604
7606
  try {
7605
7607
  if (JSON.stringify({}) !== "{}" && (fe = Object.prototype.toJSON, delete Object.prototype.toJSON), JSON.stringify({}) !== "{}") throw new Error("Can not correctly serialize JSON objects");
7606
- if (JSON.stringify([]) !== "[]" && (ee = Array.prototype.toJSON, delete Array.prototype.toJSON), JSON.stringify([]) !== "[]") throw new Error("Can not correctly serialize JSON objects");
7608
+ if (JSON.stringify([]) !== "[]" && (te = Array.prototype.toJSON, delete Array.prototype.toJSON), JSON.stringify([]) !== "[]") throw new Error("Can not correctly serialize JSON objects");
7607
7609
  } catch (de) {
7608
7610
  throw new Error("Can not repair JSON.stringify: " + de.message);
7609
7611
  }
7610
7612
  var z = JSON.stringify.call(this, V, null, 2);
7611
7613
  try {
7612
- fe && (Object.prototype.toJSON = fe), ee && (Array.prototype.toJSON = ee);
7614
+ fe && (Object.prototype.toJSON = fe), te && (Array.prototype.toJSON = te);
7613
7615
  } catch (de) {
7614
7616
  throw new Error("Can not repair JSON.stringify: " + de.message);
7615
7617
  }
@@ -7621,16 +7623,16 @@ function mg() {
7621
7623
  return I[V](a, $, m);
7622
7624
  }).then(function() {
7623
7625
  return O.push(V + ": success"), !0;
7624
- }, function(K) {
7625
- return O.push(V + ": " + ie(K) + `
7626
+ }, function(k) {
7627
+ return O.push(V + ": " + ie(k) + `
7626
7628
  `), !1;
7627
7629
  });
7628
7630
  }).then(function(V) {
7629
- var K = V.some(Boolean), X = u.type + " " + u.name + " " + (K ? "success" : "error") + `:
7631
+ var k = V.some(Boolean), X = u.type + " " + u.name + " " + (k ? "success" : "error") + `:
7630
7632
  - ` + O.join(`
7631
7633
  - `) + `
7632
7634
  `;
7633
- if (!K) throw new Error(X);
7635
+ if (!k) throw new Error(X);
7634
7636
  });
7635
7637
  });
7636
7638
  }
@@ -7650,13 +7652,13 @@ function mg() {
7650
7652
  var u = a.name, m = a.win, v = a.domain;
7651
7653
  if (m === w.WILDCARD && (m = null), v === w.WILDCARD && (v = null), !u) throw new Error("Name required to get request listener");
7652
7654
  var O = H.requestListeners[u];
7653
- if (O) for (var $ = 0, V = [m, H.WINDOW_WILDCARD], K = V == null ? 0 : V.length; $ < K; $++) {
7655
+ if (O) for (var $ = 0, V = [m, H.WINDOW_WILDCARD], k = V == null ? 0 : V.length; $ < k; $++) {
7654
7656
  var X = V[$], fe = X && O.get(X);
7655
7657
  if (fe) {
7656
7658
  if (v && typeof v == "string") {
7657
7659
  if (fe[v]) return fe[v];
7658
- if (fe[G]) for (var ee = 0, z = fe[G], de = z == null ? 0 : z.length; ee < de; ee++) {
7659
- var me = z[ee], Me = me.regex, ze = me.listener;
7660
+ if (fe[G]) for (var te = 0, z = fe[G], de = z == null ? 0 : z.length; te < de; te++) {
7661
+ var me = z[te], Me = me.regex, ze = me.listener;
7660
7662
  if (ue(Me, v)) return ze;
7661
7663
  }
7662
7664
  }
@@ -7708,14 +7710,14 @@ function mg() {
7708
7710
  data: $
7709
7711
  });
7710
7712
  }, function($) {
7711
- var V = ie($).replace(/^Error: /, ""), K = $.code;
7713
+ var V = ie($).replace(/^Error: /, ""), k = $.code;
7712
7714
  return O({
7713
7715
  type: w.POST_MESSAGE_TYPE.RESPONSE,
7714
7716
  ack: w.POST_MESSAGE_ACK.ERROR,
7715
7717
  error: V,
7716
- code: K
7718
+ code: k
7717
7719
  });
7718
- })]).then(Q).catch(function($) {
7720
+ })]).then(ee).catch(function($) {
7719
7721
  if (v && v.handleError) return v.handleError($);
7720
7722
  throw $;
7721
7723
  });
@@ -7764,17 +7766,17 @@ function mg() {
7764
7766
  v.sourceDomain.indexOf(w.MOCK_PROTOCOL) !== 0 && v.sourceDomain.indexOf(w.FILE_PROTOCOL) !== 0 || (m = v.sourceDomain), H.receivedMessages.indexOf(v.id) === -1 && (H.receivedMessages.push(v.id), (!L(u) || v.fireAndForget) && (v.data && (v.data = function(O, $, V) {
7765
7767
  return T({
7766
7768
  obj: v.data
7767
- }, function(K) {
7768
- if ((K === void 0 ? "undefined" : $e(K)) === "object" && K !== null) return g(K, w.SERIALIZATION_TYPES.METHOD) ? C(O, $, K) : g(K, w.SERIALIZATION_TYPES.ERROR) ? function(X, fe, ee) {
7769
- var z = new Error(ee.__message__);
7770
- return ee.__code__ && (z.code = ee.__code__), z;
7771
- }(0, 0, K) : g(K, w.SERIALIZATION_TYPES.PROMISE) ? function(X, fe, ee) {
7769
+ }, function(k) {
7770
+ if ((k === void 0 ? "undefined" : $e(k)) === "object" && k !== null) return g(k, w.SERIALIZATION_TYPES.METHOD) ? C(O, $, k) : g(k, w.SERIALIZATION_TYPES.ERROR) ? function(X, fe, te) {
7771
+ var z = new Error(te.__message__);
7772
+ return te.__code__ && (z.code = te.__code__), z;
7773
+ }(0, 0, k) : g(k, w.SERIALIZATION_TYPES.PROMISE) ? function(X, fe, te) {
7772
7774
  return window.Promise ? new window.Promise(function(z, de) {
7773
- return C(X, fe, ee.__then__)(z, de);
7774
- }) : x(X, fe, ee);
7775
- }(O, $, K) : g(K, w.SERIALIZATION_TYPES.ZALGO_PROMISE) ? x(O, $, K) : g(K, w.SERIALIZATION_TYPES.REGEX) ? function(X, fe, ee) {
7776
- return new RegExp(ee.__source__);
7777
- }(0, 0, K) : void 0;
7775
+ return C(X, fe, te.__then__)(z, de);
7776
+ }) : x(X, fe, te);
7777
+ }(O, $, k) : g(k, w.SERIALIZATION_TYPES.ZALGO_PROMISE) ? x(O, $, k) : g(k, w.SERIALIZATION_TYPES.REGEX) ? function(X, fe, te) {
7778
+ return new RegExp(te.__source__);
7779
+ }(0, 0, k) : void 0;
7778
7780
  }).obj;
7779
7781
  }(u, m)), Se[v.type](u, m, v)));
7780
7782
  }
@@ -7813,13 +7815,13 @@ function mg() {
7813
7815
  v = a.domain || w.WILDCARD;
7814
7816
  var V = a.name + "_" + ve();
7815
7817
  if (L($)) throw new Error("Target window is closed");
7816
- var K = !1, X = H.requestPromises.get($);
7818
+ var k = !1, X = H.requestPromises.get($);
7817
7819
  X || (X = [], H.requestPromises.set($, X));
7818
7820
  var fe = we.try(function() {
7819
- if (function(ee, z) {
7821
+ if (function(te, z) {
7820
7822
  var de = re(z);
7821
- if (de) return de === ee;
7822
- if (z === ee || function() {
7823
+ if (de) return de === te;
7824
+ if (z === te || function() {
7823
7825
  var Pe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
7824
7826
  try {
7825
7827
  if (Pe.top) return Pe.top;
@@ -7827,15 +7829,15 @@ function mg() {
7827
7829
  }
7828
7830
  if (d(Pe) === Pe) return Pe;
7829
7831
  try {
7830
- if (k(window, Pe) && window.top) return window.top;
7832
+ if (K(window, Pe) && window.top) return window.top;
7831
7833
  } catch {
7832
7834
  }
7833
7835
  try {
7834
- if (k(Pe, window) && window.top) return window.top;
7836
+ if (K(Pe, window) && window.top) return window.top;
7835
7837
  } catch {
7836
7838
  }
7837
7839
  for (var Je = 0, Ye = function Mt(fo) {
7838
- for (var Wn = [], Fn = 0, vn = te(fo), qt = vn == null ? 0 : vn.length; Fn < qt; Fn++) {
7840
+ for (var Wn = [], Fn = 0, vn = Q(fo), qt = vn == null ? 0 : vn.length; Fn < qt; Fn++) {
7839
7841
  var pt = vn[Fn];
7840
7842
  Wn.push(pt);
7841
7843
  for (var En = 0, _t = Mt(pt), yn = _t == null ? 0 : _t.length; En < yn; En++) {
@@ -7853,22 +7855,22 @@ function mg() {
7853
7855
  if (d($t) === $t) return $t;
7854
7856
  }
7855
7857
  }(z) === z) return !1;
7856
- for (var me = 0, Me = te(ee), ze = Me == null ? 0 : Me.length; me < ze; me++) if (Me[me] === z) return !0;
7858
+ for (var me = 0, Me = Q(te), ze = Me == null ? 0 : Me.length; me < ze; me++) if (Me[me] === z) return !0;
7857
7859
  return !1;
7858
- }(window, $)) return function(ee) {
7859
- var z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 5e3, de = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "Window", me = H.readyPromises.get(ee);
7860
- return me || (me = new we(), H.readyPromises.set(ee, me), z !== -1 && setTimeout(function() {
7860
+ }(window, $)) return function(te) {
7861
+ var z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 5e3, de = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "Window", me = H.readyPromises.get(te);
7862
+ return me || (me = new we(), H.readyPromises.set(te, me), z !== -1 && setTimeout(function() {
7861
7863
  return me.reject(new Error(de + " did not load after " + z + "ms"));
7862
7864
  }, z), me);
7863
7865
  }($, a.timeout || ne.CHILD_WINDOW_TIMEOUT);
7864
7866
  }).then(function() {
7865
- var ee = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).origin;
7866
- if (_e(v) && !ee) return _($);
7867
+ var te = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).origin;
7868
+ if (_e(v) && !te) return _($);
7867
7869
  }).then(function() {
7868
- var ee = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).origin;
7870
+ var te = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).origin;
7869
7871
  if (_e(v)) {
7870
- if (!ue(v, ee)) throw new Error("Remote window domain " + ee + " does not match regex: " + v.toString());
7871
- v = ee;
7872
+ if (!ue(v, te)) throw new Error("Remote window domain " + te + " does not match regex: " + v.toString());
7873
+ v = te;
7872
7874
  }
7873
7875
  if (typeof v != "string" && !Array.isArray(v)) throw new TypeError("Expected domain to be a string or array");
7874
7876
  var z = v;
@@ -7881,7 +7883,7 @@ function mg() {
7881
7883
  window: $,
7882
7884
  domain: z,
7883
7885
  respond: function(Ye, yt) {
7884
- Ye || (K = !0, X.splice(X.indexOf(fe, 1))), Ye ? me(Ye) : de(yt);
7886
+ Ye || (k = !0, X.splice(X.indexOf(fe, 1))), Ye ? me(Ye) : de(yt);
7885
7887
  }
7886
7888
  }), N($, {
7887
7889
  type: w.POST_MESSAGE_TYPE.REQUEST,
@@ -7892,7 +7894,7 @@ function mg() {
7892
7894
  }, z).catch(me), a.fireAndForget) return de();
7893
7895
  var ze = ne.ACK_TIMEOUT, Pe = a.timeout || ne.RES_TIMEOUT, Je = 100;
7894
7896
  setTimeout(function Ye() {
7895
- if (!K) {
7897
+ if (!k) {
7896
7898
  if (L($)) return Me.ack ? me(new Error("Window closed for " + u + " before response")) : me(new Error("Window closed for " + u + " before ack"));
7897
7899
  if (ze = Math.max(ze - Je, 0), Pe !== -1 && (Pe = Math.max(Pe - Je, 0)), Me.ack) {
7898
7900
  if (Pe === -1) return;
@@ -7907,8 +7909,8 @@ function mg() {
7907
7909
  });
7908
7910
  });
7909
7911
  return fe.catch(function() {
7910
- (function(ee) {
7911
- H.erroredResponseListeners[ee] = !0;
7912
+ (function(te) {
7913
+ H.erroredResponseListeners[te] = !0;
7912
7914
  })(V), Z(V);
7913
7915
  }), X.push(fe), fe;
7914
7916
  });
@@ -7949,7 +7951,7 @@ function mg() {
7949
7951
  window: m,
7950
7952
  domain: v || w.WILDCARD,
7951
7953
  name: u
7952
- }, $ = function X(fe, ee) {
7954
+ }, $ = function X(fe, te) {
7953
7955
  var z = fe.name, de = fe.win, me = fe.domain;
7954
7956
  if (!z || typeof z != "string") throw new Error("Name required to add request listener");
7955
7957
  if (Array.isArray(de)) {
@@ -7959,7 +7961,7 @@ function mg() {
7959
7961
  name: z,
7960
7962
  domain: me,
7961
7963
  win: Ye
7962
- }, ee));
7964
+ }, te));
7963
7965
  }
7964
7966
  return {
7965
7967
  cancel: function() {
@@ -7974,7 +7976,7 @@ function mg() {
7974
7976
  name: z,
7975
7977
  win: de,
7976
7978
  domain: Wn
7977
- }, ee));
7979
+ }, te));
7978
7980
  }
7979
7981
  return {
7980
7982
  cancel: function() {
@@ -7995,8 +7997,8 @@ function mg() {
7995
7997
  var En = me.toString(), _t = pt[G], yn = void 0;
7996
7998
  return _e(me) ? (_t || (_t = [], pt[G] = _t), yn = {
7997
7999
  regex: me,
7998
- listener: ee
7999
- }, _t.push(yn)) : pt[En] = ee, {
8000
+ listener: te
8001
+ }, _t.push(yn)) : pt[En] = te, {
8000
8002
  cancel: function() {
8001
8003
  pt && (delete pt[En], de && Object.keys(pt).length === 0 && qt.delete(de), yn && _t.splice(_t.indexOf(yn, 1)));
8002
8004
  }
@@ -8012,15 +8014,15 @@ function mg() {
8012
8014
  return $.cancel(), V.apply(this, arguments);
8013
8015
  });
8014
8016
  }
8015
- if (O.window && a.errorOnClose) var K = function(X, fe) {
8016
- var ee = void 0;
8017
- return ee = setTimeout(function z() {
8018
- ee = setTimeout(z, 50), (function() {
8019
- m && (m === void 0 ? "undefined" : ft(m)) === "object" && L(m) && (K.cancel(), O.handleError(new Error("Post message target window is closed")));
8017
+ if (O.window && a.errorOnClose) var k = function(X, fe) {
8018
+ var te = void 0;
8019
+ return te = setTimeout(function z() {
8020
+ te = setTimeout(z, 50), (function() {
8021
+ m && (m === void 0 ? "undefined" : ft(m)) === "object" && L(m) && (k.cancel(), O.handleError(new Error("Post message target window is closed")));
8020
8022
  }).call();
8021
8023
  }, 50), {
8022
8024
  cancel: function() {
8023
- clearTimeout(ee);
8025
+ clearTimeout(te);
8024
8026
  }
8025
8027
  };
8026
8028
  }();
@@ -8036,11 +8038,11 @@ function mg() {
8036
8038
  function Ss(a) {
8037
8039
  var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = arguments[2];
8038
8040
  typeof u == "function" && (m = u, u = {}), u = u || {}, m = m || u.handler;
8039
- var v = u.errorHandler, O = new we(function(V, K) {
8041
+ var v = u.errorHandler, O = new we(function(V, k) {
8040
8042
  (u = u || {}).name = a, u.once = !0, u.handler = function(X) {
8041
8043
  if (V(X), m) return m(X);
8042
8044
  }, u.errorHandler = function(X) {
8043
- if (K(X), v) return v(X);
8045
+ if (k(X), v) return v(X);
8044
8046
  };
8045
8047
  }), $ = rn(u);
8046
8048
  return O.cancel = $.cancel, O;
@@ -8067,10 +8069,10 @@ function mg() {
8067
8069
  function lo() {
8068
8070
  H.initialized || (u = ot, (a = window).addEventListener ? a.addEventListener("message", u) : a.attachEvent("onmessage", u), function() {
8069
8071
  m = function(O) {
8070
- var $ = O.source, V = O.origin, K = H.readyPromises.get($) || new we();
8071
- K.resolve({
8072
+ var $ = O.source, V = O.origin, k = H.readyPromises.get($) || new we();
8073
+ k.resolve({
8072
8074
  origin: V
8073
- }), H.readyPromises.set($, K);
8075
+ }), H.readyPromises.set($, k);
8074
8076
  }, H.on(w.POST_MESSAGE_NAMES.HELLO, {
8075
8077
  domain: w.WILDCARD
8076
8078
  }, function(O) {
@@ -8081,7 +8083,7 @@ function mg() {
8081
8083
  });
8082
8084
  });
8083
8085
  var m, v = re();
8084
- v && _(v).catch(Q);
8086
+ v && _(v).catch(ee);
8085
8087
  }(), f({
8086
8088
  on: Hn,
8087
8089
  send: lt