x-runtime-lib 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +113 -113
- package/dist/utils/provideInject.d.ts +11 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var io = Object.defineProperty;
|
|
2
2
|
var oo = (r, a, c) => a in r ? io(r, a, { enumerable: !0, configurable: !0, writable: !0, value: c }) : r[a] = c;
|
|
3
3
|
var Bt = (r, a, c) => (oo(r, typeof a != "symbol" ? a + "" : a, c), c);
|
|
4
|
-
import { resolveComponent as ao, openBlock as An, createBlock as In, getCurrentInstance as kn, inject as te, hasInjectionContext as so, ref as ne, watch as rr, reactive as uo, markRaw as We, effectScope as co, isRef as qe, isReactive as nr, toRef as $t, toRaw as fo, nextTick as zt, computed as ue, getCurrentScope as lo, onScopeDispose as po, toRefs as Kr, provide as fe, readonly as
|
|
4
|
+
import { resolveComponent as ao, openBlock as An, createBlock as In, getCurrentInstance as kn, inject as te, hasInjectionContext as so, ref as ne, watch as rr, reactive as uo, markRaw as We, effectScope as co, isRef as qe, isReactive as nr, toRef as $t, toRaw as fo, nextTick as zt, computed as ue, getCurrentScope as lo, onScopeDispose as po, toRefs as Kr, provide as fe, readonly as ke, defineComponent as ho, watchEffect as vo, onBeforeUnmount as yo, h as Ye } from "vue";
|
|
5
5
|
const Eo = (r, a) => {
|
|
6
6
|
const c = r.__vccOpts || r;
|
|
7
7
|
for (const [d, v] of a)
|
|
@@ -44,7 +44,7 @@ const dt = (r) => ze = r, So = M.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
|
44
44
|
/* istanbul ignore next */
|
|
45
45
|
Symbol()
|
|
46
46
|
);
|
|
47
|
-
function
|
|
47
|
+
function be(r) {
|
|
48
48
|
return r && typeof r == "object" && Object.prototype.toString.call(r) === "[object Object]" && typeof r.toJSON != "function";
|
|
49
49
|
}
|
|
50
50
|
var Je;
|
|
@@ -58,7 +58,7 @@ function Dn(r, a) {
|
|
|
58
58
|
if (!(c in r))
|
|
59
59
|
continue;
|
|
60
60
|
const v = r[c];
|
|
61
|
-
|
|
61
|
+
be(v) && be(d) && !qe(d) && !nr(d) ? r[c] = Dn(v, d) : r[c] = d;
|
|
62
62
|
}
|
|
63
63
|
return r;
|
|
64
64
|
}
|
|
@@ -72,7 +72,7 @@ function Zr(r, a, c, d = jn) {
|
|
|
72
72
|
};
|
|
73
73
|
return !c && lo() && po(v), v;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Ce(r, ...a) {
|
|
76
76
|
r.slice().forEach((c) => {
|
|
77
77
|
c(...a);
|
|
78
78
|
});
|
|
@@ -84,7 +84,7 @@ function Jt(r, a) {
|
|
|
84
84
|
if (!a.hasOwnProperty(c))
|
|
85
85
|
continue;
|
|
86
86
|
const d = a[c], v = r[c];
|
|
87
|
-
|
|
87
|
+
be(v) && be(d) && r.hasOwnProperty(c) && !qe(d) && !nr(d) ? r[c] = Jt(v, d) : r[c] = d;
|
|
88
88
|
}
|
|
89
89
|
return r;
|
|
90
90
|
}
|
|
@@ -93,7 +93,7 @@ const Po = M.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
|
93
93
|
Symbol()
|
|
94
94
|
);
|
|
95
95
|
function wo(r) {
|
|
96
|
-
return !
|
|
96
|
+
return !be(r) || !r.hasOwnProperty(Po);
|
|
97
97
|
}
|
|
98
98
|
const { assign: Q } = Object;
|
|
99
99
|
function Qr(r) {
|
|
@@ -148,7 +148,7 @@ function Ht(r, a, c = {}, d, v, b) {
|
|
|
148
148
|
const F = o = Symbol();
|
|
149
149
|
zt().then(() => {
|
|
150
150
|
o === F && (n = !0);
|
|
151
|
-
}), t = !0,
|
|
151
|
+
}), t = !0, Ce(e, N, d.state.value[r]);
|
|
152
152
|
}
|
|
153
153
|
const E = b ? function() {
|
|
154
154
|
const { state: N } = c, F = N ? N() : {};
|
|
@@ -174,20 +174,20 @@ function Ht(r, a, c = {}, d, v, b) {
|
|
|
174
174
|
function k(H) {
|
|
175
175
|
U.push(H);
|
|
176
176
|
}
|
|
177
|
-
|
|
177
|
+
Ce(i, {
|
|
178
178
|
args: F,
|
|
179
179
|
name: w,
|
|
180
180
|
store: R,
|
|
181
181
|
after: Z,
|
|
182
182
|
onError: k
|
|
183
183
|
});
|
|
184
|
-
let
|
|
184
|
+
let ve;
|
|
185
185
|
try {
|
|
186
|
-
|
|
186
|
+
ve = N.apply(this && this.$id === r ? this : R, F);
|
|
187
187
|
} catch (H) {
|
|
188
|
-
throw
|
|
188
|
+
throw Ce(U, H), H;
|
|
189
189
|
}
|
|
190
|
-
return
|
|
190
|
+
return ve instanceof Promise ? ve.then((H) => (Ce(X, H), H)).catch((H) => (Ce(U, H), Promise.reject(H))) : (Ce(X, ve), ve);
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
193
|
const O = /* @__PURE__ */ We({
|
|
@@ -252,7 +252,7 @@ function Ht(r, a, c = {}, d, v, b) {
|
|
|
252
252
|
R._hotUpdating = !0, w._hmrPayload.state.forEach((N) => {
|
|
253
253
|
if (N in R.$state) {
|
|
254
254
|
const F = w.$state[N], X = R.$state[N];
|
|
255
|
-
typeof F == "object" &&
|
|
255
|
+
typeof F == "object" && be(F) && be(X) ? Dn(F, X) : w.$state[N] = X;
|
|
256
256
|
}
|
|
257
257
|
pt(R, N, $t(w.$state, N));
|
|
258
258
|
}), Object.keys(R.$state).forEach((N) => {
|
|
@@ -394,7 +394,7 @@ function Co(r) {
|
|
|
394
394
|
});
|
|
395
395
|
} };
|
|
396
396
|
}
|
|
397
|
-
const
|
|
397
|
+
const _e = Co();
|
|
398
398
|
async function Fn(r, a, c) {
|
|
399
399
|
return new Promise((d) => {
|
|
400
400
|
const v = async () => {
|
|
@@ -450,7 +450,7 @@ async function Ao(r) {
|
|
|
450
450
|
const d = (b) => {
|
|
451
451
|
c = b, a = !0;
|
|
452
452
|
}, v = Mn();
|
|
453
|
-
return
|
|
453
|
+
return _e.on("confirmDlgResult" + v, d), _e.emit("confirmDlg", { ...r, seq: v }), await Fn(() => a), _e.off("confirmDlgResult" + v, d), c;
|
|
454
454
|
}
|
|
455
455
|
async function Io(r) {
|
|
456
456
|
if (!Un())
|
|
@@ -459,7 +459,7 @@ async function Io(r) {
|
|
|
459
459
|
const d = (b) => {
|
|
460
460
|
c = b, a = !0;
|
|
461
461
|
}, v = Mn();
|
|
462
|
-
return
|
|
462
|
+
return _e.on("promptDlgResult" + v, d), _e.emit("promptDlg", { ...r, seq: v }), await Fn(() => a), _e.off("promptDlgResult" + v, d), c;
|
|
463
463
|
}
|
|
464
464
|
require("js-cookie");
|
|
465
465
|
ne("");
|
|
@@ -627,7 +627,7 @@ const Lo = /* @__PURE__ */ new Set([
|
|
|
627
627
|
ui: "strInput"
|
|
628
628
|
}
|
|
629
629
|
]
|
|
630
|
-
},
|
|
630
|
+
}, xe = [
|
|
631
631
|
{
|
|
632
632
|
name: "default",
|
|
633
633
|
ui: "word",
|
|
@@ -673,42 +673,42 @@ const Lo = /* @__PURE__ */ new Set([
|
|
|
673
673
|
key: "width",
|
|
674
674
|
name: "width",
|
|
675
675
|
ui: "multiTypes",
|
|
676
|
-
types:
|
|
676
|
+
types: xe,
|
|
677
677
|
default: ""
|
|
678
678
|
},
|
|
679
679
|
{
|
|
680
680
|
key: "minWidth",
|
|
681
681
|
name: "minWidth",
|
|
682
682
|
ui: "multiTypes",
|
|
683
|
-
types:
|
|
683
|
+
types: xe,
|
|
684
684
|
default: ""
|
|
685
685
|
},
|
|
686
686
|
{
|
|
687
687
|
key: "maxWidth",
|
|
688
688
|
name: "maxWidth",
|
|
689
689
|
ui: "multiTypes",
|
|
690
|
-
types:
|
|
690
|
+
types: xe,
|
|
691
691
|
default: ""
|
|
692
692
|
},
|
|
693
693
|
{
|
|
694
694
|
key: "height",
|
|
695
695
|
name: "height",
|
|
696
696
|
ui: "multiTypes",
|
|
697
|
-
types:
|
|
697
|
+
types: xe,
|
|
698
698
|
default: ""
|
|
699
699
|
},
|
|
700
700
|
{
|
|
701
701
|
key: "minHeight",
|
|
702
702
|
name: "minHeight",
|
|
703
703
|
ui: "multiTypes",
|
|
704
|
-
types:
|
|
704
|
+
types: xe,
|
|
705
705
|
default: ""
|
|
706
706
|
},
|
|
707
707
|
{
|
|
708
708
|
key: "maxHeight",
|
|
709
709
|
name: "maxHeight",
|
|
710
710
|
ui: "multiTypes",
|
|
711
|
-
types:
|
|
711
|
+
types: xe,
|
|
712
712
|
default: ""
|
|
713
713
|
}
|
|
714
714
|
]
|
|
@@ -729,7 +729,7 @@ const Lo = /* @__PURE__ */ new Set([
|
|
|
729
729
|
globality_v1: Vo,
|
|
730
730
|
ref_v1: Xo
|
|
731
731
|
};
|
|
732
|
-
var Gn = typeof global == "object" && global && global.Object === Object && global, Wo = typeof self == "object" && self && self.Object === Object && self, ie = Gn || Wo || Function("return this")(),
|
|
732
|
+
var Gn = typeof global == "object" && global && global.Object === Object && global, Wo = typeof self == "object" && self && self.Object === Object && self, ie = Gn || Wo || Function("return this")(), Ae = ie.Symbol, Yn = Object.prototype, zo = Yn.hasOwnProperty, Jo = Yn.toString, Xe = Ae ? Ae.toStringTag : void 0;
|
|
733
733
|
function Ho(r) {
|
|
734
734
|
var a = zo.call(r, Xe), c = r[Xe];
|
|
735
735
|
try {
|
|
@@ -744,7 +744,7 @@ var qo = Object.prototype, Ko = qo.toString;
|
|
|
744
744
|
function Zo(r) {
|
|
745
745
|
return Ko.call(r);
|
|
746
746
|
}
|
|
747
|
-
var Qo = "[object Null]", ea = "[object Undefined]", an =
|
|
747
|
+
var Qo = "[object Null]", ea = "[object Undefined]", an = Ae ? Ae.toStringTag : void 0;
|
|
748
748
|
function Qe(r) {
|
|
749
749
|
return r == null ? r === void 0 ? ea : Qo : an && an in Object(r) ? Ho(r) : Zo(r);
|
|
750
750
|
}
|
|
@@ -771,7 +771,7 @@ function oa(r) {
|
|
|
771
771
|
return !!sn && sn in r;
|
|
772
772
|
}
|
|
773
773
|
var aa = Function.prototype, sa = aa.toString;
|
|
774
|
-
function
|
|
774
|
+
function Re(r) {
|
|
775
775
|
if (r != null) {
|
|
776
776
|
try {
|
|
777
777
|
return sa.call(r);
|
|
@@ -791,16 +791,16 @@ function va(r) {
|
|
|
791
791
|
if (!tt(r) || oa(r))
|
|
792
792
|
return !1;
|
|
793
793
|
var a = Xn(r) ? da : ca;
|
|
794
|
-
return a.test(
|
|
794
|
+
return a.test(Re(r));
|
|
795
795
|
}
|
|
796
796
|
function ya(r, a) {
|
|
797
797
|
return r == null ? void 0 : r[a];
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function Oe(r, a) {
|
|
800
800
|
var c = ya(r, a);
|
|
801
801
|
return va(c) ? c : void 0;
|
|
802
802
|
}
|
|
803
|
-
var Kt =
|
|
803
|
+
var Kt = Oe(ie, "WeakMap"), un = Object.create, Ea = /* @__PURE__ */ function() {
|
|
804
804
|
function r() {
|
|
805
805
|
}
|
|
806
806
|
return function(a) {
|
|
@@ -821,7 +821,7 @@ function ga(r, a) {
|
|
|
821
821
|
}
|
|
822
822
|
var cn = function() {
|
|
823
823
|
try {
|
|
824
|
-
var r =
|
|
824
|
+
var r = Oe(Object, "defineProperty");
|
|
825
825
|
return r({}, "", {}), r;
|
|
826
826
|
} catch {
|
|
827
827
|
}
|
|
@@ -901,13 +901,13 @@ function sr(r) {
|
|
|
901
901
|
return r(a);
|
|
902
902
|
};
|
|
903
903
|
}
|
|
904
|
-
var ei = typeof exports == "object" && exports && !exports.nodeType && exports, He = ei && typeof module == "object" && module && !module.nodeType && module, as = He && He.exports === ei, Wt = as && Gn.process,
|
|
904
|
+
var ei = typeof exports == "object" && exports && !exports.nodeType && exports, He = ei && typeof module == "object" && module && !module.nodeType && module, as = He && He.exports === ei, Wt = as && Gn.process, Ie = function() {
|
|
905
905
|
try {
|
|
906
906
|
var r = He && He.require && He.require("util").types;
|
|
907
907
|
return r || Wt && Wt.binding && Wt.binding("util");
|
|
908
908
|
} catch {
|
|
909
909
|
}
|
|
910
|
-
}(), hn =
|
|
910
|
+
}(), hn = Ie && Ie.isTypedArray, ss = hn ? sr(hn) : os, us = Object.prototype, cs = us.hasOwnProperty;
|
|
911
911
|
function ti(r, a) {
|
|
912
912
|
var c = or(r), d = !c && Aa(r), v = !c && !d && Qn(r), b = !c && !d && !v && ss(r), m = c || d || v || b, S = m ? Pa(r.length, String) : [], T = S.length;
|
|
913
913
|
for (var n in r)
|
|
@@ -954,7 +954,7 @@ function Es(r) {
|
|
|
954
954
|
function cr(r) {
|
|
955
955
|
return qn(r) ? ti(r, !0) : Es(r);
|
|
956
956
|
}
|
|
957
|
-
var Ke =
|
|
957
|
+
var Ke = Oe(Object, "create");
|
|
958
958
|
function gs() {
|
|
959
959
|
this.__data__ = Ke ? Ke(null) : {}, this.size = 0;
|
|
960
960
|
}
|
|
@@ -981,18 +981,18 @@ function ws(r, a) {
|
|
|
981
981
|
var c = this.__data__;
|
|
982
982
|
return this.size += this.has(r) ? 0 : 1, c[r] = Ke && a === void 0 ? Ps : a, this;
|
|
983
983
|
}
|
|
984
|
-
function
|
|
984
|
+
function me(r) {
|
|
985
985
|
var a = -1, c = r == null ? 0 : r.length;
|
|
986
986
|
for (this.clear(); ++a < c; ) {
|
|
987
987
|
var d = r[a];
|
|
988
988
|
this.set(d[0], d[1]);
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
991
|
+
me.prototype.clear = gs;
|
|
992
|
+
me.prototype.delete = _s;
|
|
993
|
+
me.prototype.get = Os;
|
|
994
|
+
me.prototype.has = Ts;
|
|
995
|
+
me.prototype.set = ws;
|
|
996
996
|
function Cs() {
|
|
997
997
|
this.__data__ = [], this.size = 0;
|
|
998
998
|
}
|
|
@@ -1033,12 +1033,12 @@ le.prototype.delete = Is;
|
|
|
1033
1033
|
le.prototype.get = ks;
|
|
1034
1034
|
le.prototype.has = Ds;
|
|
1035
1035
|
le.prototype.set = js;
|
|
1036
|
-
var Ze =
|
|
1036
|
+
var Ze = Oe(ie, "Map");
|
|
1037
1037
|
function Ls() {
|
|
1038
1038
|
this.size = 0, this.__data__ = {
|
|
1039
|
-
hash: new
|
|
1039
|
+
hash: new me(),
|
|
1040
1040
|
map: new (Ze || le)(),
|
|
1041
|
-
string: new
|
|
1041
|
+
string: new me()
|
|
1042
1042
|
};
|
|
1043
1043
|
}
|
|
1044
1044
|
function Fs(r) {
|
|
@@ -1163,9 +1163,9 @@ function iu(r) {
|
|
|
1163
1163
|
function ou(r) {
|
|
1164
1164
|
return ui(r, cr, si);
|
|
1165
1165
|
}
|
|
1166
|
-
var Zt =
|
|
1166
|
+
var Zt = Oe(ie, "DataView"), Qt = Oe(ie, "Promise"), er = Oe(ie, "Set"), gn = "[object Map]", au = "[object Object]", _n = "[object Promise]", bn = "[object Set]", mn = "[object WeakMap]", Rn = "[object DataView]", su = Re(Zt), uu = Re(Ze), cu = Re(Qt), fu = Re(er), lu = Re(Kt), ce = Qe;
|
|
1167
1167
|
(Zt && ce(new Zt(new ArrayBuffer(1))) != Rn || Ze && ce(new Ze()) != gn || Qt && ce(Qt.resolve()) != _n || er && ce(new er()) != bn || Kt && ce(new Kt()) != mn) && (ce = function(r) {
|
|
1168
|
-
var a = Qe(r), c = a == au ? r.constructor : void 0, d = c ?
|
|
1168
|
+
var a = Qe(r), c = a == au ? r.constructor : void 0, d = c ? Re(c) : "";
|
|
1169
1169
|
if (d)
|
|
1170
1170
|
switch (d) {
|
|
1171
1171
|
case su:
|
|
@@ -1200,7 +1200,7 @@ function Eu(r) {
|
|
|
1200
1200
|
var a = new r.constructor(r.source, yu.exec(r));
|
|
1201
1201
|
return a.lastIndex = r.lastIndex, a;
|
|
1202
1202
|
}
|
|
1203
|
-
var Nn =
|
|
1203
|
+
var Nn = Ae ? Ae.prototype : void 0, Sn = Nn ? Nn.valueOf : void 0;
|
|
1204
1204
|
function gu(r) {
|
|
1205
1205
|
return Sn ? Object(Sn.call(r)) : {};
|
|
1206
1206
|
}
|
|
@@ -1249,11 +1249,11 @@ var $u = "[object Map]";
|
|
|
1249
1249
|
function Vu(r) {
|
|
1250
1250
|
return et(r) && ce(r) == $u;
|
|
1251
1251
|
}
|
|
1252
|
-
var Tn =
|
|
1252
|
+
var Tn = Ie && Ie.isMap, Gu = Tn ? sr(Tn) : Vu, Yu = "[object Set]";
|
|
1253
1253
|
function Xu(r) {
|
|
1254
1254
|
return et(r) && ce(r) == Yu;
|
|
1255
1255
|
}
|
|
1256
|
-
var Pn =
|
|
1256
|
+
var Pn = Ie && Ie.isSet, Wu = Pn ? sr(Pn) : Xu, zu = 1, Ju = 2, Hu = 4, ci = "[object Arguments]", qu = "[object Array]", Ku = "[object Boolean]", Zu = "[object Date]", Qu = "[object Error]", fi = "[object Function]", ec = "[object GeneratorFunction]", tc = "[object Map]", rc = "[object Number]", li = "[object Object]", nc = "[object RegExp]", ic = "[object Set]", oc = "[object String]", ac = "[object Symbol]", sc = "[object WeakMap]", uc = "[object ArrayBuffer]", cc = "[object DataView]", fc = "[object Float32Array]", lc = "[object Float64Array]", pc = "[object Int8Array]", hc = "[object Int16Array]", dc = "[object Int32Array]", vc = "[object Uint8Array]", yc = "[object Uint8ClampedArray]", Ec = "[object Uint16Array]", gc = "[object Uint32Array]", B = {};
|
|
1257
1257
|
B[ci] = B[qu] = B[uc] = B[cc] = B[Ku] = B[Zu] = B[fc] = B[lc] = B[pc] = B[hc] = B[dc] = B[tc] = B[rc] = B[li] = B[nc] = B[ic] = B[oc] = B[ac] = B[vc] = B[yc] = B[Ec] = B[gc] = !0;
|
|
1258
1258
|
B[Qu] = B[fi] = B[sc] = !1;
|
|
1259
1259
|
function ht(r, a, c, d, v, b) {
|
|
@@ -1408,76 +1408,76 @@ function tf(r) {
|
|
|
1408
1408
|
}
|
|
1409
1409
|
const pi = Symbol(), hi = Symbol(), di = Symbol(), vi = Symbol(), yi = Symbol(), Ei = Symbol(), gi = Symbol(), _i = Symbol(), bi = Symbol();
|
|
1410
1410
|
function rf(r) {
|
|
1411
|
-
fe(pi,
|
|
1411
|
+
fe(pi, ke(r));
|
|
1412
1412
|
}
|
|
1413
1413
|
function Oc() {
|
|
1414
1414
|
return te(pi);
|
|
1415
1415
|
}
|
|
1416
1416
|
function nf(r) {
|
|
1417
|
-
fe(hi,
|
|
1417
|
+
fe(hi, r);
|
|
1418
1418
|
}
|
|
1419
1419
|
function Nc() {
|
|
1420
1420
|
return te(hi);
|
|
1421
1421
|
}
|
|
1422
1422
|
function of(r) {
|
|
1423
|
-
fe(di,
|
|
1423
|
+
fe(di, r);
|
|
1424
1424
|
}
|
|
1425
1425
|
function Sc() {
|
|
1426
1426
|
return te(di);
|
|
1427
1427
|
}
|
|
1428
1428
|
function af(r) {
|
|
1429
|
-
fe(vi,
|
|
1429
|
+
fe(vi, ke(r));
|
|
1430
1430
|
}
|
|
1431
1431
|
function Tc() {
|
|
1432
1432
|
return te(vi);
|
|
1433
1433
|
}
|
|
1434
1434
|
function sf(r) {
|
|
1435
|
-
fe(yi,
|
|
1435
|
+
fe(yi, ke(r));
|
|
1436
1436
|
}
|
|
1437
1437
|
function uf() {
|
|
1438
1438
|
return te(yi);
|
|
1439
1439
|
}
|
|
1440
1440
|
function cf(r) {
|
|
1441
|
-
fe(Ei,
|
|
1441
|
+
fe(Ei, r);
|
|
1442
1442
|
}
|
|
1443
1443
|
function Pc() {
|
|
1444
1444
|
return te(Ei);
|
|
1445
1445
|
}
|
|
1446
1446
|
function ff(r) {
|
|
1447
|
-
fe(gi,
|
|
1447
|
+
fe(gi, ke(r));
|
|
1448
1448
|
}
|
|
1449
1449
|
function wc() {
|
|
1450
1450
|
return te(gi);
|
|
1451
1451
|
}
|
|
1452
1452
|
function lf(r) {
|
|
1453
|
-
fe(_i,
|
|
1453
|
+
fe(_i, ke(r));
|
|
1454
1454
|
}
|
|
1455
1455
|
function Cc() {
|
|
1456
1456
|
return te(_i);
|
|
1457
1457
|
}
|
|
1458
1458
|
function xc(r) {
|
|
1459
|
-
fe(bi, r);
|
|
1459
|
+
fe(bi, ke(r));
|
|
1460
1460
|
}
|
|
1461
1461
|
function pf() {
|
|
1462
1462
|
return te(bi);
|
|
1463
1463
|
}
|
|
1464
1464
|
function Ac(r) {
|
|
1465
1465
|
const a = Sc(), c = Tc(), d = ue(() => r.node.width), v = ue(() => r.node.minWidth), b = ue(() => r.node.maxWidth), m = ue(() => {
|
|
1466
|
-
if (r.outer && a
|
|
1466
|
+
if (r.outer && a === "editor") {
|
|
1467
1467
|
const t = Yt(r.node.height);
|
|
1468
1468
|
if (t)
|
|
1469
1469
|
return t / 100 * c.value.height + "px";
|
|
1470
1470
|
}
|
|
1471
1471
|
return r.node.height;
|
|
1472
1472
|
}), S = ue(() => {
|
|
1473
|
-
if (r.outer && a
|
|
1473
|
+
if (r.outer && a === "editor") {
|
|
1474
1474
|
const t = Yt(r.node.minHeight);
|
|
1475
1475
|
if (t)
|
|
1476
1476
|
return t / 100 * c.value.height + "px";
|
|
1477
1477
|
}
|
|
1478
1478
|
return r.node.minHeight;
|
|
1479
1479
|
}), T = ue(() => {
|
|
1480
|
-
if (r.outer && a
|
|
1480
|
+
if (r.outer && a === "editor") {
|
|
1481
1481
|
const t = Yt(r.node.maxHeight);
|
|
1482
1482
|
if (t)
|
|
1483
1483
|
return t / 100 * c.value.height + "px";
|
|
@@ -4646,7 +4646,7 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4646
4646
|
var g = new SyntaxError(h);
|
|
4647
4647
|
throw g.pos = l, g.loc = y, g.raisedAt = o, g;
|
|
4648
4648
|
}
|
|
4649
|
-
var
|
|
4649
|
+
var ve = [], H = { type: "num" }, pr = { type: "regexp" }, gt = { type: "string" }, Ne = { type: "name" }, _t = { type: "eof" }, bt = { keyword: "break" }, mt = { keyword: "case", beforeExpr: !0 }, hr = { keyword: "catch" }, dr = { keyword: "continue" }, vr = { keyword: "debugger" }, yr = { keyword: "default" }, Er = { keyword: "do", isLoop: !0 }, gr = { keyword: "else", beforeExpr: !0 }, _r = { keyword: "finally" }, br = { keyword: "for", isLoop: !0 }, Rt = { keyword: "function" }, mr = { keyword: "if" }, Rr = { keyword: "return", beforeExpr: !0 }, Ot = { keyword: "switch" }, Or = { keyword: "throw", beforeExpr: !0 }, Nr = { keyword: "try" }, Nt = { keyword: "var" }, St = { keyword: "while", isLoop: !0 }, Sr = { keyword: "with" }, Tr = { keyword: "new", beforeExpr: !0 }, Pr = { keyword: "this" }, wr = { keyword: "null", atomValue: null }, Cr = { keyword: "true", atomValue: !0 }, xr = { keyword: "false", atomValue: !1 }, rt = { keyword: "in", binop: 7, beforeExpr: !0 }, Ri = {
|
|
4650
4650
|
break: bt,
|
|
4651
4651
|
case: mt,
|
|
4652
4652
|
catch: hr,
|
|
@@ -4676,7 +4676,7 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4676
4676
|
typeof: { keyword: "typeof", prefix: !0, beforeExpr: !0 },
|
|
4677
4677
|
void: { keyword: "void", prefix: !0, beforeExpr: !0 },
|
|
4678
4678
|
delete: { keyword: "delete", prefix: !0, beforeExpr: !0 }
|
|
4679
|
-
}, Tt = { type: "[", beforeExpr: !0 }, Pt = { type: "]" }, Le = { type: "{", beforeExpr: !0 },
|
|
4679
|
+
}, Tt = { type: "[", beforeExpr: !0 }, Pt = { type: "]" }, Le = { type: "{", beforeExpr: !0 }, Se = { type: "}" }, oe = { type: "(", beforeExpr: !0 }, re = { type: ")" }, pe = { type: ",", beforeExpr: !0 }, ae = { type: ";", beforeExpr: !0 }, Fe = { type: ":", beforeExpr: !0 }, Ar = { type: "." }, Ir = { type: "?", beforeExpr: !0 }, kr = { binop: 10, beforeExpr: !0 }, Dr = { isAssign: !0, beforeExpr: !0 }, ye = { isAssign: !0, beforeExpr: !0 }, Oi = { postfix: !0, prefix: !0, isUpdate: !0 }, jr = { prefix: !0, beforeExpr: !0 }, Lr = { binop: 1, beforeExpr: !0 }, Fr = { binop: 2, beforeExpr: !0 }, Ni = { binop: 3, beforeExpr: !0 }, Si = { binop: 4, beforeExpr: !0 }, Ti = { binop: 5, beforeExpr: !0 }, Pi = { binop: 6, beforeExpr: !0 }, wi = { binop: 7, beforeExpr: !0 }, Ci = { binop: 8, beforeExpr: !0 }, xi = { binop: 9, prefix: !0, beforeExpr: !0 }, Ai = { binop: 10, beforeExpr: !0 };
|
|
4680
4680
|
function nt(l) {
|
|
4681
4681
|
for (var h = l.split(" "), y = /* @__PURE__ */ Object.create(null), g = 0; g < h.length; g++)
|
|
4682
4682
|
y[h[g]] = !0;
|
|
@@ -4689,17 +4689,17 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4689
4689
|
}, $r = function(l) {
|
|
4690
4690
|
return l < 48 ? l === 36 : l < 58 ? !0 : l < 65 ? !1 : l < 91 ? !0 : l < 97 ? l === 95 : l < 123 ? !0 : l >= 170 && Li.test(String.fromCharCode(l));
|
|
4691
4691
|
};
|
|
4692
|
-
function
|
|
4692
|
+
function Ee() {
|
|
4693
4693
|
this.line = L, this.column = o - V;
|
|
4694
4694
|
}
|
|
4695
4695
|
function Fi() {
|
|
4696
4696
|
L = 1, o = V = 0, R = !0, Ue();
|
|
4697
4697
|
}
|
|
4698
4698
|
function z(l, h) {
|
|
4699
|
-
E = o, n.locations && (P = new
|
|
4699
|
+
E = o, n.locations && (P = new Ee()), O = l, Ue(), C = h, R = l.beforeExpr;
|
|
4700
4700
|
}
|
|
4701
4701
|
function Ui() {
|
|
4702
|
-
var l = n.onComment && n.locations && new
|
|
4702
|
+
var l = n.onComment && n.locations && new Ee(), h = o, y = t.indexOf("*/", o += 2);
|
|
4703
4703
|
if (y === -1 && k(o - 2, "Unterminated comment"), o = y + 2, n.locations) {
|
|
4704
4704
|
at.lastIndex = h;
|
|
4705
4705
|
for (var g; (g = at.exec(t)) && g.index < o; )
|
|
@@ -4711,11 +4711,11 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4711
4711
|
h,
|
|
4712
4712
|
o,
|
|
4713
4713
|
l,
|
|
4714
|
-
n.locations && new
|
|
4714
|
+
n.locations && new Ee()
|
|
4715
4715
|
);
|
|
4716
4716
|
}
|
|
4717
4717
|
function wt() {
|
|
4718
|
-
for (var l = o, h = n.onComment && n.locations && new
|
|
4718
|
+
for (var l = o, h = n.onComment && n.locations && new Ee(), y = t.charCodeAt(o += 2); o < e && y !== 10 && y !== 13 && y !== 8232 && y !== 8233; )
|
|
4719
4719
|
++o, y = t.charCodeAt(o);
|
|
4720
4720
|
n.onComment && n.onComment(
|
|
4721
4721
|
!1,
|
|
@@ -4723,7 +4723,7 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4723
4723
|
l,
|
|
4724
4724
|
o,
|
|
4725
4725
|
h,
|
|
4726
|
-
n.locations && new
|
|
4726
|
+
n.locations && new Ee()
|
|
4727
4727
|
);
|
|
4728
4728
|
}
|
|
4729
4729
|
function Ue() {
|
|
@@ -4761,39 +4761,39 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4761
4761
|
}
|
|
4762
4762
|
function Bi() {
|
|
4763
4763
|
var l = t.charCodeAt(o + 1);
|
|
4764
|
-
R ? (++o, Vr()) : l === 61 ? J(
|
|
4764
|
+
R ? (++o, Vr()) : l === 61 ? J(ye, 2) : J(kr, 1);
|
|
4765
4765
|
}
|
|
4766
4766
|
function $i() {
|
|
4767
4767
|
var l = t.charCodeAt(o + 1);
|
|
4768
|
-
l === 61 ? J(
|
|
4768
|
+
l === 61 ? J(ye, 2) : J(Ai, 1);
|
|
4769
4769
|
}
|
|
4770
4770
|
function Vi(l) {
|
|
4771
4771
|
var h = t.charCodeAt(o + 1);
|
|
4772
|
-
h === l ? J(l === 124 ? Lr : Fr, 2) : h === 61 ? J(
|
|
4772
|
+
h === l ? J(l === 124 ? Lr : Fr, 2) : h === 61 ? J(ye, 2) : J(l === 124 ? Ni : Ti, 1);
|
|
4773
4773
|
}
|
|
4774
4774
|
function Gi() {
|
|
4775
4775
|
var l = t.charCodeAt(o + 1);
|
|
4776
|
-
l === 61 ? J(
|
|
4776
|
+
l === 61 ? J(ye, 2) : J(Si, 1);
|
|
4777
4777
|
}
|
|
4778
4778
|
function Yi(l) {
|
|
4779
4779
|
var h = t.charCodeAt(o + 1);
|
|
4780
4780
|
if (h === l) {
|
|
4781
4781
|
if (h === 45 && t.charCodeAt(o + 2) === 62 && ot.test(t.slice(N, o))) {
|
|
4782
|
-
o += 3, wt(), Ue(),
|
|
4782
|
+
o += 3, wt(), Ue(), Te();
|
|
4783
4783
|
return;
|
|
4784
4784
|
}
|
|
4785
4785
|
J(Oi, 2);
|
|
4786
4786
|
} else
|
|
4787
|
-
h === 61 ? J(
|
|
4787
|
+
h === 61 ? J(ye, 2) : J(xi, 1);
|
|
4788
4788
|
}
|
|
4789
4789
|
function Xi(l) {
|
|
4790
4790
|
var h = t.charCodeAt(o + 1), y = 1;
|
|
4791
4791
|
if (h === l) {
|
|
4792
|
-
y = l === 62 && t.charCodeAt(o + 2) === 62 ? 3 : 2, t.charCodeAt(o + y) === 61 ? J(
|
|
4792
|
+
y = l === 62 && t.charCodeAt(o + 2) === 62 ? 3 : 2, t.charCodeAt(o + y) === 61 ? J(ye, y + 1) : J(Ci, y);
|
|
4793
4793
|
return;
|
|
4794
4794
|
}
|
|
4795
4795
|
if (h === 33 && l === 60 && t.charCodeAt(o + 2) === 45 && t.charCodeAt(o + 3) === 45) {
|
|
4796
|
-
o += 4, wt(), Ue(),
|
|
4796
|
+
o += 4, wt(), Ue(), Te();
|
|
4797
4797
|
return;
|
|
4798
4798
|
}
|
|
4799
4799
|
h === 61 && (y = t.charCodeAt(o + 2) === 61 ? 3 : 2), J(wi, y);
|
|
@@ -4821,7 +4821,7 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4821
4821
|
case 123:
|
|
4822
4822
|
return ++o, z(Le);
|
|
4823
4823
|
case 125:
|
|
4824
|
-
return ++o, z(
|
|
4824
|
+
return ++o, z(Se);
|
|
4825
4825
|
case 58:
|
|
4826
4826
|
return ++o, z(Fe);
|
|
4827
4827
|
case 63:
|
|
@@ -4867,8 +4867,8 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4867
4867
|
}
|
|
4868
4868
|
return !1;
|
|
4869
4869
|
}
|
|
4870
|
-
function
|
|
4871
|
-
if (l ? o = p + 1 : p = o, n.locations && (_ = new
|
|
4870
|
+
function Te(l) {
|
|
4871
|
+
if (l ? o = p + 1 : p = o, n.locations && (_ = new Ee()), l)
|
|
4872
4872
|
return Vr();
|
|
4873
4873
|
if (o >= e)
|
|
4874
4874
|
return z(_t);
|
|
@@ -5004,36 +5004,36 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5004
5004
|
return h === null && k(p, "Bad character escape sequence"), /** @type {number} */
|
|
5005
5005
|
h;
|
|
5006
5006
|
}
|
|
5007
|
-
var
|
|
5007
|
+
var Pe;
|
|
5008
5008
|
function Yr() {
|
|
5009
|
-
|
|
5009
|
+
Pe = !1;
|
|
5010
5010
|
for (var l, h = !0, y = o; ; ) {
|
|
5011
5011
|
var g = t.charCodeAt(o);
|
|
5012
5012
|
if ($r(g))
|
|
5013
|
-
|
|
5013
|
+
Pe && (l += t.charAt(o)), ++o;
|
|
5014
5014
|
else if (g === 92) {
|
|
5015
|
-
|
|
5015
|
+
Pe || (l = t.slice(y, o)), Pe = !0, t.charCodeAt(++o) !== 117 && k(o, "Expecting Unicode escape sequence \\uXXXX"), ++o;
|
|
5016
5016
|
var I = ut(4), x = String.fromCharCode(I);
|
|
5017
5017
|
x || k(o - 1, "Invalid Unicode escape"), (h ? st(I) : $r(I)) || k(o - 4, "Invalid Unicode escape"), l += x;
|
|
5018
5018
|
} else
|
|
5019
5019
|
break;
|
|
5020
5020
|
h = !1;
|
|
5021
5021
|
}
|
|
5022
|
-
return
|
|
5022
|
+
return Pe ? l : t.slice(y, o);
|
|
5023
5023
|
}
|
|
5024
5024
|
function Xr() {
|
|
5025
|
-
var l = Yr(), h =
|
|
5026
|
-
!
|
|
5025
|
+
var l = Yr(), h = Ne;
|
|
5026
|
+
!Pe && ki(l) && (h = Ri[l]), z(h, l);
|
|
5027
5027
|
}
|
|
5028
5028
|
function j() {
|
|
5029
|
-
w = p, N = E, F = P,
|
|
5029
|
+
w = p, N = E, F = P, Te();
|
|
5030
5030
|
}
|
|
5031
5031
|
function Ct(l) {
|
|
5032
5032
|
if (Z = l, o = p, n.locations)
|
|
5033
5033
|
for (; o < V; )
|
|
5034
5034
|
V = t.lastIndexOf(`
|
|
5035
5035
|
`, V - 2) + 1, --L;
|
|
5036
|
-
Ue(),
|
|
5036
|
+
Ue(), Te();
|
|
5037
5037
|
}
|
|
5038
5038
|
function Wr() {
|
|
5039
5039
|
this.type = null, this.start = p, this.end = null;
|
|
@@ -5059,9 +5059,9 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5059
5059
|
return O === l ? (j(), !0) : !1;
|
|
5060
5060
|
}
|
|
5061
5061
|
function ct() {
|
|
5062
|
-
return !n.strictSemicolons && (O === _t || O ===
|
|
5062
|
+
return !n.strictSemicolons && (O === _t || O === Se || ot.test(t.slice(N, p)));
|
|
5063
5063
|
}
|
|
5064
|
-
function
|
|
5064
|
+
function ge() {
|
|
5065
5065
|
!Y(ae) && !ct() && se();
|
|
5066
5066
|
}
|
|
5067
5067
|
function W(l) {
|
|
@@ -5074,7 +5074,7 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5074
5074
|
l.type !== "Identifier" && l.type !== "MemberExpression" && k(l.start, "Assigning to rvalue"), Z && l.type === "Identifier" && it(l.name) && k(l.start, "Assigning to " + l.name + " in strict mode");
|
|
5075
5075
|
}
|
|
5076
5076
|
function qi(l) {
|
|
5077
|
-
w = N = o, n.locations && (F = new
|
|
5077
|
+
w = N = o, n.locations && (F = new Ee()), X = Z = !1, U = [], Te();
|
|
5078
5078
|
var h = l || q(), y = !0;
|
|
5079
5079
|
for (l || (h.body = []); O !== _t; ) {
|
|
5080
5080
|
var g = ee();
|
|
@@ -5084,14 +5084,14 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5084
5084
|
}
|
|
5085
5085
|
var At = { kind: "loop" }, Ki = { kind: "switch" };
|
|
5086
5086
|
function ee() {
|
|
5087
|
-
(O === kr || O ===
|
|
5087
|
+
(O === kr || O === ye && C === "/=") && Te(!0);
|
|
5088
5088
|
var l = O, h = q();
|
|
5089
5089
|
switch (l) {
|
|
5090
5090
|
case bt:
|
|
5091
5091
|
case dr:
|
|
5092
5092
|
j();
|
|
5093
5093
|
var y = l === bt;
|
|
5094
|
-
Y(ae) || ct() ? h.label = null : O !==
|
|
5094
|
+
Y(ae) || ct() ? h.label = null : O !== Ne ? se() : (h.label = de(), ge());
|
|
5095
5095
|
for (var g = 0; g < U.length; ++g) {
|
|
5096
5096
|
var I = U[g];
|
|
5097
5097
|
if ((h.label === null || I.name === h.label.name) && (I.kind !== null && (y || I.kind === "loop") || h.label && y))
|
|
@@ -5099,9 +5099,9 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5099
5099
|
}
|
|
5100
5100
|
return g === U.length && k(h.start, "Unsyntactic " + l.keyword), A(h, y ? "BreakStatement" : "ContinueStatement");
|
|
5101
5101
|
case vr:
|
|
5102
|
-
return j(),
|
|
5102
|
+
return j(), ge(), A(h, "DebuggerStatement");
|
|
5103
5103
|
case Er:
|
|
5104
|
-
return j(), U.push(At), h.body = ee(), U.pop(), W(St), h.test = Be(),
|
|
5104
|
+
return j(), U.push(At), h.body = ee(), U.pop(), W(St), h.test = Be(), ge(), A(h, "DoWhileStatement");
|
|
5105
5105
|
case br:
|
|
5106
5106
|
if (j(), U.push(At), W(oe), O === ae)
|
|
5107
5107
|
return It(h, null);
|
|
@@ -5116,10 +5116,10 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5116
5116
|
case mr:
|
|
5117
5117
|
return j(), h.test = Be(), h.consequent = ee(), h.alternate = Y(gr) ? ee() : null, A(h, "IfStatement");
|
|
5118
5118
|
case Rr:
|
|
5119
|
-
return !X && !n.allowReturnOutsideFunction && k(p, "'return' outside of function"), j(), Y(ae) || ct() ? h.argument = null : (h.argument = K(),
|
|
5119
|
+
return !X && !n.allowReturnOutsideFunction && k(p, "'return' outside of function"), j(), Y(ae) || ct() ? h.argument = null : (h.argument = K(), ge()), A(h, "ReturnStatement");
|
|
5120
5120
|
case Ot:
|
|
5121
5121
|
j(), h.discriminant = Be(), h.cases = [], W(Le), U.push(Ki);
|
|
5122
|
-
for (var D, G; O !==
|
|
5122
|
+
for (var D, G; O !== Se; )
|
|
5123
5123
|
if (O === mt || O === yr) {
|
|
5124
5124
|
var Ge = O === mt;
|
|
5125
5125
|
D && A(D, "SwitchCase"), h.cases.push(D = q()), D.consequent = [], j(), Ge ? D.test = K() : (G && k(w, "Multiple default clauses"), G = !0, D.test = null), W(Fe);
|
|
@@ -5127,15 +5127,15 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5127
5127
|
D || se(), D.consequent.push(ee());
|
|
5128
5128
|
return D && A(D, "SwitchCase"), j(), U.pop(), A(h, "SwitchStatement");
|
|
5129
5129
|
case Or:
|
|
5130
|
-
return j(), ot.test(t.slice(N, p)) && k(N, "Illegal newline after throw"), h.argument = K(),
|
|
5130
|
+
return j(), ot.test(t.slice(N, p)) && k(N, "Illegal newline after throw"), h.argument = K(), ge(), A(h, "ThrowStatement");
|
|
5131
5131
|
case Nr:
|
|
5132
5132
|
if (j(), h.block = $e(), h.handler = null, O === hr) {
|
|
5133
|
-
var
|
|
5134
|
-
j(), W(oe),
|
|
5133
|
+
var we = q();
|
|
5134
|
+
j(), W(oe), we.param = de(), Z && it(we.param.name) && k(we.param.start, "Binding " + we.param.name + " in strict mode"), W(re), we.body = $e(), h.handler = A(we, "CatchClause");
|
|
5135
5135
|
}
|
|
5136
5136
|
return h.finalizer = Y(_r) ? $e() : null, !h.handler && !h.finalizer && k(h.start, "Missing catch or finally clause"), A(h, "TryStatement");
|
|
5137
5137
|
case Nt:
|
|
5138
|
-
return j(), Hr(h),
|
|
5138
|
+
return j(), Hr(h), ge(), A(h, "VariableDeclaration");
|
|
5139
5139
|
case St:
|
|
5140
5140
|
return j(), h.test = Be(), U.push(At), h.body = ee(), U.pop(), A(h, "WhileStatement");
|
|
5141
5141
|
case Sr:
|
|
@@ -5146,13 +5146,13 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5146
5146
|
return j(), A(h, "EmptyStatement");
|
|
5147
5147
|
default:
|
|
5148
5148
|
var Mt = C, lt = K();
|
|
5149
|
-
if (l ===
|
|
5149
|
+
if (l === Ne && lt.type === "Identifier" && Y(Fe)) {
|
|
5150
5150
|
for (var g = 0; g < U.length; ++g)
|
|
5151
5151
|
U[g].name === Mt && k(lt.start, "Label '" + Mt + "' is already declared");
|
|
5152
5152
|
var no = O.isLoop ? "loop" : O === Ot ? "switch" : null;
|
|
5153
5153
|
return U.push({ name: Mt, kind: no }), h.body = ee(), U.pop(), h.label = lt, A(h, "LabeledStatement");
|
|
5154
5154
|
} else
|
|
5155
|
-
return h.expression = lt,
|
|
5155
|
+
return h.expression = lt, ge(), A(h, "ExpressionStatement");
|
|
5156
5156
|
}
|
|
5157
5157
|
}
|
|
5158
5158
|
function Be() {
|
|
@@ -5162,7 +5162,7 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5162
5162
|
}
|
|
5163
5163
|
function $e(l) {
|
|
5164
5164
|
var h = q(), y = !0, g = !1, I;
|
|
5165
|
-
for (h.body = [], W(Le); !Y(
|
|
5165
|
+
for (h.body = [], W(Le); !Y(Se); ) {
|
|
5166
5166
|
var x = ee();
|
|
5167
5167
|
h.body.push(x), y && l && xt(x) && (I = g, Ct(g = !0)), y = !1;
|
|
5168
5168
|
}
|
|
@@ -5245,7 +5245,7 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5245
5245
|
switch (O) {
|
|
5246
5246
|
case Pr:
|
|
5247
5247
|
return l = q(), j(), A(l, "ThisExpression");
|
|
5248
|
-
case
|
|
5248
|
+
case Ne:
|
|
5249
5249
|
return de();
|
|
5250
5250
|
case H:
|
|
5251
5251
|
case gt:
|
|
@@ -5273,14 +5273,14 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5273
5273
|
}
|
|
5274
5274
|
function to() {
|
|
5275
5275
|
var l = q();
|
|
5276
|
-
return j(), l.callee = Ve(Lt(), !0), l.arguments = Y(oe) ? Ut(re, !1) :
|
|
5276
|
+
return j(), l.callee = Ve(Lt(), !0), l.arguments = Y(oe) ? Ut(re, !1) : ve, A(l, "NewExpression");
|
|
5277
5277
|
}
|
|
5278
5278
|
function ro() {
|
|
5279
5279
|
var l = q(), h = !0, y = !1;
|
|
5280
|
-
for (l.properties = [], j(); !Y(
|
|
5280
|
+
for (l.properties = [], j(); !Y(Se); ) {
|
|
5281
5281
|
if (h)
|
|
5282
5282
|
h = !1;
|
|
5283
|
-
else if (W(pe), n.allowTrailingCommas && Y(
|
|
5283
|
+
else if (W(pe), n.allowTrailingCommas && Y(Se))
|
|
5284
5284
|
break;
|
|
5285
5285
|
var g = { key: qr() }, I = !1, x;
|
|
5286
5286
|
if (Y(Fe) ? (g.value = K(!0), x = g.kind = "init") : g.key.type === "Identifier" && (g.key.name === "get" || g.key.name === "set") ? (I = y = !0, x = g.kind = g.key.name, g.key = qr(), O !== oe && se(), g.value = Ft(q(), !1)) : se(), g.key.type === "Identifier" && (Z || y))
|
|
@@ -5299,7 +5299,7 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5299
5299
|
return O === H || O === gt ? Lt() : de(!0);
|
|
5300
5300
|
}
|
|
5301
5301
|
function Ft(l, h) {
|
|
5302
|
-
O ===
|
|
5302
|
+
O === Ne ? l.id = de() : h ? se() : l.id = null, l.params = [];
|
|
5303
5303
|
var y = !0;
|
|
5304
5304
|
for (W(oe); !Y(re); )
|
|
5305
5305
|
y ? y = !1 : W(pe), l.params.push(de());
|
|
@@ -5325,7 +5325,7 @@ const jc = {}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5325
5325
|
}
|
|
5326
5326
|
function de(l) {
|
|
5327
5327
|
var h = q();
|
|
5328
|
-
return l && n.forbidReserved === "everywhere" && (l = !1), O ===
|
|
5328
|
+
return l && n.forbidReserved === "everywhere" && (l = !1), O === Ne ? (!l && (n.forbidReserved && Ii(C) || Z && Ur(C)) && t.slice(p, E).indexOf("\\") === -1 && k(p, "The keyword '" + C + "' is reserved"), h.name = C) : l && O.keyword ? h.name = O.keyword : se(), R = !1, j(), A(h, "Identifier");
|
|
5329
5329
|
}
|
|
5330
5330
|
});
|
|
5331
5331
|
}
|
|
@@ -5644,10 +5644,10 @@ const Jc = /* @__PURE__ */ ho({
|
|
|
5644
5644
|
});
|
|
5645
5645
|
const T = ne();
|
|
5646
5646
|
xc(T), rr(S, (o) => {
|
|
5647
|
-
o ||
|
|
5647
|
+
o || _e.emit("compNotAvail", a.refContext.refid), T.value && (xn(T.value), T.value = void 0), o && (T.value = zc(
|
|
5648
5648
|
{
|
|
5649
|
-
env: d
|
|
5650
|
-
type: v
|
|
5649
|
+
env: d,
|
|
5650
|
+
type: v,
|
|
5651
5651
|
data: o.data
|
|
5652
5652
|
},
|
|
5653
5653
|
o.data.code.main.script
|
|
@@ -5657,7 +5657,7 @@ const Jc = /* @__PURE__ */ ho({
|
|
|
5657
5657
|
});
|
|
5658
5658
|
const { applySize: n } = Ac(a), t = ue(() => {
|
|
5659
5659
|
const o = {};
|
|
5660
|
-
switch (b.
|
|
5660
|
+
switch (b.type) {
|
|
5661
5661
|
case "common":
|
|
5662
5662
|
n(o);
|
|
5663
5663
|
break;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="../../src/global.d.ts" />
|
|
2
|
-
import { Ref
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
3
|
import { Env, Mode, Type, Data, Depends } from '../types';
|
|
4
4
|
import Interpreter from 'js-interpreter';
|
|
5
5
|
interface I18n {
|
|
@@ -9,10 +9,10 @@ interface I18n {
|
|
|
9
9
|
}
|
|
10
10
|
export declare function provideI18n(i18n: I18n): void;
|
|
11
11
|
export declare function injectI18n(): I18n;
|
|
12
|
-
export declare function provideEnv(env:
|
|
13
|
-
export declare function injectEnv():
|
|
14
|
-
export declare function provideMode(mode:
|
|
15
|
-
export declare function injectMode():
|
|
12
|
+
export declare function provideEnv(env: Env): void;
|
|
13
|
+
export declare function injectEnv(): Env;
|
|
14
|
+
export declare function provideMode(mode: Mode): void;
|
|
15
|
+
export declare function injectMode(): Mode;
|
|
16
16
|
interface Device {
|
|
17
17
|
width: number;
|
|
18
18
|
height: number;
|
|
@@ -21,12 +21,12 @@ export declare function provideDevice(device: Ref<Device>): void;
|
|
|
21
21
|
export declare function injectDevice(): Ref<Device>;
|
|
22
22
|
export declare function provideDark(dark: Ref<boolean>): void;
|
|
23
23
|
export declare function injectDark(): Ref<boolean>;
|
|
24
|
-
export declare function provideType(type:
|
|
25
|
-
export declare function injectType():
|
|
26
|
-
export declare function provideData(data:
|
|
27
|
-
export declare function injectData():
|
|
28
|
-
export declare function provideDepends(depends:
|
|
29
|
-
export declare function injectDepends():
|
|
24
|
+
export declare function provideType(type: Type): void;
|
|
25
|
+
export declare function injectType(): Type;
|
|
26
|
+
export declare function provideData(data: Data): void;
|
|
27
|
+
export declare function injectData(): Data;
|
|
28
|
+
export declare function provideDepends(depends: Depends): void;
|
|
29
|
+
export declare function injectDepends(): Depends;
|
|
30
30
|
export declare function provideInterpreter(interpreter: Ref<Interpreter | undefined>): void;
|
|
31
31
|
export declare function injectInterpreter(): Ref<Interpreter | undefined>;
|
|
32
32
|
export {};
|