@das-fed/mframe 0.0.14 → 0.0.16
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 +418 -413
- package/index.js +376 -368
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -10,12 +10,12 @@ function Pn(e) {
|
|
|
10
10
|
for (const n of e.split(",")) t[n] = 1;
|
|
11
11
|
return (n) => n in t;
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const Te = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, On = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], Fe = () => {
|
|
14
14
|
}, ma = () => !1, ur = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
15
15
|
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Ir = (e) => e.startsWith("onUpdate:"), je = Object.assign, Xo = (e, t) => {
|
|
16
16
|
const n = e.indexOf(t);
|
|
17
17
|
n > -1 && e.splice(n, 1);
|
|
18
|
-
}, va = Object.prototype.hasOwnProperty,
|
|
18
|
+
}, va = Object.prototype.hasOwnProperty, we = (e, t) => va.call(e, t), ce = Array.isArray, Sn = (e) => kr(e) === "[object Map]", Ea = (e) => kr(e) === "[object Set]", ue = (e) => typeof e == "function", He = (e) => typeof e == "string", In = (e) => typeof e == "symbol", De = (e) => e !== null && typeof e == "object", Zo = (e) => (De(e) || ue(e)) && ue(e.then) && ue(e.catch), ya = Object.prototype.toString, kr = (e) => ya.call(e), Qo = (e) => kr(e).slice(8, -1), _a = (e) => kr(e) === "[object Object]", es = (e) => He(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Jn = /* @__PURE__ */ Pn(
|
|
19
19
|
// the leading comma is intentional so empty string "" is also included
|
|
20
20
|
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
21
21
|
), ba = /* @__PURE__ */ Pn(
|
|
@@ -176,7 +176,7 @@ class Ca {
|
|
|
176
176
|
function Pa() {
|
|
177
177
|
return it;
|
|
178
178
|
}
|
|
179
|
-
let
|
|
179
|
+
let Ne;
|
|
180
180
|
const po = /* @__PURE__ */ new WeakSet();
|
|
181
181
|
class Bi {
|
|
182
182
|
constructor(t) {
|
|
@@ -198,14 +198,14 @@ class Bi {
|
|
|
198
198
|
if (!(this.flags & 1))
|
|
199
199
|
return this.fn();
|
|
200
200
|
this.flags |= 2, xs(this), Ki(this);
|
|
201
|
-
const t =
|
|
202
|
-
|
|
201
|
+
const t = Ne, n = mt;
|
|
202
|
+
Ne = this, mt = !0;
|
|
203
203
|
try {
|
|
204
204
|
return this.fn();
|
|
205
205
|
} finally {
|
|
206
|
-
process.env.NODE_ENV !== "production" &&
|
|
206
|
+
process.env.NODE_ENV !== "production" && Ne !== this && Rt(
|
|
207
207
|
"Active effect was not restored correctly - this is likely a Vue internal bug."
|
|
208
|
-
), ki(this),
|
|
208
|
+
), ki(this), Ne = t, mt = n, this.flags &= -3;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
stop() {
|
|
@@ -292,8 +292,8 @@ function Yi(e) {
|
|
|
292
292
|
e.flags &= -3;
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
|
-
const n =
|
|
296
|
-
|
|
295
|
+
const n = Ne, r = mt;
|
|
296
|
+
Ne = e, mt = !0;
|
|
297
297
|
try {
|
|
298
298
|
Ki(e);
|
|
299
299
|
const o = e.fn(e._value);
|
|
@@ -301,7 +301,7 @@ function Yi(e) {
|
|
|
301
301
|
} catch (o) {
|
|
302
302
|
throw t.version++, o;
|
|
303
303
|
} finally {
|
|
304
|
-
|
|
304
|
+
Ne = n, mt = r, ki(e), e.flags &= -3;
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
function os(e, t = !1) {
|
|
@@ -329,12 +329,12 @@ function Ut() {
|
|
|
329
329
|
function xs(e) {
|
|
330
330
|
const { cleanup: t } = e;
|
|
331
331
|
if (e.cleanup = void 0, t) {
|
|
332
|
-
const n =
|
|
333
|
-
|
|
332
|
+
const n = Ne;
|
|
333
|
+
Ne = void 0;
|
|
334
334
|
try {
|
|
335
335
|
t();
|
|
336
336
|
} finally {
|
|
337
|
-
|
|
337
|
+
Ne = n;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
}
|
|
@@ -349,19 +349,19 @@ class ss {
|
|
|
349
349
|
this.computed = t, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
|
|
350
350
|
}
|
|
351
351
|
track(t) {
|
|
352
|
-
if (!
|
|
352
|
+
if (!Ne || !mt || Ne === this.computed)
|
|
353
353
|
return;
|
|
354
354
|
let n = this.activeLink;
|
|
355
|
-
if (n === void 0 || n.sub !==
|
|
356
|
-
n = this.activeLink = new $a(
|
|
355
|
+
if (n === void 0 || n.sub !== Ne)
|
|
356
|
+
n = this.activeLink = new $a(Ne, this), Ne.deps ? (n.prevDep = Ne.depsTail, Ne.depsTail.nextDep = n, Ne.depsTail = n) : Ne.deps = Ne.depsTail = n, zi(n);
|
|
357
357
|
else if (n.version === -1 && (n.version = this.version, n.nextDep)) {
|
|
358
358
|
const r = n.nextDep;
|
|
359
|
-
r.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = r), n.prevDep =
|
|
359
|
+
r.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = r), n.prevDep = Ne.depsTail, n.nextDep = void 0, Ne.depsTail.nextDep = n, Ne.depsTail = n, Ne.deps === n && (Ne.deps = r);
|
|
360
360
|
}
|
|
361
|
-
return process.env.NODE_ENV !== "production" &&
|
|
361
|
+
return process.env.NODE_ENV !== "production" && Ne.onTrack && Ne.onTrack(
|
|
362
362
|
je(
|
|
363
363
|
{
|
|
364
|
-
effect:
|
|
364
|
+
effect: Ne
|
|
365
365
|
},
|
|
366
366
|
t
|
|
367
367
|
)
|
|
@@ -410,7 +410,7 @@ const Io = /* @__PURE__ */ new WeakMap(), un = Symbol(
|
|
|
410
410
|
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
411
411
|
);
|
|
412
412
|
function We(e, t, n) {
|
|
413
|
-
if (mt &&
|
|
413
|
+
if (mt && Ne) {
|
|
414
414
|
let r = Io.get(e);
|
|
415
415
|
r || Io.set(e, r = /* @__PURE__ */ new Map());
|
|
416
416
|
let o = r.get(n);
|
|
@@ -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,19 +652,19 @@ 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
|
-
const i = ce(t) && es(n) ? Number(n) < t.length :
|
|
658
|
+
const i = ce(t) && es(n) ? Number(n) < t.length : we(t, n), c = Reflect.set(
|
|
659
659
|
t,
|
|
660
660
|
n,
|
|
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
|
-
const r =
|
|
667
|
+
const r = we(t, n), o = t[n], s = Reflect.deleteProperty(t, n);
|
|
668
668
|
return s && r && St(t, "delete", n, void 0, o), s;
|
|
669
669
|
}
|
|
670
670
|
has(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",
|
|
@@ -808,7 +808,7 @@ function Ga(e, t) {
|
|
|
808
808
|
function zr(e, t) {
|
|
809
809
|
const n = Ga(e, t);
|
|
810
810
|
return (r, o, s) => o === "__v_isReactive" ? !e : o === "__v_isReadonly" ? e : o === "__v_raw" ? r : Reflect.get(
|
|
811
|
-
|
|
811
|
+
we(n, o) && o in r ? n : r,
|
|
812
812
|
o,
|
|
813
813
|
s
|
|
814
814
|
);
|
|
@@ -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,12 +918,12 @@ 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
|
-
return !
|
|
926
|
+
return !we(e, "__v_skip") && Object.isExtensible(e) && $r(e, "__v_skip", !0), e;
|
|
927
927
|
}
|
|
928
928
|
const Ze = (e) => De(e) ? cs(e) : e, Lo = (e) => De(e) ? oc(e) : e;
|
|
929
929
|
function Ve(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",
|
|
@@ -979,7 +979,7 @@ class nu {
|
|
|
979
979
|
*/
|
|
980
980
|
notify() {
|
|
981
981
|
if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
|
|
982
|
-
|
|
982
|
+
Ne !== this)
|
|
983
983
|
return Gi(this, !0), !0;
|
|
984
984
|
process.env.NODE_ENV;
|
|
985
985
|
}
|
|
@@ -1011,7 +1011,7 @@ function ou(e, t = !1, n = an) {
|
|
|
1011
1011
|
"onWatcherCleanup() was called when there was no active watcher to associate with."
|
|
1012
1012
|
);
|
|
1013
1013
|
}
|
|
1014
|
-
function su(e, t, n =
|
|
1014
|
+
function su(e, t, n = Te) {
|
|
1015
1015
|
const { immediate: r, deep: o, once: s, scheduler: i, augmentJob: c, call: l } = n, E = (L) => {
|
|
1016
1016
|
(n.onWarn || Rt)(
|
|
1017
1017
|
"Invalid watch source: ",
|
|
@@ -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",
|
|
@@ -1255,7 +1255,7 @@ function xt(e, t, n, r) {
|
|
|
1255
1255
|
);
|
|
1256
1256
|
}
|
|
1257
1257
|
function fr(e, t, n, r = !0) {
|
|
1258
|
-
const o = t ? t.vnode : null, { errorHandler: s, throwUnhandledErrorInProduction: i } = t && t.appContext.config ||
|
|
1258
|
+
const o = t ? t.vnode : null, { errorHandler: s, throwUnhandledErrorInProduction: i } = t && t.appContext.config || Te;
|
|
1259
1259
|
if (t) {
|
|
1260
1260
|
let c = t.parent;
|
|
1261
1261
|
const l = t.proxy, E = process.env.NODE_ENV !== "production" ? as[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
@@ -1544,7 +1544,7 @@ function _r(e, t) {
|
|
|
1544
1544
|
return process.env.NODE_ENV !== "production" && H("withDirectives can only be used inside render functions."), e;
|
|
1545
1545
|
const n = eo(et), r = e.dirs || (e.dirs = []);
|
|
1546
1546
|
for (let o = 0; o < t.length; o++) {
|
|
1547
|
-
let [s, i, c, l =
|
|
1547
|
+
let [s, i, c, l = Te] = t[o];
|
|
1548
1548
|
s && (ue(s) && (s = {
|
|
1549
1549
|
mounted: s,
|
|
1550
1550
|
updated: s
|
|
@@ -1614,9 +1614,9 @@ function Wr(e, t, n, r, o = !1) {
|
|
|
1614
1614
|
);
|
|
1615
1615
|
return;
|
|
1616
1616
|
}
|
|
1617
|
-
const E = t && t.r, p = c.refs ===
|
|
1617
|
+
const E = t && t.r, p = c.refs === Te ? c.refs = {} : c.refs, d = c.setupState, h = ve(d), O = d === Te ? () => !1 : ($) => process.env.NODE_ENV !== "production" && (we(h, $) && !Ve(h[$]) && H(
|
|
1618
1618
|
`Template ref "${$}" used on a non-ref value. It will not work in the production build.`
|
|
1619
|
-
), Du.has(h[$])) ? !1 :
|
|
1619
|
+
), Du.has(h[$])) ? !1 : we(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))
|
|
1621
1621
|
$n(l, c, 12, [i, p]);
|
|
1622
1622
|
else {
|
|
@@ -1718,7 +1718,7 @@ const Bu = Symbol.for("v-ndc"), jo = (e) => e ? Gc(e) ? eo(e) : jo(e.parent) : n
|
|
|
1718
1718
|
$nextTick: (e) => e.n || (e.n = pu.bind(e.proxy)),
|
|
1719
1719
|
$watch: (e) => bl.bind(e)
|
|
1720
1720
|
})
|
|
1721
|
-
), hs = (e) => e === "_" || e === "$", Eo = (e, t) => e !==
|
|
1721
|
+
), hs = (e) => e === "_" || e === "$", Eo = (e, t) => e !== Te && !e.__isScriptSetup && we(e, t), bc = {
|
|
1722
1722
|
get({ _: e }, t) {
|
|
1723
1723
|
if (t === "__v_skip")
|
|
1724
1724
|
return !0;
|
|
@@ -1742,15 +1742,15 @@ const Bu = Symbol.for("v-ndc"), jo = (e) => e ? Gc(e) ? eo(e) : jo(e.parent) : n
|
|
|
1742
1742
|
else {
|
|
1743
1743
|
if (Eo(r, t))
|
|
1744
1744
|
return i[t] = 1, r[t];
|
|
1745
|
-
if (o !==
|
|
1745
|
+
if (o !== Te && we(o, t))
|
|
1746
1746
|
return i[t] = 2, o[t];
|
|
1747
1747
|
if (
|
|
1748
1748
|
// only cache other properties when instance has declared (thus stable)
|
|
1749
1749
|
// props
|
|
1750
|
-
(E = e.propsOptions[0]) &&
|
|
1750
|
+
(E = e.propsOptions[0]) && we(E, t)
|
|
1751
1751
|
)
|
|
1752
1752
|
return i[t] = 3, s[t];
|
|
1753
|
-
if (n !==
|
|
1753
|
+
if (n !== Te && we(n, t))
|
|
1754
1754
|
return i[t] = 4, n[t];
|
|
1755
1755
|
Ho && (i[t] = 0);
|
|
1756
1756
|
}
|
|
@@ -1764,16 +1764,16 @@ const Bu = Symbol.for("v-ndc"), jo = (e) => e ? Gc(e) ? eo(e) : jo(e.parent) : n
|
|
|
1764
1764
|
(d = c.__cssModules) && (d = d[t])
|
|
1765
1765
|
)
|
|
1766
1766
|
return d;
|
|
1767
|
-
if (n !==
|
|
1767
|
+
if (n !== Te && we(n, t))
|
|
1768
1768
|
return i[t] = 4, n[t];
|
|
1769
1769
|
if (
|
|
1770
1770
|
// global properties
|
|
1771
|
-
h = l.config.globalProperties,
|
|
1771
|
+
h = l.config.globalProperties, we(h, t)
|
|
1772
1772
|
)
|
|
1773
1773
|
return h[t];
|
|
1774
1774
|
process.env.NODE_ENV !== "production" && et && (!He(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading
|
|
1775
1775
|
// to infinite warning loop
|
|
1776
|
-
t.indexOf("__v") !== 0) && (o !==
|
|
1776
|
+
t.indexOf("__v") !== 0) && (o !== Te && hs(t[0]) && we(o, t) ? H(
|
|
1777
1777
|
`Property ${JSON.stringify(
|
|
1778
1778
|
t
|
|
1779
1779
|
)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
|
|
@@ -1783,7 +1783,7 @@ const Bu = Symbol.for("v-ndc"), jo = (e) => e ? Gc(e) ? eo(e) : jo(e.parent) : n
|
|
|
1783
1783
|
},
|
|
1784
1784
|
set({ _: e }, t, n) {
|
|
1785
1785
|
const { data: r, setupState: o, ctx: s } = e;
|
|
1786
|
-
return Eo(o, t) ? (o[t] = n, !0) : process.env.NODE_ENV !== "production" && o.__isScriptSetup &&
|
|
1786
|
+
return Eo(o, t) ? (o[t] = n, !0) : process.env.NODE_ENV !== "production" && o.__isScriptSetup && we(o, t) ? (H(`Cannot mutate <script setup> binding "${t}" from Options API.`), !1) : r !== Te && we(r, t) ? (r[t] = n, !0) : we(e.props, t) ? (process.env.NODE_ENV !== "production" && H(`Attempting to mutate prop "${t}". Props are readonly.`), !1) : t[0] === "$" && t.slice(1) in e ? (process.env.NODE_ENV !== "production" && H(
|
|
1787
1787
|
`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`
|
|
1788
1788
|
), !1) : (process.env.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(s, t, {
|
|
1789
1789
|
enumerable: !0,
|
|
@@ -1795,10 +1795,10 @@ const Bu = Symbol.for("v-ndc"), jo = (e) => e ? Gc(e) ? eo(e) : jo(e.parent) : n
|
|
|
1795
1795
|
_: { data: e, setupState: t, accessCache: n, ctx: r, appContext: o, propsOptions: s }
|
|
1796
1796
|
}, i) {
|
|
1797
1797
|
let c;
|
|
1798
|
-
return !!n[i] || e !==
|
|
1798
|
+
return !!n[i] || e !== Te && we(e, i) || Eo(t, i) || (c = s[0]) && we(c, i) || we(r, i) || we(fn, i) || we(o.config.globalProperties, i);
|
|
1799
1799
|
},
|
|
1800
1800
|
defineProperty(e, t, n) {
|
|
1801
|
-
return n.get != null ? e._.accessCache[t] = 0 :
|
|
1801
|
+
return n.get != null ? e._.accessCache[t] = 0 : we(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
|
|
1802
1802
|
}
|
|
1803
1803
|
};
|
|
1804
1804
|
process.env.NODE_ENV !== "production" && (bc.ownKeys = (e) => (H(
|
|
@@ -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(
|
|
@@ -1902,16 +1902,16 @@ function Yu(e) {
|
|
|
1902
1902
|
inheritAttrs: B,
|
|
1903
1903
|
// assets
|
|
1904
1904
|
components: N,
|
|
1905
|
-
directives:
|
|
1906
|
-
filters:
|
|
1907
|
-
} = t,
|
|
1905
|
+
directives: oe,
|
|
1906
|
+
filters: me
|
|
1907
|
+
} = t, Oe = process.env.NODE_ENV !== "production" ? ku() : null;
|
|
1908
1908
|
if (process.env.NODE_ENV !== "production") {
|
|
1909
1909
|
const [J] = e.propsOptions;
|
|
1910
1910
|
if (J)
|
|
1911
1911
|
for (const ie in J)
|
|
1912
|
-
|
|
1912
|
+
Oe("Props", ie);
|
|
1913
1913
|
}
|
|
1914
|
-
if (E && qu(E, r,
|
|
1914
|
+
if (E && qu(E, r, Oe), i)
|
|
1915
1915
|
for (const J in i) {
|
|
1916
1916
|
const ie = i[J];
|
|
1917
1917
|
ue(ie) ? (process.env.NODE_ENV !== "production" ? Object.defineProperty(r, J, {
|
|
@@ -1919,7 +1919,7 @@ function Yu(e) {
|
|
|
1919
1919
|
configurable: !0,
|
|
1920
1920
|
enumerable: !0,
|
|
1921
1921
|
writable: !0
|
|
1922
|
-
}) : r[J] = ie.bind(n), process.env.NODE_ENV !== "production" &&
|
|
1922
|
+
}) : r[J] = ie.bind(n), process.env.NODE_ENV !== "production" && Oe("Methods", J)) : process.env.NODE_ENV !== "production" && H(
|
|
1923
1923
|
`Method "${J}" has type "${typeof ie}" in the component definition. Did you reference the function correctly?`
|
|
1924
1924
|
);
|
|
1925
1925
|
}
|
|
@@ -1934,7 +1934,7 @@ function Yu(e) {
|
|
|
1934
1934
|
process.env.NODE_ENV !== "production" && H("data() should return an object.");
|
|
1935
1935
|
else if (e.data = cs(J), process.env.NODE_ENV !== "production")
|
|
1936
1936
|
for (const ie in J)
|
|
1937
|
-
|
|
1937
|
+
Oe("Data", ie), hs(ie[0]) || Object.defineProperty(r, ie, {
|
|
1938
1938
|
configurable: !0,
|
|
1939
1939
|
enumerable: !0,
|
|
1940
1940
|
get: () => J[ie],
|
|
@@ -1949,16 +1949,16 @@ function Yu(e) {
|
|
|
1949
1949
|
H(
|
|
1950
1950
|
`Write operation failed: computed property "${J}" is readonly.`
|
|
1951
1951
|
);
|
|
1952
|
-
} : Fe,
|
|
1952
|
+
} : Fe, _e = bt({
|
|
1953
1953
|
get: ye,
|
|
1954
1954
|
set: D
|
|
1955
1955
|
});
|
|
1956
1956
|
Object.defineProperty(r, J, {
|
|
1957
1957
|
enumerable: !0,
|
|
1958
1958
|
configurable: !0,
|
|
1959
|
-
get: () =>
|
|
1960
|
-
set: (
|
|
1961
|
-
}), process.env.NODE_ENV !== "production" &&
|
|
1959
|
+
get: () => _e.value,
|
|
1960
|
+
set: (Ae) => _e.value = Ae
|
|
1961
|
+
}), process.env.NODE_ENV !== "production" && Oe("Computed", J);
|
|
1962
1962
|
}
|
|
1963
1963
|
if (c)
|
|
1964
1964
|
for (const J in c)
|
|
@@ -1970,10 +1970,10 @@ function Yu(e) {
|
|
|
1970
1970
|
});
|
|
1971
1971
|
}
|
|
1972
1972
|
p && Ms(p, e, "c");
|
|
1973
|
-
function
|
|
1973
|
+
function de(J, ie) {
|
|
1974
1974
|
ce(ie) ? ie.forEach((ye) => J(ye.bind(n))) : ie && J(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
1978
|
const J = e.exposed || (e.exposed = {});
|
|
1979
1979
|
k.forEach((ie) => {
|
|
@@ -1983,7 +1983,7 @@ function Yu(e) {
|
|
|
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
|
|
@@ -2288,7 +2288,7 @@ function rl(e, t, n, r) {
|
|
|
2288
2288
|
continue;
|
|
2289
2289
|
const O = t[h];
|
|
2290
2290
|
if (l)
|
|
2291
|
-
if (
|
|
2291
|
+
if (we(s, h))
|
|
2292
2292
|
O !== s[h] && (s[h] = O, E = !0);
|
|
2293
2293
|
else {
|
|
2294
2294
|
const $ = gt(h);
|
|
@@ -2310,9 +2310,9 @@ function rl(e, t, n, r) {
|
|
|
2310
2310
|
let p;
|
|
2311
2311
|
for (const d in c)
|
|
2312
2312
|
(!t || // for camelCase
|
|
2313
|
-
!
|
|
2313
|
+
!we(t, d) && // it's possible the original props was passed in as kebab-case
|
|
2314
2314
|
// and converted to camelCase (#955)
|
|
2315
|
-
((p = Qt(d)) === d || !
|
|
2315
|
+
((p = Qt(d)) === d || !we(t, p))) && (l ? n && // for camelCase
|
|
2316
2316
|
(n[d] !== void 0 || // for kebab-case
|
|
2317
2317
|
n[p] !== void 0) && (o[d] = Fo(
|
|
2318
2318
|
l,
|
|
@@ -2324,7 +2324,7 @@ function rl(e, t, n, r) {
|
|
|
2324
2324
|
)) : delete o[d]);
|
|
2325
2325
|
if (s !== c)
|
|
2326
2326
|
for (const d in s)
|
|
2327
|
-
(!t || !
|
|
2327
|
+
(!t || !we(t, d)) && (delete s[d], E = !0);
|
|
2328
2328
|
}
|
|
2329
2329
|
E && St(e.attrs, "set", ""), process.env.NODE_ENV !== "production" && Dc(t || {}, o, e);
|
|
2330
2330
|
}
|
|
@@ -2337,10 +2337,10 @@ function Rc(e, t, n, r) {
|
|
|
2337
2337
|
continue;
|
|
2338
2338
|
const E = t[l];
|
|
2339
2339
|
let p;
|
|
2340
|
-
o &&
|
|
2340
|
+
o && we(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 || Te;
|
|
2344
2344
|
for (let p = 0; p < s.length; p++) {
|
|
2345
2345
|
const d = s[p];
|
|
2346
2346
|
n[d] = Fo(
|
|
@@ -2349,7 +2349,7 @@ function Rc(e, t, n, r) {
|
|
|
2349
2349
|
d,
|
|
2350
2350
|
E[d],
|
|
2351
2351
|
e,
|
|
2352
|
-
!
|
|
2352
|
+
!we(E, d)
|
|
2353
2353
|
);
|
|
2354
2354
|
}
|
|
2355
2355
|
}
|
|
@@ -2358,7 +2358,7 @@ function Rc(e, t, n, r) {
|
|
|
2358
2358
|
function Fo(e, t, n, r, o, s) {
|
|
2359
2359
|
const i = e[n];
|
|
2360
2360
|
if (i != null) {
|
|
2361
|
-
const c =
|
|
2361
|
+
const c = we(i, "default");
|
|
2362
2362
|
if (c && r === void 0) {
|
|
2363
2363
|
const l = i.default;
|
|
2364
2364
|
if (i.type !== Function && !i.skipFactory && ue(l)) {
|
|
@@ -2407,7 +2407,7 @@ function xc(e, t, n = !1) {
|
|
|
2407
2407
|
for (let p = 0; p < s.length; p++) {
|
|
2408
2408
|
process.env.NODE_ENV !== "production" && !He(s[p]) && H("props must be strings when using array syntax.", s[p]);
|
|
2409
2409
|
const d = gt(s[p]);
|
|
2410
|
-
js(d) && (i[d] =
|
|
2410
|
+
js(d) && (i[d] = Te);
|
|
2411
2411
|
}
|
|
2412
2412
|
else if (s) {
|
|
2413
2413
|
process.env.NODE_ENV !== "production" && !De(s) && H("invalid props options", s);
|
|
@@ -2432,7 +2432,7 @@ function xc(e, t, n = !1) {
|
|
|
2432
2432
|
] = j, O[
|
|
2433
2433
|
1
|
|
2434
2434
|
/* shouldCastTrue */
|
|
2435
|
-
] = F, (j ||
|
|
2435
|
+
] = F, (j || we(O, "default")) && c.push(d);
|
|
2436
2436
|
}
|
|
2437
2437
|
}
|
|
2438
2438
|
}
|
|
@@ -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(
|
|
@@ -2552,7 +2552,7 @@ const Cc = (e) => e[0] === "_" || e === "$stable", gs = (e) => ce(e) ? e.map(dt)
|
|
|
2552
2552
|
} else t && Ic(e, t);
|
|
2553
2553
|
}, dl = (e, t, n) => {
|
|
2554
2554
|
const { vnode: r, slots: o } = e;
|
|
2555
|
-
let s = !0, i =
|
|
2555
|
+
let s = !0, i = Te;
|
|
2556
2556
|
if (r.shapeFlag & 32) {
|
|
2557
2557
|
const c = t._;
|
|
2558
2558
|
c ? process.env.NODE_ENV !== "production" && Tt ? (Bo(o, t, n), St(e, "set", "$slots")) : n && c === 1 ? s = !1 : Bo(o, t, n) : (s = !t.$stable, Pc(t, o)), i = t;
|
|
@@ -2609,7 +2609,7 @@ 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 = he(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:
|
|
@@ -2622,7 +2622,7 @@ function ml(e, t) {
|
|
|
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 ? me(
|
|
2649
2649
|
f,
|
|
2650
2650
|
g,
|
|
2651
2651
|
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
|
-
),
|
|
2756
|
-
for (const
|
|
2757
|
-
|
|
2755
|
+
), se && nn(f, null, C, "created"), pe(A, f, f.scopeId, P, C), G) {
|
|
2756
|
+
for (const Re in G)
|
|
2757
|
+
Re !== "value" && !Jn(Re) && s(A, Re, null, G[Re], _, 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)
|
|
@@ -2799,9 +2799,9 @@ function ml(e, t) {
|
|
|
2799
2799
|
process.env.NODE_ENV !== "production" && (b.__vnode = g);
|
|
2800
2800
|
let { patchFlag: A, dynamicChildren: T, dirs: G } = g;
|
|
2801
2801
|
A |= f.patchFlag & 16;
|
|
2802
|
-
const M = f.props ||
|
|
2803
|
-
let
|
|
2804
|
-
if (y && rn(y, !1), (
|
|
2802
|
+
const M = f.props || Te, Q = g.props || Te;
|
|
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,
|
|
@@ -2824,15 +2824,15 @@ function ml(e, t) {
|
|
|
2824
2824
|
N(b, M, Q, y, R);
|
|
2825
2825
|
else if (A & 2 && M.class !== Q.class && s(b, "class", null, Q.class, R), A & 4 && s(b, "style", M.style, Q.style, R), A & 8) {
|
|
2826
2826
|
const Ee = g.dynamicProps;
|
|
2827
|
-
for (let
|
|
2828
|
-
const Se = Ee[
|
|
2827
|
+
for (let Re = 0; Re < Ee.length; Re++) {
|
|
2828
|
+
const Se = Ee[Re], Ye = M[Se], Ge = Q[Se];
|
|
2829
2829
|
(Ge !== Ye || Se === "value") && s(b, Se, Ye, Ge, R, y);
|
|
2830
2830
|
}
|
|
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++) {
|
|
@@ -2864,7 +2864,7 @@ function ml(e, t) {
|
|
|
2864
2864
|
}
|
|
2865
2865
|
}, N = (f, g, y, C, R) => {
|
|
2866
2866
|
if (g !== y) {
|
|
2867
|
-
if (g !==
|
|
2867
|
+
if (g !== Te)
|
|
2868
2868
|
for (const _ in g)
|
|
2869
2869
|
!Jn(_) && !(_ in y) && s(
|
|
2870
2870
|
f,
|
|
@@ -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,14 +2930,14 @@ function ml(e, t) {
|
|
|
2930
2930
|
b,
|
|
2931
2931
|
A
|
|
2932
2932
|
);
|
|
2933
|
-
},
|
|
2933
|
+
}, me = (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,
|
|
2937
2937
|
C,
|
|
2938
2938
|
P,
|
|
2939
2939
|
A
|
|
2940
|
-
) :
|
|
2940
|
+
) : Oe(
|
|
2941
2941
|
g,
|
|
2942
2942
|
y,
|
|
2943
2943
|
C,
|
|
@@ -2945,8 +2945,8 @@ function ml(e, t) {
|
|
|
2945
2945
|
_,
|
|
2946
2946
|
P,
|
|
2947
2947
|
A
|
|
2948
|
-
) :
|
|
2949
|
-
},
|
|
2948
|
+
) : de(f, g, A);
|
|
2949
|
+
}, Oe = (f, g, y, C, R, _, P) => {
|
|
2950
2950
|
const b = f.component = Vl(
|
|
2951
2951
|
f,
|
|
2952
2952
|
C,
|
|
@@ -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) {
|
|
@@ -2981,18 +2981,18 @@ function ml(e, t) {
|
|
|
2981
2981
|
}, J = (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: Re } = f;
|
|
2985
2985
|
{
|
|
2986
2986
|
const tt = $c(f);
|
|
2987
2987
|
if (tt) {
|
|
2988
|
-
M && (M.el =
|
|
2988
|
+
M && (M.el = Re.el, ie(f, M, P)), tt.asyncDep.then(() => {
|
|
2989
2989
|
f.isUnmounted || b();
|
|
2990
2990
|
});
|
|
2991
2991
|
return;
|
|
2992
2992
|
}
|
|
2993
2993
|
}
|
|
2994
2994
|
let Se = M, Ye;
|
|
2995
|
-
process.env.NODE_ENV !== "production" && wr(M || f.vnode), rn(f, !1), M ? (M.el =
|
|
2995
|
+
process.env.NODE_ENV !== "production" && wr(M || f.vnode), rn(f, !1), M ? (M.el = Re.el, ie(f, M, P)) : M = Re, Q && Fn(Q), (Ye = M.props && M.props.onVnodeBeforeUpdate) && _t(Ye, Ee, M, Re), rn(f, !0), process.env.NODE_ENV !== "production" && _n(f, "render");
|
|
2996
2996
|
const Ge = Bs(f);
|
|
2997
2997
|
process.env.NODE_ENV !== "production" && bn(f, "render");
|
|
2998
2998
|
const ot = f.subTree;
|
|
@@ -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
|
+
he(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),
|
|
3010
|
-
() => _t(Ye, Ee, M,
|
|
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
|
+
() => _t(Ye, Ee, M, Re),
|
|
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: Re, 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 (
|
|
3030
|
+
if (Re && st(Re, R), !ot && (M = se && se.onVnodeMounted)) {
|
|
3031
3031
|
const tt = g;
|
|
3032
3032
|
st(
|
|
3033
3033
|
() => _t(M, Se, tt),
|
|
@@ -3047,10 +3047,10 @@ 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
|
+
_e(
|
|
3054
3054
|
T,
|
|
3055
3055
|
M,
|
|
3056
3056
|
y,
|
|
@@ -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 ? _e(
|
|
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,
|
|
@@ -3133,15 +3133,15 @@ function ml(e, t) {
|
|
|
3133
3133
|
A,
|
|
3134
3134
|
M
|
|
3135
3135
|
);
|
|
3136
|
-
},
|
|
3136
|
+
}, _e = (f, g, y, C, R, _, P, b, A) => {
|
|
3137
3137
|
let T = 0;
|
|
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,21 +3193,21 @@ 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, Re = /* @__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
|
-
Be.key != null && (process.env.NODE_ENV !== "production" &&
|
|
3199
|
+
Be.key != null && (process.env.NODE_ENV !== "production" && Re.has(Be.key) && H(
|
|
3200
3200
|
"Duplicate keys found during update:",
|
|
3201
3201
|
JSON.stringify(Be.key),
|
|
3202
3202
|
"Make sure keys are unique."
|
|
3203
|
-
),
|
|
3203
|
+
), Re.set(Be.key, T));
|
|
3204
3204
|
}
|
|
3205
3205
|
let Se, Ye = 0;
|
|
3206
3206
|
const Ge = Q - Ee + 1;
|
|
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);
|
|
@@ -3215,7 +3215,7 @@ function ml(e, t) {
|
|
|
3215
3215
|
}
|
|
3216
3216
|
let ft;
|
|
3217
3217
|
if (Be.key != null)
|
|
3218
|
-
ft =
|
|
3218
|
+
ft = Re.get(Be.key);
|
|
3219
3219
|
else
|
|
3220
3220
|
for (Se = Ee; Se <= Q; Se++)
|
|
3221
3221
|
if (lt[Se - Ee] === 0 && Gn(Be, g[Se])) {
|
|
@@ -3247,13 +3247,13 @@ function ml(e, t) {
|
|
|
3247
3247
|
P,
|
|
3248
3248
|
b,
|
|
3249
3249
|
A
|
|
3250
|
-
) : ot && (Se < 0 || T !== Vn[Se] ?
|
|
3250
|
+
) : ot && (Se < 0 || T !== Vn[Se] ? Ae(ft, y, tn, 2) : Se--);
|
|
3251
3251
|
}
|
|
3252
3252
|
}
|
|
3253
|
-
},
|
|
3253
|
+
}, Ae = (f, g, y, C, R = null) => {
|
|
3254
3254
|
const { el: _, type: P, transition: b, children: A, shapeFlag: T } = f;
|
|
3255
3255
|
if (T & 6) {
|
|
3256
|
-
|
|
3256
|
+
Ae(f.component.subTree, g, y, C);
|
|
3257
3257
|
return;
|
|
3258
3258
|
}
|
|
3259
3259
|
if (T & 128) {
|
|
@@ -3267,7 +3267,7 @@ function ml(e, t) {
|
|
|
3267
3267
|
if (P === Ot) {
|
|
3268
3268
|
r(_, g, y);
|
|
3269
3269
|
for (let M = 0; M < A.length; M++)
|
|
3270
|
-
|
|
3270
|
+
Ae(A[M], g, y, C);
|
|
3271
3271
|
r(f.anchor, g, y);
|
|
3272
3272
|
return;
|
|
3273
3273
|
}
|
|
@@ -3279,12 +3279,12 @@ 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), Re = () => {
|
|
3283
3283
|
M(_, () => {
|
|
3284
|
-
Ee(),
|
|
3284
|
+
Ee(), se && se();
|
|
3285
3285
|
});
|
|
3286
3286
|
};
|
|
3287
|
-
Q ? Q(_, Ee,
|
|
3287
|
+
Q ? Q(_, Ee, Re) : Re();
|
|
3288
3288
|
}
|
|
3289
3289
|
else
|
|
3290
3290
|
r(_, g, y);
|
|
@@ -3298,15 +3298,15 @@ 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
|
}
|
|
3307
|
-
const Ee = G & 1 && Q,
|
|
3307
|
+
const Ee = G & 1 && Q, Re = !Qn(f);
|
|
3308
3308
|
let Se;
|
|
3309
|
-
if (
|
|
3309
|
+
if (Re && (Se = P && P.onVnodeBeforeUnmount) && _t(Se, g, f), G & 6)
|
|
3310
3310
|
ke(f.component, y, C);
|
|
3311
3311
|
else {
|
|
3312
3312
|
if (G & 128) {
|
|
@@ -3333,7 +3333,7 @@ function ml(e, t) {
|
|
|
3333
3333
|
!0
|
|
3334
3334
|
) : (_ === Ot && M & 384 || !R && G & 16) && Z(A, g, y), C && S(f);
|
|
3335
3335
|
}
|
|
3336
|
-
(
|
|
3336
|
+
(Re && (Se = P && P.onVnodeUnmounted) || Ee) && st(() => {
|
|
3337
3337
|
Se && _t(Se, g, f), Ee && nn(f, null, g, "unmounted");
|
|
3338
3338
|
}, y);
|
|
3339
3339
|
}, S = (f) => {
|
|
@@ -3370,16 +3370,16 @@ 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
|
+
}, he = (f) => {
|
|
3374
3374
|
if (f.shapeFlag & 6)
|
|
3375
|
-
return
|
|
3375
|
+
return he(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];
|
|
3379
3379
|
return y ? h(y) : g;
|
|
3380
3380
|
};
|
|
3381
3381
|
let $e = !1;
|
|
3382
|
-
const
|
|
3382
|
+
const be = (f, g, y) => {
|
|
3383
3383
|
f == null ? g._vnode && Pe(g._vnode, null, null, !0) : j(
|
|
3384
3384
|
g._vnode || null,
|
|
3385
3385
|
f,
|
|
@@ -3392,19 +3392,19 @@ function ml(e, t) {
|
|
|
3392
3392
|
}, W = {
|
|
3393
3393
|
p: j,
|
|
3394
3394
|
um: Pe,
|
|
3395
|
-
m:
|
|
3395
|
+
m: Ae,
|
|
3396
3396
|
r: S,
|
|
3397
|
-
mt:
|
|
3397
|
+
mt: Oe,
|
|
3398
3398
|
mc: K,
|
|
3399
3399
|
pc: ye,
|
|
3400
3400
|
pbc: B,
|
|
3401
|
-
n:
|
|
3401
|
+
n: he,
|
|
3402
3402
|
o: e
|
|
3403
3403
|
};
|
|
3404
3404
|
return {
|
|
3405
|
-
render:
|
|
3405
|
+
render: be,
|
|
3406
3406
|
hydrate: void 0,
|
|
3407
|
-
createApp: Qu(
|
|
3407
|
+
createApp: Qu(be)
|
|
3408
3408
|
};
|
|
3409
3409
|
}
|
|
3410
3410
|
function yo({ type: e, props: t }, n) {
|
|
@@ -3468,7 +3468,7 @@ function At(e, t, n) {
|
|
|
3468
3468
|
"`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."
|
|
3469
3469
|
), Mc(e, t, n);
|
|
3470
3470
|
}
|
|
3471
|
-
function Mc(e, t, n =
|
|
3471
|
+
function Mc(e, t, n = Te) {
|
|
3472
3472
|
const { immediate: r, deep: o, flush: s, once: i } = n;
|
|
3473
3473
|
process.env.NODE_ENV !== "production" && !t && (r !== void 0 && H(
|
|
3474
3474
|
'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
|
|
@@ -3523,7 +3523,7 @@ function Lc(e, t) {
|
|
|
3523
3523
|
const wl = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${gt(t)}Modifiers`] || e[`${Qt(t)}Modifiers`];
|
|
3524
3524
|
function Ol(e, t, ...n) {
|
|
3525
3525
|
if (e.isUnmounted) return;
|
|
3526
|
-
const r = e.vnode.props ||
|
|
3526
|
+
const r = e.vnode.props || Te;
|
|
3527
3527
|
if (process.env.NODE_ENV !== "production") {
|
|
3528
3528
|
const {
|
|
3529
3529
|
emitsOptions: p,
|
|
@@ -3592,7 +3592,7 @@ function Vc(e, t, n = !1) {
|
|
|
3592
3592
|
return !s && !c ? (De(e) && r.set(e, null), null) : (ce(s) ? s.forEach((l) => i[l] = null) : je(i, s), De(e) && r.set(e, i), i);
|
|
3593
3593
|
}
|
|
3594
3594
|
function Qr(e, t) {
|
|
3595
|
-
return !e || !ur(t) ? !1 : (t = t.slice(2).replace(/Once$/, ""),
|
|
3595
|
+
return !e || !ur(t) ? !1 : (t = t.slice(2).replace(/Once$/, ""), we(e, t[0].toLowerCase() + t.slice(1)) || we(e, Qt(t)) || we(e, t));
|
|
3596
3596
|
}
|
|
3597
3597
|
let Uo = !1;
|
|
3598
3598
|
function Ur() {
|
|
@@ -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: `,
|
|
@@ -4061,17 +4061,17 @@ function Vl(e, t, n) {
|
|
|
4061
4061
|
// to be set immediately
|
|
4062
4062
|
emitted: null,
|
|
4063
4063
|
// props default value
|
|
4064
|
-
propsDefaults:
|
|
4064
|
+
propsDefaults: Te,
|
|
4065
4065
|
// inheritAttrs
|
|
4066
4066
|
inheritAttrs: r.inheritAttrs,
|
|
4067
4067
|
// state
|
|
4068
|
-
ctx:
|
|
4069
|
-
data:
|
|
4070
|
-
props:
|
|
4071
|
-
attrs:
|
|
4072
|
-
slots:
|
|
4073
|
-
refs:
|
|
4074
|
-
setupState:
|
|
4068
|
+
ctx: Te,
|
|
4069
|
+
data: Te,
|
|
4070
|
+
props: Te,
|
|
4071
|
+
attrs: Te,
|
|
4072
|
+
slots: Te,
|
|
4073
|
+
refs: Te,
|
|
4074
|
+
setupState: Te,
|
|
4075
4075
|
setupContext: null,
|
|
4076
4076
|
// suspense related
|
|
4077
4077
|
suspense: n,
|
|
@@ -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 !== Te && h.push(i("setup", d.setupState)), d.data !== Te && 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,11 +4744,11 @@ 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, me;
|
|
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: (((me = (oe = p.value) == null ? void 0 : oe.tabRect) == null ? void 0 : me.height) || 0) + "px"
|
|
4752
4752
|
};
|
|
4753
4753
|
}), F = bt(() => ({
|
|
4754
4754
|
position: "relative",
|
|
@@ -4757,15 +4757,15 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4757
4757
|
flexDirection: "column"
|
|
4758
4758
|
})), q = (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: me, y: Oe, width: de, height: J } = oe, ie = me, ye = Oe, D = me + de, _e = Oe + J, Ae = [
|
|
4769
4769
|
document.documentElement,
|
|
4770
4770
|
document.body,
|
|
4771
4771
|
B,
|
|
@@ -4775,9 +4775,9 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4775
4775
|
O.mount.value
|
|
4776
4776
|
];
|
|
4777
4777
|
for (let Pe = ie; Pe < D; Pe += N)
|
|
4778
|
-
for (let S = ye; S <
|
|
4778
|
+
for (let S = ye; S < _e; S += N) {
|
|
4779
4779
|
const x = document.elementFromPoint(Pe, S);
|
|
4780
|
-
if (x && !
|
|
4780
|
+
if (x && !Ae.includes(x))
|
|
4781
4781
|
return x;
|
|
4782
4782
|
}
|
|
4783
4783
|
}
|
|
@@ -4830,20 +4830,28 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4830
4830
|
if (l.value) {
|
|
4831
4831
|
(async () => {
|
|
4832
4832
|
const B = (N) => {
|
|
4833
|
-
var
|
|
4834
|
-
const
|
|
4835
|
-
|
|
4836
|
-
|
|
4833
|
+
var Oe;
|
|
4834
|
+
const oe = (Oe = h[N]) == null ? void 0 : Oe.value, me = (de) => {
|
|
4835
|
+
let J = de.every(
|
|
4836
|
+
(Ae) => Ae.type === "attributes" && Ae.attributeName !== "style" && Ae.target !== oe
|
|
4837
|
+
);
|
|
4838
|
+
if (de != null && de.length && J) return;
|
|
4839
|
+
const { x: ie, y: ye, width: D, height: _e } = (oe == null ? void 0 : oe.getBoundingClientRect()) || {};
|
|
4840
|
+
s.data.set({ [`${N}Rect`]: { x: ie, y: ye, width: D, height: _e } });
|
|
4837
4841
|
};
|
|
4838
|
-
|
|
4842
|
+
me([]), new MutationObserver(me).observe(oe, {
|
|
4843
|
+
childList: !0,
|
|
4844
|
+
subtree: !0,
|
|
4845
|
+
attributes: !0
|
|
4846
|
+
});
|
|
4839
4847
|
};
|
|
4840
4848
|
await Promise.all([
|
|
4841
4849
|
...Object.keys(h).map(async (N) => {
|
|
4842
|
-
const
|
|
4843
|
-
await new Promise((
|
|
4850
|
+
const oe = h[N];
|
|
4851
|
+
await new Promise((me) => At(() => oe.value, me)), B(N);
|
|
4844
4852
|
}),
|
|
4845
4853
|
...Object.keys(O).map(async (N) => {
|
|
4846
|
-
await new Promise((
|
|
4854
|
+
await new Promise((oe) => At(() => O[N].value, oe));
|
|
4847
4855
|
})
|
|
4848
4856
|
]), s.event.emit("onLayoutMounted"), r("layoutMounted", {
|
|
4849
4857
|
navDom: O.nav.value,
|
|
@@ -4872,13 +4880,13 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
|
|
|
4872
4880
|
const { appInfo: k, parentData: B = {} } = K;
|
|
4873
4881
|
setTimeout(() => {
|
|
4874
4882
|
s.data.set(B.layoutData);
|
|
4875
|
-
}, 0), c.data.set({ appInfo: k }), c.cors.on("layoutDataChange", (
|
|
4876
|
-
s.data.set(
|
|
4883
|
+
}, 0), c.data.set({ appInfo: k }), c.cors.on("layoutDataChange", (oe) => {
|
|
4884
|
+
s.data.set(oe.data);
|
|
4877
4885
|
}), (async () => {
|
|
4878
4886
|
await Promise.all([
|
|
4879
|
-
...Object.keys(h).map(async (
|
|
4880
|
-
const
|
|
4881
|
-
await new Promise((
|
|
4887
|
+
...Object.keys(h).map(async (oe) => {
|
|
4888
|
+
const me = h[oe];
|
|
4889
|
+
await new Promise((Oe) => At(() => me.value, Oe));
|
|
4882
4890
|
})
|
|
4883
4891
|
]), s.event.emit("onLayoutMounted"), r("layoutMounted", {
|
|
4884
4892
|
mountDom: O.mount.value
|
|
@@ -5021,16 +5029,16 @@ const Jc = async (e) => {
|
|
|
5021
5029
|
});
|
|
5022
5030
|
const O = qe(!1);
|
|
5023
5031
|
o.cors.on("reportRouter", (F) => {
|
|
5024
|
-
var N,
|
|
5032
|
+
var N, oe, me;
|
|
5025
5033
|
const { data: q } = F || {};
|
|
5026
5034
|
if (!q.appInfo) return;
|
|
5027
|
-
const te = r.data.get().microApps.find((
|
|
5035
|
+
const te = r.data.get().microApps.find((Oe) => Oe.name === q.appInfo.name);
|
|
5028
5036
|
if (!te || !(((N = te.router) == null ? void 0 : N.sync) ?? !0) || !h(te.name, ["mounted", "activated"])) return;
|
|
5029
5037
|
const { pathname: re, hash: L, search: ne } = new URL(window.location.href);
|
|
5030
5038
|
let le = re + ne;
|
|
5031
5039
|
const { pathname: pe, hash: K, search: k } = new URL(q.href);
|
|
5032
5040
|
let B = pe + k;
|
|
5033
|
-
((
|
|
5041
|
+
((oe = te.router) == null ? void 0 : oe.mode) === "hash" && (B = K.replace("#", "")), ((me = r.data.get().initOptions.router) == null ? void 0 : me.mode) === "hash" && (le = `/${L}`, B = `/#${B}`), le !== B && (O.value = !0, setTimeout(() => {
|
|
5034
5042
|
O.value = !1;
|
|
5035
5043
|
}, 300), i.replaceState(B));
|
|
5036
5044
|
}), o.cors.on("customEventFromMicro", (F) => {
|
|
@@ -5319,19 +5327,19 @@ function Sf() {
|
|
|
5319
5327
|
};
|
|
5320
5328
|
return Ao = (U, re) => {
|
|
5321
5329
|
const L = re || {}, ne = U.length - 1, le = L.parts === !0 || L.scanToEnd === !0, pe = [], K = [], k = [];
|
|
5322
|
-
let B = U, N = -1,
|
|
5323
|
-
const $e = () => N >= ne,
|
|
5330
|
+
let B = U, N = -1, oe = 0, me = 0, Oe = !1, de = !1, J = !1, ie = !1, ye = !1, D = !1, _e = !1, Ae = !1, Pe = !1, S = !1, x = 0, ke, Z, he = { value: "", depth: 0, isGlob: !1 };
|
|
5331
|
+
const $e = () => N >= ne, be = () => B.charCodeAt(N + 1), W = () => (ke = Z, B.charCodeAt(++N));
|
|
5324
5332
|
for (; N < ne; ) {
|
|
5325
5333
|
Z = W();
|
|
5326
5334
|
let C;
|
|
5327
5335
|
if (Z === r) {
|
|
5328
|
-
|
|
5336
|
+
_e = he.backslashes = !0, Z = W(), Z === l && (D = !0);
|
|
5329
5337
|
continue;
|
|
5330
5338
|
}
|
|
5331
5339
|
if (D === !0 || Z === l) {
|
|
5332
5340
|
for (x++; $e() !== !0 && (Z = W()); ) {
|
|
5333
5341
|
if (Z === r) {
|
|
5334
|
-
|
|
5342
|
+
_e = he.backslashes = !0, W();
|
|
5335
5343
|
continue;
|
|
5336
5344
|
}
|
|
5337
5345
|
if (Z === l) {
|
|
@@ -5339,17 +5347,17 @@ function Sf() {
|
|
|
5339
5347
|
continue;
|
|
5340
5348
|
}
|
|
5341
5349
|
if (D !== !0 && Z === s && (Z = W()) === s) {
|
|
5342
|
-
if (
|
|
5350
|
+
if (Oe = he.isBrace = !0, J = he.isGlob = !0, S = !0, le === !0)
|
|
5343
5351
|
continue;
|
|
5344
5352
|
break;
|
|
5345
5353
|
}
|
|
5346
5354
|
if (D !== !0 && Z === o) {
|
|
5347
|
-
if (
|
|
5355
|
+
if (Oe = he.isBrace = !0, J = he.isGlob = !0, S = !0, le === !0)
|
|
5348
5356
|
continue;
|
|
5349
5357
|
break;
|
|
5350
5358
|
}
|
|
5351
5359
|
if (Z === O && (x--, x === 0)) {
|
|
5352
|
-
D = !1,
|
|
5360
|
+
D = !1, Oe = he.isBrace = !0, S = !0;
|
|
5353
5361
|
break;
|
|
5354
5362
|
}
|
|
5355
5363
|
}
|
|
@@ -5358,23 +5366,23 @@ function Sf() {
|
|
|
5358
5366
|
break;
|
|
5359
5367
|
}
|
|
5360
5368
|
if (Z === c) {
|
|
5361
|
-
if (pe.push(N), K.push(
|
|
5362
|
-
if (ke === s && N ===
|
|
5363
|
-
|
|
5369
|
+
if (pe.push(N), K.push(he), he = { value: "", depth: 0, isGlob: !1 }, S === !0) continue;
|
|
5370
|
+
if (ke === s && N === oe + 1) {
|
|
5371
|
+
oe += 2;
|
|
5364
5372
|
continue;
|
|
5365
5373
|
}
|
|
5366
|
-
|
|
5374
|
+
me = N + 1;
|
|
5367
5375
|
continue;
|
|
5368
5376
|
}
|
|
5369
|
-
if (L.noext !== !0 && (Z === d || Z === n || Z === t || Z === h || Z === i) === !0 &&
|
|
5370
|
-
if (J =
|
|
5377
|
+
if (L.noext !== !0 && (Z === d || Z === n || Z === t || Z === h || Z === i) === !0 && be() === E) {
|
|
5378
|
+
if (J = he.isGlob = !0, ie = he.isExtglob = !0, S = !0, Z === i && N === oe && (Pe = !0), le === !0) {
|
|
5371
5379
|
for (; $e() !== !0 && (Z = W()); ) {
|
|
5372
5380
|
if (Z === r) {
|
|
5373
|
-
|
|
5381
|
+
_e = he.backslashes = !0, Z = W();
|
|
5374
5382
|
continue;
|
|
5375
5383
|
}
|
|
5376
5384
|
if (Z === $) {
|
|
5377
|
-
J =
|
|
5385
|
+
J = he.isGlob = !0, S = !0;
|
|
5378
5386
|
break;
|
|
5379
5387
|
}
|
|
5380
5388
|
}
|
|
@@ -5383,23 +5391,23 @@ function Sf() {
|
|
|
5383
5391
|
break;
|
|
5384
5392
|
}
|
|
5385
5393
|
if (Z === t) {
|
|
5386
|
-
if (ke === t && (ye =
|
|
5394
|
+
if (ke === t && (ye = he.isGlobstar = !0), J = he.isGlob = !0, S = !0, le === !0)
|
|
5387
5395
|
continue;
|
|
5388
5396
|
break;
|
|
5389
5397
|
}
|
|
5390
5398
|
if (Z === h) {
|
|
5391
|
-
if (J =
|
|
5399
|
+
if (J = he.isGlob = !0, S = !0, le === !0)
|
|
5392
5400
|
continue;
|
|
5393
5401
|
break;
|
|
5394
5402
|
}
|
|
5395
5403
|
if (Z === p) {
|
|
5396
5404
|
for (; $e() !== !0 && (C = W()); ) {
|
|
5397
5405
|
if (C === r) {
|
|
5398
|
-
|
|
5406
|
+
_e = he.backslashes = !0, W();
|
|
5399
5407
|
continue;
|
|
5400
5408
|
}
|
|
5401
5409
|
if (C === j) {
|
|
5402
|
-
|
|
5410
|
+
de = he.isBracket = !0, J = he.isGlob = !0, S = !0;
|
|
5403
5411
|
break;
|
|
5404
5412
|
}
|
|
5405
5413
|
}
|
|
@@ -5407,15 +5415,15 @@ function Sf() {
|
|
|
5407
5415
|
continue;
|
|
5408
5416
|
break;
|
|
5409
5417
|
}
|
|
5410
|
-
if (L.nonegate !== !0 && Z === i && N ===
|
|
5411
|
-
|
|
5418
|
+
if (L.nonegate !== !0 && Z === i && N === oe) {
|
|
5419
|
+
Ae = he.negated = !0, oe++;
|
|
5412
5420
|
continue;
|
|
5413
5421
|
}
|
|
5414
5422
|
if (L.noparen !== !0 && Z === E) {
|
|
5415
|
-
if (J =
|
|
5423
|
+
if (J = he.isGlob = !0, le === !0) {
|
|
5416
5424
|
for (; $e() !== !0 && (Z = W()); ) {
|
|
5417
5425
|
if (Z === E) {
|
|
5418
|
-
|
|
5426
|
+
_e = he.backslashes = !0, Z = W();
|
|
5419
5427
|
continue;
|
|
5420
5428
|
}
|
|
5421
5429
|
if (Z === $) {
|
|
@@ -5435,26 +5443,26 @@ function Sf() {
|
|
|
5435
5443
|
}
|
|
5436
5444
|
L.noext === !0 && (ie = !1, J = !1);
|
|
5437
5445
|
let Me = B, f = "", g = "";
|
|
5438
|
-
|
|
5446
|
+
oe > 0 && (f = B.slice(0, oe), B = B.slice(oe), me -= oe), Me && J === !0 && me > 0 ? (Me = B.slice(0, me), g = B.slice(me)) : J === !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 && _e === !0 && (Me = e.removeBackslashes(Me)));
|
|
5439
5447
|
const y = {
|
|
5440
5448
|
prefix: f,
|
|
5441
5449
|
input: U,
|
|
5442
|
-
start:
|
|
5450
|
+
start: oe,
|
|
5443
5451
|
base: Me,
|
|
5444
5452
|
glob: g,
|
|
5445
|
-
isBrace:
|
|
5446
|
-
isBracket:
|
|
5453
|
+
isBrace: Oe,
|
|
5454
|
+
isBracket: de,
|
|
5447
5455
|
isGlob: J,
|
|
5448
5456
|
isExtglob: ie,
|
|
5449
5457
|
isGlobstar: ye,
|
|
5450
|
-
negated:
|
|
5458
|
+
negated: Ae,
|
|
5451
5459
|
negatedExtglob: Pe
|
|
5452
5460
|
};
|
|
5453
|
-
if (L.tokens === !0 && (y.maxDepth = 0, F(Z) || K.push(
|
|
5461
|
+
if (L.tokens === !0 && (y.maxDepth = 0, F(Z) || K.push(he), y.tokens = K), L.parts === !0 || L.tokens === !0) {
|
|
5454
5462
|
let C;
|
|
5455
5463
|
for (let R = 0; R < pe.length; R++) {
|
|
5456
|
-
const _ = C ? C + 1 :
|
|
5457
|
-
L.tokens && (R === 0 &&
|
|
5464
|
+
const _ = C ? C + 1 : oe, P = pe[R], b = U.slice(_, P);
|
|
5465
|
+
L.tokens && (R === 0 && oe !== 0 ? (K[R].isPrefix = !0, K[R].value = f) : K[R].value = b, q(K[R]), y.maxDepth += K[R].depth), (R !== 0 || b !== "") && k.push(b), C = P;
|
|
5458
5466
|
}
|
|
5459
5467
|
if (C && C + 1 < U.length) {
|
|
5460
5468
|
const R = U.slice(C + 1);
|
|
@@ -5504,11 +5512,11 @@ function Af() {
|
|
|
5504
5512
|
NO_DOT_SLASH: k,
|
|
5505
5513
|
NO_DOTS_SLASH: B,
|
|
5506
5514
|
QMARK: N,
|
|
5507
|
-
QMARK_NO_DOT:
|
|
5508
|
-
STAR:
|
|
5509
|
-
START_ANCHOR:
|
|
5510
|
-
} = te,
|
|
5511
|
-
let ye = h.bash === !0 ?
|
|
5515
|
+
QMARK_NO_DOT: oe,
|
|
5516
|
+
STAR: me,
|
|
5517
|
+
START_ANCHOR: Oe
|
|
5518
|
+
} = te, de = (_) => `(${q}(?:(?!${Oe}${_.dot ? pe : re}).)*?)`, J = h.dot ? "" : K, ie = h.dot ? N : oe;
|
|
5519
|
+
let ye = h.bash === !0 ? de(h) : me;
|
|
5512
5520
|
h.capture && (ye = `(${ye})`), typeof h.noext == "boolean" && (h.noextglob = h.noext);
|
|
5513
5521
|
const D = {
|
|
5514
5522
|
input: p,
|
|
@@ -5528,16 +5536,16 @@ function Af() {
|
|
|
5528
5536
|
tokens: F
|
|
5529
5537
|
};
|
|
5530
5538
|
p = t.removePrefix(p, D), $ = p.length;
|
|
5531
|
-
const
|
|
5539
|
+
const _e = [], Ae = [], Pe = [];
|
|
5532
5540
|
let S = j, x;
|
|
5533
|
-
const ke = () => D.index === $ - 1, Z = D.peek = (_ = 1) => p[D.index + _],
|
|
5541
|
+
const ke = () => D.index === $ - 1, Z = D.peek = (_ = 1) => p[D.index + _], he = D.advance = () => p[++D.index] || "", $e = () => p.slice(D.index + 1), be = (_ = "", P = 0) => {
|
|
5534
5542
|
D.consumed += _, D.index += P;
|
|
5535
5543
|
}, W = (_) => {
|
|
5536
|
-
D.output += _.output != null ? _.output : _.value,
|
|
5544
|
+
D.output += _.output != null ? _.output : _.value, be(_.value);
|
|
5537
5545
|
}, Me = () => {
|
|
5538
5546
|
let _ = 1;
|
|
5539
5547
|
for (; Z() === "!" && (Z(2) !== "(" || Z(3) === "?"); )
|
|
5540
|
-
|
|
5548
|
+
he(), D.start++, _++;
|
|
5541
5549
|
return _ % 2 === 0 ? !1 : (D.negated = !0, D.start++, !0);
|
|
5542
5550
|
}, f = (_) => {
|
|
5543
5551
|
D[_]++, Pe.push(_);
|
|
@@ -5545,10 +5553,10 @@ function Af() {
|
|
|
5545
5553
|
D[_]--, Pe.pop();
|
|
5546
5554
|
}, y = (_) => {
|
|
5547
5555
|
if (S.type === "globstar") {
|
|
5548
|
-
const P = D.braces > 0 && (_.type === "comma" || _.type === "brace"), b = _.extglob === !0 ||
|
|
5556
|
+
const P = D.braces > 0 && (_.type === "comma" || _.type === "brace"), b = _.extglob === !0 || _e.length && (_.type === "pipe" || _.type === "paren");
|
|
5549
5557
|
_.type !== "slash" && _.type !== "paren" && !P && !b && (D.output = D.output.slice(0, -S.output.length), S.type = "star", S.value = "*", S.output = ye, D.output += S.output);
|
|
5550
5558
|
}
|
|
5551
|
-
if (
|
|
5559
|
+
if (_e.length && _.type !== "paren" && (_e[_e.length - 1].inner += _.value), (_.value || _.output) && W(_), S && S.type === "text" && _.type === "text") {
|
|
5552
5560
|
S.output = (S.output || S.value) + _.value, S.value += _.value;
|
|
5553
5561
|
return;
|
|
5554
5562
|
}
|
|
@@ -5557,12 +5565,12 @@ function Af() {
|
|
|
5557
5565
|
const b = { ...U[P], conditions: 1, inner: "" };
|
|
5558
5566
|
b.prev = S, b.parens = D.parens, b.output = D.output;
|
|
5559
5567
|
const A = (h.capture ? "(" : "") + b.open;
|
|
5560
|
-
f("parens"), y({ type: _, value: P, output: D.output ? "" : le }), y({ type: "paren", extglob: !0, value:
|
|
5568
|
+
f("parens"), y({ type: _, value: P, output: D.output ? "" : le }), y({ type: "paren", extglob: !0, value: he(), output: A }), _e.push(b);
|
|
5561
5569
|
}, R = (_) => {
|
|
5562
5570
|
let P = _.close + (h.capture ? ")" : ""), b;
|
|
5563
5571
|
if (_.type === "negate") {
|
|
5564
5572
|
let A = ye;
|
|
5565
|
-
if (_.inner && _.inner.length > 1 && _.inner.includes("/") && (A =
|
|
5573
|
+
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
5574
|
const T = E(b, { ...d, fastpaths: !1 }).output;
|
|
5567
5575
|
P = _.close = `)${T})${A})`;
|
|
5568
5576
|
}
|
|
@@ -5575,7 +5583,7 @@ function Af() {
|
|
|
5575
5583
|
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
5584
|
}
|
|
5577
5585
|
for (; !ke(); ) {
|
|
5578
|
-
if (x =
|
|
5586
|
+
if (x = he(), x === "\0")
|
|
5579
5587
|
continue;
|
|
5580
5588
|
if (x === "\\") {
|
|
5581
5589
|
const b = Z();
|
|
@@ -5587,7 +5595,7 @@ function Af() {
|
|
|
5587
5595
|
}
|
|
5588
5596
|
const A = /^\\+/.exec($e());
|
|
5589
5597
|
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 =
|
|
5598
|
+
if (A && A[0].length > 2 && (T = A[0].length, D.index += T, T % 2 !== 0 && (x += "\\")), h.unescape === !0 ? x = he() : x += he(), D.brackets === 0) {
|
|
5591
5599
|
y({ type: "text", value: x });
|
|
5592
5600
|
continue;
|
|
5593
5601
|
}
|
|
@@ -5598,7 +5606,7 @@ function Af() {
|
|
|
5598
5606
|
if (b.includes("[") && (S.posix = !0, b.includes(":"))) {
|
|
5599
5607
|
const A = S.value.lastIndexOf("["), T = S.value.slice(0, A), G = S.value.slice(A + 2), M = r[G];
|
|
5600
5608
|
if (M) {
|
|
5601
|
-
S.value = T + M, D.backtrack = !0,
|
|
5609
|
+
S.value = T + M, D.backtrack = !0, he(), !j.output && F.indexOf(S) === 1 && (j.output = le);
|
|
5602
5610
|
continue;
|
|
5603
5611
|
}
|
|
5604
5612
|
}
|
|
@@ -5621,9 +5629,9 @@ function Af() {
|
|
|
5621
5629
|
if (x === ")") {
|
|
5622
5630
|
if (D.parens === 0 && h.strictBrackets === !0)
|
|
5623
5631
|
throw new SyntaxError(l("opening", "("));
|
|
5624
|
-
const b =
|
|
5632
|
+
const b = _e[_e.length - 1];
|
|
5625
5633
|
if (b && D.parens === b.parens + 1) {
|
|
5626
|
-
R(
|
|
5634
|
+
R(_e.pop());
|
|
5627
5635
|
continue;
|
|
5628
5636
|
}
|
|
5629
5637
|
y({ type: "paren", value: x, output: D.parens ? ")" : "\\)" }), g("parens");
|
|
@@ -5671,11 +5679,11 @@ function Af() {
|
|
|
5671
5679
|
outputIndex: D.output.length,
|
|
5672
5680
|
tokensIndex: D.tokens.length
|
|
5673
5681
|
};
|
|
5674
|
-
|
|
5682
|
+
Ae.push(b), y(b);
|
|
5675
5683
|
continue;
|
|
5676
5684
|
}
|
|
5677
5685
|
if (x === "}") {
|
|
5678
|
-
const b =
|
|
5686
|
+
const b = Ae[Ae.length - 1];
|
|
5679
5687
|
if (h.nobrace === !0 || !b) {
|
|
5680
5688
|
y({ type: "text", value: x, output: x });
|
|
5681
5689
|
continue;
|
|
@@ -5693,16 +5701,16 @@ function Af() {
|
|
|
5693
5701
|
for (const M of G)
|
|
5694
5702
|
D.output += M.output || M.value;
|
|
5695
5703
|
}
|
|
5696
|
-
y({ type: "brace", value: x, output: A }), g("braces"),
|
|
5704
|
+
y({ type: "brace", value: x, output: A }), g("braces"), Ae.pop();
|
|
5697
5705
|
continue;
|
|
5698
5706
|
}
|
|
5699
5707
|
if (x === "|") {
|
|
5700
|
-
|
|
5708
|
+
_e.length > 0 && _e[_e.length - 1].conditions++, y({ type: "text", value: x });
|
|
5701
5709
|
continue;
|
|
5702
5710
|
}
|
|
5703
5711
|
if (x === ",") {
|
|
5704
5712
|
let b = x;
|
|
5705
|
-
const A =
|
|
5713
|
+
const A = Ae[Ae.length - 1];
|
|
5706
5714
|
A && Pe[Pe.length - 1] === "braces" && (A.comma = !0, b = "|"), y({ type: "comma", value: x, output: b });
|
|
5707
5715
|
continue;
|
|
5708
5716
|
}
|
|
@@ -5717,7 +5725,7 @@ function Af() {
|
|
|
5717
5725
|
if (x === ".") {
|
|
5718
5726
|
if (D.braces > 0 && S.type === "dot") {
|
|
5719
5727
|
S.value === "." && (S.output = re);
|
|
5720
|
-
const b =
|
|
5728
|
+
const b = Ae[Ae.length - 1];
|
|
5721
5729
|
S.type = "dots", S.output += x, S.value += x, b.dots = !0;
|
|
5722
5730
|
continue;
|
|
5723
5731
|
}
|
|
@@ -5740,7 +5748,7 @@ function Af() {
|
|
|
5740
5748
|
continue;
|
|
5741
5749
|
}
|
|
5742
5750
|
if (h.dot !== !0 && (S.type === "slash" || S.type === "bos")) {
|
|
5743
|
-
y({ type: "qmark", value: x, output:
|
|
5751
|
+
y({ type: "qmark", value: x, output: oe });
|
|
5744
5752
|
continue;
|
|
5745
5753
|
}
|
|
5746
5754
|
y({ type: "qmark", value: x, output: N });
|
|
@@ -5787,7 +5795,7 @@ function Af() {
|
|
|
5787
5795
|
continue;
|
|
5788
5796
|
}
|
|
5789
5797
|
if (S && (S.type === "globstar" || S.star === !0)) {
|
|
5790
|
-
S.type = "star", S.star = !0, S.value += x, S.output = ye, D.backtrack = !0, D.globstar = !0,
|
|
5798
|
+
S.type = "star", S.star = !0, S.value += x, S.output = ye, D.backtrack = !0, D.globstar = !0, be(x);
|
|
5791
5799
|
continue;
|
|
5792
5800
|
}
|
|
5793
5801
|
let _ = $e();
|
|
@@ -5797,7 +5805,7 @@ function Af() {
|
|
|
5797
5805
|
}
|
|
5798
5806
|
if (S.type === "star") {
|
|
5799
5807
|
if (h.noglobstar === !0) {
|
|
5800
|
-
|
|
5808
|
+
be(x);
|
|
5801
5809
|
continue;
|
|
5802
5810
|
}
|
|
5803
5811
|
const b = S.prev, A = b.prev, T = b.type === "slash" || b.type === "bos", G = A && (A.type === "star" || A.type === "globstar");
|
|
@@ -5805,35 +5813,35 @@ function Af() {
|
|
|
5805
5813
|
y({ type: "star", value: x, output: "" });
|
|
5806
5814
|
continue;
|
|
5807
5815
|
}
|
|
5808
|
-
const M = D.braces > 0 && (b.type === "comma" || b.type === "brace"), Q =
|
|
5816
|
+
const M = D.braces > 0 && (b.type === "comma" || b.type === "brace"), Q = _e.length && (b.type === "pipe" || b.type === "paren");
|
|
5809
5817
|
if (!T && b.type !== "paren" && !M && !Q) {
|
|
5810
5818
|
y({ type: "star", value: x, output: "" });
|
|
5811
5819
|
continue;
|
|
5812
5820
|
}
|
|
5813
5821
|
for (; _.slice(0, 3) === "/**"; ) {
|
|
5814
|
-
const
|
|
5815
|
-
if (
|
|
5822
|
+
const se = p[D.index + 4];
|
|
5823
|
+
if (se && se !== "/")
|
|
5816
5824
|
break;
|
|
5817
|
-
_ = _.slice(3),
|
|
5825
|
+
_ = _.slice(3), be("/**", 3);
|
|
5818
5826
|
}
|
|
5819
5827
|
if (b.type === "bos" && ke()) {
|
|
5820
|
-
S.type = "globstar", S.value += x, S.output =
|
|
5828
|
+
S.type = "globstar", S.value += x, S.output = de(h), D.output = S.output, D.globstar = !0, be(x);
|
|
5821
5829
|
continue;
|
|
5822
5830
|
}
|
|
5823
5831
|
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 =
|
|
5832
|
+
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, be(x);
|
|
5825
5833
|
continue;
|
|
5826
5834
|
}
|
|
5827
5835
|
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 = `${
|
|
5836
|
+
const se = _[1] !== void 0 ? "|$" : "";
|
|
5837
|
+
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, be(x + he()), y({ type: "slash", value: "/", output: "" });
|
|
5830
5838
|
continue;
|
|
5831
5839
|
}
|
|
5832
5840
|
if (b.type === "bos" && _[0] === "/") {
|
|
5833
|
-
S.type = "globstar", S.value += x, S.output = `(?:^|${ne}|${
|
|
5841
|
+
S.type = "globstar", S.value += x, S.output = `(?:^|${ne}|${de(h)}${ne})`, D.output = S.output, D.globstar = !0, be(x + he()), y({ type: "slash", value: "/", output: "" });
|
|
5834
5842
|
continue;
|
|
5835
5843
|
}
|
|
5836
|
-
D.output = D.output.slice(0, -S.output.length), S.type = "globstar", S.output =
|
|
5844
|
+
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, be(x);
|
|
5837
5845
|
continue;
|
|
5838
5846
|
}
|
|
5839
5847
|
const P = { type: "star", value: x, output: ye };
|
|
@@ -5884,7 +5892,7 @@ function Af() {
|
|
|
5884
5892
|
} = e.globChars(h.windows), pe = h.dot ? re : U, K = h.dot ? L : U, k = h.capture ? "" : "?:", B = { negated: !1, prefix: "" };
|
|
5885
5893
|
let N = h.bash === !0 ? ".*?" : ne;
|
|
5886
5894
|
h.capture && (N = `(${N})`);
|
|
5887
|
-
const
|
|
5895
|
+
const oe = (J) => J.noglobstar === !0 ? N : `(${k}(?:(?!${le}${J.dot ? te : j}).)*?)`, me = (J) => {
|
|
5888
5896
|
switch (J) {
|
|
5889
5897
|
case "*":
|
|
5890
5898
|
return `${pe}${q}${N}`;
|
|
@@ -5895,23 +5903,23 @@ function Af() {
|
|
|
5895
5903
|
case "*/*":
|
|
5896
5904
|
return `${pe}${N}${F}${q}${K}${N}`;
|
|
5897
5905
|
case "**":
|
|
5898
|
-
return pe +
|
|
5906
|
+
return pe + oe(h);
|
|
5899
5907
|
case "**/*":
|
|
5900
|
-
return `(?:${pe}${
|
|
5908
|
+
return `(?:${pe}${oe(h)}${F})?${K}${q}${N}`;
|
|
5901
5909
|
case "**/*.*":
|
|
5902
|
-
return `(?:${pe}${
|
|
5910
|
+
return `(?:${pe}${oe(h)}${F})?${K}${N}${j}${q}${N}`;
|
|
5903
5911
|
case "**/.*":
|
|
5904
|
-
return `(?:${pe}${
|
|
5912
|
+
return `(?:${pe}${oe(h)}${F})?${j}${q}${N}`;
|
|
5905
5913
|
default: {
|
|
5906
5914
|
const ie = /^(.*?)\.(\w+)$/.exec(J);
|
|
5907
5915
|
if (!ie) return;
|
|
5908
|
-
const ye =
|
|
5916
|
+
const ye = me(ie[1]);
|
|
5909
5917
|
return ye ? ye + j + ie[2] : void 0;
|
|
5910
5918
|
}
|
|
5911
5919
|
}
|
|
5912
|
-
},
|
|
5913
|
-
let
|
|
5914
|
-
return
|
|
5920
|
+
}, Oe = t.removePrefix(p, B);
|
|
5921
|
+
let de = me(Oe);
|
|
5922
|
+
return de && h.strictSlashes !== !0 && (de += `${F}?`), de;
|
|
5915
5923
|
}, No = E, No;
|
|
5916
5924
|
}
|
|
5917
5925
|
var To, pi;
|
|
@@ -6730,7 +6738,7 @@ function hg() {
|
|
|
6730
6738
|
o.d(s, "cleanUpWindow", function() {
|
|
6731
6739
|
return Ns;
|
|
6732
6740
|
}), o.d(s, "Promise", function() {
|
|
6733
|
-
return
|
|
6741
|
+
return be;
|
|
6734
6742
|
}), o.d(s, "bridge", function() {
|
|
6735
6743
|
return Ts;
|
|
6736
6744
|
}), o.d(s, "init", function() {
|
|
@@ -6754,7 +6762,7 @@ function hg() {
|
|
|
6754
6762
|
}), o.d(s, "listener", function() {
|
|
6755
6763
|
return Os;
|
|
6756
6764
|
}), o.d(s, "CONFIG", function() {
|
|
6757
|
-
return
|
|
6765
|
+
return me;
|
|
6758
6766
|
}), o.d(s, "CONSTANTS", function() {
|
|
6759
6767
|
return N;
|
|
6760
6768
|
}), o.d(s, "disable", function() {
|
|
@@ -7137,12 +7145,12 @@ function hg() {
|
|
|
7137
7145
|
BRIDGE_NAME_PREFIX: "__postrobot_bridge__",
|
|
7138
7146
|
POSTROBOT_PROXY: "__postrobot_proxy__",
|
|
7139
7147
|
WILDCARD: "*"
|
|
7140
|
-
},
|
|
7148
|
+
}, oe = {
|
|
7141
7149
|
METHOD: "postrobot_method",
|
|
7142
7150
|
HELLO: "postrobot_hello",
|
|
7143
7151
|
OPEN_TUNNEL: "postrobot_open_tunnel"
|
|
7144
|
-
},
|
|
7145
|
-
return
|
|
7152
|
+
}, me = (Object.keys(oe).map(function(a) {
|
|
7153
|
+
return oe[a];
|
|
7146
7154
|
}), {
|
|
7147
7155
|
ALLOW_POSTMESSAGE_POPUP: !("__ALLOW_POSTMESSAGE_POPUP__" in window) || window.__ALLOW_POSTMESSAGE_POPUP__,
|
|
7148
7156
|
BRIDGE_TIMEOUT: 5e3,
|
|
@@ -7152,13 +7160,13 @@ function hg() {
|
|
|
7152
7160
|
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
7161
|
ALLOW_SAME_ORIGIN: !1
|
|
7154
7162
|
});
|
|
7155
|
-
window.location.href.indexOf(N.FILE_PROTOCOL) === 0 && (
|
|
7156
|
-
var
|
|
7163
|
+
window.location.href.indexOf(N.FILE_PROTOCOL) === 0 && (me.ALLOW_POSTMESSAGE_POPUP = !0);
|
|
7164
|
+
var Oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
|
|
7157
7165
|
return typeof a;
|
|
7158
7166
|
} : function(a) {
|
|
7159
7167
|
return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
|
|
7160
7168
|
};
|
|
7161
|
-
function
|
|
7169
|
+
function de(a) {
|
|
7162
7170
|
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
7163
7171
|
if (u >= 3) return "stringifyError stack overflow";
|
|
7164
7172
|
try {
|
|
@@ -7173,7 +7181,7 @@ function hg() {
|
|
|
7173
7181
|
}
|
|
7174
7182
|
return typeof a.toString == "function" ? a.toString() : Object.prototype.toString.call(a);
|
|
7175
7183
|
} catch (w) {
|
|
7176
|
-
return "Error while stringifying error: " +
|
|
7184
|
+
return "Error while stringifying error: " + de(w, u + 1);
|
|
7177
7185
|
}
|
|
7178
7186
|
}
|
|
7179
7187
|
var J = function(a) {
|
|
@@ -7196,25 +7204,25 @@ function hg() {
|
|
|
7196
7204
|
var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
|
|
7197
7205
|
if (m >= 100) throw new Error("Self-referential object passed, or object contained too many layers");
|
|
7198
7206
|
var v = void 0;
|
|
7199
|
-
if ((a === void 0 ? "undefined" :
|
|
7200
|
-
if (!Array.isArray(a)) throw new TypeError("Invalid type: " + (a === void 0 ? "undefined" :
|
|
7207
|
+
if ((a === void 0 ? "undefined" : Oe(a)) !== "object" || a === null || Array.isArray(a)) {
|
|
7208
|
+
if (!Array.isArray(a)) throw new TypeError("Invalid type: " + (a === void 0 ? "undefined" : Oe(a)));
|
|
7201
7209
|
v = [];
|
|
7202
7210
|
} else v = {};
|
|
7203
7211
|
return function(w, I) {
|
|
7204
7212
|
Array.isArray(w) ? function(V, Y) {
|
|
7205
7213
|
for (var X = 0; X < V.length; X++) Y(V[X], X);
|
|
7206
|
-
}(w, I) : (w === void 0 ? "undefined" :
|
|
7214
|
+
}(w, I) : (w === void 0 ? "undefined" : Oe(w)) === "object" && w !== null && function(V, Y) {
|
|
7207
7215
|
for (var X in V) V.hasOwnProperty(X) && Y(V[X], X);
|
|
7208
7216
|
}(w, I);
|
|
7209
7217
|
}(a, function(w, I) {
|
|
7210
7218
|
var V = u(w, I);
|
|
7211
|
-
V !== void 0 ? v[I] = V : (w === void 0 ? "undefined" :
|
|
7219
|
+
V !== void 0 ? v[I] = V : (w === void 0 ? "undefined" : Oe(w)) === "object" && w !== null ? v[I] = D(w, u, m + 1) : v[I] = w;
|
|
7212
7220
|
}), v;
|
|
7213
7221
|
}
|
|
7214
|
-
function
|
|
7222
|
+
function _e(a) {
|
|
7215
7223
|
return Object.prototype.toString.call(a) === "[object RegExp]";
|
|
7216
7224
|
}
|
|
7217
|
-
function
|
|
7225
|
+
function Ae(a) {
|
|
7218
7226
|
try {
|
|
7219
7227
|
if (!a) return !1;
|
|
7220
7228
|
if (typeof Promise < "u" && a instanceof Promise) return !0;
|
|
@@ -7237,20 +7245,20 @@ function hg() {
|
|
|
7237
7245
|
ke = null, a.resolve();
|
|
7238
7246
|
}
|
|
7239
7247
|
}
|
|
7240
|
-
function
|
|
7248
|
+
function he() {
|
|
7241
7249
|
x += 1;
|
|
7242
7250
|
}
|
|
7243
7251
|
function $e() {
|
|
7244
7252
|
x -= 1, Z();
|
|
7245
7253
|
}
|
|
7246
|
-
var
|
|
7254
|
+
var be = function() {
|
|
7247
7255
|
function a(u) {
|
|
7248
7256
|
var m = this;
|
|
7249
7257
|
if (function(X, ae) {
|
|
7250
7258
|
if (!(X instanceof a)) throw new TypeError("Cannot call a class as a function");
|
|
7251
7259
|
}(this), this.resolved = !1, this.rejected = !1, this.errorHandled = !1, this.handlers = [], u) {
|
|
7252
7260
|
var v = void 0, w = void 0, I = !1, V = !1, Y = !1;
|
|
7253
|
-
|
|
7261
|
+
he();
|
|
7254
7262
|
try {
|
|
7255
7263
|
u(function(X) {
|
|
7256
7264
|
Y ? m.resolve(X) : (I = !0, v = X);
|
|
@@ -7266,12 +7274,12 @@ function hg() {
|
|
|
7266
7274
|
}
|
|
7267
7275
|
return a.prototype.resolve = function(u) {
|
|
7268
7276
|
if (this.resolved || this.rejected) return this;
|
|
7269
|
-
if (
|
|
7277
|
+
if (Ae(u)) throw new Error("Can not resolve promise with another promise");
|
|
7270
7278
|
return this.resolved = !0, this.value = u, this.dispatch(), this;
|
|
7271
7279
|
}, a.prototype.reject = function(u) {
|
|
7272
7280
|
var m = this;
|
|
7273
7281
|
if (this.resolved || this.rejected) return this;
|
|
7274
|
-
if (
|
|
7282
|
+
if (Ae(u)) throw new Error("Can not reject promise with another promise");
|
|
7275
7283
|
if (!u) {
|
|
7276
7284
|
var v = u && typeof u.toString == "function" ? u.toString() : Object.prototype.toString.call(u);
|
|
7277
7285
|
u = new Error("Expected reject to be called with Error, got " + v);
|
|
@@ -7291,12 +7299,12 @@ function hg() {
|
|
|
7291
7299
|
}, a.prototype.dispatch = function() {
|
|
7292
7300
|
var u = this.dispatching, m = this.resolved, v = this.rejected, w = this.handlers;
|
|
7293
7301
|
if (!u && (m || v)) {
|
|
7294
|
-
this.dispatching = !0,
|
|
7295
|
-
for (var I = function(fe,
|
|
7302
|
+
this.dispatching = !0, he();
|
|
7303
|
+
for (var I = function(fe, ge) {
|
|
7296
7304
|
return fe.then(function(Le) {
|
|
7297
|
-
|
|
7305
|
+
ge.resolve(Le);
|
|
7298
7306
|
}, function(Le) {
|
|
7299
|
-
|
|
7307
|
+
ge.reject(Le);
|
|
7300
7308
|
});
|
|
7301
7309
|
}, V = 0; V < w.length; V++) {
|
|
7302
7310
|
var Y = w[V], X = Y.onSuccess, ae = Y.onError, ee = Y.promise, z = void 0;
|
|
@@ -7318,7 +7326,7 @@ function hg() {
|
|
|
7318
7326
|
continue;
|
|
7319
7327
|
}
|
|
7320
7328
|
}
|
|
7321
|
-
z instanceof a && (z.resolved || z.rejected) ? (z.resolved ? ee.resolve(z.value) : ee.reject(z.error), z.errorHandled = !0) :
|
|
7329
|
+
z instanceof a && (z.resolved || z.rejected) ? (z.resolved ? ee.resolve(z.value) : ee.reject(z.error), z.errorHandled = !0) : Ae(z) ? z instanceof a && (z.resolved || z.rejected) ? z.resolved ? ee.resolve(z.value) : ee.reject(z.error) : I(z, ee) : ee.resolve(z);
|
|
7322
7330
|
}
|
|
7323
7331
|
w.length = 0, this.dispatching = !1, $e();
|
|
7324
7332
|
}
|
|
@@ -7357,7 +7365,7 @@ function hg() {
|
|
|
7357
7365
|
if (typeof Promise > "u") throw new TypeError("Could not find Promise");
|
|
7358
7366
|
return Promise.resolve(this);
|
|
7359
7367
|
}, a.resolve = function(u) {
|
|
7360
|
-
return u instanceof a ? u :
|
|
7368
|
+
return u instanceof a ? u : Ae(u) ? new a(function(m, v) {
|
|
7361
7369
|
return u.then(m, v);
|
|
7362
7370
|
}) : new a().resolve(u);
|
|
7363
7371
|
}, a.reject = function(u) {
|
|
@@ -7381,7 +7389,7 @@ function hg() {
|
|
|
7381
7389
|
w[V] = Y.value, v -= 1;
|
|
7382
7390
|
continue;
|
|
7383
7391
|
}
|
|
7384
|
-
} else if (!
|
|
7392
|
+
} else if (!Ae(Y)) {
|
|
7385
7393
|
w[V] = Y, v -= 1;
|
|
7386
7394
|
continue;
|
|
7387
7395
|
}
|
|
@@ -7410,7 +7418,7 @@ function hg() {
|
|
|
7410
7418
|
}, a.try = function(u, m, v) {
|
|
7411
7419
|
if (u && typeof u != "function" && !u.call) throw new Error("Promise.try expected a function");
|
|
7412
7420
|
var w = void 0;
|
|
7413
|
-
|
|
7421
|
+
he();
|
|
7414
7422
|
try {
|
|
7415
7423
|
w = u.apply(m, v || []);
|
|
7416
7424
|
} catch (I) {
|
|
@@ -7422,7 +7430,7 @@ function hg() {
|
|
|
7422
7430
|
setTimeout(m, u);
|
|
7423
7431
|
});
|
|
7424
7432
|
}, a.isPromise = function(u) {
|
|
7425
|
-
return !!(u && u instanceof a) ||
|
|
7433
|
+
return !!(u && u instanceof a) || Ae(u);
|
|
7426
7434
|
}, a.flush = function() {
|
|
7427
7435
|
return function(u) {
|
|
7428
7436
|
var m = ke = ke || new a();
|
|
@@ -7447,7 +7455,7 @@ function hg() {
|
|
|
7447
7455
|
var I = w[v.id];
|
|
7448
7456
|
if (!I) throw new Error("Could not find method with id: " + v.id);
|
|
7449
7457
|
if (!le(I.domain, m)) throw new Error("Method domain " + I.domain + " does not match origin " + m);
|
|
7450
|
-
return
|
|
7458
|
+
return be.try(function() {
|
|
7451
7459
|
return I.method.apply({
|
|
7452
7460
|
source: u,
|
|
7453
7461
|
origin: m,
|
|
@@ -7495,7 +7503,7 @@ function hg() {
|
|
|
7495
7503
|
return v.__name__ = m.__name__, v.__xdomain__ = !0, v.source = a, v.origin = u, v;
|
|
7496
7504
|
}
|
|
7497
7505
|
function R(a, u, m) {
|
|
7498
|
-
return new
|
|
7506
|
+
return new be(function(v, w) {
|
|
7499
7507
|
return C(a, u, m.__then__)(v, w);
|
|
7500
7508
|
});
|
|
7501
7509
|
}
|
|
@@ -7531,7 +7539,7 @@ function hg() {
|
|
|
7531
7539
|
return a;
|
|
7532
7540
|
};
|
|
7533
7541
|
function A(a, u, m) {
|
|
7534
|
-
return
|
|
7542
|
+
return be.try(function() {
|
|
7535
7543
|
var v;
|
|
7536
7544
|
if (u = function(V, Y) {
|
|
7537
7545
|
var X = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, ae = ye(), ee = function() {
|
|
@@ -7553,23 +7561,23 @@ function hg() {
|
|
|
7553
7561
|
}, function(ae, ee) {
|
|
7554
7562
|
return typeof ae == "function" ? y(V, Y, ae, ee.toString()) : ae instanceof Error ? (z = ae, {
|
|
7555
7563
|
__type__: N.SERIALIZATION_TYPES.ERROR,
|
|
7556
|
-
__message__:
|
|
7564
|
+
__message__: de(z),
|
|
7557
7565
|
__code__: z.code
|
|
7558
|
-
}) : window.Promise && ae instanceof window.Promise ? function(
|
|
7566
|
+
}) : window.Promise && ae instanceof window.Promise ? function(ge, Le, ze, Ie) {
|
|
7559
7567
|
return {
|
|
7560
7568
|
__type__: N.SERIALIZATION_TYPES.PROMISE,
|
|
7561
|
-
__then__: y(
|
|
7569
|
+
__then__: y(ge, Le, function(Je, Ke) {
|
|
7562
7570
|
return ze.then(Je, Ke);
|
|
7563
7571
|
}, Ie + ".then")
|
|
7564
7572
|
};
|
|
7565
|
-
}(V, Y, ae, ee.toString()) :
|
|
7573
|
+
}(V, Y, ae, ee.toString()) : be.isPromise(ae) ? function(ge, Le, ze, Ie) {
|
|
7566
7574
|
return {
|
|
7567
7575
|
__type__: N.SERIALIZATION_TYPES.ZALGO_PROMISE,
|
|
7568
|
-
__then__: y(
|
|
7576
|
+
__then__: y(ge, Le, function(Je, Ke) {
|
|
7569
7577
|
return ze.then(Je, Ke);
|
|
7570
7578
|
}, Ie + ".then")
|
|
7571
7579
|
};
|
|
7572
|
-
}(V, Y, ae, ee.toString()) :
|
|
7580
|
+
}(V, Y, ae, ee.toString()) : _e(ae) ? (fe = ae, {
|
|
7573
7581
|
__type__: N.SERIALIZATION_TYPES.REGEX,
|
|
7574
7582
|
__source__: fe.source
|
|
7575
7583
|
}) : void 0;
|
|
@@ -7577,7 +7585,7 @@ function hg() {
|
|
|
7577
7585
|
}).obj;
|
|
7578
7586
|
}(a, m),
|
|
7579
7587
|
domain: m
|
|
7580
|
-
}), a === window && !
|
|
7588
|
+
}), a === window && !me.ALLOW_SAME_ORIGIN) throw new Error("Attemping to send message to self");
|
|
7581
7589
|
if (L(a)) throw new Error("Window is closed");
|
|
7582
7590
|
var w = [], I = function(V, Y, X) {
|
|
7583
7591
|
var ae = void 0, ee = void 0;
|
|
@@ -7595,14 +7603,14 @@ function hg() {
|
|
|
7595
7603
|
}
|
|
7596
7604
|
return z;
|
|
7597
7605
|
}(((v = {})[N.WINDOW_PROPS.POSTROBOT] = u, v));
|
|
7598
|
-
return
|
|
7599
|
-
return
|
|
7600
|
-
if (!
|
|
7606
|
+
return be.map(Object.keys(P), function(V) {
|
|
7607
|
+
return be.try(function() {
|
|
7608
|
+
if (!me.ALLOWED_POST_MESSAGE_METHODS[V]) throw new Error("Strategy disallowed: " + V);
|
|
7601
7609
|
return P[V](a, I, m);
|
|
7602
7610
|
}).then(function() {
|
|
7603
7611
|
return w.push(V + ": success"), !0;
|
|
7604
7612
|
}, function(Y) {
|
|
7605
|
-
return w.push(V + ": " +
|
|
7613
|
+
return w.push(V + ": " + de(Y) + `
|
|
7606
7614
|
`), !1;
|
|
7607
7615
|
});
|
|
7608
7616
|
}).then(function(V) {
|
|
@@ -7623,7 +7631,7 @@ function hg() {
|
|
|
7623
7631
|
function Q(a) {
|
|
7624
7632
|
delete W.responseListeners[a];
|
|
7625
7633
|
}
|
|
7626
|
-
function
|
|
7634
|
+
function se(a) {
|
|
7627
7635
|
return !!W.erroredResponseListeners[a];
|
|
7628
7636
|
}
|
|
7629
7637
|
function Ee(a) {
|
|
@@ -7636,7 +7644,7 @@ function hg() {
|
|
|
7636
7644
|
if (v && typeof v == "string") {
|
|
7637
7645
|
if (ae[v]) return ae[v];
|
|
7638
7646
|
if (ae[G]) for (var ee = 0, z = ae[G], fe = z == null ? 0 : z.length; ee < fe; ee++) {
|
|
7639
|
-
var
|
|
7647
|
+
var ge = z[ee], Le = ge.regex, ze = ge.listener;
|
|
7640
7648
|
if (le(Le, v)) return ze;
|
|
7641
7649
|
}
|
|
7642
7650
|
}
|
|
@@ -7644,14 +7652,14 @@ function hg() {
|
|
|
7644
7652
|
}
|
|
7645
7653
|
}
|
|
7646
7654
|
}
|
|
7647
|
-
var
|
|
7655
|
+
var Re = Object.assign || function(a) {
|
|
7648
7656
|
for (var u = 1; u < arguments.length; u++) {
|
|
7649
7657
|
var m = arguments[u];
|
|
7650
7658
|
for (var v in m) Object.prototype.hasOwnProperty.call(m, v) && (a[v] = m[v]);
|
|
7651
7659
|
}
|
|
7652
7660
|
return a;
|
|
7653
7661
|
}, Se = ((T = {})[N.POST_MESSAGE_TYPE.ACK] = function(a, u, m) {
|
|
7654
|
-
if (!
|
|
7662
|
+
if (!se(m.hash)) {
|
|
7655
7663
|
var v = M(m.hash);
|
|
7656
7664
|
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
7665
|
if (!le(v.domain, u)) throw new Error("Ack origin " + u + " does not match domain " + v.domain.toString());
|
|
@@ -7664,15 +7672,15 @@ function hg() {
|
|
|
7664
7672
|
domain: u
|
|
7665
7673
|
});
|
|
7666
7674
|
function w(I) {
|
|
7667
|
-
return m.fireAndForget || L(a) ?
|
|
7675
|
+
return m.fireAndForget || L(a) ? be.resolve() : A(a, Re({
|
|
7668
7676
|
target: m.originalSource,
|
|
7669
7677
|
hash: m.hash,
|
|
7670
7678
|
name: m.name
|
|
7671
7679
|
}, I), u);
|
|
7672
7680
|
}
|
|
7673
|
-
return
|
|
7681
|
+
return be.all([w({
|
|
7674
7682
|
type: N.POST_MESSAGE_TYPE.ACK
|
|
7675
|
-
}),
|
|
7683
|
+
}), be.try(function() {
|
|
7676
7684
|
if (!v) throw new Error("No handler found for post message: " + m.name + " from " + u + " in " + window.location.protocol + "//" + window.location.host + window.location.pathname);
|
|
7677
7685
|
if (!le(v.domain, u)) throw new Error("Request origin " + u + " does not match domain " + v.domain.toString());
|
|
7678
7686
|
var I = m.data;
|
|
@@ -7688,7 +7696,7 @@ function hg() {
|
|
|
7688
7696
|
data: I
|
|
7689
7697
|
});
|
|
7690
7698
|
}, function(I) {
|
|
7691
|
-
var V =
|
|
7699
|
+
var V = de(I).replace(/^Error: /, ""), Y = I.code;
|
|
7692
7700
|
return w({
|
|
7693
7701
|
type: N.POST_MESSAGE_TYPE.RESPONSE,
|
|
7694
7702
|
ack: N.POST_MESSAGE_ACK.ERROR,
|
|
@@ -7700,7 +7708,7 @@ function hg() {
|
|
|
7700
7708
|
throw I;
|
|
7701
7709
|
});
|
|
7702
7710
|
}, T[N.POST_MESSAGE_TYPE.RESPONSE] = function(a, u, m) {
|
|
7703
|
-
if (!
|
|
7711
|
+
if (!se(m.hash)) {
|
|
7704
7712
|
var v, w = M(m.hash);
|
|
7705
7713
|
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
7714
|
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()));
|
|
@@ -7774,7 +7782,7 @@ function hg() {
|
|
|
7774
7782
|
}
|
|
7775
7783
|
W.receiveMessage = Ge, W.requestPromises = W.requestPromises || new B();
|
|
7776
7784
|
function tt(a) {
|
|
7777
|
-
return
|
|
7785
|
+
return be.try(function() {
|
|
7778
7786
|
if (!a.name) throw new Error("Expected options.name");
|
|
7779
7787
|
var u = a.name, m = void 0, v = void 0;
|
|
7780
7788
|
if (typeof a.window == "string") {
|
|
@@ -7795,7 +7803,7 @@ function hg() {
|
|
|
7795
7803
|
if (L(I)) throw new Error("Target window is closed");
|
|
7796
7804
|
var Y = !1, X = W.requestPromises.get(I);
|
|
7797
7805
|
X || (X = [], W.requestPromises.set(I, X));
|
|
7798
|
-
var ae =
|
|
7806
|
+
var ae = be.try(function() {
|
|
7799
7807
|
if (function(ee, z) {
|
|
7800
7808
|
var fe = ne(z);
|
|
7801
7809
|
if (fe) return fe === ee;
|
|
@@ -7833,26 +7841,26 @@ function hg() {
|
|
|
7833
7841
|
if (d(Ct) === Ct) return Ct;
|
|
7834
7842
|
}
|
|
7835
7843
|
}(z) === z) return !1;
|
|
7836
|
-
for (var
|
|
7844
|
+
for (var ge = 0, Le = te(ee), ze = Le == null ? 0 : Le.length; ge < ze; ge++) if (Le[ge] === z) return !0;
|
|
7837
7845
|
return !1;
|
|
7838
7846
|
}(window, I)) return function(ee) {
|
|
7839
|
-
var z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 5e3, fe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "Window",
|
|
7840
|
-
return
|
|
7841
|
-
return
|
|
7842
|
-
}, z),
|
|
7843
|
-
}(I, a.timeout ||
|
|
7847
|
+
var z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 5e3, fe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "Window", ge = W.readyPromises.get(ee);
|
|
7848
|
+
return ge || (ge = new be(), W.readyPromises.set(ee, ge), z !== -1 && setTimeout(function() {
|
|
7849
|
+
return ge.reject(new Error(fe + " did not load after " + z + "ms"));
|
|
7850
|
+
}, z), ge);
|
|
7851
|
+
}(I, a.timeout || me.CHILD_WINDOW_TIMEOUT);
|
|
7844
7852
|
}).then(function() {
|
|
7845
7853
|
var ee = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).origin;
|
|
7846
|
-
if (
|
|
7854
|
+
if (_e(v) && !ee) return _(I);
|
|
7847
7855
|
}).then(function() {
|
|
7848
7856
|
var ee = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).origin;
|
|
7849
|
-
if (
|
|
7857
|
+
if (_e(v)) {
|
|
7850
7858
|
if (!le(v, ee)) throw new Error("Remote window domain " + ee + " does not match regex: " + v.toString());
|
|
7851
7859
|
v = ee;
|
|
7852
7860
|
}
|
|
7853
7861
|
if (typeof v != "string" && !Array.isArray(v)) throw new TypeError("Expected domain to be a string or array");
|
|
7854
7862
|
var z = v;
|
|
7855
|
-
return new
|
|
7863
|
+
return new be(function(fe, ge) {
|
|
7856
7864
|
var Le = void 0;
|
|
7857
7865
|
if (a.fireAndForget || function(Ke, Et) {
|
|
7858
7866
|
W.responseListeners[Ke] = Et;
|
|
@@ -7861,7 +7869,7 @@ function hg() {
|
|
|
7861
7869
|
window: I,
|
|
7862
7870
|
domain: z,
|
|
7863
7871
|
respond: function(Ke, Et) {
|
|
7864
|
-
Ke || (Y = !0, X.splice(X.indexOf(ae, 1))), Ke ?
|
|
7872
|
+
Ke || (Y = !0, X.splice(X.indexOf(ae, 1))), Ke ? ge(Ke) : fe(Et);
|
|
7865
7873
|
}
|
|
7866
7874
|
}), A(I, {
|
|
7867
7875
|
type: N.POST_MESSAGE_TYPE.REQUEST,
|
|
@@ -7869,17 +7877,17 @@ function hg() {
|
|
|
7869
7877
|
name: u,
|
|
7870
7878
|
data: a.data,
|
|
7871
7879
|
fireAndForget: a.fireAndForget
|
|
7872
|
-
}, z).catch(
|
|
7873
|
-
var ze =
|
|
7880
|
+
}, z).catch(ge), a.fireAndForget) return fe();
|
|
7881
|
+
var ze = me.ACK_TIMEOUT, Ie = a.timeout || me.RES_TIMEOUT, Je = 100;
|
|
7874
7882
|
setTimeout(function Ke() {
|
|
7875
7883
|
if (!Y) {
|
|
7876
|
-
if (L(I)) return Le.ack ?
|
|
7884
|
+
if (L(I)) return Le.ack ? ge(new Error("Window closed for " + u + " before response")) : ge(new Error("Window closed for " + u + " before ack"));
|
|
7877
7885
|
if (ze = Math.max(ze - Je, 0), Ie !== -1 && (Ie = Math.max(Ie - Je, 0)), Le.ack) {
|
|
7878
7886
|
if (Ie === -1) return;
|
|
7879
7887
|
Je = Math.min(Ie, 2e3);
|
|
7880
7888
|
} else {
|
|
7881
|
-
if (ze === 0) return
|
|
7882
|
-
if (Ie === 0) return
|
|
7889
|
+
if (ze === 0) return ge(new Error("No ack for postMessage " + u + " in " + j() + " in " + me.ACK_TIMEOUT + "ms"));
|
|
7890
|
+
if (Ie === 0) return ge(new Error("No response for postMessage " + u + " in " + j() + " in " + (a.timeout || me.RES_TIMEOUT) + "ms"));
|
|
7883
7891
|
}
|
|
7884
7892
|
setTimeout(Ke, Je);
|
|
7885
7893
|
}
|
|
@@ -7898,7 +7906,7 @@ function hg() {
|
|
|
7898
7906
|
}
|
|
7899
7907
|
function Vn(a, u, m) {
|
|
7900
7908
|
var v = ne();
|
|
7901
|
-
return v ? lt(v, a, u, m) : new
|
|
7909
|
+
return v ? lt(v, a, u, m) : new be(function(w, I) {
|
|
7902
7910
|
return I(new Error("Window does not have a parent"));
|
|
7903
7911
|
});
|
|
7904
7912
|
}
|
|
@@ -7930,14 +7938,14 @@ function hg() {
|
|
|
7930
7938
|
domain: v || N.WILDCARD,
|
|
7931
7939
|
name: u
|
|
7932
7940
|
}, I = function X(ae, ee) {
|
|
7933
|
-
var z = ae.name, fe = ae.win,
|
|
7941
|
+
var z = ae.name, fe = ae.win, ge = ae.domain;
|
|
7934
7942
|
if (!z || typeof z != "string") throw new Error("Name required to add request listener");
|
|
7935
7943
|
if (Array.isArray(fe)) {
|
|
7936
7944
|
for (var Le = [], ze = 0, Ie = fe, Je = Ie == null ? 0 : Ie.length; ze < Je; ze++) {
|
|
7937
7945
|
var Ke = Ie[ze];
|
|
7938
7946
|
Le.push(X({
|
|
7939
7947
|
name: z,
|
|
7940
|
-
domain:
|
|
7948
|
+
domain: ge,
|
|
7941
7949
|
win: Ke
|
|
7942
7950
|
}, ee));
|
|
7943
7951
|
}
|
|
@@ -7947,8 +7955,8 @@ function hg() {
|
|
|
7947
7955
|
}
|
|
7948
7956
|
};
|
|
7949
7957
|
}
|
|
7950
|
-
if (Array.isArray(
|
|
7951
|
-
for (var Et = [], Ct = 0, Pt =
|
|
7958
|
+
if (Array.isArray(ge)) {
|
|
7959
|
+
for (var Et = [], Ct = 0, Pt = ge, lo = Pt == null ? 0 : Pt.length; Ct < lo; Ct++) {
|
|
7952
7960
|
var Hn = Pt[Ct];
|
|
7953
7961
|
Et.push(X({
|
|
7954
7962
|
name: z,
|
|
@@ -7965,16 +7973,16 @@ function hg() {
|
|
|
7965
7973
|
var Wn = Ee({
|
|
7966
7974
|
name: z,
|
|
7967
7975
|
win: fe,
|
|
7968
|
-
domain:
|
|
7976
|
+
domain: ge
|
|
7969
7977
|
});
|
|
7970
|
-
if (fe && fe !== N.WILDCARD || (fe = W.WINDOW_WILDCARD),
|
|
7978
|
+
if (fe && fe !== N.WILDCARD || (fe = W.WINDOW_WILDCARD), ge = ge || N.WILDCARD, Wn) throw fe && ge ? new Error("Request listener already exists for " + z + " on domain " + ge.toString() + " for " + (fe === W.WINDOW_WILDCARD ? "wildcard" : "specified") + " window") : fe ? new Error("Request listener already exists for " + z + " for " + (fe === W.WINDOW_WILDCARD ? "wildcard" : "specified") + " window") : ge ? new Error("Request listener already exists for " + z + " on domain " + ge.toString()) : new Error("Request listener already exists for " + z);
|
|
7971
7979
|
var mn = W.requestListeners, kt = mn[z];
|
|
7972
7980
|
kt || (kt = new B(), mn[z] = kt);
|
|
7973
7981
|
var pt = kt.get(fe);
|
|
7974
7982
|
pt || (pt = {}, kt.set(fe, pt));
|
|
7975
|
-
var vn =
|
|
7976
|
-
return
|
|
7977
|
-
regex:
|
|
7983
|
+
var vn = ge.toString(), yt = pt[G], En = void 0;
|
|
7984
|
+
return _e(ge) ? (yt || (yt = [], pt[G] = yt), En = {
|
|
7985
|
+
regex: ge,
|
|
7978
7986
|
listener: ee
|
|
7979
7987
|
}, yt.push(En)) : pt[vn] = ee, {
|
|
7980
7988
|
cancel: function() {
|
|
@@ -8016,7 +8024,7 @@ function hg() {
|
|
|
8016
8024
|
function ws(a) {
|
|
8017
8025
|
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = arguments[2];
|
|
8018
8026
|
typeof u == "function" && (m = u, u = {}), u = u || {}, m = m || u.handler;
|
|
8019
|
-
var v = u.errorHandler, w = new
|
|
8027
|
+
var v = u.errorHandler, w = new be(function(V, Y) {
|
|
8020
8028
|
(u = u || {}).name = a, u.once = !0, u.handler = function(X) {
|
|
8021
8029
|
if (V(X), m) return m(X);
|
|
8022
8030
|
}, u.errorHandler = function(X) {
|
|
@@ -8047,7 +8055,7 @@ function hg() {
|
|
|
8047
8055
|
function uo() {
|
|
8048
8056
|
W.initialized || (u = ot, (a = window).addEventListener ? a.addEventListener("message", u) : a.attachEvent("onmessage", u), function() {
|
|
8049
8057
|
m = function(w) {
|
|
8050
|
-
var I = w.source, V = w.origin, Y = W.readyPromises.get(I) || new
|
|
8058
|
+
var I = w.source, V = w.origin, Y = W.readyPromises.get(I) || new be();
|
|
8051
8059
|
Y.resolve({
|
|
8052
8060
|
origin: V
|
|
8053
8061
|
}), W.readyPromises.set(I, Y);
|
|
@@ -8072,7 +8080,7 @@ function hg() {
|
|
|
8072
8080
|
uo(), o.d(r, "cleanUpWindow", function() {
|
|
8073
8081
|
return Ns;
|
|
8074
8082
|
}), o.d(r, "Promise", function() {
|
|
8075
|
-
return
|
|
8083
|
+
return be;
|
|
8076
8084
|
}), o.d(r, "bridge", function() {
|
|
8077
8085
|
return Ts;
|
|
8078
8086
|
}), o.d(r, "init", function() {
|
|
@@ -8096,7 +8104,7 @@ function hg() {
|
|
|
8096
8104
|
}), o.d(r, "listener", function() {
|
|
8097
8105
|
return Os;
|
|
8098
8106
|
}), o.d(r, "CONFIG", function() {
|
|
8099
|
-
return
|
|
8107
|
+
return me;
|
|
8100
8108
|
}), o.d(r, "CONSTANTS", function() {
|
|
8101
8109
|
return N;
|
|
8102
8110
|
}), o.d(r, "disable", function() {
|