@das-fed/mframe 0.0.15 → 0.0.17
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/es5.js +419 -417
- package/index.js +385 -379
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -462,11 +462,11 @@ function St(e, t, n, r, o, s) {
|
|
|
462
462
|
rs();
|
|
463
463
|
}
|
|
464
464
|
function yn(e) {
|
|
465
|
-
const t =
|
|
465
|
+
const t = ve(e);
|
|
466
466
|
return t === e ? t : (We(t, "iterate", rr), rt(e) ? t : t.map(Ze));
|
|
467
467
|
}
|
|
468
468
|
function is(e) {
|
|
469
|
-
return We(e =
|
|
469
|
+
return We(e = ve(e), "iterate", rr), e;
|
|
470
470
|
}
|
|
471
471
|
const Ma = {
|
|
472
472
|
__proto__: null,
|
|
@@ -590,14 +590,14 @@ function Ds(e, t, n, r) {
|
|
|
590
590
|
}), o[t](s, ...r);
|
|
591
591
|
}
|
|
592
592
|
function go(e, t, n) {
|
|
593
|
-
const r =
|
|
593
|
+
const r = ve(e);
|
|
594
594
|
We(r, "iterate", rr);
|
|
595
595
|
const o = r[t](...n);
|
|
596
|
-
return (o === -1 || o === !1) && Mr(n[0]) ? (n[0] =
|
|
596
|
+
return (o === -1 || o === !1) && Mr(n[0]) ? (n[0] = ve(n[0]), r[t](...n)) : o;
|
|
597
597
|
}
|
|
598
598
|
function Bn(e, t, n = []) {
|
|
599
599
|
Bt(), ns();
|
|
600
|
-
const r =
|
|
600
|
+
const r = ve(e)[t].apply(e, n);
|
|
601
601
|
return rs(), Ut(), r;
|
|
602
602
|
}
|
|
603
603
|
const Va = /* @__PURE__ */ Pn("__proto__,__v_isRef,__isVue"), Ji = new Set(
|
|
@@ -605,7 +605,7 @@ const Va = /* @__PURE__ */ Pn("__proto__,__v_isRef,__isVue"), Ji = new Set(
|
|
|
605
605
|
);
|
|
606
606
|
function ja(e) {
|
|
607
607
|
In(e) || (e = String(e));
|
|
608
|
-
const t =
|
|
608
|
+
const t = ve(this);
|
|
609
609
|
return We(t, "has", e), t.hasOwnProperty(e);
|
|
610
610
|
}
|
|
611
611
|
class Xi {
|
|
@@ -652,7 +652,7 @@ class Zi extends Xi {
|
|
|
652
652
|
let s = t[n];
|
|
653
653
|
if (!this._isShallow) {
|
|
654
654
|
const l = Ft(s);
|
|
655
|
-
if (!rt(r) && !Ft(r) && (s =
|
|
655
|
+
if (!rt(r) && !Ft(r) && (s = ve(s), r = ve(r)), !ce(t) && Ve(s) && !Ve(r))
|
|
656
656
|
return l ? !1 : (s.value = r, !0);
|
|
657
657
|
}
|
|
658
658
|
const i = ce(t) && es(n) ? Number(n) < t.length : be(t, n), c = Reflect.set(
|
|
@@ -661,7 +661,7 @@ class Zi extends Xi {
|
|
|
661
661
|
r,
|
|
662
662
|
Ve(t) ? t : o
|
|
663
663
|
);
|
|
664
|
-
return t ===
|
|
664
|
+
return t === ve(o) && (i ? Zt(r, s) && St(t, "set", n, r, s) : St(t, "add", n, r)), c;
|
|
665
665
|
}
|
|
666
666
|
deleteProperty(t, n) {
|
|
667
667
|
const r = be(t, n), o = t[n], s = Reflect.deleteProperty(t, n);
|
|
@@ -699,7 +699,7 @@ class Qi extends Xi {
|
|
|
699
699
|
const Ha = /* @__PURE__ */ new Zi(), Wa = /* @__PURE__ */ new Qi(), Fa = /* @__PURE__ */ new Zi(!0), Ba = /* @__PURE__ */ new Qi(!0), Mo = (e) => e, vr = (e) => Reflect.getPrototypeOf(e);
|
|
700
700
|
function Ua(e, t, n) {
|
|
701
701
|
return function(...r) {
|
|
702
|
-
const o = this.__v_raw, s =
|
|
702
|
+
const o = this.__v_raw, s = ve(o), i = Sn(s), c = e === "entries" || e === Symbol.iterator && i, l = e === "keys" && i, E = o[e](...r), p = n ? Mo : t ? Lo : Ze;
|
|
703
703
|
return !t && We(
|
|
704
704
|
s,
|
|
705
705
|
"iterate",
|
|
@@ -726,7 +726,7 @@ function Er(e) {
|
|
|
726
726
|
const n = t[0] ? `on key "${t[0]}" ` : "";
|
|
727
727
|
Rt(
|
|
728
728
|
`${qr(e)} operation ${n}failed: target is readonly.`,
|
|
729
|
-
|
|
729
|
+
ve(this)
|
|
730
730
|
);
|
|
731
731
|
}
|
|
732
732
|
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
@@ -735,7 +735,7 @@ function Er(e) {
|
|
|
735
735
|
function Ga(e, t) {
|
|
736
736
|
const n = {
|
|
737
737
|
get(o) {
|
|
738
|
-
const s = this.__v_raw, i =
|
|
738
|
+
const s = this.__v_raw, i = ve(s), c = ve(o);
|
|
739
739
|
e || (Zt(o, c) && We(i, "get", o), We(i, "get", c));
|
|
740
740
|
const { has: l } = vr(i), E = t ? Mo : e ? Lo : Ze;
|
|
741
741
|
if (l.call(i, o))
|
|
@@ -746,14 +746,14 @@ function Ga(e, t) {
|
|
|
746
746
|
},
|
|
747
747
|
get size() {
|
|
748
748
|
const o = this.__v_raw;
|
|
749
|
-
return !e && We(
|
|
749
|
+
return !e && We(ve(o), "iterate", un), Reflect.get(o, "size", o);
|
|
750
750
|
},
|
|
751
751
|
has(o) {
|
|
752
|
-
const s = this.__v_raw, i =
|
|
752
|
+
const s = this.__v_raw, i = ve(s), c = ve(o);
|
|
753
753
|
return e || (Zt(o, c) && We(i, "has", o), We(i, "has", c)), o === c ? s.has(o) : s.has(o) || s.has(c);
|
|
754
754
|
},
|
|
755
755
|
forEach(o, s) {
|
|
756
|
-
const i = this, c = i.__v_raw, l =
|
|
756
|
+
const i = this, c = i.__v_raw, l = ve(c), E = t ? Mo : e ? Lo : Ze;
|
|
757
757
|
return !e && We(l, "iterate", un), c.forEach((p, d) => o.call(s, E(p), E(d), i));
|
|
758
758
|
}
|
|
759
759
|
};
|
|
@@ -766,27 +766,27 @@ function Ga(e, t) {
|
|
|
766
766
|
clear: Er("clear")
|
|
767
767
|
} : {
|
|
768
768
|
add(o) {
|
|
769
|
-
!t && !rt(o) && !Ft(o) && (o =
|
|
770
|
-
const s =
|
|
769
|
+
!t && !rt(o) && !Ft(o) && (o = ve(o));
|
|
770
|
+
const s = ve(this);
|
|
771
771
|
return vr(s).has.call(s, o) || (s.add(o), St(s, "add", o, o)), this;
|
|
772
772
|
},
|
|
773
773
|
set(o, s) {
|
|
774
|
-
!t && !rt(s) && !Ft(s) && (s =
|
|
775
|
-
const i =
|
|
774
|
+
!t && !rt(s) && !Ft(s) && (s = ve(s));
|
|
775
|
+
const i = ve(this), { has: c, get: l } = vr(i);
|
|
776
776
|
let E = c.call(i, o);
|
|
777
|
-
E ? process.env.NODE_ENV !== "production" && Cs(i, c, o) : (o =
|
|
777
|
+
E ? process.env.NODE_ENV !== "production" && Cs(i, c, o) : (o = ve(o), E = c.call(i, o));
|
|
778
778
|
const p = l.call(i, o);
|
|
779
779
|
return i.set(o, s), E ? Zt(s, p) && St(i, "set", o, s, p) : St(i, "add", o, s), this;
|
|
780
780
|
},
|
|
781
781
|
delete(o) {
|
|
782
|
-
const s =
|
|
782
|
+
const s = ve(this), { has: i, get: c } = vr(s);
|
|
783
783
|
let l = i.call(s, o);
|
|
784
|
-
l ? process.env.NODE_ENV !== "production" && Cs(s, i, o) : (o =
|
|
784
|
+
l ? process.env.NODE_ENV !== "production" && Cs(s, i, o) : (o = ve(o), l = i.call(s, o));
|
|
785
785
|
const E = c ? c.call(s, o) : void 0, p = s.delete(o);
|
|
786
786
|
return l && St(s, "delete", o, void 0, E), p;
|
|
787
787
|
},
|
|
788
788
|
clear() {
|
|
789
|
-
const o =
|
|
789
|
+
const o = ve(this), s = o.size !== 0, i = process.env.NODE_ENV !== "production" ? Sn(o) ? new Map(o) : new Set(o) : void 0, c = o.clear();
|
|
790
790
|
return s && St(
|
|
791
791
|
o,
|
|
792
792
|
"clear",
|
|
@@ -823,7 +823,7 @@ const Ka = {
|
|
|
823
823
|
get: /* @__PURE__ */ zr(!0, !0)
|
|
824
824
|
};
|
|
825
825
|
function Cs(e, t, n) {
|
|
826
|
-
const r =
|
|
826
|
+
const r = ve(n);
|
|
827
827
|
if (r !== n && t.call(e, r)) {
|
|
828
828
|
const o = Qo(e);
|
|
829
829
|
Rt(
|
|
@@ -918,9 +918,9 @@ function rt(e) {
|
|
|
918
918
|
function Mr(e) {
|
|
919
919
|
return e ? !!e.__v_raw : !1;
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function ve(e) {
|
|
922
922
|
const t = e && e.__v_raw;
|
|
923
|
-
return t ?
|
|
923
|
+
return t ? ve(t) : e;
|
|
924
924
|
}
|
|
925
925
|
function Za(e) {
|
|
926
926
|
return !be(e, "__v_skip") && Object.isExtensible(e) && $r(e, "__v_skip", !0), e;
|
|
@@ -937,7 +937,7 @@ function Qa(e, t) {
|
|
|
937
937
|
}
|
|
938
938
|
class eu {
|
|
939
939
|
constructor(t, n) {
|
|
940
|
-
this.dep = new ss(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t :
|
|
940
|
+
this.dep = new ss(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t : ve(t), this._value = n ? t : Ze(t), this.__v_isShallow = n;
|
|
941
941
|
}
|
|
942
942
|
get value() {
|
|
943
943
|
return process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
@@ -948,7 +948,7 @@ class eu {
|
|
|
948
948
|
}
|
|
949
949
|
set value(t) {
|
|
950
950
|
const n = this._rawValue, r = this.__v_isShallow || rt(t) || Ft(t);
|
|
951
|
-
t = r ? t :
|
|
951
|
+
t = r ? t : ve(t), Zt(t, n) && (this._rawValue = t, this._value = r ? t : Ze(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
952
952
|
target: this,
|
|
953
953
|
type: "set",
|
|
954
954
|
key: "value",
|
|
@@ -1048,8 +1048,8 @@ function su(e, t, n = Ne) {
|
|
|
1048
1048
|
const L = h, ne = o === !0 ? 1 / 0 : o;
|
|
1049
1049
|
h = () => Wt(L(), ne);
|
|
1050
1050
|
}
|
|
1051
|
-
const
|
|
1052
|
-
d.stop(),
|
|
1051
|
+
const z = Pa(), te = () => {
|
|
1052
|
+
d.stop(), z && z.active && Xo(z.effects, d);
|
|
1053
1053
|
};
|
|
1054
1054
|
if (s && t) {
|
|
1055
1055
|
const L = t;
|
|
@@ -1196,7 +1196,7 @@ function uu(e) {
|
|
|
1196
1196
|
}), n.length > 3 && t.push(" ..."), t;
|
|
1197
1197
|
}
|
|
1198
1198
|
function ic(e, t, n) {
|
|
1199
|
-
return He(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : Ve(t) ? (t = ic(e,
|
|
1199
|
+
return He(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : Ve(t) ? (t = ic(e, ve(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : ue(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = ve(t), n ? t : [`${e}=`, t]);
|
|
1200
1200
|
}
|
|
1201
1201
|
const as = {
|
|
1202
1202
|
sp: "serverPrefetch hook",
|
|
@@ -1614,7 +1614,7 @@ function Wr(e, t, n, r, o = !1) {
|
|
|
1614
1614
|
);
|
|
1615
1615
|
return;
|
|
1616
1616
|
}
|
|
1617
|
-
const E = t && t.r, p = c.refs === Ne ? c.refs = {} : c.refs, d = c.setupState, h =
|
|
1617
|
+
const E = t && t.r, p = c.refs === Ne ? c.refs = {} : c.refs, d = c.setupState, h = ve(d), O = d === Ne ? () => !1 : ($) => process.env.NODE_ENV !== "production" && (be(h, $) && !Ve(h[$]) && H(
|
|
1618
1618
|
`Template ref "${$}" used on a non-ref value. It will not work in the production build.`
|
|
1619
1619
|
), Du.has(h[$])) ? !1 : be(h, $);
|
|
1620
1620
|
if (E != null && E !== l && (He(E) ? (p[E] = null, O(E) && (d[E] = null)) : Ve(E) && (E.value = null)), ue(l))
|
|
@@ -1624,8 +1624,8 @@ function Wr(e, t, n, r, o = !1) {
|
|
|
1624
1624
|
if ($ || j) {
|
|
1625
1625
|
const F = () => {
|
|
1626
1626
|
if (e.f) {
|
|
1627
|
-
const
|
|
1628
|
-
o ? ce(
|
|
1627
|
+
const z = $ ? O(l) ? d[l] : p[l] : l.value;
|
|
1628
|
+
o ? ce(z) && Xo(z, s) : ce(z) ? z.includes(s) || z.push(s) : $ ? (p[l] = [s], O(l) && (d[l] = p[l])) : (l.value = [s], e.k && (p[e.k] = l.value));
|
|
1629
1629
|
} else $ ? (p[l] = i, O(l) && (d[l] = i)) : j ? (l.value = i, e.k && (p[e.k] = i)) : process.env.NODE_ENV !== "production" && H("Invalid template ref type:", l, `(${typeof l})`);
|
|
1630
1630
|
};
|
|
1631
1631
|
i ? (F.id = -1, st(F, n)) : F();
|
|
@@ -1837,7 +1837,7 @@ function Gu(e) {
|
|
|
1837
1837
|
}
|
|
1838
1838
|
function Ku(e) {
|
|
1839
1839
|
const { ctx: t, setupState: n } = e;
|
|
1840
|
-
Object.keys(
|
|
1840
|
+
Object.keys(ve(n)).forEach((r) => {
|
|
1841
1841
|
if (!n.__isScriptSetup) {
|
|
1842
1842
|
if (hs(r[0])) {
|
|
1843
1843
|
H(
|
|
@@ -1888,7 +1888,7 @@ function Yu(e) {
|
|
|
1888
1888
|
updated: $,
|
|
1889
1889
|
activated: j,
|
|
1890
1890
|
deactivated: F,
|
|
1891
|
-
beforeDestroy:
|
|
1891
|
+
beforeDestroy: z,
|
|
1892
1892
|
beforeUnmount: te,
|
|
1893
1893
|
destroyed: U,
|
|
1894
1894
|
unmounted: re,
|
|
@@ -1902,88 +1902,88 @@ function Yu(e) {
|
|
|
1902
1902
|
inheritAttrs: B,
|
|
1903
1903
|
// assets
|
|
1904
1904
|
components: N,
|
|
1905
|
-
directives:
|
|
1906
|
-
filters:
|
|
1905
|
+
directives: oe,
|
|
1906
|
+
filters: he
|
|
1907
1907
|
} = t, we = process.env.NODE_ENV !== "production" ? ku() : null;
|
|
1908
1908
|
if (process.env.NODE_ENV !== "production") {
|
|
1909
|
-
const [
|
|
1910
|
-
if (
|
|
1911
|
-
for (const ie in
|
|
1909
|
+
const [Y] = e.propsOptions;
|
|
1910
|
+
if (Y)
|
|
1911
|
+
for (const ie in Y)
|
|
1912
1912
|
we("Props", ie);
|
|
1913
1913
|
}
|
|
1914
1914
|
if (E && qu(E, r, we), i)
|
|
1915
|
-
for (const
|
|
1916
|
-
const ie = i[
|
|
1917
|
-
ue(ie) ? (process.env.NODE_ENV !== "production" ? Object.defineProperty(r,
|
|
1915
|
+
for (const Y in i) {
|
|
1916
|
+
const ie = i[Y];
|
|
1917
|
+
ue(ie) ? (process.env.NODE_ENV !== "production" ? Object.defineProperty(r, Y, {
|
|
1918
1918
|
value: ie.bind(n),
|
|
1919
1919
|
configurable: !0,
|
|
1920
1920
|
enumerable: !0,
|
|
1921
1921
|
writable: !0
|
|
1922
|
-
}) : r[
|
|
1923
|
-
`Method "${
|
|
1922
|
+
}) : r[Y] = ie.bind(n), process.env.NODE_ENV !== "production" && we("Methods", Y)) : process.env.NODE_ENV !== "production" && H(
|
|
1923
|
+
`Method "${Y}" has type "${typeof ie}" in the component definition. Did you reference the function correctly?`
|
|
1924
1924
|
);
|
|
1925
1925
|
}
|
|
1926
1926
|
if (o) {
|
|
1927
1927
|
process.env.NODE_ENV !== "production" && !ue(o) && H(
|
|
1928
1928
|
"The data option must be a function. Plain object usage is no longer supported."
|
|
1929
1929
|
);
|
|
1930
|
-
const
|
|
1931
|
-
if (process.env.NODE_ENV !== "production" && Zo(
|
|
1930
|
+
const Y = o.call(n, n);
|
|
1931
|
+
if (process.env.NODE_ENV !== "production" && Zo(Y) && H(
|
|
1932
1932
|
"data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."
|
|
1933
|
-
), !De(
|
|
1933
|
+
), !De(Y))
|
|
1934
1934
|
process.env.NODE_ENV !== "production" && H("data() should return an object.");
|
|
1935
|
-
else if (e.data = cs(
|
|
1936
|
-
for (const ie in
|
|
1935
|
+
else if (e.data = cs(Y), process.env.NODE_ENV !== "production")
|
|
1936
|
+
for (const ie in Y)
|
|
1937
1937
|
we("Data", ie), hs(ie[0]) || Object.defineProperty(r, ie, {
|
|
1938
1938
|
configurable: !0,
|
|
1939
1939
|
enumerable: !0,
|
|
1940
|
-
get: () =>
|
|
1940
|
+
get: () => Y[ie],
|
|
1941
1941
|
set: Fe
|
|
1942
1942
|
});
|
|
1943
1943
|
}
|
|
1944
1944
|
if (Ho = !0, s)
|
|
1945
|
-
for (const
|
|
1946
|
-
const ie = s[
|
|
1947
|
-
process.env.NODE_ENV !== "production" && ye === Fe && H(`Computed property "${
|
|
1945
|
+
for (const Y in s) {
|
|
1946
|
+
const ie = s[Y], ye = ue(ie) ? ie.bind(n, n) : ue(ie.get) ? ie.get.bind(n, n) : Fe;
|
|
1947
|
+
process.env.NODE_ENV !== "production" && ye === Fe && H(`Computed property "${Y}" has no getter.`);
|
|
1948
1948
|
const D = !ue(ie) && ue(ie.set) ? ie.set.bind(n) : process.env.NODE_ENV !== "production" ? () => {
|
|
1949
1949
|
H(
|
|
1950
|
-
`Write operation failed: computed property "${
|
|
1950
|
+
`Write operation failed: computed property "${Y}" is readonly.`
|
|
1951
1951
|
);
|
|
1952
1952
|
} : Fe, Oe = bt({
|
|
1953
1953
|
get: ye,
|
|
1954
1954
|
set: D
|
|
1955
1955
|
});
|
|
1956
|
-
Object.defineProperty(r,
|
|
1956
|
+
Object.defineProperty(r, Y, {
|
|
1957
1957
|
enumerable: !0,
|
|
1958
1958
|
configurable: !0,
|
|
1959
1959
|
get: () => Oe.value,
|
|
1960
1960
|
set: (Re) => Oe.value = Re
|
|
1961
|
-
}), process.env.NODE_ENV !== "production" && we("Computed",
|
|
1961
|
+
}), process.env.NODE_ENV !== "production" && we("Computed", Y);
|
|
1962
1962
|
}
|
|
1963
1963
|
if (c)
|
|
1964
|
-
for (const
|
|
1965
|
-
wc(c[
|
|
1964
|
+
for (const Y in c)
|
|
1965
|
+
wc(c[Y], r, n, Y);
|
|
1966
1966
|
if (l) {
|
|
1967
|
-
const
|
|
1968
|
-
Reflect.ownKeys(
|
|
1969
|
-
el(ie,
|
|
1967
|
+
const Y = ue(l) ? l.call(n) : l;
|
|
1968
|
+
Reflect.ownKeys(Y).forEach((ie) => {
|
|
1969
|
+
el(ie, Y[ie]);
|
|
1970
1970
|
});
|
|
1971
1971
|
}
|
|
1972
1972
|
p && Ms(p, e, "c");
|
|
1973
|
-
function
|
|
1974
|
-
ce(ie) ? ie.forEach((ye) =>
|
|
1973
|
+
function de(Y, ie) {
|
|
1974
|
+
ce(ie) ? ie.forEach((ye) => Y(ye.bind(n))) : ie && Y(ie.bind(n));
|
|
1975
1975
|
}
|
|
1976
|
-
if (
|
|
1976
|
+
if (de($u, d), de(yc, h), de(Mu, O), de(Lu, $), de(Cu, j), de(Pu, F), de(Fu, pe), de(Wu, ne), de(Hu, le), de(Vu, te), de(_c, re), de(ju, K), ce(k))
|
|
1977
1977
|
if (k.length) {
|
|
1978
|
-
const
|
|
1978
|
+
const Y = e.exposed || (e.exposed = {});
|
|
1979
1979
|
k.forEach((ie) => {
|
|
1980
|
-
Object.defineProperty(
|
|
1980
|
+
Object.defineProperty(Y, ie, {
|
|
1981
1981
|
get: () => n[ie],
|
|
1982
1982
|
set: (ye) => n[ie] = ye
|
|
1983
1983
|
});
|
|
1984
1984
|
});
|
|
1985
1985
|
} else e.exposed || (e.exposed = {});
|
|
1986
|
-
L && e.render === Fe && (e.render = L), B != null && (e.inheritAttrs = B), N && (e.components = N),
|
|
1986
|
+
L && e.render === Fe && (e.render = L), B != null && (e.inheritAttrs = B), N && (e.components = N), oe && (e.directives = oe), K && vc(e);
|
|
1987
1987
|
}
|
|
1988
1988
|
function qu(e, t, n = Fe) {
|
|
1989
1989
|
ce(e) && (e = Wo(e));
|
|
@@ -2272,7 +2272,7 @@ function rl(e, t, n, r) {
|
|
|
2272
2272
|
props: o,
|
|
2273
2273
|
attrs: s,
|
|
2274
2274
|
vnode: { patchFlag: i }
|
|
2275
|
-
} = e, c =
|
|
2275
|
+
} = e, c = ve(o), [l] = e.propsOptions;
|
|
2276
2276
|
let E = !1;
|
|
2277
2277
|
if (
|
|
2278
2278
|
// always force full diff in dev
|
|
@@ -2340,7 +2340,7 @@ function Rc(e, t, n, r) {
|
|
|
2340
2340
|
o && be(o, p = gt(l)) ? !s || !s.includes(p) ? n[p] = E : (c || (c = {}))[p] = E : Qr(e.emitsOptions, l) || (!(l in r) || E !== r[l]) && (r[l] = E, i = !0);
|
|
2341
2341
|
}
|
|
2342
2342
|
if (s) {
|
|
2343
|
-
const l =
|
|
2343
|
+
const l = ve(n), E = c || Ne;
|
|
2344
2344
|
for (let p = 0; p < s.length; p++) {
|
|
2345
2345
|
const d = s[p];
|
|
2346
2346
|
n[d] = Fo(
|
|
@@ -2417,8 +2417,8 @@ function xc(e, t, n = !1) {
|
|
|
2417
2417
|
const h = s[p], O = i[d] = ce(h) || ue(h) ? { type: h } : je({}, h), $ = O.type;
|
|
2418
2418
|
let j = !1, F = !0;
|
|
2419
2419
|
if (ce($))
|
|
2420
|
-
for (let
|
|
2421
|
-
const te = $[
|
|
2420
|
+
for (let z = 0; z < $.length; ++z) {
|
|
2421
|
+
const te = $[z], U = ue(te) && te.name;
|
|
2422
2422
|
if (U === "Boolean") {
|
|
2423
2423
|
j = !0;
|
|
2424
2424
|
break;
|
|
@@ -2446,7 +2446,7 @@ function sl(e) {
|
|
|
2446
2446
|
return e === null ? "null" : typeof e == "function" ? e.name || "" : typeof e == "object" && e.constructor && e.constructor.name || "";
|
|
2447
2447
|
}
|
|
2448
2448
|
function Dc(e, t, n) {
|
|
2449
|
-
const r =
|
|
2449
|
+
const r = ve(t), o = n.propsOptions[0], s = Object.keys(e).map((i) => gt(i));
|
|
2450
2450
|
for (const i in o) {
|
|
2451
2451
|
let c = o[i];
|
|
2452
2452
|
c != null && il(
|
|
@@ -2609,20 +2609,20 @@ function ml(e, t) {
|
|
|
2609
2609
|
} = e, j = (f, g, y, C = null, R = null, _ = null, P = void 0, b = null, A = process.env.NODE_ENV !== "production" && Tt ? !1 : !!g.dynamicChildren) => {
|
|
2610
2610
|
if (f === g)
|
|
2611
2611
|
return;
|
|
2612
|
-
f && !Gn(f, g) && (C =
|
|
2612
|
+
f && !Gn(f, g) && (C = ge(f), Pe(f, R, _, !0), f = null), g.patchFlag === -2 && (A = !1, g.dynamicChildren = null);
|
|
2613
2613
|
const { type: T, ref: G, shapeFlag: M } = g;
|
|
2614
2614
|
switch (T) {
|
|
2615
2615
|
case dr:
|
|
2616
2616
|
F(f, g, y, C);
|
|
2617
2617
|
break;
|
|
2618
2618
|
case ut:
|
|
2619
|
-
|
|
2619
|
+
z(f, g, y, C);
|
|
2620
2620
|
break;
|
|
2621
2621
|
case Tr:
|
|
2622
2622
|
f == null ? te(g, y, C, P) : process.env.NODE_ENV !== "production" && U(f, g, y, P);
|
|
2623
2623
|
break;
|
|
2624
2624
|
case Ot:
|
|
2625
|
-
|
|
2625
|
+
oe(
|
|
2626
2626
|
f,
|
|
2627
2627
|
g,
|
|
2628
2628
|
y,
|
|
@@ -2645,7 +2645,7 @@ function ml(e, t) {
|
|
|
2645
2645
|
P,
|
|
2646
2646
|
b,
|
|
2647
2647
|
A
|
|
2648
|
-
) : M & 6 ?
|
|
2648
|
+
) : M & 6 ? he(
|
|
2649
2649
|
f,
|
|
2650
2650
|
g,
|
|
2651
2651
|
y,
|
|
@@ -2680,7 +2680,7 @@ function ml(e, t) {
|
|
|
2680
2680
|
const R = g.el = f.el;
|
|
2681
2681
|
g.children !== f.children && E(R, g.children);
|
|
2682
2682
|
}
|
|
2683
|
-
},
|
|
2683
|
+
}, z = (f, g, y, C) => {
|
|
2684
2684
|
f == null ? r(
|
|
2685
2685
|
g.el = l(g.children || ""),
|
|
2686
2686
|
y,
|
|
@@ -2737,7 +2737,7 @@ function ml(e, t) {
|
|
|
2737
2737
|
);
|
|
2738
2738
|
}, le = (f, g, y, C, R, _, P, b) => {
|
|
2739
2739
|
let A, T;
|
|
2740
|
-
const { props: G, shapeFlag: M, transition: Q, dirs:
|
|
2740
|
+
const { props: G, shapeFlag: M, transition: Q, dirs: se } = f;
|
|
2741
2741
|
if (A = f.el = i(
|
|
2742
2742
|
f.type,
|
|
2743
2743
|
_,
|
|
@@ -2752,15 +2752,15 @@ function ml(e, t) {
|
|
|
2752
2752
|
yo(f, _),
|
|
2753
2753
|
P,
|
|
2754
2754
|
b
|
|
2755
|
-
),
|
|
2755
|
+
), se && nn(f, null, C, "created"), pe(A, f, f.scopeId, P, C), G) {
|
|
2756
2756
|
for (const Te in G)
|
|
2757
2757
|
Te !== "value" && !Jn(Te) && s(A, Te, null, G[Te], _, C);
|
|
2758
2758
|
"value" in G && s(A, "value", null, G.value, _), (T = G.onVnodeBeforeMount) && _t(T, C, f);
|
|
2759
2759
|
}
|
|
2760
|
-
process.env.NODE_ENV !== "production" && ($r(A, "__vnode", f, !0), $r(A, "__vueParentComponent", C, !0)),
|
|
2760
|
+
process.env.NODE_ENV !== "production" && ($r(A, "__vnode", f, !0), $r(A, "__vueParentComponent", C, !0)), se && nn(f, null, C, "beforeMount");
|
|
2761
2761
|
const Ee = vl(R, Q);
|
|
2762
|
-
Ee && Q.beforeEnter(A), r(A, g, y), ((T = G && G.onVnodeMounted) || Ee ||
|
|
2763
|
-
T && _t(T, C, f), Ee && Q.enter(A),
|
|
2762
|
+
Ee && Q.beforeEnter(A), r(A, g, y), ((T = G && G.onVnodeMounted) || Ee || se) && st(() => {
|
|
2763
|
+
T && _t(T, C, f), Ee && Q.enter(A), se && nn(f, null, C, "mounted");
|
|
2764
2764
|
}, R);
|
|
2765
2765
|
}, pe = (f, g, y, C, R) => {
|
|
2766
2766
|
if (y && O(f, y), C)
|
|
@@ -2800,8 +2800,8 @@ function ml(e, t) {
|
|
|
2800
2800
|
let { patchFlag: A, dynamicChildren: T, dirs: G } = g;
|
|
2801
2801
|
A |= f.patchFlag & 16;
|
|
2802
2802
|
const M = f.props || Ne, Q = g.props || Ne;
|
|
2803
|
-
let
|
|
2804
|
-
if (y && rn(y, !1), (
|
|
2803
|
+
let se;
|
|
2804
|
+
if (y && rn(y, !1), (se = Q.onVnodeBeforeUpdate) && _t(se, y, g, f), G && nn(g, f, y, "beforeUpdate"), y && rn(y, !0), process.env.NODE_ENV !== "production" && Tt && (A = 0, P = !1, T = null), (M.innerHTML && Q.innerHTML == null || M.textContent && Q.textContent == null) && p(b, ""), T ? (B(
|
|
2805
2805
|
f.dynamicChildren,
|
|
2806
2806
|
T,
|
|
2807
2807
|
b,
|
|
@@ -2831,8 +2831,8 @@ function ml(e, t) {
|
|
|
2831
2831
|
}
|
|
2832
2832
|
A & 1 && f.children !== g.children && p(b, g.children);
|
|
2833
2833
|
} else !P && T == null && N(b, M, Q, y, R);
|
|
2834
|
-
((
|
|
2835
|
-
|
|
2834
|
+
((se = Q.onVnodeUpdated) || G) && st(() => {
|
|
2835
|
+
se && _t(se, y, g, f), G && nn(g, f, y, "updated");
|
|
2836
2836
|
}, C);
|
|
2837
2837
|
}, B = (f, g, y, C, R, _, P) => {
|
|
2838
2838
|
for (let b = 0; b < g.length; b++) {
|
|
@@ -2881,11 +2881,11 @@ function ml(e, t) {
|
|
|
2881
2881
|
}
|
|
2882
2882
|
"value" in y && s(f, "value", g.value, y.value, R);
|
|
2883
2883
|
}
|
|
2884
|
-
},
|
|
2884
|
+
}, oe = (f, g, y, C, R, _, P, b, A) => {
|
|
2885
2885
|
const T = g.el = f ? f.el : c(""), G = g.anchor = f ? f.anchor : c("");
|
|
2886
|
-
let { patchFlag: M, dynamicChildren: Q, slotScopeIds:
|
|
2886
|
+
let { patchFlag: M, dynamicChildren: Q, slotScopeIds: se } = g;
|
|
2887
2887
|
process.env.NODE_ENV !== "production" && // #5523 dev root fragment may inherit directives
|
|
2888
|
-
(Tt || M & 2048) && (M = 0, A = !1, Q = null),
|
|
2888
|
+
(Tt || M & 2048) && (M = 0, A = !1, Q = null), se && (b = b ? b.concat(se) : se), f == null ? (r(T, y, C), r(G, y, C), K(
|
|
2889
2889
|
// #10007
|
|
2890
2890
|
// such fragment like `<></>` will be compiled into
|
|
2891
2891
|
// a fragment which doesn't have a children.
|
|
@@ -2930,7 +2930,7 @@ function ml(e, t) {
|
|
|
2930
2930
|
b,
|
|
2931
2931
|
A
|
|
2932
2932
|
);
|
|
2933
|
-
},
|
|
2933
|
+
}, he = (f, g, y, C, R, _, P, b, A) => {
|
|
2934
2934
|
g.slotScopeIds = b, f == null ? g.shapeFlag & 512 ? R.ctx.activate(
|
|
2935
2935
|
g,
|
|
2936
2936
|
y,
|
|
@@ -2945,7 +2945,7 @@ function ml(e, t) {
|
|
|
2945
2945
|
_,
|
|
2946
2946
|
P,
|
|
2947
2947
|
A
|
|
2948
|
-
) :
|
|
2948
|
+
) : de(f, g, A);
|
|
2949
2949
|
}, we = (f, g, y, C, R, _, P) => {
|
|
2950
2950
|
const b = f.component = Vl(
|
|
2951
2951
|
f,
|
|
@@ -2953,12 +2953,12 @@ function ml(e, t) {
|
|
|
2953
2953
|
R
|
|
2954
2954
|
);
|
|
2955
2955
|
if (process.env.NODE_ENV !== "production" && b.type.__hmrId && hu(b), process.env.NODE_ENV !== "production" && (wr(f), _n(b, "mount")), ds(f) && (b.ctx.renderer = W), process.env.NODE_ENV !== "production" && _n(b, "init"), Wl(b, !1, P), process.env.NODE_ENV !== "production" && bn(b, "init"), b.asyncDep) {
|
|
2956
|
-
if (process.env.NODE_ENV !== "production" && Tt && (f.el = null), R && R.registerDep(b,
|
|
2956
|
+
if (process.env.NODE_ENV !== "production" && Tt && (f.el = null), R && R.registerDep(b, Y, P), !f.el) {
|
|
2957
2957
|
const A = b.subTree = at(ut);
|
|
2958
|
-
|
|
2958
|
+
z(null, A, g, y);
|
|
2959
2959
|
}
|
|
2960
2960
|
} else
|
|
2961
|
-
|
|
2961
|
+
Y(
|
|
2962
2962
|
b,
|
|
2963
2963
|
f,
|
|
2964
2964
|
g,
|
|
@@ -2968,7 +2968,7 @@ function ml(e, t) {
|
|
|
2968
2968
|
P
|
|
2969
2969
|
);
|
|
2970
2970
|
process.env.NODE_ENV !== "production" && (Or(), bn(b, "mount"));
|
|
2971
|
-
},
|
|
2971
|
+
}, de = (f, g, y) => {
|
|
2972
2972
|
const C = g.component = f.component;
|
|
2973
2973
|
if (Nl(f, g, y))
|
|
2974
2974
|
if (C.asyncDep && !C.asyncResolved) {
|
|
@@ -2978,10 +2978,10 @@ function ml(e, t) {
|
|
|
2978
2978
|
C.next = g, C.update();
|
|
2979
2979
|
else
|
|
2980
2980
|
g.el = f.el, C.vnode = g;
|
|
2981
|
-
},
|
|
2981
|
+
}, Y = (f, g, y, C, R, _, P) => {
|
|
2982
2982
|
const b = () => {
|
|
2983
2983
|
if (f.isMounted) {
|
|
2984
|
-
let { next: M, bu: Q, u:
|
|
2984
|
+
let { next: M, bu: Q, u: se, parent: Ee, vnode: Te } = f;
|
|
2985
2985
|
{
|
|
2986
2986
|
const tt = $c(f);
|
|
2987
2987
|
if (tt) {
|
|
@@ -3002,18 +3002,18 @@ function ml(e, t) {
|
|
|
3002
3002
|
// parent may have changed if it's in a teleport
|
|
3003
3003
|
d(ot.el),
|
|
3004
3004
|
// anchor may have changed if it's in a fragment
|
|
3005
|
-
|
|
3005
|
+
ge(ot),
|
|
3006
3006
|
f,
|
|
3007
3007
|
R,
|
|
3008
3008
|
_
|
|
3009
|
-
), process.env.NODE_ENV !== "production" && bn(f, "patch"), M.el = Ge.el, Se === null && Tl(f, Ge.el),
|
|
3009
|
+
), process.env.NODE_ENV !== "production" && bn(f, "patch"), M.el = Ge.el, Se === null && Tl(f, Ge.el), se && st(se, R), (Ye = M.props && M.props.onVnodeUpdated) && st(
|
|
3010
3010
|
() => _t(Ye, Ee, M, Te),
|
|
3011
3011
|
R
|
|
3012
3012
|
), process.env.NODE_ENV !== "production" && dc(f), process.env.NODE_ENV !== "production" && Or();
|
|
3013
3013
|
} else {
|
|
3014
3014
|
let M;
|
|
3015
|
-
const { el: Q, props:
|
|
3016
|
-
rn(f, !1), Ee && Fn(Ee), !ot && (M =
|
|
3015
|
+
const { el: Q, props: se } = g, { bm: Ee, m: Te, parent: Se, root: Ye, type: Ge } = f, ot = Qn(g);
|
|
3016
|
+
rn(f, !1), Ee && Fn(Ee), !ot && (M = se && se.onVnodeBeforeMount) && _t(M, Se, g), rn(f, !0);
|
|
3017
3017
|
{
|
|
3018
3018
|
Ye.ce && Ye.ce._injectChildStyle(Ge), process.env.NODE_ENV !== "production" && _n(f, "render");
|
|
3019
3019
|
const tt = f.subTree = Bs(f);
|
|
@@ -3027,7 +3027,7 @@ function ml(e, t) {
|
|
|
3027
3027
|
_
|
|
3028
3028
|
), process.env.NODE_ENV !== "production" && bn(f, "patch"), g.el = tt.el;
|
|
3029
3029
|
}
|
|
3030
|
-
if (Te && st(Te, R), !ot && (M =
|
|
3030
|
+
if (Te && st(Te, R), !ot && (M = se && se.onVnodeMounted)) {
|
|
3031
3031
|
const tt = g;
|
|
3032
3032
|
st(
|
|
3033
3033
|
() => _t(M, Se, tt),
|
|
@@ -3047,7 +3047,7 @@ function ml(e, t) {
|
|
|
3047
3047
|
const C = f.vnode.props;
|
|
3048
3048
|
f.vnode = g, f.next = null, rl(f, g.props, C, y), dl(f, g.children, y), Bt(), Ps(f), Ut();
|
|
3049
3049
|
}, ye = (f, g, y, C, R, _, P, b, A = !1) => {
|
|
3050
|
-
const T = f && f.children, G = f ? f.shapeFlag : 0, M = g.children, { patchFlag: Q, shapeFlag:
|
|
3050
|
+
const T = f && f.children, G = f ? f.shapeFlag : 0, M = g.children, { patchFlag: Q, shapeFlag: se } = g;
|
|
3051
3051
|
if (Q > 0) {
|
|
3052
3052
|
if (Q & 128) {
|
|
3053
3053
|
Oe(
|
|
@@ -3077,7 +3077,7 @@ function ml(e, t) {
|
|
|
3077
3077
|
return;
|
|
3078
3078
|
}
|
|
3079
3079
|
}
|
|
3080
|
-
|
|
3080
|
+
se & 8 ? (G & 16 && Z(T, R, _), M !== T && p(y, M)) : G & 16 ? se & 16 ? Oe(
|
|
3081
3081
|
T,
|
|
3082
3082
|
M,
|
|
3083
3083
|
y,
|
|
@@ -3087,7 +3087,7 @@ function ml(e, t) {
|
|
|
3087
3087
|
P,
|
|
3088
3088
|
b,
|
|
3089
3089
|
A
|
|
3090
|
-
) : Z(T, R, _, !0) : (G & 8 && p(y, ""),
|
|
3090
|
+
) : Z(T, R, _, !0) : (G & 8 && p(y, ""), se & 16 && K(
|
|
3091
3091
|
M,
|
|
3092
3092
|
y,
|
|
3093
3093
|
C,
|
|
@@ -3102,10 +3102,10 @@ function ml(e, t) {
|
|
|
3102
3102
|
const T = f.length, G = g.length, M = Math.min(T, G);
|
|
3103
3103
|
let Q;
|
|
3104
3104
|
for (Q = 0; Q < M; Q++) {
|
|
3105
|
-
const
|
|
3105
|
+
const se = g[Q] = A ? Jt(g[Q]) : dt(g[Q]);
|
|
3106
3106
|
j(
|
|
3107
3107
|
f[Q],
|
|
3108
|
-
|
|
3108
|
+
se,
|
|
3109
3109
|
y,
|
|
3110
3110
|
null,
|
|
3111
3111
|
R,
|
|
@@ -3138,10 +3138,10 @@ function ml(e, t) {
|
|
|
3138
3138
|
const G = g.length;
|
|
3139
3139
|
let M = f.length - 1, Q = G - 1;
|
|
3140
3140
|
for (; T <= M && T <= Q; ) {
|
|
3141
|
-
const
|
|
3142
|
-
if (Gn(
|
|
3141
|
+
const se = f[T], Ee = g[T] = A ? Jt(g[T]) : dt(g[T]);
|
|
3142
|
+
if (Gn(se, Ee))
|
|
3143
3143
|
j(
|
|
3144
|
-
|
|
3144
|
+
se,
|
|
3145
3145
|
Ee,
|
|
3146
3146
|
y,
|
|
3147
3147
|
null,
|
|
@@ -3156,10 +3156,10 @@ function ml(e, t) {
|
|
|
3156
3156
|
T++;
|
|
3157
3157
|
}
|
|
3158
3158
|
for (; T <= M && T <= Q; ) {
|
|
3159
|
-
const
|
|
3160
|
-
if (Gn(
|
|
3159
|
+
const se = f[M], Ee = g[Q] = A ? Jt(g[Q]) : dt(g[Q]);
|
|
3160
|
+
if (Gn(se, Ee))
|
|
3161
3161
|
j(
|
|
3162
|
-
|
|
3162
|
+
se,
|
|
3163
3163
|
Ee,
|
|
3164
3164
|
y,
|
|
3165
3165
|
null,
|
|
@@ -3175,7 +3175,7 @@ function ml(e, t) {
|
|
|
3175
3175
|
}
|
|
3176
3176
|
if (T > M) {
|
|
3177
3177
|
if (T <= Q) {
|
|
3178
|
-
const
|
|
3178
|
+
const se = Q + 1, Ee = se < G ? g[se].el : C;
|
|
3179
3179
|
for (; T <= Q; )
|
|
3180
3180
|
j(
|
|
3181
3181
|
null,
|
|
@@ -3193,7 +3193,7 @@ function ml(e, t) {
|
|
|
3193
3193
|
for (; T <= M; )
|
|
3194
3194
|
Pe(f[T], R, _, !0), T++;
|
|
3195
3195
|
else {
|
|
3196
|
-
const
|
|
3196
|
+
const se = T, Ee = T, Te = /* @__PURE__ */ new Map();
|
|
3197
3197
|
for (T = Ee; T <= Q; T++) {
|
|
3198
3198
|
const Be = g[T] = A ? Jt(g[T]) : dt(g[T]);
|
|
3199
3199
|
Be.key != null && (process.env.NODE_ENV !== "production" && Te.has(Be.key) && H(
|
|
@@ -3207,7 +3207,7 @@ function ml(e, t) {
|
|
|
3207
3207
|
let ot = !1, tt = 0;
|
|
3208
3208
|
const lt = new Array(Ge);
|
|
3209
3209
|
for (T = 0; T < Ge; T++) lt[T] = 0;
|
|
3210
|
-
for (T =
|
|
3210
|
+
for (T = se; T <= M; T++) {
|
|
3211
3211
|
const Be = f[T];
|
|
3212
3212
|
if (Ye >= Ge) {
|
|
3213
3213
|
Pe(Be, R, _, !0);
|
|
@@ -3279,9 +3279,9 @@ function ml(e, t) {
|
|
|
3279
3279
|
if (C === 0)
|
|
3280
3280
|
b.beforeEnter(_), r(_, g, y), st(() => b.enter(_), R);
|
|
3281
3281
|
else {
|
|
3282
|
-
const { leave: M, delayLeave: Q, afterLeave:
|
|
3282
|
+
const { leave: M, delayLeave: Q, afterLeave: se } = b, Ee = () => r(_, g, y), Te = () => {
|
|
3283
3283
|
M(_, () => {
|
|
3284
|
-
Ee(),
|
|
3284
|
+
Ee(), se && se();
|
|
3285
3285
|
});
|
|
3286
3286
|
};
|
|
3287
3287
|
Q ? Q(_, Ee, Te) : Te();
|
|
@@ -3298,9 +3298,9 @@ function ml(e, t) {
|
|
|
3298
3298
|
shapeFlag: G,
|
|
3299
3299
|
patchFlag: M,
|
|
3300
3300
|
dirs: Q,
|
|
3301
|
-
cacheIndex:
|
|
3301
|
+
cacheIndex: se
|
|
3302
3302
|
} = f;
|
|
3303
|
-
if (M === -2 && (R = !1), b != null && Wr(b, null, y, f, !0),
|
|
3303
|
+
if (M === -2 && (R = !1), b != null && Wr(b, null, y, f, !0), se != null && (g.renderCache[se] = void 0), G & 256) {
|
|
3304
3304
|
g.ctx.deactivate(f);
|
|
3305
3305
|
return;
|
|
3306
3306
|
}
|
|
@@ -3370,9 +3370,9 @@ function ml(e, t) {
|
|
|
3370
3370
|
}, Z = (f, g, y, C = !1, R = !1, _ = 0) => {
|
|
3371
3371
|
for (let P = _; P < f.length; P++)
|
|
3372
3372
|
Pe(f[P], g, y, C, R);
|
|
3373
|
-
},
|
|
3373
|
+
}, ge = (f) => {
|
|
3374
3374
|
if (f.shapeFlag & 6)
|
|
3375
|
-
return
|
|
3375
|
+
return ge(f.component.subTree);
|
|
3376
3376
|
if (f.shapeFlag & 128)
|
|
3377
3377
|
return f.suspense.next();
|
|
3378
3378
|
const g = h(f.anchor || f.el), y = g && g[Tu];
|
|
@@ -3398,7 +3398,7 @@ function ml(e, t) {
|
|
|
3398
3398
|
mc: K,
|
|
3399
3399
|
pc: ye,
|
|
3400
3400
|
pbc: B,
|
|
3401
|
-
n:
|
|
3401
|
+
n: ge,
|
|
3402
3402
|
o: e
|
|
3403
3403
|
};
|
|
3404
3404
|
return {
|
|
@@ -3616,7 +3616,7 @@ function Bs(e) {
|
|
|
3616
3616
|
ctx: $,
|
|
3617
3617
|
inheritAttrs: j
|
|
3618
3618
|
} = e, F = Hr(e);
|
|
3619
|
-
let
|
|
3619
|
+
let z, te;
|
|
3620
3620
|
process.env.NODE_ENV !== "production" && (Uo = !1);
|
|
3621
3621
|
try {
|
|
3622
3622
|
if (n.shapeFlag & 4) {
|
|
@@ -3629,7 +3629,7 @@ function Bs(e) {
|
|
|
3629
3629
|
), Reflect.get(le, pe, K);
|
|
3630
3630
|
}
|
|
3631
3631
|
}) : L;
|
|
3632
|
-
|
|
3632
|
+
z = dt(
|
|
3633
3633
|
E.call(
|
|
3634
3634
|
ne,
|
|
3635
3635
|
L,
|
|
@@ -3642,7 +3642,7 @@ function Bs(e) {
|
|
|
3642
3642
|
), te = c;
|
|
3643
3643
|
} else {
|
|
3644
3644
|
const L = t;
|
|
3645
|
-
process.env.NODE_ENV !== "production" && c === d && Ur(),
|
|
3645
|
+
process.env.NODE_ENV !== "production" && c === d && Ur(), z = dt(
|
|
3646
3646
|
L.length > 1 ? L(
|
|
3647
3647
|
process.env.NODE_ENV !== "production" ? Nt(d) : d,
|
|
3648
3648
|
process.env.NODE_ENV !== "production" ? {
|
|
@@ -3659,10 +3659,10 @@ function Bs(e) {
|
|
|
3659
3659
|
), te = t.props ? c : Sl(c);
|
|
3660
3660
|
}
|
|
3661
3661
|
} catch (L) {
|
|
3662
|
-
er.length = 0, fr(L, e, 1),
|
|
3662
|
+
er.length = 0, fr(L, e, 1), z = at(ut);
|
|
3663
3663
|
}
|
|
3664
|
-
let U =
|
|
3665
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
3664
|
+
let U = z, re;
|
|
3665
|
+
if (process.env.NODE_ENV !== "production" && z.patchFlag > 0 && z.patchFlag & 2048 && ([U, re] = jc(z)), te && j !== !1) {
|
|
3666
3666
|
const L = Object.keys(te), { shapeFlag: ne } = U;
|
|
3667
3667
|
if (L.length) {
|
|
3668
3668
|
if (ne & 7)
|
|
@@ -3688,7 +3688,7 @@ function Bs(e) {
|
|
|
3688
3688
|
"Runtime directive used on component with non-element root node. The directives will not function as intended."
|
|
3689
3689
|
), U = en(U, null, !1, !0), U.dirs = U.dirs ? U.dirs.concat(n.dirs) : n.dirs), n.transition && (process.env.NODE_ENV !== "production" && !Us(U) && H(
|
|
3690
3690
|
"Component inside <Transition> renders non-element root node that cannot be animated."
|
|
3691
|
-
), ps(U, n.transition)), process.env.NODE_ENV !== "production" && re ? re(U) :
|
|
3691
|
+
), ps(U, n.transition)), process.env.NODE_ENV !== "production" && re ? re(U) : z = U, Hr(F), z;
|
|
3692
3692
|
}
|
|
3693
3693
|
const jc = (e) => {
|
|
3694
3694
|
const t = e.children, n = e.dynamicChildren, r = ms(t, !1);
|
|
@@ -3888,7 +3888,7 @@ function Bc(e, t = null, n = null, r = 0, o = null, s = !1) {
|
|
|
3888
3888
|
c && !He(c) && (t.class = ts(c)), De(l) && (Mr(l) && !ce(l) && (l = je({}, l)), t.style = jt(l));
|
|
3889
3889
|
}
|
|
3890
3890
|
const i = He(e) ? 1 : Hc(e) ? 128 : Ru(e) ? 64 : De(e) ? 4 : ue(e) ? 2 : 0;
|
|
3891
|
-
return process.env.NODE_ENV !== "production" && i & 4 && Mr(e) && (e =
|
|
3891
|
+
return process.env.NODE_ENV !== "production" && i & 4 && Mr(e) && (e = ve(e), H(
|
|
3892
3892
|
"Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
|
|
3893
3893
|
`
|
|
3894
3894
|
Component that was made reactive: `,
|
|
@@ -4363,7 +4363,7 @@ function ql() {
|
|
|
4363
4363
|
};
|
|
4364
4364
|
function s(d) {
|
|
4365
4365
|
const h = [];
|
|
4366
|
-
d.type.props && d.props && h.push(i("props",
|
|
4366
|
+
d.type.props && d.props && h.push(i("props", ve(d.props))), d.setupState !== Ne && h.push(i("setup", d.setupState)), d.data !== Ne && h.push(i("data", ve(d.data)));
|
|
4367
4367
|
const O = l(d, "computed");
|
|
4368
4368
|
O && h.push(i("computed", O));
|
|
4369
4369
|
const $ = l(d, "inject");
|
|
@@ -4406,7 +4406,7 @@ function ql() {
|
|
|
4406
4406
|
] : ["span", {}];
|
|
4407
4407
|
}
|
|
4408
4408
|
function c(d, h = !0) {
|
|
4409
|
-
return typeof d == "number" ? ["span", t, d] : typeof d == "string" ? ["span", n, JSON.stringify(d)] : typeof d == "boolean" ? ["span", r, d] : De(d) ? ["object", { object: h ?
|
|
4409
|
+
return typeof d == "number" ? ["span", t, d] : typeof d == "string" ? ["span", n, JSON.stringify(d)] : typeof d == "boolean" ? ["span", r, d] : De(d) ? ["object", { object: h ? ve(d) : d }] : ["span", n, String(d)];
|
|
4410
4410
|
}
|
|
4411
4411
|
function l(d, h) {
|
|
4412
4412
|
const O = d.type;
|
|
@@ -4744,28 +4744,28 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4744
4744
|
tab: qe(null),
|
|
4745
4745
|
mount: qe(null)
|
|
4746
4746
|
}, $ = bt(() => p.value.activeMicroAppName || ""), j = bt(() => {
|
|
4747
|
-
var K, k, B, N,
|
|
4747
|
+
var K, k, B, N, oe, he;
|
|
4748
4748
|
return {
|
|
4749
4749
|
navHeight: (((k = (K = p.value) == null ? void 0 : K.navRect) == null ? void 0 : k.height) || 0) + "px",
|
|
4750
4750
|
menuWidth: (((N = (B = p.value) == null ? void 0 : B.menuRect) == null ? void 0 : N.width) || 0) + "px",
|
|
4751
|
-
tabHeight: (((
|
|
4751
|
+
tabHeight: (((he = (oe = p.value) == null ? void 0 : oe.tabRect) == null ? void 0 : he.height) || 0) + "px"
|
|
4752
4752
|
};
|
|
4753
4753
|
}), F = bt(() => ({
|
|
4754
4754
|
position: "relative",
|
|
4755
4755
|
height: "100%",
|
|
4756
4756
|
display: "flex",
|
|
4757
4757
|
flexDirection: "column"
|
|
4758
|
-
})),
|
|
4758
|
+
})), z = (K, k = 0, B = !1) => {
|
|
4759
4759
|
let N = null;
|
|
4760
|
-
return (...
|
|
4761
|
-
B && !N && K(...
|
|
4762
|
-
K(...
|
|
4760
|
+
return (...oe) => {
|
|
4761
|
+
B && !N && K(...oe), clearTimeout(N), N = setTimeout(() => {
|
|
4762
|
+
K(...oe);
|
|
4763
4763
|
}, k);
|
|
4764
4764
|
};
|
|
4765
4765
|
}, te = () => {
|
|
4766
4766
|
function K(B, N = 20) {
|
|
4767
4767
|
if (!B) return;
|
|
4768
|
-
const
|
|
4768
|
+
const oe = B.getBoundingClientRect(), { x: he, y: we, width: de, height: Y } = oe, ie = he, ye = we, D = he + de, Oe = we + Y, Re = [
|
|
4769
4769
|
document.documentElement,
|
|
4770
4770
|
document.body,
|
|
4771
4771
|
B,
|
|
@@ -4783,7 +4783,7 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4783
4783
|
}
|
|
4784
4784
|
let k = K(h.nav.value);
|
|
4785
4785
|
return k || (k = K(h.tab.value)), k || (k = K(h.menu.value)), k;
|
|
4786
|
-
}, U = { x: -1, y: -1 }, re =
|
|
4786
|
+
}, U = { x: -1, y: -1 }, re = z(
|
|
4787
4787
|
(K, k, B) => {
|
|
4788
4788
|
if (!(U.x === k.x && U.y === k.y)) {
|
|
4789
4789
|
if (U.x = k.x, U.y = k.x, K === "mouseenter") {
|
|
@@ -4831,19 +4831,25 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4831
4831
|
(async () => {
|
|
4832
4832
|
const B = (N) => {
|
|
4833
4833
|
var we;
|
|
4834
|
-
const
|
|
4835
|
-
const { x:
|
|
4836
|
-
s.data.set({ [`${N}Rect`]: { x:
|
|
4834
|
+
const oe = (we = h[N]) == null ? void 0 : we.value, he = () => {
|
|
4835
|
+
const { x: de, y: Y, width: ie, height: ye } = (oe == null ? void 0 : oe.getBoundingClientRect()) || {};
|
|
4836
|
+
s.data.set({ [`${N}Rect`]: { x: de, y: Y, width: ie, height: ye } });
|
|
4837
4837
|
};
|
|
4838
|
-
|
|
4838
|
+
he(), new MutationObserver(he).observe(oe, {
|
|
4839
|
+
childList: !0,
|
|
4840
|
+
subtree: !0
|
|
4841
|
+
}), new IntersectionObserver((de) => {
|
|
4842
|
+
var Y;
|
|
4843
|
+
(Y = de == null ? void 0 : de[0]) != null && Y.isIntersecting && he();
|
|
4844
|
+
}).observe(oe);
|
|
4839
4845
|
};
|
|
4840
4846
|
await Promise.all([
|
|
4841
4847
|
...Object.keys(h).map(async (N) => {
|
|
4842
|
-
const
|
|
4843
|
-
await new Promise((
|
|
4848
|
+
const oe = h[N];
|
|
4849
|
+
await new Promise((he) => At(() => oe.value, he)), B(N);
|
|
4844
4850
|
}),
|
|
4845
4851
|
...Object.keys(O).map(async (N) => {
|
|
4846
|
-
await new Promise((
|
|
4852
|
+
await new Promise((oe) => At(() => O[N].value, oe));
|
|
4847
4853
|
})
|
|
4848
4854
|
]), s.event.emit("onLayoutMounted"), r("layoutMounted", {
|
|
4849
4855
|
navDom: O.nav.value,
|
|
@@ -4872,13 +4878,13 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4872
4878
|
const { appInfo: k, parentData: B = {} } = K;
|
|
4873
4879
|
setTimeout(() => {
|
|
4874
4880
|
s.data.set(B.layoutData);
|
|
4875
|
-
}, 0), c.data.set({ appInfo: k }), c.cors.on("layoutDataChange", (
|
|
4876
|
-
s.data.set(
|
|
4881
|
+
}, 0), c.data.set({ appInfo: k }), c.cors.on("layoutDataChange", (oe) => {
|
|
4882
|
+
s.data.set(oe.data);
|
|
4877
4883
|
}), (async () => {
|
|
4878
4884
|
await Promise.all([
|
|
4879
|
-
...Object.keys(h).map(async (
|
|
4880
|
-
const
|
|
4881
|
-
await new Promise((we) => At(() =>
|
|
4885
|
+
...Object.keys(h).map(async (oe) => {
|
|
4886
|
+
const he = h[oe];
|
|
4887
|
+
await new Promise((we) => At(() => he.value, we));
|
|
4882
4888
|
})
|
|
4883
4889
|
]), s.event.emit("onLayoutMounted"), r("layoutMounted", {
|
|
4884
4890
|
mountDom: O.mount.value
|
|
@@ -5010,9 +5016,9 @@ const Jc = async (e) => {
|
|
|
5010
5016
|
d.on("mounted", (F) => {
|
|
5011
5017
|
var U;
|
|
5012
5018
|
o.expose.connectMicroApp(F);
|
|
5013
|
-
const
|
|
5014
|
-
if (!
|
|
5015
|
-
if (!(((U =
|
|
5019
|
+
const z = r.data.get().microApps.find((re) => re.name === F.name);
|
|
5020
|
+
if (!z) return;
|
|
5021
|
+
if (!(((U = z.router) == null ? void 0 : U.sync) ?? !0)) {
|
|
5016
5022
|
j();
|
|
5017
5023
|
return;
|
|
5018
5024
|
}
|
|
@@ -5021,29 +5027,29 @@ const Jc = async (e) => {
|
|
|
5021
5027
|
});
|
|
5022
5028
|
const O = qe(!1);
|
|
5023
5029
|
o.cors.on("reportRouter", (F) => {
|
|
5024
|
-
var N,
|
|
5025
|
-
const { data:
|
|
5026
|
-
if (!
|
|
5027
|
-
const te = r.data.get().microApps.find((we) => we.name ===
|
|
5030
|
+
var N, oe, he;
|
|
5031
|
+
const { data: z } = F || {};
|
|
5032
|
+
if (!z.appInfo) return;
|
|
5033
|
+
const te = r.data.get().microApps.find((we) => we.name === z.appInfo.name);
|
|
5028
5034
|
if (!te || !(((N = te.router) == null ? void 0 : N.sync) ?? !0) || !h(te.name, ["mounted", "activated"])) return;
|
|
5029
5035
|
const { pathname: re, hash: L, search: ne } = new URL(window.location.href);
|
|
5030
5036
|
let le = re + ne;
|
|
5031
|
-
const { pathname: pe, hash: K, search: k } = new URL(
|
|
5037
|
+
const { pathname: pe, hash: K, search: k } = new URL(z.href);
|
|
5032
5038
|
let B = pe + k;
|
|
5033
|
-
((
|
|
5039
|
+
((oe = te.router) == null ? void 0 : oe.mode) === "hash" && (B = K.replace("#", "")), ((he = r.data.get().initOptions.router) == null ? void 0 : he.mode) === "hash" && (le = `/${L}`, B = `/#${B}`), le !== B && (O.value = !0, setTimeout(() => {
|
|
5034
5040
|
O.value = !1;
|
|
5035
5041
|
}, 300), i.replaceState(B));
|
|
5036
5042
|
}), o.cors.on("customEventFromMicro", (F) => {
|
|
5037
|
-
var
|
|
5038
|
-
(
|
|
5043
|
+
var z, te;
|
|
5044
|
+
(z = F == null ? void 0 : F.data) != null && z.eventName && o.event.emit(F.data.eventName, (te = F.data) == null ? void 0 : te.params);
|
|
5039
5045
|
});
|
|
5040
|
-
const $ = (F,
|
|
5046
|
+
const $ = (F, z) => {
|
|
5041
5047
|
var re;
|
|
5042
|
-
const { path: te } =
|
|
5048
|
+
const { path: te } = z;
|
|
5043
5049
|
let U = te;
|
|
5044
5050
|
((re = F.router) == null ? void 0 : re.mode) === "hash" && (U = `/#${te}`), o.cors.send(F.name, "syncRouter", {
|
|
5045
5051
|
appInfo: F,
|
|
5046
|
-
parentRouter:
|
|
5052
|
+
parentRouter: z,
|
|
5047
5053
|
replacePath: U
|
|
5048
5054
|
});
|
|
5049
5055
|
};
|
|
@@ -5054,8 +5060,8 @@ const Jc = async (e) => {
|
|
|
5054
5060
|
var K, k;
|
|
5055
5061
|
if (O.value) return;
|
|
5056
5062
|
await new Promise((B) => setTimeout(B, 0));
|
|
5057
|
-
const F = ((K = r.data.get().initOptions.router) == null ? void 0 : K.mode) || "history", { pathname:
|
|
5058
|
-
let re =
|
|
5063
|
+
const F = ((K = r.data.get().initOptions.router) == null ? void 0 : K.mode) || "history", { pathname: z, hash: te, search: U } = new URL(window.location.href);
|
|
5064
|
+
let re = z + U;
|
|
5059
5065
|
F === "hash" && (re = te.replace("#", ""));
|
|
5060
5066
|
const L = i.match(re), ne = c.value.find((B) => L ? L === B.name : !1);
|
|
5061
5067
|
let le = re;
|
|
@@ -5314,24 +5320,24 @@ function Sf() {
|
|
|
5314
5320
|
/* ) */
|
|
5315
5321
|
CHAR_RIGHT_SQUARE_BRACKET: j
|
|
5316
5322
|
/* ] */
|
|
5317
|
-
} = /* @__PURE__ */ ro(), F = (U) => U === c || U === r,
|
|
5323
|
+
} = /* @__PURE__ */ ro(), F = (U) => U === c || U === r, z = (U) => {
|
|
5318
5324
|
U.isPrefix !== !0 && (U.depth = U.isGlobstar ? 1 / 0 : 1);
|
|
5319
5325
|
};
|
|
5320
5326
|
return Ao = (U, re) => {
|
|
5321
5327
|
const L = re || {}, ne = U.length - 1, le = L.parts === !0 || L.scanToEnd === !0, pe = [], K = [], k = [];
|
|
5322
|
-
let B = U, N = -1,
|
|
5328
|
+
let B = U, N = -1, oe = 0, he = 0, we = !1, de = !1, Y = !1, ie = !1, ye = !1, D = !1, Oe = !1, Re = !1, Pe = !1, S = !1, x = 0, ke, Z, ge = { value: "", depth: 0, isGlob: !1 };
|
|
5323
5329
|
const $e = () => N >= ne, _e = () => B.charCodeAt(N + 1), W = () => (ke = Z, B.charCodeAt(++N));
|
|
5324
5330
|
for (; N < ne; ) {
|
|
5325
5331
|
Z = W();
|
|
5326
5332
|
let C;
|
|
5327
5333
|
if (Z === r) {
|
|
5328
|
-
Oe =
|
|
5334
|
+
Oe = ge.backslashes = !0, Z = W(), Z === l && (D = !0);
|
|
5329
5335
|
continue;
|
|
5330
5336
|
}
|
|
5331
5337
|
if (D === !0 || Z === l) {
|
|
5332
5338
|
for (x++; $e() !== !0 && (Z = W()); ) {
|
|
5333
5339
|
if (Z === r) {
|
|
5334
|
-
Oe =
|
|
5340
|
+
Oe = ge.backslashes = !0, W();
|
|
5335
5341
|
continue;
|
|
5336
5342
|
}
|
|
5337
5343
|
if (Z === l) {
|
|
@@ -5339,17 +5345,17 @@ function Sf() {
|
|
|
5339
5345
|
continue;
|
|
5340
5346
|
}
|
|
5341
5347
|
if (D !== !0 && Z === s && (Z = W()) === s) {
|
|
5342
|
-
if (we =
|
|
5348
|
+
if (we = ge.isBrace = !0, Y = ge.isGlob = !0, S = !0, le === !0)
|
|
5343
5349
|
continue;
|
|
5344
5350
|
break;
|
|
5345
5351
|
}
|
|
5346
5352
|
if (D !== !0 && Z === o) {
|
|
5347
|
-
if (we =
|
|
5353
|
+
if (we = ge.isBrace = !0, Y = ge.isGlob = !0, S = !0, le === !0)
|
|
5348
5354
|
continue;
|
|
5349
5355
|
break;
|
|
5350
5356
|
}
|
|
5351
5357
|
if (Z === O && (x--, x === 0)) {
|
|
5352
|
-
D = !1, we =
|
|
5358
|
+
D = !1, we = ge.isBrace = !0, S = !0;
|
|
5353
5359
|
break;
|
|
5354
5360
|
}
|
|
5355
5361
|
}
|
|
@@ -5358,23 +5364,23 @@ function Sf() {
|
|
|
5358
5364
|
break;
|
|
5359
5365
|
}
|
|
5360
5366
|
if (Z === c) {
|
|
5361
|
-
if (pe.push(N), K.push(
|
|
5362
|
-
if (ke === s && N ===
|
|
5363
|
-
|
|
5367
|
+
if (pe.push(N), K.push(ge), ge = { value: "", depth: 0, isGlob: !1 }, S === !0) continue;
|
|
5368
|
+
if (ke === s && N === oe + 1) {
|
|
5369
|
+
oe += 2;
|
|
5364
5370
|
continue;
|
|
5365
5371
|
}
|
|
5366
|
-
|
|
5372
|
+
he = N + 1;
|
|
5367
5373
|
continue;
|
|
5368
5374
|
}
|
|
5369
5375
|
if (L.noext !== !0 && (Z === d || Z === n || Z === t || Z === h || Z === i) === !0 && _e() === E) {
|
|
5370
|
-
if (
|
|
5376
|
+
if (Y = ge.isGlob = !0, ie = ge.isExtglob = !0, S = !0, Z === i && N === oe && (Pe = !0), le === !0) {
|
|
5371
5377
|
for (; $e() !== !0 && (Z = W()); ) {
|
|
5372
5378
|
if (Z === r) {
|
|
5373
|
-
Oe =
|
|
5379
|
+
Oe = ge.backslashes = !0, Z = W();
|
|
5374
5380
|
continue;
|
|
5375
5381
|
}
|
|
5376
5382
|
if (Z === $) {
|
|
5377
|
-
|
|
5383
|
+
Y = ge.isGlob = !0, S = !0;
|
|
5378
5384
|
break;
|
|
5379
5385
|
}
|
|
5380
5386
|
}
|
|
@@ -5383,23 +5389,23 @@ function Sf() {
|
|
|
5383
5389
|
break;
|
|
5384
5390
|
}
|
|
5385
5391
|
if (Z === t) {
|
|
5386
|
-
if (ke === t && (ye =
|
|
5392
|
+
if (ke === t && (ye = ge.isGlobstar = !0), Y = ge.isGlob = !0, S = !0, le === !0)
|
|
5387
5393
|
continue;
|
|
5388
5394
|
break;
|
|
5389
5395
|
}
|
|
5390
5396
|
if (Z === h) {
|
|
5391
|
-
if (
|
|
5397
|
+
if (Y = ge.isGlob = !0, S = !0, le === !0)
|
|
5392
5398
|
continue;
|
|
5393
5399
|
break;
|
|
5394
5400
|
}
|
|
5395
5401
|
if (Z === p) {
|
|
5396
5402
|
for (; $e() !== !0 && (C = W()); ) {
|
|
5397
5403
|
if (C === r) {
|
|
5398
|
-
Oe =
|
|
5404
|
+
Oe = ge.backslashes = !0, W();
|
|
5399
5405
|
continue;
|
|
5400
5406
|
}
|
|
5401
5407
|
if (C === j) {
|
|
5402
|
-
|
|
5408
|
+
de = ge.isBracket = !0, Y = ge.isGlob = !0, S = !0;
|
|
5403
5409
|
break;
|
|
5404
5410
|
}
|
|
5405
5411
|
}
|
|
@@ -5407,15 +5413,15 @@ function Sf() {
|
|
|
5407
5413
|
continue;
|
|
5408
5414
|
break;
|
|
5409
5415
|
}
|
|
5410
|
-
if (L.nonegate !== !0 && Z === i && N ===
|
|
5411
|
-
Re =
|
|
5416
|
+
if (L.nonegate !== !0 && Z === i && N === oe) {
|
|
5417
|
+
Re = ge.negated = !0, oe++;
|
|
5412
5418
|
continue;
|
|
5413
5419
|
}
|
|
5414
5420
|
if (L.noparen !== !0 && Z === E) {
|
|
5415
|
-
if (
|
|
5421
|
+
if (Y = ge.isGlob = !0, le === !0) {
|
|
5416
5422
|
for (; $e() !== !0 && (Z = W()); ) {
|
|
5417
5423
|
if (Z === E) {
|
|
5418
|
-
Oe =
|
|
5424
|
+
Oe = ge.backslashes = !0, Z = W();
|
|
5419
5425
|
continue;
|
|
5420
5426
|
}
|
|
5421
5427
|
if (Z === $) {
|
|
@@ -5427,38 +5433,38 @@ function Sf() {
|
|
|
5427
5433
|
}
|
|
5428
5434
|
break;
|
|
5429
5435
|
}
|
|
5430
|
-
if (
|
|
5436
|
+
if (Y === !0) {
|
|
5431
5437
|
if (S = !0, le === !0)
|
|
5432
5438
|
continue;
|
|
5433
5439
|
break;
|
|
5434
5440
|
}
|
|
5435
5441
|
}
|
|
5436
|
-
L.noext === !0 && (ie = !1,
|
|
5442
|
+
L.noext === !0 && (ie = !1, Y = !1);
|
|
5437
5443
|
let Me = B, f = "", g = "";
|
|
5438
|
-
|
|
5444
|
+
oe > 0 && (f = B.slice(0, oe), B = B.slice(oe), he -= oe), Me && Y === !0 && he > 0 ? (Me = B.slice(0, he), g = B.slice(he)) : Y === !0 ? (Me = "", g = B) : Me = B, Me && Me !== "" && Me !== "/" && Me !== B && F(Me.charCodeAt(Me.length - 1)) && (Me = Me.slice(0, -1)), L.unescape === !0 && (g && (g = e.removeBackslashes(g)), Me && Oe === !0 && (Me = e.removeBackslashes(Me)));
|
|
5439
5445
|
const y = {
|
|
5440
5446
|
prefix: f,
|
|
5441
5447
|
input: U,
|
|
5442
|
-
start:
|
|
5448
|
+
start: oe,
|
|
5443
5449
|
base: Me,
|
|
5444
5450
|
glob: g,
|
|
5445
5451
|
isBrace: we,
|
|
5446
|
-
isBracket:
|
|
5447
|
-
isGlob:
|
|
5452
|
+
isBracket: de,
|
|
5453
|
+
isGlob: Y,
|
|
5448
5454
|
isExtglob: ie,
|
|
5449
5455
|
isGlobstar: ye,
|
|
5450
5456
|
negated: Re,
|
|
5451
5457
|
negatedExtglob: Pe
|
|
5452
5458
|
};
|
|
5453
|
-
if (L.tokens === !0 && (y.maxDepth = 0, F(Z) || K.push(
|
|
5459
|
+
if (L.tokens === !0 && (y.maxDepth = 0, F(Z) || K.push(ge), y.tokens = K), L.parts === !0 || L.tokens === !0) {
|
|
5454
5460
|
let C;
|
|
5455
5461
|
for (let R = 0; R < pe.length; R++) {
|
|
5456
|
-
const _ = C ? C + 1 :
|
|
5457
|
-
L.tokens && (R === 0 &&
|
|
5462
|
+
const _ = C ? C + 1 : oe, P = pe[R], b = U.slice(_, P);
|
|
5463
|
+
L.tokens && (R === 0 && oe !== 0 ? (K[R].isPrefix = !0, K[R].value = f) : K[R].value = b, z(K[R]), y.maxDepth += K[R].depth), (R !== 0 || b !== "") && k.push(b), C = P;
|
|
5458
5464
|
}
|
|
5459
5465
|
if (C && C + 1 < U.length) {
|
|
5460
5466
|
const R = U.slice(C + 1);
|
|
5461
|
-
k.push(R), L.tokens && (K[K.length - 1].value = R,
|
|
5467
|
+
k.push(R), L.tokens && (K[K.length - 1].value = R, z(K[K.length - 1]), y.maxDepth += K[K.length - 1].depth);
|
|
5462
5468
|
}
|
|
5463
5469
|
y.slashes = pe, y.parts = k;
|
|
5464
5470
|
}
|
|
@@ -5494,7 +5500,7 @@ function Af() {
|
|
|
5494
5500
|
let $ = p.length;
|
|
5495
5501
|
if ($ > O)
|
|
5496
5502
|
throw new SyntaxError(`Input length: ${$}, exceeds maximum allowed length: ${O}`);
|
|
5497
|
-
const j = { type: "bos", value: "", output: h.prepend || "" }, F = [j],
|
|
5503
|
+
const j = { type: "bos", value: "", output: h.prepend || "" }, F = [j], z = h.capture ? "" : "?:", te = e.globChars(h.windows), U = e.extglobChars(te), {
|
|
5498
5504
|
DOT_LITERAL: re,
|
|
5499
5505
|
PLUS_LITERAL: L,
|
|
5500
5506
|
SLASH_LITERAL: ne,
|
|
@@ -5504,11 +5510,11 @@ function Af() {
|
|
|
5504
5510
|
NO_DOT_SLASH: k,
|
|
5505
5511
|
NO_DOTS_SLASH: B,
|
|
5506
5512
|
QMARK: N,
|
|
5507
|
-
QMARK_NO_DOT:
|
|
5508
|
-
STAR:
|
|
5513
|
+
QMARK_NO_DOT: oe,
|
|
5514
|
+
STAR: he,
|
|
5509
5515
|
START_ANCHOR: we
|
|
5510
|
-
} = te,
|
|
5511
|
-
let ye = h.bash === !0 ?
|
|
5516
|
+
} = te, de = (_) => `(${z}(?:(?!${we}${_.dot ? pe : re}).)*?)`, Y = h.dot ? "" : K, ie = h.dot ? N : oe;
|
|
5517
|
+
let ye = h.bash === !0 ? de(h) : he;
|
|
5512
5518
|
h.capture && (ye = `(${ye})`), typeof h.noext == "boolean" && (h.noextglob = h.noext);
|
|
5513
5519
|
const D = {
|
|
5514
5520
|
input: p,
|
|
@@ -5530,14 +5536,14 @@ function Af() {
|
|
|
5530
5536
|
p = t.removePrefix(p, D), $ = p.length;
|
|
5531
5537
|
const Oe = [], Re = [], Pe = [];
|
|
5532
5538
|
let S = j, x;
|
|
5533
|
-
const ke = () => D.index === $ - 1, Z = D.peek = (_ = 1) => p[D.index + _],
|
|
5539
|
+
const ke = () => D.index === $ - 1, Z = D.peek = (_ = 1) => p[D.index + _], ge = D.advance = () => p[++D.index] || "", $e = () => p.slice(D.index + 1), _e = (_ = "", P = 0) => {
|
|
5534
5540
|
D.consumed += _, D.index += P;
|
|
5535
5541
|
}, W = (_) => {
|
|
5536
5542
|
D.output += _.output != null ? _.output : _.value, _e(_.value);
|
|
5537
5543
|
}, Me = () => {
|
|
5538
5544
|
let _ = 1;
|
|
5539
5545
|
for (; Z() === "!" && (Z(2) !== "(" || Z(3) === "?"); )
|
|
5540
|
-
|
|
5546
|
+
ge(), D.start++, _++;
|
|
5541
5547
|
return _ % 2 === 0 ? !1 : (D.negated = !0, D.start++, !0);
|
|
5542
5548
|
}, f = (_) => {
|
|
5543
5549
|
D[_]++, Pe.push(_);
|
|
@@ -5557,12 +5563,12 @@ function Af() {
|
|
|
5557
5563
|
const b = { ...U[P], conditions: 1, inner: "" };
|
|
5558
5564
|
b.prev = S, b.parens = D.parens, b.output = D.output;
|
|
5559
5565
|
const A = (h.capture ? "(" : "") + b.open;
|
|
5560
|
-
f("parens"), y({ type: _, value: P, output: D.output ? "" : le }), y({ type: "paren", extglob: !0, value:
|
|
5566
|
+
f("parens"), y({ type: _, value: P, output: D.output ? "" : le }), y({ type: "paren", extglob: !0, value: ge(), output: A }), Oe.push(b);
|
|
5561
5567
|
}, R = (_) => {
|
|
5562
5568
|
let P = _.close + (h.capture ? ")" : ""), b;
|
|
5563
5569
|
if (_.type === "negate") {
|
|
5564
5570
|
let A = ye;
|
|
5565
|
-
if (_.inner && _.inner.length > 1 && _.inner.includes("/") && (A =
|
|
5571
|
+
if (_.inner && _.inner.length > 1 && _.inner.includes("/") && (A = de(h)), (A !== ye || ke() || /^\)+$/.test($e())) && (P = _.close = `)$))${A}`), _.inner.includes("*") && (b = $e()) && /^\.[^\\/.]+$/.test(b)) {
|
|
5566
5572
|
const T = E(b, { ...d, fastpaths: !1 }).output;
|
|
5567
5573
|
P = _.close = `)${T})${A})`;
|
|
5568
5574
|
}
|
|
@@ -5575,7 +5581,7 @@ function Af() {
|
|
|
5575
5581
|
return _ === !0 && (h.unescape === !0 ? P = P.replace(/\\/g, "") : P = P.replace(/\\+/g, (b) => b.length % 2 === 0 ? "\\\\" : b ? "\\" : "")), P === p && h.contains === !0 ? (D.output = p, D) : (D.output = t.wrapOutput(P, D, d), D);
|
|
5576
5582
|
}
|
|
5577
5583
|
for (; !ke(); ) {
|
|
5578
|
-
if (x =
|
|
5584
|
+
if (x = ge(), x === "\0")
|
|
5579
5585
|
continue;
|
|
5580
5586
|
if (x === "\\") {
|
|
5581
5587
|
const b = Z();
|
|
@@ -5587,7 +5593,7 @@ function Af() {
|
|
|
5587
5593
|
}
|
|
5588
5594
|
const A = /^\\+/.exec($e());
|
|
5589
5595
|
let T = 0;
|
|
5590
|
-
if (A && A[0].length > 2 && (T = A[0].length, D.index += T, T % 2 !== 0 && (x += "\\")), h.unescape === !0 ? x =
|
|
5596
|
+
if (A && A[0].length > 2 && (T = A[0].length, D.index += T, T % 2 !== 0 && (x += "\\")), h.unescape === !0 ? x = ge() : x += ge(), D.brackets === 0) {
|
|
5591
5597
|
y({ type: "text", value: x });
|
|
5592
5598
|
continue;
|
|
5593
5599
|
}
|
|
@@ -5598,7 +5604,7 @@ function Af() {
|
|
|
5598
5604
|
if (b.includes("[") && (S.posix = !0, b.includes(":"))) {
|
|
5599
5605
|
const A = S.value.lastIndexOf("["), T = S.value.slice(0, A), G = S.value.slice(A + 2), M = r[G];
|
|
5600
5606
|
if (M) {
|
|
5601
|
-
S.value = T + M, D.backtrack = !0,
|
|
5607
|
+
S.value = T + M, D.backtrack = !0, ge(), !j.output && F.indexOf(S) === 1 && (j.output = le);
|
|
5602
5608
|
continue;
|
|
5603
5609
|
}
|
|
5604
5610
|
}
|
|
@@ -5659,7 +5665,7 @@ function Af() {
|
|
|
5659
5665
|
D.output += A, S.value = A;
|
|
5660
5666
|
continue;
|
|
5661
5667
|
}
|
|
5662
|
-
S.value = `(${
|
|
5668
|
+
S.value = `(${z}${A}|${S.value})`, D.output += S.value;
|
|
5663
5669
|
continue;
|
|
5664
5670
|
}
|
|
5665
5671
|
if (x === "{" && h.nobrace !== !0) {
|
|
@@ -5740,7 +5746,7 @@ function Af() {
|
|
|
5740
5746
|
continue;
|
|
5741
5747
|
}
|
|
5742
5748
|
if (h.dot !== !0 && (S.type === "slash" || S.type === "bos")) {
|
|
5743
|
-
y({ type: "qmark", value: x, output:
|
|
5749
|
+
y({ type: "qmark", value: x, output: oe });
|
|
5744
5750
|
continue;
|
|
5745
5751
|
}
|
|
5746
5752
|
y({ type: "qmark", value: x, output: N });
|
|
@@ -5811,41 +5817,41 @@ function Af() {
|
|
|
5811
5817
|
continue;
|
|
5812
5818
|
}
|
|
5813
5819
|
for (; _.slice(0, 3) === "/**"; ) {
|
|
5814
|
-
const
|
|
5815
|
-
if (
|
|
5820
|
+
const se = p[D.index + 4];
|
|
5821
|
+
if (se && se !== "/")
|
|
5816
5822
|
break;
|
|
5817
5823
|
_ = _.slice(3), _e("/**", 3);
|
|
5818
5824
|
}
|
|
5819
5825
|
if (b.type === "bos" && ke()) {
|
|
5820
|
-
S.type = "globstar", S.value += x, S.output =
|
|
5826
|
+
S.type = "globstar", S.value += x, S.output = de(h), D.output = S.output, D.globstar = !0, _e(x);
|
|
5821
5827
|
continue;
|
|
5822
5828
|
}
|
|
5823
5829
|
if (b.type === "slash" && b.prev.type !== "bos" && !G && ke()) {
|
|
5824
|
-
D.output = D.output.slice(0, -(b.output + S.output).length), b.output = `(?:${b.output}`, S.type = "globstar", S.output =
|
|
5830
|
+
D.output = D.output.slice(0, -(b.output + S.output).length), b.output = `(?:${b.output}`, S.type = "globstar", S.output = de(h) + (h.strictSlashes ? ")" : "|$)"), S.value += x, D.globstar = !0, D.output += b.output + S.output, _e(x);
|
|
5825
5831
|
continue;
|
|
5826
5832
|
}
|
|
5827
5833
|
if (b.type === "slash" && b.prev.type !== "bos" && _[0] === "/") {
|
|
5828
|
-
const
|
|
5829
|
-
D.output = D.output.slice(0, -(b.output + S.output).length), b.output = `(?:${b.output}`, S.type = "globstar", S.output = `${
|
|
5834
|
+
const se = _[1] !== void 0 ? "|$" : "";
|
|
5835
|
+
D.output = D.output.slice(0, -(b.output + S.output).length), b.output = `(?:${b.output}`, S.type = "globstar", S.output = `${de(h)}${ne}|${ne}${se})`, S.value += x, D.output += b.output + S.output, D.globstar = !0, _e(x + ge()), y({ type: "slash", value: "/", output: "" });
|
|
5830
5836
|
continue;
|
|
5831
5837
|
}
|
|
5832
5838
|
if (b.type === "bos" && _[0] === "/") {
|
|
5833
|
-
S.type = "globstar", S.value += x, S.output = `(?:^|${ne}|${
|
|
5839
|
+
S.type = "globstar", S.value += x, S.output = `(?:^|${ne}|${de(h)}${ne})`, D.output = S.output, D.globstar = !0, _e(x + ge()), y({ type: "slash", value: "/", output: "" });
|
|
5834
5840
|
continue;
|
|
5835
5841
|
}
|
|
5836
|
-
D.output = D.output.slice(0, -S.output.length), S.type = "globstar", S.output =
|
|
5842
|
+
D.output = D.output.slice(0, -S.output.length), S.type = "globstar", S.output = de(h), S.value += x, D.output += S.output, D.globstar = !0, _e(x);
|
|
5837
5843
|
continue;
|
|
5838
5844
|
}
|
|
5839
5845
|
const P = { type: "star", value: x, output: ye };
|
|
5840
5846
|
if (h.bash === !0) {
|
|
5841
|
-
P.output = ".*?", (S.type === "bos" || S.type === "slash") && (P.output =
|
|
5847
|
+
P.output = ".*?", (S.type === "bos" || S.type === "slash") && (P.output = Y + P.output), y(P);
|
|
5842
5848
|
continue;
|
|
5843
5849
|
}
|
|
5844
5850
|
if (S && (S.type === "bracket" || S.type === "paren") && h.regex === !0) {
|
|
5845
5851
|
P.output = x, y(P);
|
|
5846
5852
|
continue;
|
|
5847
5853
|
}
|
|
5848
|
-
(D.index === D.start || S.type === "slash" || S.type === "dot") && (S.type === "dot" ? (D.output += k, S.output += k) : h.dot === !0 ? (D.output += B, S.output += B) : (D.output +=
|
|
5854
|
+
(D.index === D.start || S.type === "slash" || S.type === "dot") && (S.type === "dot" ? (D.output += k, S.output += k) : h.dot === !0 ? (D.output += B, S.output += B) : (D.output += Y, S.output += Y), Z() !== "*" && (D.output += le, S.output += le)), y(P);
|
|
5849
5855
|
}
|
|
5850
5856
|
for (; D.brackets > 0; ) {
|
|
5851
5857
|
if (h.strictBrackets === !0) throw new SyntaxError(l("closing", "]"));
|
|
@@ -5874,7 +5880,7 @@ function Af() {
|
|
|
5874
5880
|
const {
|
|
5875
5881
|
DOT_LITERAL: j,
|
|
5876
5882
|
SLASH_LITERAL: F,
|
|
5877
|
-
ONE_CHAR:
|
|
5883
|
+
ONE_CHAR: z,
|
|
5878
5884
|
DOTS_SLASH: te,
|
|
5879
5885
|
NO_DOT: U,
|
|
5880
5886
|
NO_DOTS: re,
|
|
@@ -5884,34 +5890,34 @@ function Af() {
|
|
|
5884
5890
|
} = e.globChars(h.windows), pe = h.dot ? re : U, K = h.dot ? L : U, k = h.capture ? "" : "?:", B = { negated: !1, prefix: "" };
|
|
5885
5891
|
let N = h.bash === !0 ? ".*?" : ne;
|
|
5886
5892
|
h.capture && (N = `(${N})`);
|
|
5887
|
-
const
|
|
5888
|
-
switch (
|
|
5893
|
+
const oe = (Y) => Y.noglobstar === !0 ? N : `(${k}(?:(?!${le}${Y.dot ? te : j}).)*?)`, he = (Y) => {
|
|
5894
|
+
switch (Y) {
|
|
5889
5895
|
case "*":
|
|
5890
|
-
return `${pe}${
|
|
5896
|
+
return `${pe}${z}${N}`;
|
|
5891
5897
|
case ".*":
|
|
5892
|
-
return `${j}${
|
|
5898
|
+
return `${j}${z}${N}`;
|
|
5893
5899
|
case "*.*":
|
|
5894
|
-
return `${pe}${N}${j}${
|
|
5900
|
+
return `${pe}${N}${j}${z}${N}`;
|
|
5895
5901
|
case "*/*":
|
|
5896
|
-
return `${pe}${N}${F}${
|
|
5902
|
+
return `${pe}${N}${F}${z}${K}${N}`;
|
|
5897
5903
|
case "**":
|
|
5898
|
-
return pe +
|
|
5904
|
+
return pe + oe(h);
|
|
5899
5905
|
case "**/*":
|
|
5900
|
-
return `(?:${pe}${
|
|
5906
|
+
return `(?:${pe}${oe(h)}${F})?${K}${z}${N}`;
|
|
5901
5907
|
case "**/*.*":
|
|
5902
|
-
return `(?:${pe}${
|
|
5908
|
+
return `(?:${pe}${oe(h)}${F})?${K}${N}${j}${z}${N}`;
|
|
5903
5909
|
case "**/.*":
|
|
5904
|
-
return `(?:${pe}${
|
|
5910
|
+
return `(?:${pe}${oe(h)}${F})?${j}${z}${N}`;
|
|
5905
5911
|
default: {
|
|
5906
|
-
const ie = /^(.*?)\.(\w+)$/.exec(
|
|
5912
|
+
const ie = /^(.*?)\.(\w+)$/.exec(Y);
|
|
5907
5913
|
if (!ie) return;
|
|
5908
|
-
const ye =
|
|
5914
|
+
const ye = he(ie[1]);
|
|
5909
5915
|
return ye ? ye + j + ie[2] : void 0;
|
|
5910
5916
|
}
|
|
5911
5917
|
}
|
|
5912
5918
|
}, we = t.removePrefix(p, B);
|
|
5913
|
-
let
|
|
5914
|
-
return
|
|
5919
|
+
let de = he(we);
|
|
5920
|
+
return de && h.strictSlashes !== !0 && (de += `${F}?`), de;
|
|
5915
5921
|
}, No = E, No;
|
|
5916
5922
|
}
|
|
5917
5923
|
var To, pi;
|
|
@@ -5939,9 +5945,9 @@ function Nf() {
|
|
|
5939
5945
|
const F = { ...c, ignore: null, onMatch: null, onResult: null };
|
|
5940
5946
|
$ = s(p.ignore, F, l);
|
|
5941
5947
|
}
|
|
5942
|
-
const j = (F,
|
|
5948
|
+
const j = (F, z = !1) => {
|
|
5943
5949
|
const { isMatch: te, match: U, output: re } = s.test(F, h, c, { glob: i, posix: d }), L = { glob: i, state: O, regex: h, posix: d, input: F, output: re, match: U, isMatch: te };
|
|
5944
|
-
return typeof p.onResult == "function" && p.onResult(L), te === !1 ? (L.isMatch = !1,
|
|
5950
|
+
return typeof p.onResult == "function" && p.onResult(L), te === !1 ? (L.isMatch = !1, z ? L : !1) : $(F) ? (typeof p.onIgnore == "function" && p.onIgnore(L), L.isMatch = !1, z ? L : !1) : (typeof p.onMatch == "function" && p.onMatch(L), z ? L : !0);
|
|
5945
5951
|
};
|
|
5946
5952
|
return l && (j.state = O), j;
|
|
5947
5953
|
};
|
|
@@ -6754,7 +6760,7 @@ function hg() {
|
|
|
6754
6760
|
}), o.d(s, "listener", function() {
|
|
6755
6761
|
return Os;
|
|
6756
6762
|
}), o.d(s, "CONFIG", function() {
|
|
6757
|
-
return
|
|
6763
|
+
return he;
|
|
6758
6764
|
}), o.d(s, "CONSTANTS", function() {
|
|
6759
6765
|
return N;
|
|
6760
6766
|
}), o.d(s, "disable", function() {
|
|
@@ -6831,7 +6837,7 @@ function hg() {
|
|
|
6831
6837
|
}
|
|
6832
6838
|
return !1;
|
|
6833
6839
|
}
|
|
6834
|
-
function
|
|
6840
|
+
function z(a, u) {
|
|
6835
6841
|
if (!a || !u) return !1;
|
|
6836
6842
|
var m = d(u);
|
|
6837
6843
|
return m ? m === a : function(v) {
|
|
@@ -6870,14 +6876,14 @@ function hg() {
|
|
|
6870
6876
|
return u;
|
|
6871
6877
|
}
|
|
6872
6878
|
for (var V = 0; V < 100; V++) {
|
|
6873
|
-
var
|
|
6879
|
+
var q = void 0;
|
|
6874
6880
|
try {
|
|
6875
|
-
|
|
6881
|
+
q = m[V];
|
|
6876
6882
|
} catch {
|
|
6877
6883
|
return u;
|
|
6878
6884
|
}
|
|
6879
|
-
if (!
|
|
6880
|
-
u.push(
|
|
6885
|
+
if (!q) return u;
|
|
6886
|
+
u.push(q);
|
|
6881
6887
|
}
|
|
6882
6888
|
return u;
|
|
6883
6889
|
}
|
|
@@ -7044,8 +7050,8 @@ function hg() {
|
|
|
7044
7050
|
} catch {
|
|
7045
7051
|
}
|
|
7046
7052
|
this._cleanupClosedWindows();
|
|
7047
|
-
var V = this.keys,
|
|
7048
|
-
X === -1 ? (V.push(u),
|
|
7053
|
+
var V = this.keys, q = this.values, X = K(V, u);
|
|
7054
|
+
X === -1 ? (V.push(u), q.push(m)) : q[X] = m;
|
|
7049
7055
|
}, a.prototype.get = function(u) {
|
|
7050
7056
|
if (!u) throw new Error("WeakMap expected key");
|
|
7051
7057
|
var m = this.weakmap;
|
|
@@ -7137,12 +7143,12 @@ function hg() {
|
|
|
7137
7143
|
BRIDGE_NAME_PREFIX: "__postrobot_bridge__",
|
|
7138
7144
|
POSTROBOT_PROXY: "__postrobot_proxy__",
|
|
7139
7145
|
WILDCARD: "*"
|
|
7140
|
-
},
|
|
7146
|
+
}, oe = {
|
|
7141
7147
|
METHOD: "postrobot_method",
|
|
7142
7148
|
HELLO: "postrobot_hello",
|
|
7143
7149
|
OPEN_TUNNEL: "postrobot_open_tunnel"
|
|
7144
|
-
},
|
|
7145
|
-
return
|
|
7150
|
+
}, he = (Object.keys(oe).map(function(a) {
|
|
7151
|
+
return oe[a];
|
|
7146
7152
|
}), {
|
|
7147
7153
|
ALLOW_POSTMESSAGE_POPUP: !("__ALLOW_POSTMESSAGE_POPUP__" in window) || window.__ALLOW_POSTMESSAGE_POPUP__,
|
|
7148
7154
|
BRIDGE_TIMEOUT: 5e3,
|
|
@@ -7152,13 +7158,13 @@ function hg() {
|
|
|
7152
7158
|
ALLOWED_POST_MESSAGE_METHODS: (k = {}, k[N.SEND_STRATEGIES.POST_MESSAGE] = !0, k[N.SEND_STRATEGIES.BRIDGE] = !0, k[N.SEND_STRATEGIES.GLOBAL] = !0, k),
|
|
7153
7159
|
ALLOW_SAME_ORIGIN: !1
|
|
7154
7160
|
});
|
|
7155
|
-
window.location.href.indexOf(N.FILE_PROTOCOL) === 0 && (
|
|
7161
|
+
window.location.href.indexOf(N.FILE_PROTOCOL) === 0 && (he.ALLOW_POSTMESSAGE_POPUP = !0);
|
|
7156
7162
|
var we = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
|
|
7157
7163
|
return typeof a;
|
|
7158
7164
|
} : function(a) {
|
|
7159
7165
|
return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
|
|
7160
7166
|
};
|
|
7161
|
-
function
|
|
7167
|
+
function de(a) {
|
|
7162
7168
|
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
7163
7169
|
if (u >= 3) return "stringifyError stack overflow";
|
|
7164
7170
|
try {
|
|
@@ -7173,10 +7179,10 @@ function hg() {
|
|
|
7173
7179
|
}
|
|
7174
7180
|
return typeof a.toString == "function" ? a.toString() : Object.prototype.toString.call(a);
|
|
7175
7181
|
} catch (w) {
|
|
7176
|
-
return "Error while stringifying error: " +
|
|
7182
|
+
return "Error while stringifying error: " + de(w, u + 1);
|
|
7177
7183
|
}
|
|
7178
7184
|
}
|
|
7179
|
-
var
|
|
7185
|
+
var Y = function(a) {
|
|
7180
7186
|
if (!a) return a;
|
|
7181
7187
|
var u = !1;
|
|
7182
7188
|
return function() {
|
|
@@ -7201,10 +7207,10 @@ function hg() {
|
|
|
7201
7207
|
v = [];
|
|
7202
7208
|
} else v = {};
|
|
7203
7209
|
return function(w, I) {
|
|
7204
|
-
Array.isArray(w) ? function(V,
|
|
7205
|
-
for (var X = 0; X < V.length; X++)
|
|
7206
|
-
}(w, I) : (w === void 0 ? "undefined" : we(w)) === "object" && w !== null && function(V,
|
|
7207
|
-
for (var X in V) V.hasOwnProperty(X) &&
|
|
7210
|
+
Array.isArray(w) ? function(V, q) {
|
|
7211
|
+
for (var X = 0; X < V.length; X++) q(V[X], X);
|
|
7212
|
+
}(w, I) : (w === void 0 ? "undefined" : we(w)) === "object" && w !== null && function(V, q) {
|
|
7213
|
+
for (var X in V) V.hasOwnProperty(X) && q(V[X], X);
|
|
7208
7214
|
}(w, I);
|
|
7209
7215
|
}(a, function(w, I) {
|
|
7210
7216
|
var V = u(w, I);
|
|
@@ -7237,7 +7243,7 @@ function hg() {
|
|
|
7237
7243
|
ke = null, a.resolve();
|
|
7238
7244
|
}
|
|
7239
7245
|
}
|
|
7240
|
-
function
|
|
7246
|
+
function ge() {
|
|
7241
7247
|
x += 1;
|
|
7242
7248
|
}
|
|
7243
7249
|
function $e() {
|
|
@@ -7249,19 +7255,19 @@ function hg() {
|
|
|
7249
7255
|
if (function(X, ae) {
|
|
7250
7256
|
if (!(X instanceof a)) throw new TypeError("Cannot call a class as a function");
|
|
7251
7257
|
}(this), this.resolved = !1, this.rejected = !1, this.errorHandled = !1, this.handlers = [], u) {
|
|
7252
|
-
var v = void 0, w = void 0, I = !1, V = !1,
|
|
7253
|
-
|
|
7258
|
+
var v = void 0, w = void 0, I = !1, V = !1, q = !1;
|
|
7259
|
+
ge();
|
|
7254
7260
|
try {
|
|
7255
7261
|
u(function(X) {
|
|
7256
|
-
|
|
7262
|
+
q ? m.resolve(X) : (I = !0, v = X);
|
|
7257
7263
|
}, function(X) {
|
|
7258
|
-
|
|
7264
|
+
q ? m.reject(X) : (V = !0, w = X);
|
|
7259
7265
|
});
|
|
7260
7266
|
} catch (X) {
|
|
7261
7267
|
$e(), this.reject(X);
|
|
7262
7268
|
return;
|
|
7263
7269
|
}
|
|
7264
|
-
$e(),
|
|
7270
|
+
$e(), q = !0, I ? this.resolve(v) : V && this.reject(w);
|
|
7265
7271
|
}
|
|
7266
7272
|
}
|
|
7267
7273
|
return a.prototype.resolve = function(u) {
|
|
@@ -7291,17 +7297,17 @@ function hg() {
|
|
|
7291
7297
|
}, a.prototype.dispatch = function() {
|
|
7292
7298
|
var u = this.dispatching, m = this.resolved, v = this.rejected, w = this.handlers;
|
|
7293
7299
|
if (!u && (m || v)) {
|
|
7294
|
-
this.dispatching = !0,
|
|
7295
|
-
for (var I = function(fe,
|
|
7300
|
+
this.dispatching = !0, ge();
|
|
7301
|
+
for (var I = function(fe, me) {
|
|
7296
7302
|
return fe.then(function(Le) {
|
|
7297
|
-
|
|
7303
|
+
me.resolve(Le);
|
|
7298
7304
|
}, function(Le) {
|
|
7299
|
-
|
|
7305
|
+
me.reject(Le);
|
|
7300
7306
|
});
|
|
7301
7307
|
}, V = 0; V < w.length; V++) {
|
|
7302
|
-
var
|
|
7308
|
+
var q = w[V], X = q.onSuccess, ae = q.onError, ee = q.promise, J = void 0;
|
|
7303
7309
|
if (m) try {
|
|
7304
|
-
|
|
7310
|
+
J = X ? X(this.value) : this.value;
|
|
7305
7311
|
} catch (fe) {
|
|
7306
7312
|
ee.reject(fe);
|
|
7307
7313
|
continue;
|
|
@@ -7312,13 +7318,13 @@ function hg() {
|
|
|
7312
7318
|
continue;
|
|
7313
7319
|
}
|
|
7314
7320
|
try {
|
|
7315
|
-
|
|
7321
|
+
J = ae(this.error);
|
|
7316
7322
|
} catch (fe) {
|
|
7317
7323
|
ee.reject(fe);
|
|
7318
7324
|
continue;
|
|
7319
7325
|
}
|
|
7320
7326
|
}
|
|
7321
|
-
|
|
7327
|
+
J instanceof a && (J.resolved || J.rejected) ? (J.resolved ? ee.resolve(J.value) : ee.reject(J.error), J.errorHandled = !0) : Re(J) ? J instanceof a && (J.resolved || J.rejected) ? J.resolved ? ee.resolve(J.value) : ee.reject(J.error) : I(J, ee) : ee.resolve(J);
|
|
7322
7328
|
}
|
|
7323
7329
|
w.length = 0, this.dispatching = !1, $e();
|
|
7324
7330
|
}
|
|
@@ -7369,23 +7375,23 @@ function hg() {
|
|
|
7369
7375
|
if (!v)
|
|
7370
7376
|
return m.resolve(w), m;
|
|
7371
7377
|
for (var I = function(X, ae, ee) {
|
|
7372
|
-
return ae.then(function(
|
|
7373
|
-
w[X] =
|
|
7374
|
-
}, function(
|
|
7375
|
-
ee.reject(
|
|
7378
|
+
return ae.then(function(J) {
|
|
7379
|
+
w[X] = J, (v -= 1) == 0 && m.resolve(w);
|
|
7380
|
+
}, function(J) {
|
|
7381
|
+
ee.reject(J);
|
|
7376
7382
|
});
|
|
7377
7383
|
}, V = 0; V < u.length; V++) {
|
|
7378
|
-
var
|
|
7379
|
-
if (
|
|
7380
|
-
if (
|
|
7381
|
-
w[V] =
|
|
7384
|
+
var q = u[V];
|
|
7385
|
+
if (q instanceof a) {
|
|
7386
|
+
if (q.resolved) {
|
|
7387
|
+
w[V] = q.value, v -= 1;
|
|
7382
7388
|
continue;
|
|
7383
7389
|
}
|
|
7384
|
-
} else if (!Re(
|
|
7385
|
-
w[V] =
|
|
7390
|
+
} else if (!Re(q)) {
|
|
7391
|
+
w[V] = q, v -= 1;
|
|
7386
7392
|
continue;
|
|
7387
7393
|
}
|
|
7388
|
-
I(V, a.resolve(
|
|
7394
|
+
I(V, a.resolve(q), m);
|
|
7389
7395
|
}
|
|
7390
7396
|
return v === 0 && m.resolve(w), m;
|
|
7391
7397
|
}, a.hash = function(u) {
|
|
@@ -7410,7 +7416,7 @@ function hg() {
|
|
|
7410
7416
|
}, a.try = function(u, m, v) {
|
|
7411
7417
|
if (u && typeof u != "function" && !u.call) throw new Error("Promise.try expected a function");
|
|
7412
7418
|
var w = void 0;
|
|
7413
|
-
|
|
7419
|
+
ge();
|
|
7414
7420
|
try {
|
|
7415
7421
|
w = u.apply(m, v || []);
|
|
7416
7422
|
} catch (I) {
|
|
@@ -7438,7 +7444,7 @@ function hg() {
|
|
|
7438
7444
|
return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
|
|
7439
7445
|
};
|
|
7440
7446
|
W.methods = W.methods || new B();
|
|
7441
|
-
var f =
|
|
7447
|
+
var f = Y(function() {
|
|
7442
7448
|
W.on(N.POST_MESSAGE_NAMES.METHOD, {
|
|
7443
7449
|
origin: N.WILDCARD
|
|
7444
7450
|
}, function(a) {
|
|
@@ -7533,53 +7539,53 @@ function hg() {
|
|
|
7533
7539
|
function A(a, u, m) {
|
|
7534
7540
|
return _e.try(function() {
|
|
7535
7541
|
var v;
|
|
7536
|
-
if (u = function(V,
|
|
7542
|
+
if (u = function(V, q) {
|
|
7537
7543
|
var X = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, ae = ye(), ee = function() {
|
|
7538
7544
|
var fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
|
|
7539
7545
|
return !!h(fe);
|
|
7540
7546
|
}() ? N.WINDOW_TYPES.POPUP : function() {
|
|
7541
7547
|
var fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
|
|
7542
7548
|
return !!d(fe);
|
|
7543
|
-
}() ? N.WINDOW_TYPES.IFRAME : N.WINDOW_TYPES.FULLPAGE,
|
|
7544
|
-
return b({},
|
|
7545
|
-
sourceDomain:
|
|
7546
|
-
id:
|
|
7549
|
+
}() ? N.WINDOW_TYPES.IFRAME : N.WINDOW_TYPES.FULLPAGE, J = j(window);
|
|
7550
|
+
return b({}, q, X, {
|
|
7551
|
+
sourceDomain: J,
|
|
7552
|
+
id: q.id || ae,
|
|
7547
7553
|
windowType: ee
|
|
7548
7554
|
});
|
|
7549
7555
|
}(a, u, {
|
|
7550
|
-
data: function(V,
|
|
7556
|
+
data: function(V, q, X) {
|
|
7551
7557
|
return D({
|
|
7552
7558
|
obj: u.data
|
|
7553
7559
|
}, function(ae, ee) {
|
|
7554
|
-
return typeof ae == "function" ? y(V,
|
|
7560
|
+
return typeof ae == "function" ? y(V, q, ae, ee.toString()) : ae instanceof Error ? (J = ae, {
|
|
7555
7561
|
__type__: N.SERIALIZATION_TYPES.ERROR,
|
|
7556
|
-
__message__:
|
|
7557
|
-
__code__:
|
|
7558
|
-
}) : window.Promise && ae instanceof window.Promise ? function(
|
|
7562
|
+
__message__: de(J),
|
|
7563
|
+
__code__: J.code
|
|
7564
|
+
}) : window.Promise && ae instanceof window.Promise ? function(me, Le, ze, Ie) {
|
|
7559
7565
|
return {
|
|
7560
7566
|
__type__: N.SERIALIZATION_TYPES.PROMISE,
|
|
7561
|
-
__then__: y(
|
|
7567
|
+
__then__: y(me, Le, function(Je, Ke) {
|
|
7562
7568
|
return ze.then(Je, Ke);
|
|
7563
7569
|
}, Ie + ".then")
|
|
7564
7570
|
};
|
|
7565
|
-
}(V,
|
|
7571
|
+
}(V, q, ae, ee.toString()) : _e.isPromise(ae) ? function(me, Le, ze, Ie) {
|
|
7566
7572
|
return {
|
|
7567
7573
|
__type__: N.SERIALIZATION_TYPES.ZALGO_PROMISE,
|
|
7568
|
-
__then__: y(
|
|
7574
|
+
__then__: y(me, Le, function(Je, Ke) {
|
|
7569
7575
|
return ze.then(Je, Ke);
|
|
7570
7576
|
}, Ie + ".then")
|
|
7571
7577
|
};
|
|
7572
|
-
}(V,
|
|
7578
|
+
}(V, q, ae, ee.toString()) : Oe(ae) ? (fe = ae, {
|
|
7573
7579
|
__type__: N.SERIALIZATION_TYPES.REGEX,
|
|
7574
7580
|
__source__: fe.source
|
|
7575
7581
|
}) : void 0;
|
|
7576
|
-
var
|
|
7582
|
+
var J, fe;
|
|
7577
7583
|
}).obj;
|
|
7578
7584
|
}(a, m),
|
|
7579
7585
|
domain: m
|
|
7580
|
-
}), a === window && !
|
|
7586
|
+
}), a === window && !he.ALLOW_SAME_ORIGIN) throw new Error("Attemping to send message to self");
|
|
7581
7587
|
if (L(a)) throw new Error("Window is closed");
|
|
7582
|
-
var w = [], I = function(V,
|
|
7588
|
+
var w = [], I = function(V, q, X) {
|
|
7583
7589
|
var ae = void 0, ee = void 0;
|
|
7584
7590
|
try {
|
|
7585
7591
|
if (JSON.stringify({}) !== "{}" && (ae = Object.prototype.toJSON, delete Object.prototype.toJSON), JSON.stringify({}) !== "{}") throw new Error("Can not correctly serialize JSON objects");
|
|
@@ -7587,30 +7593,30 @@ function hg() {
|
|
|
7587
7593
|
} catch (fe) {
|
|
7588
7594
|
throw new Error("Can not repair JSON.stringify: " + fe.message);
|
|
7589
7595
|
}
|
|
7590
|
-
var
|
|
7596
|
+
var J = JSON.stringify.call(this, V, null, 2);
|
|
7591
7597
|
try {
|
|
7592
7598
|
ae && (Object.prototype.toJSON = ae), ee && (Array.prototype.toJSON = ee);
|
|
7593
7599
|
} catch (fe) {
|
|
7594
7600
|
throw new Error("Can not repair JSON.stringify: " + fe.message);
|
|
7595
7601
|
}
|
|
7596
|
-
return
|
|
7602
|
+
return J;
|
|
7597
7603
|
}(((v = {})[N.WINDOW_PROPS.POSTROBOT] = u, v));
|
|
7598
7604
|
return _e.map(Object.keys(P), function(V) {
|
|
7599
7605
|
return _e.try(function() {
|
|
7600
|
-
if (!
|
|
7606
|
+
if (!he.ALLOWED_POST_MESSAGE_METHODS[V]) throw new Error("Strategy disallowed: " + V);
|
|
7601
7607
|
return P[V](a, I, m);
|
|
7602
7608
|
}).then(function() {
|
|
7603
7609
|
return w.push(V + ": success"), !0;
|
|
7604
|
-
}, function(
|
|
7605
|
-
return w.push(V + ": " +
|
|
7610
|
+
}, function(q) {
|
|
7611
|
+
return w.push(V + ": " + de(q) + `
|
|
7606
7612
|
`), !1;
|
|
7607
7613
|
});
|
|
7608
7614
|
}).then(function(V) {
|
|
7609
|
-
var
|
|
7615
|
+
var q = V.some(Boolean), X = u.type + " " + u.name + " " + (q ? "success" : "error") + `:
|
|
7610
7616
|
- ` + w.join(`
|
|
7611
7617
|
- `) + `
|
|
7612
7618
|
`;
|
|
7613
|
-
if (!
|
|
7619
|
+
if (!q) throw new Error(X);
|
|
7614
7620
|
});
|
|
7615
7621
|
});
|
|
7616
7622
|
}
|
|
@@ -7623,20 +7629,20 @@ function hg() {
|
|
|
7623
7629
|
function Q(a) {
|
|
7624
7630
|
delete W.responseListeners[a];
|
|
7625
7631
|
}
|
|
7626
|
-
function
|
|
7632
|
+
function se(a) {
|
|
7627
7633
|
return !!W.erroredResponseListeners[a];
|
|
7628
7634
|
}
|
|
7629
7635
|
function Ee(a) {
|
|
7630
7636
|
var u = a.name, m = a.win, v = a.domain;
|
|
7631
7637
|
if (m === N.WILDCARD && (m = null), v === N.WILDCARD && (v = null), !u) throw new Error("Name required to get request listener");
|
|
7632
7638
|
var w = W.requestListeners[u];
|
|
7633
|
-
if (w) for (var I = 0, V = [m, W.WINDOW_WILDCARD],
|
|
7639
|
+
if (w) for (var I = 0, V = [m, W.WINDOW_WILDCARD], q = V == null ? 0 : V.length; I < q; I++) {
|
|
7634
7640
|
var X = V[I], ae = X && w.get(X);
|
|
7635
7641
|
if (ae) {
|
|
7636
7642
|
if (v && typeof v == "string") {
|
|
7637
7643
|
if (ae[v]) return ae[v];
|
|
7638
|
-
if (ae[G]) for (var ee = 0,
|
|
7639
|
-
var
|
|
7644
|
+
if (ae[G]) for (var ee = 0, J = ae[G], fe = J == null ? 0 : J.length; ee < fe; ee++) {
|
|
7645
|
+
var me = J[ee], Le = me.regex, ze = me.listener;
|
|
7640
7646
|
if (le(Le, v)) return ze;
|
|
7641
7647
|
}
|
|
7642
7648
|
}
|
|
@@ -7651,7 +7657,7 @@ function hg() {
|
|
|
7651
7657
|
}
|
|
7652
7658
|
return a;
|
|
7653
7659
|
}, Se = ((T = {})[N.POST_MESSAGE_TYPE.ACK] = function(a, u, m) {
|
|
7654
|
-
if (!
|
|
7660
|
+
if (!se(m.hash)) {
|
|
7655
7661
|
var v = M(m.hash);
|
|
7656
7662
|
if (!v) throw new Error("No handler found for post message ack for message: " + m.name + " from " + u + " in " + window.location.protocol + "//" + window.location.host + window.location.pathname);
|
|
7657
7663
|
if (!le(v.domain, u)) throw new Error("Ack origin " + u + " does not match domain " + v.domain.toString());
|
|
@@ -7688,19 +7694,19 @@ function hg() {
|
|
|
7688
7694
|
data: I
|
|
7689
7695
|
});
|
|
7690
7696
|
}, function(I) {
|
|
7691
|
-
var V =
|
|
7697
|
+
var V = de(I).replace(/^Error: /, ""), q = I.code;
|
|
7692
7698
|
return w({
|
|
7693
7699
|
type: N.POST_MESSAGE_TYPE.RESPONSE,
|
|
7694
7700
|
ack: N.POST_MESSAGE_ACK.ERROR,
|
|
7695
7701
|
error: V,
|
|
7696
|
-
code:
|
|
7702
|
+
code: q
|
|
7697
7703
|
});
|
|
7698
7704
|
})]).then(ie).catch(function(I) {
|
|
7699
7705
|
if (v && v.handleError) return v.handleError(I);
|
|
7700
7706
|
throw I;
|
|
7701
7707
|
});
|
|
7702
7708
|
}, T[N.POST_MESSAGE_TYPE.RESPONSE] = function(a, u, m) {
|
|
7703
|
-
if (!
|
|
7709
|
+
if (!se(m.hash)) {
|
|
7704
7710
|
var v, w = M(m.hash);
|
|
7705
7711
|
if (!w) throw new Error("No handler found for post message response for message: " + m.name + " from " + u + " in " + window.location.protocol + "//" + window.location.host + window.location.pathname);
|
|
7706
7712
|
if (!le(w.domain, u)) throw new Error("Response origin " + u + " does not match domain " + (v = w.domain, Array.isArray(v) ? "(" + v.join(" | ") + ")" : i(v) ? "RegExp(" + v.toString() : v.toString()));
|
|
@@ -7744,17 +7750,17 @@ function hg() {
|
|
|
7744
7750
|
v.sourceDomain.indexOf(N.MOCK_PROTOCOL) !== 0 && v.sourceDomain.indexOf(N.FILE_PROTOCOL) !== 0 || (m = v.sourceDomain), W.receivedMessages.indexOf(v.id) === -1 && (W.receivedMessages.push(v.id), (!L(u) || v.fireAndForget) && (v.data && (v.data = function(w, I, V) {
|
|
7745
7751
|
return D({
|
|
7746
7752
|
obj: v.data
|
|
7747
|
-
}, function(
|
|
7748
|
-
if ((
|
|
7749
|
-
var
|
|
7750
|
-
return ee.__code__ && (
|
|
7751
|
-
}(0, 0,
|
|
7752
|
-
return window.Promise ? new window.Promise(function(
|
|
7753
|
-
return C(X, ae, ee.__then__)(
|
|
7753
|
+
}, function(q) {
|
|
7754
|
+
if ((q === void 0 ? "undefined" : Me(q)) === "object" && q !== null) return g(q, N.SERIALIZATION_TYPES.METHOD) ? C(w, I, q) : g(q, N.SERIALIZATION_TYPES.ERROR) ? function(X, ae, ee) {
|
|
7755
|
+
var J = new Error(ee.__message__);
|
|
7756
|
+
return ee.__code__ && (J.code = ee.__code__), J;
|
|
7757
|
+
}(0, 0, q) : g(q, N.SERIALIZATION_TYPES.PROMISE) ? function(X, ae, ee) {
|
|
7758
|
+
return window.Promise ? new window.Promise(function(J, fe) {
|
|
7759
|
+
return C(X, ae, ee.__then__)(J, fe);
|
|
7754
7760
|
}) : R(X, ae, ee);
|
|
7755
|
-
}(w, I,
|
|
7761
|
+
}(w, I, q) : g(q, N.SERIALIZATION_TYPES.ZALGO_PROMISE) ? R(w, I, q) : g(q, N.SERIALIZATION_TYPES.REGEX) ? function(X, ae, ee) {
|
|
7756
7762
|
return new RegExp(ee.__source__);
|
|
7757
|
-
}(0, 0,
|
|
7763
|
+
}(0, 0, q) : void 0;
|
|
7758
7764
|
}).obj;
|
|
7759
7765
|
}(u, m)), Se[v.type](u, m, v)));
|
|
7760
7766
|
}
|
|
@@ -7793,13 +7799,13 @@ function hg() {
|
|
|
7793
7799
|
v = a.domain || N.WILDCARD;
|
|
7794
7800
|
var V = a.name + "_" + ye();
|
|
7795
7801
|
if (L(I)) throw new Error("Target window is closed");
|
|
7796
|
-
var
|
|
7802
|
+
var q = !1, X = W.requestPromises.get(I);
|
|
7797
7803
|
X || (X = [], W.requestPromises.set(I, X));
|
|
7798
7804
|
var ae = _e.try(function() {
|
|
7799
|
-
if (function(ee,
|
|
7800
|
-
var fe = ne(
|
|
7805
|
+
if (function(ee, J) {
|
|
7806
|
+
var fe = ne(J);
|
|
7801
7807
|
if (fe) return fe === ee;
|
|
7802
|
-
if (
|
|
7808
|
+
if (J === ee || function() {
|
|
7803
7809
|
var Ie = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
|
|
7804
7810
|
try {
|
|
7805
7811
|
if (Ie.top) return Ie.top;
|
|
@@ -7807,11 +7813,11 @@ function hg() {
|
|
|
7807
7813
|
}
|
|
7808
7814
|
if (d(Ie) === Ie) return Ie;
|
|
7809
7815
|
try {
|
|
7810
|
-
if (
|
|
7816
|
+
if (z(window, Ie) && window.top) return window.top;
|
|
7811
7817
|
} catch {
|
|
7812
7818
|
}
|
|
7813
7819
|
try {
|
|
7814
|
-
if (
|
|
7820
|
+
if (z(Ie, window) && window.top) return window.top;
|
|
7815
7821
|
} catch {
|
|
7816
7822
|
}
|
|
7817
7823
|
for (var Je = 0, Ke = function Pt(lo) {
|
|
@@ -7832,15 +7838,15 @@ function hg() {
|
|
|
7832
7838
|
}
|
|
7833
7839
|
if (d(Ct) === Ct) return Ct;
|
|
7834
7840
|
}
|
|
7835
|
-
}(
|
|
7836
|
-
for (var
|
|
7841
|
+
}(J) === J) return !1;
|
|
7842
|
+
for (var me = 0, Le = te(ee), ze = Le == null ? 0 : Le.length; me < ze; me++) if (Le[me] === J) return !0;
|
|
7837
7843
|
return !1;
|
|
7838
7844
|
}(window, I)) return function(ee) {
|
|
7839
|
-
var
|
|
7840
|
-
return
|
|
7841
|
-
return
|
|
7842
|
-
},
|
|
7843
|
-
}(I, a.timeout ||
|
|
7845
|
+
var J = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 5e3, fe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "Window", me = W.readyPromises.get(ee);
|
|
7846
|
+
return me || (me = new _e(), W.readyPromises.set(ee, me), J !== -1 && setTimeout(function() {
|
|
7847
|
+
return me.reject(new Error(fe + " did not load after " + J + "ms"));
|
|
7848
|
+
}, J), me);
|
|
7849
|
+
}(I, a.timeout || he.CHILD_WINDOW_TIMEOUT);
|
|
7844
7850
|
}).then(function() {
|
|
7845
7851
|
var ee = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).origin;
|
|
7846
7852
|
if (Oe(v) && !ee) return _(I);
|
|
@@ -7851,17 +7857,17 @@ function hg() {
|
|
|
7851
7857
|
v = ee;
|
|
7852
7858
|
}
|
|
7853
7859
|
if (typeof v != "string" && !Array.isArray(v)) throw new TypeError("Expected domain to be a string or array");
|
|
7854
|
-
var
|
|
7855
|
-
return new _e(function(fe,
|
|
7860
|
+
var J = v;
|
|
7861
|
+
return new _e(function(fe, me) {
|
|
7856
7862
|
var Le = void 0;
|
|
7857
7863
|
if (a.fireAndForget || function(Ke, Et) {
|
|
7858
7864
|
W.responseListeners[Ke] = Et;
|
|
7859
7865
|
}(V, Le = {
|
|
7860
7866
|
name: u,
|
|
7861
7867
|
window: I,
|
|
7862
|
-
domain:
|
|
7868
|
+
domain: J,
|
|
7863
7869
|
respond: function(Ke, Et) {
|
|
7864
|
-
Ke || (
|
|
7870
|
+
Ke || (q = !0, X.splice(X.indexOf(ae, 1))), Ke ? me(Ke) : fe(Et);
|
|
7865
7871
|
}
|
|
7866
7872
|
}), A(I, {
|
|
7867
7873
|
type: N.POST_MESSAGE_TYPE.REQUEST,
|
|
@@ -7869,17 +7875,17 @@ function hg() {
|
|
|
7869
7875
|
name: u,
|
|
7870
7876
|
data: a.data,
|
|
7871
7877
|
fireAndForget: a.fireAndForget
|
|
7872
|
-
},
|
|
7873
|
-
var ze =
|
|
7878
|
+
}, J).catch(me), a.fireAndForget) return fe();
|
|
7879
|
+
var ze = he.ACK_TIMEOUT, Ie = a.timeout || he.RES_TIMEOUT, Je = 100;
|
|
7874
7880
|
setTimeout(function Ke() {
|
|
7875
|
-
if (!
|
|
7876
|
-
if (L(I)) return Le.ack ?
|
|
7881
|
+
if (!q) {
|
|
7882
|
+
if (L(I)) return Le.ack ? me(new Error("Window closed for " + u + " before response")) : me(new Error("Window closed for " + u + " before ack"));
|
|
7877
7883
|
if (ze = Math.max(ze - Je, 0), Ie !== -1 && (Ie = Math.max(Ie - Je, 0)), Le.ack) {
|
|
7878
7884
|
if (Ie === -1) return;
|
|
7879
7885
|
Je = Math.min(Ie, 2e3);
|
|
7880
7886
|
} else {
|
|
7881
|
-
if (ze === 0) return
|
|
7882
|
-
if (Ie === 0) return
|
|
7887
|
+
if (ze === 0) return me(new Error("No ack for postMessage " + u + " in " + j() + " in " + he.ACK_TIMEOUT + "ms"));
|
|
7888
|
+
if (Ie === 0) return me(new Error("No response for postMessage " + u + " in " + j() + " in " + (a.timeout || he.RES_TIMEOUT) + "ms"));
|
|
7883
7889
|
}
|
|
7884
7890
|
setTimeout(Ke, Je);
|
|
7885
7891
|
}
|
|
@@ -7930,14 +7936,14 @@ function hg() {
|
|
|
7930
7936
|
domain: v || N.WILDCARD,
|
|
7931
7937
|
name: u
|
|
7932
7938
|
}, I = function X(ae, ee) {
|
|
7933
|
-
var
|
|
7934
|
-
if (!
|
|
7939
|
+
var J = ae.name, fe = ae.win, me = ae.domain;
|
|
7940
|
+
if (!J || typeof J != "string") throw new Error("Name required to add request listener");
|
|
7935
7941
|
if (Array.isArray(fe)) {
|
|
7936
7942
|
for (var Le = [], ze = 0, Ie = fe, Je = Ie == null ? 0 : Ie.length; ze < Je; ze++) {
|
|
7937
7943
|
var Ke = Ie[ze];
|
|
7938
7944
|
Le.push(X({
|
|
7939
|
-
name:
|
|
7940
|
-
domain:
|
|
7945
|
+
name: J,
|
|
7946
|
+
domain: me,
|
|
7941
7947
|
win: Ke
|
|
7942
7948
|
}, ee));
|
|
7943
7949
|
}
|
|
@@ -7947,11 +7953,11 @@ function hg() {
|
|
|
7947
7953
|
}
|
|
7948
7954
|
};
|
|
7949
7955
|
}
|
|
7950
|
-
if (Array.isArray(
|
|
7951
|
-
for (var Et = [], Ct = 0, Pt =
|
|
7956
|
+
if (Array.isArray(me)) {
|
|
7957
|
+
for (var Et = [], Ct = 0, Pt = me, lo = Pt == null ? 0 : Pt.length; Ct < lo; Ct++) {
|
|
7952
7958
|
var Hn = Pt[Ct];
|
|
7953
7959
|
Et.push(X({
|
|
7954
|
-
name:
|
|
7960
|
+
name: J,
|
|
7955
7961
|
win: fe,
|
|
7956
7962
|
domain: Hn
|
|
7957
7963
|
}, ee));
|
|
@@ -7963,18 +7969,18 @@ function hg() {
|
|
|
7963
7969
|
};
|
|
7964
7970
|
}
|
|
7965
7971
|
var Wn = Ee({
|
|
7966
|
-
name:
|
|
7972
|
+
name: J,
|
|
7967
7973
|
win: fe,
|
|
7968
|
-
domain:
|
|
7974
|
+
domain: me
|
|
7969
7975
|
});
|
|
7970
|
-
if (fe && fe !== N.WILDCARD || (fe = W.WINDOW_WILDCARD),
|
|
7971
|
-
var mn = W.requestListeners, kt = mn[
|
|
7972
|
-
kt || (kt = new B(), mn[
|
|
7976
|
+
if (fe && fe !== N.WILDCARD || (fe = W.WINDOW_WILDCARD), me = me || N.WILDCARD, Wn) throw fe && me ? new Error("Request listener already exists for " + J + " on domain " + me.toString() + " for " + (fe === W.WINDOW_WILDCARD ? "wildcard" : "specified") + " window") : fe ? new Error("Request listener already exists for " + J + " for " + (fe === W.WINDOW_WILDCARD ? "wildcard" : "specified") + " window") : me ? new Error("Request listener already exists for " + J + " on domain " + me.toString()) : new Error("Request listener already exists for " + J);
|
|
7977
|
+
var mn = W.requestListeners, kt = mn[J];
|
|
7978
|
+
kt || (kt = new B(), mn[J] = kt);
|
|
7973
7979
|
var pt = kt.get(fe);
|
|
7974
7980
|
pt || (pt = {}, kt.set(fe, pt));
|
|
7975
|
-
var vn =
|
|
7976
|
-
return Oe(
|
|
7977
|
-
regex:
|
|
7981
|
+
var vn = me.toString(), yt = pt[G], En = void 0;
|
|
7982
|
+
return Oe(me) ? (yt || (yt = [], pt[G] = yt), En = {
|
|
7983
|
+
regex: me,
|
|
7978
7984
|
listener: ee
|
|
7979
7985
|
}, yt.push(En)) : pt[vn] = ee, {
|
|
7980
7986
|
cancel: function() {
|
|
@@ -7988,15 +7994,15 @@ function hg() {
|
|
|
7988
7994
|
}, w);
|
|
7989
7995
|
if (a.once) {
|
|
7990
7996
|
var V = w.handler;
|
|
7991
|
-
w.handler =
|
|
7997
|
+
w.handler = Y(function() {
|
|
7992
7998
|
return I.cancel(), V.apply(this, arguments);
|
|
7993
7999
|
});
|
|
7994
8000
|
}
|
|
7995
|
-
if (w.window && a.errorOnClose) var
|
|
8001
|
+
if (w.window && a.errorOnClose) var q = function(X, ae) {
|
|
7996
8002
|
var ee = void 0;
|
|
7997
|
-
return ee = setTimeout(function
|
|
7998
|
-
ee = setTimeout(
|
|
7999
|
-
m && (m === void 0 ? "undefined" : ft(m)) === "object" && L(m) && (
|
|
8003
|
+
return ee = setTimeout(function J() {
|
|
8004
|
+
ee = setTimeout(J, 50), (function() {
|
|
8005
|
+
m && (m === void 0 ? "undefined" : ft(m)) === "object" && L(m) && (q.cancel(), w.handleError(new Error("Post message target window is closed")));
|
|
8000
8006
|
}).call();
|
|
8001
8007
|
}, 50), {
|
|
8002
8008
|
cancel: function() {
|
|
@@ -8016,11 +8022,11 @@ function hg() {
|
|
|
8016
8022
|
function ws(a) {
|
|
8017
8023
|
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = arguments[2];
|
|
8018
8024
|
typeof u == "function" && (m = u, u = {}), u = u || {}, m = m || u.handler;
|
|
8019
|
-
var v = u.errorHandler, w = new _e(function(V,
|
|
8025
|
+
var v = u.errorHandler, w = new _e(function(V, q) {
|
|
8020
8026
|
(u = u || {}).name = a, u.once = !0, u.handler = function(X) {
|
|
8021
8027
|
if (V(X), m) return m(X);
|
|
8022
8028
|
}, u.errorHandler = function(X) {
|
|
8023
|
-
if (
|
|
8029
|
+
if (q(X), v) return v(X);
|
|
8024
8030
|
};
|
|
8025
8031
|
}), I = tn(u);
|
|
8026
8032
|
return w.cancel = I.cancel, w;
|
|
@@ -8047,10 +8053,10 @@ function hg() {
|
|
|
8047
8053
|
function uo() {
|
|
8048
8054
|
W.initialized || (u = ot, (a = window).addEventListener ? a.addEventListener("message", u) : a.attachEvent("onmessage", u), function() {
|
|
8049
8055
|
m = function(w) {
|
|
8050
|
-
var I = w.source, V = w.origin,
|
|
8051
|
-
|
|
8056
|
+
var I = w.source, V = w.origin, q = W.readyPromises.get(I) || new _e();
|
|
8057
|
+
q.resolve({
|
|
8052
8058
|
origin: V
|
|
8053
|
-
}), W.readyPromises.set(I,
|
|
8059
|
+
}), W.readyPromises.set(I, q);
|
|
8054
8060
|
}, W.on(N.POST_MESSAGE_NAMES.HELLO, {
|
|
8055
8061
|
domain: N.WILDCARD
|
|
8056
8062
|
}, function(w) {
|
|
@@ -8096,7 +8102,7 @@ function hg() {
|
|
|
8096
8102
|
}), o.d(r, "listener", function() {
|
|
8097
8103
|
return Os;
|
|
8098
8104
|
}), o.d(r, "CONFIG", function() {
|
|
8099
|
-
return
|
|
8105
|
+
return he;
|
|
8100
8106
|
}), o.d(r, "CONSTANTS", function() {
|
|
8101
8107
|
return N;
|
|
8102
8108
|
}), o.d(r, "disable", function() {
|