x-runtime-lib 0.5.1 → 0.5.3
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/components/element/container/v1/index.vue.d.ts +17 -0
- package/dist/composables/element/basic/{border.d.ts → borderV1.d.ts} +1 -1
- package/dist/composables/element/basic/{margin.d.ts → marginV1.d.ts} +1 -1
- package/dist/composables/element/basic/{padding.d.ts → paddingV1.d.ts} +1 -1
- package/dist/composables/element/basic/{size.d.ts → sizeV1.d.ts} +1 -1
- package/dist/element/_common/keys.d.ts +4 -0
- package/dist/element/_common/props/margin/v1/index.d.ts +3 -0
- package/dist/element/_common/props/padding/v1/index.d.ts +3 -0
- package/dist/element/_common/props/size/v1/index.d.ts +3 -0
- package/dist/element/basic/container/v1/index.d.ts +3 -0
- package/dist/element/index.d.ts +1 -1
- package/dist/{i18n-en-j2twg2xy.js → i18n-en-gana12hn.js} +9 -1
- package/dist/{i18n-zhHans-hdbgtmk2.js → i18n-zhHans-elu3m97j.js} +9 -1
- package/dist/index.js +1670 -1481
- package/dist/types/element.d.ts +66 -18
- package/dist/utils/provideInject.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,111 +1,93 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { provide as oe, inject as ue, readonly as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { eventBus as
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
"ref_v1"
|
|
11
|
-
]), $i = [
|
|
12
|
-
{
|
|
13
|
-
key: "basic",
|
|
14
|
-
name: "x-runtime-lib.basic",
|
|
15
|
-
items: ["globality_v1", "btn_v1"]
|
|
16
|
-
}
|
|
17
|
-
], Gi = {
|
|
18
|
-
version: "v1",
|
|
19
|
-
globalityKey: "globality_v1",
|
|
20
|
-
refKey: "ref_v1",
|
|
21
|
-
elements: Bi,
|
|
22
|
-
groups: $i
|
|
23
|
-
}, fn = {
|
|
24
|
-
v1: Gi
|
|
25
|
-
}, Cr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
26
|
-
function ln(n) {
|
|
27
|
-
let s = "";
|
|
1
|
+
var Hi = Object.defineProperty;
|
|
2
|
+
var Ki = (n, u, l) => u in n ? Hi(n, u, { enumerable: !0, configurable: !0, writable: !0, value: l }) : n[u] = l;
|
|
3
|
+
var Lt = (n, u, l) => Ki(n, typeof u != "symbol" ? u + "" : u, l);
|
|
4
|
+
import { provide as oe, inject as ue, readonly as st, isReactive as mn, defineComponent as Wt, computed as M, resolveComponent as qi, openBlock as zt, createBlock as Rn, createElementBlock as Zi, normalizeStyle as Qi, renderSlot as ea, watchEffect as ta, onBeforeUnmount as ra, h as Fe } from "vue";
|
|
5
|
+
import { useI18n as na } from "vue-i18n";
|
|
6
|
+
import { eventBus as On, messageInfo as ia, messageSuccess as aa, messageWarning as oa, messageError as ua, openConfirmDlg as sa, openPromptDlg as ca } from "x-essential-lib";
|
|
7
|
+
const Yr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
8
|
+
function Nn(n) {
|
|
9
|
+
let u = "";
|
|
28
10
|
for (let l = 0; l < n; l++) {
|
|
29
|
-
const v = Math.floor(Math.random() *
|
|
30
|
-
|
|
11
|
+
const v = Math.floor(Math.random() * Yr.length);
|
|
12
|
+
u += Yr[v];
|
|
31
13
|
}
|
|
32
|
-
return
|
|
14
|
+
return u;
|
|
33
15
|
}
|
|
34
|
-
function
|
|
16
|
+
function Jt(n) {
|
|
35
17
|
return n === "";
|
|
36
18
|
}
|
|
37
|
-
function
|
|
19
|
+
function Ht(n) {
|
|
38
20
|
if (typeof n != "string" || !n.endsWith("px"))
|
|
39
21
|
return !1;
|
|
40
|
-
const
|
|
22
|
+
const u = n.substring(0, n.length - 2), l = parseFloat(u);
|
|
41
23
|
return !(isNaN(l) || l % 1 !== 0);
|
|
42
24
|
}
|
|
43
|
-
function
|
|
25
|
+
function Kt(n) {
|
|
44
26
|
if (typeof n != "string" || !n.endsWith("%"))
|
|
45
27
|
return !1;
|
|
46
|
-
const
|
|
28
|
+
const u = n.substring(0, n.length - 1), l = parseFloat(u);
|
|
47
29
|
return !isNaN(l);
|
|
48
30
|
}
|
|
49
|
-
function
|
|
31
|
+
function wc(n) {
|
|
50
32
|
if (typeof n != "string" || !n.endsWith("px"))
|
|
51
33
|
return;
|
|
52
|
-
const
|
|
34
|
+
const u = n.substring(0, n.length - 2), l = parseFloat(u);
|
|
53
35
|
if (!isNaN(l) && l % 1 === 0)
|
|
54
36
|
return l;
|
|
55
37
|
}
|
|
56
|
-
function
|
|
38
|
+
function Mt(n) {
|
|
57
39
|
if (typeof n != "string" || !n.endsWith("%"))
|
|
58
40
|
return;
|
|
59
|
-
const
|
|
41
|
+
const u = n.substring(0, n.length - 1), l = parseFloat(u);
|
|
60
42
|
if (!isNaN(l))
|
|
61
43
|
return l;
|
|
62
44
|
}
|
|
63
|
-
var
|
|
64
|
-
function
|
|
65
|
-
var
|
|
45
|
+
var Tn = typeof global == "object" && global && global.Object === Object && global, fa = typeof self == "object" && self && self.Object === Object && self, q = Tn || fa || Function("return this")(), Re = q.Symbol, Sn = Object.prototype, la = Sn.hasOwnProperty, pa = Sn.toString, Ue = Re ? Re.toStringTag : void 0;
|
|
46
|
+
function ha(n) {
|
|
47
|
+
var u = la.call(n, Ue), l = n[Ue];
|
|
66
48
|
try {
|
|
67
|
-
n[
|
|
49
|
+
n[Ue] = void 0;
|
|
68
50
|
var v = !0;
|
|
69
51
|
} catch {
|
|
70
52
|
}
|
|
71
|
-
var
|
|
72
|
-
return v && (
|
|
73
|
-
}
|
|
74
|
-
var Ki = Object.prototype, qi = Ki.toString;
|
|
75
|
-
function Zi(n) {
|
|
76
|
-
return qi.call(n);
|
|
53
|
+
var E = pa.call(n);
|
|
54
|
+
return v && (u ? n[Ue] = l : delete n[Ue]), E;
|
|
77
55
|
}
|
|
78
|
-
var
|
|
79
|
-
function
|
|
80
|
-
return
|
|
56
|
+
var da = Object.prototype, va = da.toString;
|
|
57
|
+
function ya(n) {
|
|
58
|
+
return va.call(n);
|
|
81
59
|
}
|
|
60
|
+
var _a = "[object Null]", Ea = "[object Undefined]", Xr = Re ? Re.toStringTag : void 0;
|
|
82
61
|
function Ve(n) {
|
|
62
|
+
return n == null ? n === void 0 ? Ea : _a : Xr && Xr in Object(n) ? ha(n) : ya(n);
|
|
63
|
+
}
|
|
64
|
+
function Ge(n) {
|
|
83
65
|
return n != null && typeof n == "object";
|
|
84
66
|
}
|
|
85
|
-
var
|
|
67
|
+
var qt = Array.isArray;
|
|
86
68
|
function Ye(n) {
|
|
87
|
-
var
|
|
88
|
-
return n != null && (
|
|
69
|
+
var u = typeof n;
|
|
70
|
+
return n != null && (u == "object" || u == "function");
|
|
89
71
|
}
|
|
90
|
-
var
|
|
91
|
-
function
|
|
72
|
+
var ga = "[object AsyncFunction]", ba = "[object Function]", ma = "[object GeneratorFunction]", Ra = "[object Proxy]";
|
|
73
|
+
function Pn(n) {
|
|
92
74
|
if (!Ye(n))
|
|
93
75
|
return !1;
|
|
94
|
-
var
|
|
95
|
-
return
|
|
76
|
+
var u = Ve(n);
|
|
77
|
+
return u == ba || u == ma || u == ga || u == Ra;
|
|
96
78
|
}
|
|
97
|
-
var
|
|
98
|
-
var n = /[^.]+$/.exec(
|
|
79
|
+
var Ft = q["__core-js_shared__"], Wr = function() {
|
|
80
|
+
var n = /[^.]+$/.exec(Ft && Ft.keys && Ft.keys.IE_PROTO || "");
|
|
99
81
|
return n ? "Symbol(src)_1." + n : "";
|
|
100
82
|
}();
|
|
101
|
-
function
|
|
102
|
-
return !!
|
|
83
|
+
function Oa(n) {
|
|
84
|
+
return !!Wr && Wr in n;
|
|
103
85
|
}
|
|
104
|
-
var
|
|
86
|
+
var Na = Function.prototype, Ta = Na.toString;
|
|
105
87
|
function he(n) {
|
|
106
88
|
if (n != null) {
|
|
107
89
|
try {
|
|
108
|
-
return
|
|
90
|
+
return Ta.call(n);
|
|
109
91
|
} catch {
|
|
110
92
|
}
|
|
111
93
|
try {
|
|
@@ -115,710 +97,698 @@ function he(n) {
|
|
|
115
97
|
}
|
|
116
98
|
return "";
|
|
117
99
|
}
|
|
118
|
-
var
|
|
119
|
-
"^" +
|
|
100
|
+
var Sa = /[\\^$.*+?()[\]{}|]/g, Pa = /^\[object .+?Constructor\]$/, wa = Function.prototype, xa = Object.prototype, Ca = wa.toString, Aa = xa.hasOwnProperty, Ia = RegExp(
|
|
101
|
+
"^" + Ca.call(Aa).replace(Sa, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
120
102
|
);
|
|
121
|
-
function
|
|
122
|
-
if (!Ye(n) ||
|
|
103
|
+
function ka(n) {
|
|
104
|
+
if (!Ye(n) || Oa(n))
|
|
123
105
|
return !1;
|
|
124
|
-
var
|
|
125
|
-
return
|
|
106
|
+
var u = Pn(n) ? Ia : Pa;
|
|
107
|
+
return u.test(he(n));
|
|
126
108
|
}
|
|
127
|
-
function
|
|
128
|
-
return n == null ? void 0 : n[
|
|
109
|
+
function Da(n, u) {
|
|
110
|
+
return n == null ? void 0 : n[u];
|
|
129
111
|
}
|
|
130
|
-
function de(n,
|
|
131
|
-
var l =
|
|
132
|
-
return
|
|
112
|
+
function de(n, u) {
|
|
113
|
+
var l = Da(n, u);
|
|
114
|
+
return ka(l) ? l : void 0;
|
|
133
115
|
}
|
|
134
|
-
var
|
|
116
|
+
var jt = de(q, "WeakMap"), zr = Object.create, La = /* @__PURE__ */ function() {
|
|
135
117
|
function n() {
|
|
136
118
|
}
|
|
137
|
-
return function(
|
|
138
|
-
if (!Ye(
|
|
119
|
+
return function(u) {
|
|
120
|
+
if (!Ye(u))
|
|
139
121
|
return {};
|
|
140
|
-
if (
|
|
141
|
-
return
|
|
142
|
-
n.prototype =
|
|
122
|
+
if (zr)
|
|
123
|
+
return zr(u);
|
|
124
|
+
n.prototype = u;
|
|
143
125
|
var l = new n();
|
|
144
126
|
return n.prototype = void 0, l;
|
|
145
127
|
};
|
|
146
128
|
}();
|
|
147
|
-
function
|
|
129
|
+
function Ma(n, u) {
|
|
148
130
|
var l = -1, v = n.length;
|
|
149
|
-
for (
|
|
150
|
-
|
|
151
|
-
return
|
|
131
|
+
for (u || (u = Array(v)); ++l < v; )
|
|
132
|
+
u[l] = n[l];
|
|
133
|
+
return u;
|
|
152
134
|
}
|
|
153
|
-
var
|
|
135
|
+
var Jr = function() {
|
|
154
136
|
try {
|
|
155
137
|
var n = de(Object, "defineProperty");
|
|
156
138
|
return n({}, "", {}), n;
|
|
157
139
|
} catch {
|
|
158
140
|
}
|
|
159
141
|
}();
|
|
160
|
-
function
|
|
161
|
-
for (var l = -1, v = n == null ? 0 : n.length; ++l < v &&
|
|
142
|
+
function Fa(n, u) {
|
|
143
|
+
for (var l = -1, v = n == null ? 0 : n.length; ++l < v && u(n[l], l, n) !== !1; )
|
|
162
144
|
;
|
|
163
145
|
return n;
|
|
164
146
|
}
|
|
165
|
-
var
|
|
166
|
-
function
|
|
147
|
+
var Ua = 9007199254740991, ja = /^(?:0|[1-9]\d*)$/;
|
|
148
|
+
function Ba(n, u) {
|
|
167
149
|
var l = typeof n;
|
|
168
|
-
return
|
|
150
|
+
return u = u ?? Ua, !!u && (l == "number" || l != "symbol" && ja.test(n)) && n > -1 && n % 1 == 0 && n < u;
|
|
169
151
|
}
|
|
170
|
-
function
|
|
171
|
-
|
|
152
|
+
function wn(n, u, l) {
|
|
153
|
+
u == "__proto__" && Jr ? Jr(n, u, {
|
|
172
154
|
configurable: !0,
|
|
173
155
|
enumerable: !0,
|
|
174
156
|
value: l,
|
|
175
157
|
writable: !0
|
|
176
|
-
}) : n[
|
|
158
|
+
}) : n[u] = l;
|
|
177
159
|
}
|
|
178
|
-
function
|
|
179
|
-
return n ===
|
|
160
|
+
function xn(n, u) {
|
|
161
|
+
return n === u || n !== n && u !== u;
|
|
180
162
|
}
|
|
181
|
-
var
|
|
182
|
-
function
|
|
183
|
-
var v = n[
|
|
184
|
-
(!(
|
|
163
|
+
var $a = Object.prototype, Va = $a.hasOwnProperty;
|
|
164
|
+
function Cn(n, u, l) {
|
|
165
|
+
var v = n[u];
|
|
166
|
+
(!(Va.call(n, u) && xn(v, l)) || l === void 0 && !(u in n)) && wn(n, u, l);
|
|
185
167
|
}
|
|
186
|
-
function
|
|
187
|
-
var
|
|
168
|
+
function ct(n, u, l, v) {
|
|
169
|
+
var E = !l;
|
|
188
170
|
l || (l = {});
|
|
189
|
-
for (var
|
|
190
|
-
var T =
|
|
191
|
-
|
|
171
|
+
for (var m = -1, b = u.length; ++m < b; ) {
|
|
172
|
+
var T = u[m], O = void 0;
|
|
173
|
+
O === void 0 && (O = n[T]), E ? wn(l, T, O) : Cn(l, T, O);
|
|
192
174
|
}
|
|
193
175
|
return l;
|
|
194
176
|
}
|
|
195
|
-
var
|
|
196
|
-
function
|
|
197
|
-
return typeof n == "number" && n > -1 && n % 1 == 0 && n <=
|
|
177
|
+
var Ga = 9007199254740991;
|
|
178
|
+
function An(n) {
|
|
179
|
+
return typeof n == "number" && n > -1 && n % 1 == 0 && n <= Ga;
|
|
198
180
|
}
|
|
199
|
-
function
|
|
200
|
-
return n != null &&
|
|
181
|
+
function In(n) {
|
|
182
|
+
return n != null && An(n.length) && !Pn(n);
|
|
201
183
|
}
|
|
202
|
-
var
|
|
203
|
-
function
|
|
204
|
-
var
|
|
184
|
+
var Ya = Object.prototype;
|
|
185
|
+
function Zt(n) {
|
|
186
|
+
var u = n && n.constructor, l = typeof u == "function" && u.prototype || Ya;
|
|
205
187
|
return n === l;
|
|
206
188
|
}
|
|
207
|
-
function
|
|
189
|
+
function Xa(n, u) {
|
|
208
190
|
for (var l = -1, v = Array(n); ++l < n; )
|
|
209
|
-
v[l] =
|
|
191
|
+
v[l] = u(l);
|
|
210
192
|
return v;
|
|
211
193
|
}
|
|
212
|
-
var
|
|
213
|
-
function
|
|
214
|
-
return
|
|
194
|
+
var Wa = "[object Arguments]";
|
|
195
|
+
function Hr(n) {
|
|
196
|
+
return Ge(n) && Ve(n) == Wa;
|
|
215
197
|
}
|
|
216
|
-
var
|
|
198
|
+
var kn = Object.prototype, za = kn.hasOwnProperty, Ja = kn.propertyIsEnumerable, Ha = Hr(/* @__PURE__ */ function() {
|
|
217
199
|
return arguments;
|
|
218
|
-
}()) ?
|
|
219
|
-
return
|
|
200
|
+
}()) ? Hr : function(n) {
|
|
201
|
+
return Ge(n) && za.call(n, "callee") && !Ja.call(n, "callee");
|
|
220
202
|
};
|
|
221
|
-
function
|
|
203
|
+
function Ka() {
|
|
222
204
|
return !1;
|
|
223
205
|
}
|
|
224
|
-
var
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
function
|
|
228
|
-
return
|
|
206
|
+
var Dn = typeof exports == "object" && exports && !exports.nodeType && exports, Kr = Dn && typeof module == "object" && module && !module.nodeType && module, qa = Kr && Kr.exports === Dn, qr = qa ? q.Buffer : void 0, Za = qr ? qr.isBuffer : void 0, Ln = Za || Ka, Qa = "[object Arguments]", eo = "[object Array]", to = "[object Boolean]", ro = "[object Date]", no = "[object Error]", io = "[object Function]", ao = "[object Map]", oo = "[object Number]", uo = "[object Object]", so = "[object RegExp]", co = "[object Set]", fo = "[object String]", lo = "[object WeakMap]", po = "[object ArrayBuffer]", ho = "[object DataView]", vo = "[object Float32Array]", yo = "[object Float64Array]", _o = "[object Int8Array]", Eo = "[object Int16Array]", go = "[object Int32Array]", bo = "[object Uint8Array]", mo = "[object Uint8ClampedArray]", Ro = "[object Uint16Array]", Oo = "[object Uint32Array]", F = {};
|
|
207
|
+
F[vo] = F[yo] = F[_o] = F[Eo] = F[go] = F[bo] = F[mo] = F[Ro] = F[Oo] = !0;
|
|
208
|
+
F[Qa] = F[eo] = F[po] = F[to] = F[ho] = F[ro] = F[no] = F[io] = F[ao] = F[oo] = F[uo] = F[so] = F[co] = F[fo] = F[lo] = !1;
|
|
209
|
+
function No(n) {
|
|
210
|
+
return Ge(n) && An(n.length) && !!F[Ve(n)];
|
|
229
211
|
}
|
|
230
|
-
function
|
|
231
|
-
return function(
|
|
232
|
-
return n(
|
|
212
|
+
function Qt(n) {
|
|
213
|
+
return function(u) {
|
|
214
|
+
return n(u);
|
|
233
215
|
};
|
|
234
216
|
}
|
|
235
|
-
var
|
|
217
|
+
var Mn = typeof exports == "object" && exports && !exports.nodeType && exports, je = Mn && typeof module == "object" && module && !module.nodeType && module, To = je && je.exports === Mn, Ut = To && Tn.process, Oe = function() {
|
|
236
218
|
try {
|
|
237
|
-
var n =
|
|
238
|
-
return n ||
|
|
219
|
+
var n = je && je.require && je.require("util").types;
|
|
220
|
+
return n || Ut && Ut.binding && Ut.binding("util");
|
|
239
221
|
} catch {
|
|
240
222
|
}
|
|
241
|
-
}(),
|
|
242
|
-
function
|
|
243
|
-
var l =
|
|
223
|
+
}(), Zr = Oe && Oe.isTypedArray, So = Zr ? Qt(Zr) : No, Po = Object.prototype, wo = Po.hasOwnProperty;
|
|
224
|
+
function Fn(n, u) {
|
|
225
|
+
var l = qt(n), v = !l && Ha(n), E = !l && !v && Ln(n), m = !l && !v && !E && So(n), b = l || v || E || m, T = b ? Xa(n.length, String) : [], O = T.length;
|
|
244
226
|
for (var r in n)
|
|
245
|
-
(
|
|
227
|
+
(u || wo.call(n, r)) && !(b && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
246
228
|
(r == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
229
|
+
E && (r == "offset" || r == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
230
|
+
m && (r == "buffer" || r == "byteLength" || r == "byteOffset") || // Skip index properties.
|
|
231
|
+
Ba(r, O))) && T.push(r);
|
|
250
232
|
return T;
|
|
251
233
|
}
|
|
252
|
-
function
|
|
234
|
+
function Un(n, u) {
|
|
253
235
|
return function(l) {
|
|
254
|
-
return n(
|
|
236
|
+
return n(u(l));
|
|
255
237
|
};
|
|
256
238
|
}
|
|
257
|
-
var
|
|
258
|
-
function
|
|
259
|
-
if (!
|
|
260
|
-
return
|
|
261
|
-
var
|
|
239
|
+
var xo = Un(Object.keys, Object), Co = Object.prototype, Ao = Co.hasOwnProperty;
|
|
240
|
+
function Io(n) {
|
|
241
|
+
if (!Zt(n))
|
|
242
|
+
return xo(n);
|
|
243
|
+
var u = [];
|
|
262
244
|
for (var l in Object(n))
|
|
263
|
-
|
|
264
|
-
return
|
|
245
|
+
Ao.call(n, l) && l != "constructor" && u.push(l);
|
|
246
|
+
return u;
|
|
265
247
|
}
|
|
266
|
-
function
|
|
267
|
-
return
|
|
248
|
+
function er(n) {
|
|
249
|
+
return In(n) ? Fn(n) : Io(n);
|
|
268
250
|
}
|
|
269
|
-
function
|
|
270
|
-
var
|
|
251
|
+
function ko(n) {
|
|
252
|
+
var u = [];
|
|
271
253
|
if (n != null)
|
|
272
254
|
for (var l in Object(n))
|
|
273
|
-
|
|
274
|
-
return
|
|
255
|
+
u.push(l);
|
|
256
|
+
return u;
|
|
275
257
|
}
|
|
276
|
-
var
|
|
277
|
-
function
|
|
258
|
+
var Do = Object.prototype, Lo = Do.hasOwnProperty;
|
|
259
|
+
function Mo(n) {
|
|
278
260
|
if (!Ye(n))
|
|
279
|
-
return
|
|
280
|
-
var
|
|
261
|
+
return ko(n);
|
|
262
|
+
var u = Zt(n), l = [];
|
|
281
263
|
for (var v in n)
|
|
282
|
-
v == "constructor" && (
|
|
264
|
+
v == "constructor" && (u || !Lo.call(n, v)) || l.push(v);
|
|
283
265
|
return l;
|
|
284
266
|
}
|
|
285
|
-
function
|
|
286
|
-
return
|
|
287
|
-
}
|
|
288
|
-
var je = de(Object, "create");
|
|
289
|
-
function go() {
|
|
290
|
-
this.__data__ = je ? je(null) : {}, this.size = 0;
|
|
267
|
+
function tr(n) {
|
|
268
|
+
return In(n) ? Fn(n, !0) : Mo(n);
|
|
291
269
|
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
270
|
+
var Be = de(Object, "create");
|
|
271
|
+
function Fo() {
|
|
272
|
+
this.__data__ = Be ? Be(null) : {}, this.size = 0;
|
|
295
273
|
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
274
|
+
function Uo(n) {
|
|
275
|
+
var u = this.has(n) && delete this.__data__[n];
|
|
276
|
+
return this.size -= u ? 1 : 0, u;
|
|
277
|
+
}
|
|
278
|
+
var jo = "__lodash_hash_undefined__", Bo = Object.prototype, $o = Bo.hasOwnProperty;
|
|
279
|
+
function Vo(n) {
|
|
280
|
+
var u = this.__data__;
|
|
281
|
+
if (Be) {
|
|
282
|
+
var l = u[n];
|
|
283
|
+
return l === jo ? void 0 : l;
|
|
302
284
|
}
|
|
303
|
-
return
|
|
285
|
+
return $o.call(u, n) ? u[n] : void 0;
|
|
304
286
|
}
|
|
305
|
-
var
|
|
306
|
-
function
|
|
307
|
-
var
|
|
308
|
-
return
|
|
287
|
+
var Go = Object.prototype, Yo = Go.hasOwnProperty;
|
|
288
|
+
function Xo(n) {
|
|
289
|
+
var u = this.__data__;
|
|
290
|
+
return Be ? u[n] !== void 0 : Yo.call(u, n);
|
|
309
291
|
}
|
|
310
|
-
var
|
|
311
|
-
function
|
|
292
|
+
var Wo = "__lodash_hash_undefined__";
|
|
293
|
+
function zo(n, u) {
|
|
312
294
|
var l = this.__data__;
|
|
313
|
-
return this.size += this.has(n) ? 0 : 1, l[n] =
|
|
295
|
+
return this.size += this.has(n) ? 0 : 1, l[n] = Be && u === void 0 ? Wo : u, this;
|
|
314
296
|
}
|
|
315
297
|
function pe(n) {
|
|
316
|
-
var
|
|
317
|
-
for (this.clear(); ++
|
|
318
|
-
var v = n[
|
|
298
|
+
var u = -1, l = n == null ? 0 : n.length;
|
|
299
|
+
for (this.clear(); ++u < l; ) {
|
|
300
|
+
var v = n[u];
|
|
319
301
|
this.set(v[0], v[1]);
|
|
320
302
|
}
|
|
321
303
|
}
|
|
322
|
-
pe.prototype.clear =
|
|
323
|
-
pe.prototype.delete =
|
|
324
|
-
pe.prototype.get =
|
|
325
|
-
pe.prototype.has =
|
|
326
|
-
pe.prototype.set =
|
|
327
|
-
function
|
|
304
|
+
pe.prototype.clear = Fo;
|
|
305
|
+
pe.prototype.delete = Uo;
|
|
306
|
+
pe.prototype.get = Vo;
|
|
307
|
+
pe.prototype.has = Xo;
|
|
308
|
+
pe.prototype.set = zo;
|
|
309
|
+
function Jo() {
|
|
328
310
|
this.__data__ = [], this.size = 0;
|
|
329
311
|
}
|
|
330
|
-
function
|
|
312
|
+
function ft(n, u) {
|
|
331
313
|
for (var l = n.length; l--; )
|
|
332
|
-
if (
|
|
314
|
+
if (xn(n[l][0], u))
|
|
333
315
|
return l;
|
|
334
316
|
return -1;
|
|
335
317
|
}
|
|
336
|
-
var
|
|
337
|
-
function
|
|
338
|
-
var
|
|
318
|
+
var Ho = Array.prototype, Ko = Ho.splice;
|
|
319
|
+
function qo(n) {
|
|
320
|
+
var u = this.__data__, l = ft(u, n);
|
|
339
321
|
if (l < 0)
|
|
340
322
|
return !1;
|
|
341
|
-
var v =
|
|
342
|
-
return l == v ?
|
|
323
|
+
var v = u.length - 1;
|
|
324
|
+
return l == v ? u.pop() : Ko.call(u, l, 1), --this.size, !0;
|
|
343
325
|
}
|
|
344
|
-
function
|
|
345
|
-
var
|
|
346
|
-
return l < 0 ? void 0 :
|
|
326
|
+
function Zo(n) {
|
|
327
|
+
var u = this.__data__, l = ft(u, n);
|
|
328
|
+
return l < 0 ? void 0 : u[l][1];
|
|
347
329
|
}
|
|
348
|
-
function
|
|
349
|
-
return
|
|
330
|
+
function Qo(n) {
|
|
331
|
+
return ft(this.__data__, n) > -1;
|
|
350
332
|
}
|
|
351
|
-
function
|
|
352
|
-
var l = this.__data__, v =
|
|
353
|
-
return v < 0 ? (++this.size, l.push([n,
|
|
333
|
+
function eu(n, u) {
|
|
334
|
+
var l = this.__data__, v = ft(l, n);
|
|
335
|
+
return v < 0 ? (++this.size, l.push([n, u])) : l[v][1] = u, this;
|
|
354
336
|
}
|
|
355
337
|
function re(n) {
|
|
356
|
-
var
|
|
357
|
-
for (this.clear(); ++
|
|
358
|
-
var v = n[
|
|
338
|
+
var u = -1, l = n == null ? 0 : n.length;
|
|
339
|
+
for (this.clear(); ++u < l; ) {
|
|
340
|
+
var v = n[u];
|
|
359
341
|
this.set(v[0], v[1]);
|
|
360
342
|
}
|
|
361
343
|
}
|
|
362
|
-
re.prototype.clear =
|
|
363
|
-
re.prototype.delete =
|
|
364
|
-
re.prototype.get =
|
|
365
|
-
re.prototype.has =
|
|
366
|
-
re.prototype.set =
|
|
367
|
-
var
|
|
368
|
-
function
|
|
344
|
+
re.prototype.clear = Jo;
|
|
345
|
+
re.prototype.delete = qo;
|
|
346
|
+
re.prototype.get = Zo;
|
|
347
|
+
re.prototype.has = Qo;
|
|
348
|
+
re.prototype.set = eu;
|
|
349
|
+
var $e = de(q, "Map");
|
|
350
|
+
function tu() {
|
|
369
351
|
this.size = 0, this.__data__ = {
|
|
370
352
|
hash: new pe(),
|
|
371
|
-
map: new (
|
|
353
|
+
map: new ($e || re)(),
|
|
372
354
|
string: new pe()
|
|
373
355
|
};
|
|
374
356
|
}
|
|
375
|
-
function
|
|
376
|
-
var
|
|
377
|
-
return
|
|
357
|
+
function ru(n) {
|
|
358
|
+
var u = typeof n;
|
|
359
|
+
return u == "string" || u == "number" || u == "symbol" || u == "boolean" ? n !== "__proto__" : n === null;
|
|
378
360
|
}
|
|
379
|
-
function
|
|
361
|
+
function lt(n, u) {
|
|
380
362
|
var l = n.__data__;
|
|
381
|
-
return
|
|
363
|
+
return ru(u) ? l[typeof u == "string" ? "string" : "hash"] : l.map;
|
|
382
364
|
}
|
|
383
|
-
function
|
|
384
|
-
var
|
|
385
|
-
return this.size -=
|
|
365
|
+
function nu(n) {
|
|
366
|
+
var u = lt(this, n).delete(n);
|
|
367
|
+
return this.size -= u ? 1 : 0, u;
|
|
386
368
|
}
|
|
387
|
-
function
|
|
388
|
-
return
|
|
369
|
+
function iu(n) {
|
|
370
|
+
return lt(this, n).get(n);
|
|
389
371
|
}
|
|
390
|
-
function
|
|
391
|
-
return
|
|
372
|
+
function au(n) {
|
|
373
|
+
return lt(this, n).has(n);
|
|
392
374
|
}
|
|
393
|
-
function
|
|
394
|
-
var l =
|
|
395
|
-
return l.set(n,
|
|
375
|
+
function ou(n, u) {
|
|
376
|
+
var l = lt(this, n), v = l.size;
|
|
377
|
+
return l.set(n, u), this.size += l.size == v ? 0 : 1, this;
|
|
396
378
|
}
|
|
397
|
-
function
|
|
398
|
-
var
|
|
399
|
-
for (this.clear(); ++
|
|
400
|
-
var v = n[
|
|
379
|
+
function Se(n) {
|
|
380
|
+
var u = -1, l = n == null ? 0 : n.length;
|
|
381
|
+
for (this.clear(); ++u < l; ) {
|
|
382
|
+
var v = n[u];
|
|
401
383
|
this.set(v[0], v[1]);
|
|
402
384
|
}
|
|
403
385
|
}
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
function
|
|
410
|
-
for (var l = -1, v =
|
|
411
|
-
n[
|
|
386
|
+
Se.prototype.clear = tu;
|
|
387
|
+
Se.prototype.delete = nu;
|
|
388
|
+
Se.prototype.get = iu;
|
|
389
|
+
Se.prototype.has = au;
|
|
390
|
+
Se.prototype.set = ou;
|
|
391
|
+
function jn(n, u) {
|
|
392
|
+
for (var l = -1, v = u.length, E = n.length; ++l < v; )
|
|
393
|
+
n[E + l] = u[l];
|
|
412
394
|
return n;
|
|
413
395
|
}
|
|
414
|
-
var
|
|
415
|
-
function
|
|
396
|
+
var Bn = Un(Object.getPrototypeOf, Object);
|
|
397
|
+
function uu() {
|
|
416
398
|
this.__data__ = new re(), this.size = 0;
|
|
417
399
|
}
|
|
418
|
-
function
|
|
419
|
-
var
|
|
420
|
-
return this.size =
|
|
400
|
+
function su(n) {
|
|
401
|
+
var u = this.__data__, l = u.delete(n);
|
|
402
|
+
return this.size = u.size, l;
|
|
421
403
|
}
|
|
422
|
-
function
|
|
404
|
+
function cu(n) {
|
|
423
405
|
return this.__data__.get(n);
|
|
424
406
|
}
|
|
425
|
-
function
|
|
407
|
+
function fu(n) {
|
|
426
408
|
return this.__data__.has(n);
|
|
427
409
|
}
|
|
428
|
-
var
|
|
429
|
-
function
|
|
410
|
+
var lu = 200;
|
|
411
|
+
function pu(n, u) {
|
|
430
412
|
var l = this.__data__;
|
|
431
413
|
if (l instanceof re) {
|
|
432
414
|
var v = l.__data__;
|
|
433
|
-
if (
|
|
434
|
-
return v.push([n,
|
|
435
|
-
l = this.__data__ = new
|
|
415
|
+
if (!$e || v.length < lu - 1)
|
|
416
|
+
return v.push([n, u]), this.size = ++l.size, this;
|
|
417
|
+
l = this.__data__ = new Se(v);
|
|
436
418
|
}
|
|
437
|
-
return l.set(n,
|
|
438
|
-
}
|
|
439
|
-
function
|
|
440
|
-
var
|
|
441
|
-
this.size =
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
function
|
|
449
|
-
return n &&
|
|
450
|
-
}
|
|
451
|
-
function
|
|
452
|
-
return n &&
|
|
453
|
-
}
|
|
454
|
-
var
|
|
455
|
-
function
|
|
456
|
-
if (
|
|
419
|
+
return l.set(n, u), this.size = l.size, this;
|
|
420
|
+
}
|
|
421
|
+
function Pe(n) {
|
|
422
|
+
var u = this.__data__ = new re(n);
|
|
423
|
+
this.size = u.size;
|
|
424
|
+
}
|
|
425
|
+
Pe.prototype.clear = uu;
|
|
426
|
+
Pe.prototype.delete = su;
|
|
427
|
+
Pe.prototype.get = cu;
|
|
428
|
+
Pe.prototype.has = fu;
|
|
429
|
+
Pe.prototype.set = pu;
|
|
430
|
+
function hu(n, u) {
|
|
431
|
+
return n && ct(u, er(u), n);
|
|
432
|
+
}
|
|
433
|
+
function du(n, u) {
|
|
434
|
+
return n && ct(u, tr(u), n);
|
|
435
|
+
}
|
|
436
|
+
var $n = typeof exports == "object" && exports && !exports.nodeType && exports, Qr = $n && typeof module == "object" && module && !module.nodeType && module, vu = Qr && Qr.exports === $n, en = vu ? q.Buffer : void 0, tn = en ? en.allocUnsafe : void 0;
|
|
437
|
+
function yu(n, u) {
|
|
438
|
+
if (u)
|
|
457
439
|
return n.slice();
|
|
458
|
-
var l = n.length, v =
|
|
440
|
+
var l = n.length, v = tn ? tn(l) : new n.constructor(l);
|
|
459
441
|
return n.copy(v), v;
|
|
460
442
|
}
|
|
461
|
-
function
|
|
462
|
-
for (var l = -1, v = n == null ? 0 : n.length,
|
|
463
|
-
var
|
|
464
|
-
|
|
443
|
+
function _u(n, u) {
|
|
444
|
+
for (var l = -1, v = n == null ? 0 : n.length, E = 0, m = []; ++l < v; ) {
|
|
445
|
+
var b = n[l];
|
|
446
|
+
u(b, l, n) && (m[E++] = b);
|
|
465
447
|
}
|
|
466
|
-
return
|
|
448
|
+
return m;
|
|
467
449
|
}
|
|
468
|
-
function
|
|
450
|
+
function Vn() {
|
|
469
451
|
return [];
|
|
470
452
|
}
|
|
471
|
-
var
|
|
472
|
-
return n == null ? [] : (n = Object(n),
|
|
473
|
-
return
|
|
453
|
+
var Eu = Object.prototype, gu = Eu.propertyIsEnumerable, rn = Object.getOwnPropertySymbols, rr = rn ? function(n) {
|
|
454
|
+
return n == null ? [] : (n = Object(n), _u(rn(n), function(u) {
|
|
455
|
+
return gu.call(n, u);
|
|
474
456
|
}));
|
|
475
|
-
} :
|
|
476
|
-
function
|
|
477
|
-
return
|
|
478
|
-
}
|
|
479
|
-
var
|
|
480
|
-
for (var
|
|
481
|
-
|
|
482
|
-
return
|
|
483
|
-
} :
|
|
484
|
-
function
|
|
485
|
-
return
|
|
486
|
-
}
|
|
487
|
-
function
|
|
488
|
-
var v =
|
|
489
|
-
return
|
|
490
|
-
}
|
|
491
|
-
function
|
|
492
|
-
return
|
|
493
|
-
}
|
|
494
|
-
function
|
|
495
|
-
return
|
|
496
|
-
}
|
|
497
|
-
var
|
|
498
|
-
(
|
|
499
|
-
var
|
|
457
|
+
} : Vn;
|
|
458
|
+
function bu(n, u) {
|
|
459
|
+
return ct(n, rr(n), u);
|
|
460
|
+
}
|
|
461
|
+
var mu = Object.getOwnPropertySymbols, Gn = mu ? function(n) {
|
|
462
|
+
for (var u = []; n; )
|
|
463
|
+
jn(u, rr(n)), n = Bn(n);
|
|
464
|
+
return u;
|
|
465
|
+
} : Vn;
|
|
466
|
+
function Ru(n, u) {
|
|
467
|
+
return ct(n, Gn(n), u);
|
|
468
|
+
}
|
|
469
|
+
function Yn(n, u, l) {
|
|
470
|
+
var v = u(n);
|
|
471
|
+
return qt(n) ? v : jn(v, l(n));
|
|
472
|
+
}
|
|
473
|
+
function Ou(n) {
|
|
474
|
+
return Yn(n, er, rr);
|
|
475
|
+
}
|
|
476
|
+
function Nu(n) {
|
|
477
|
+
return Yn(n, tr, Gn);
|
|
478
|
+
}
|
|
479
|
+
var Bt = de(q, "DataView"), $t = de(q, "Promise"), Vt = de(q, "Set"), nn = "[object Map]", Tu = "[object Object]", an = "[object Promise]", on = "[object Set]", un = "[object WeakMap]", sn = "[object DataView]", Su = he(Bt), Pu = he($e), wu = he($t), xu = he(Vt), Cu = he(jt), te = Ve;
|
|
480
|
+
(Bt && te(new Bt(new ArrayBuffer(1))) != sn || $e && te(new $e()) != nn || $t && te($t.resolve()) != an || Vt && te(new Vt()) != on || jt && te(new jt()) != un) && (te = function(n) {
|
|
481
|
+
var u = Ve(n), l = u == Tu ? n.constructor : void 0, v = l ? he(l) : "";
|
|
500
482
|
if (v)
|
|
501
483
|
switch (v) {
|
|
502
|
-
case
|
|
503
|
-
return
|
|
504
|
-
case
|
|
505
|
-
return
|
|
506
|
-
case
|
|
507
|
-
return
|
|
508
|
-
case
|
|
509
|
-
return
|
|
510
|
-
case
|
|
511
|
-
return
|
|
484
|
+
case Su:
|
|
485
|
+
return sn;
|
|
486
|
+
case Pu:
|
|
487
|
+
return nn;
|
|
488
|
+
case wu:
|
|
489
|
+
return an;
|
|
490
|
+
case xu:
|
|
491
|
+
return on;
|
|
492
|
+
case Cu:
|
|
493
|
+
return un;
|
|
512
494
|
}
|
|
513
|
-
return
|
|
495
|
+
return u;
|
|
514
496
|
});
|
|
515
|
-
var
|
|
516
|
-
function
|
|
517
|
-
var
|
|
518
|
-
return
|
|
519
|
-
}
|
|
520
|
-
var
|
|
521
|
-
function
|
|
522
|
-
var
|
|
523
|
-
return new
|
|
524
|
-
}
|
|
525
|
-
function
|
|
526
|
-
var l =
|
|
497
|
+
var Au = Object.prototype, Iu = Au.hasOwnProperty;
|
|
498
|
+
function ku(n) {
|
|
499
|
+
var u = n.length, l = new n.constructor(u);
|
|
500
|
+
return u && typeof n[0] == "string" && Iu.call(n, "index") && (l.index = n.index, l.input = n.input), l;
|
|
501
|
+
}
|
|
502
|
+
var cn = q.Uint8Array;
|
|
503
|
+
function nr(n) {
|
|
504
|
+
var u = new n.constructor(n.byteLength);
|
|
505
|
+
return new cn(u).set(new cn(n)), u;
|
|
506
|
+
}
|
|
507
|
+
function Du(n, u) {
|
|
508
|
+
var l = u ? nr(n.buffer) : n.buffer;
|
|
527
509
|
return new n.constructor(l, n.byteOffset, n.byteLength);
|
|
528
510
|
}
|
|
529
|
-
var
|
|
530
|
-
function
|
|
531
|
-
var
|
|
532
|
-
return
|
|
511
|
+
var Lu = /\w*$/;
|
|
512
|
+
function Mu(n) {
|
|
513
|
+
var u = new n.constructor(n.source, Lu.exec(n));
|
|
514
|
+
return u.lastIndex = n.lastIndex, u;
|
|
533
515
|
}
|
|
534
|
-
var
|
|
535
|
-
function
|
|
536
|
-
return
|
|
516
|
+
var fn = Re ? Re.prototype : void 0, ln = fn ? fn.valueOf : void 0;
|
|
517
|
+
function Fu(n) {
|
|
518
|
+
return ln ? Object(ln.call(n)) : {};
|
|
537
519
|
}
|
|
538
|
-
function
|
|
539
|
-
var l =
|
|
520
|
+
function Uu(n, u) {
|
|
521
|
+
var l = u ? nr(n.buffer) : n.buffer;
|
|
540
522
|
return new n.constructor(l, n.byteOffset, n.length);
|
|
541
523
|
}
|
|
542
|
-
var
|
|
543
|
-
function
|
|
524
|
+
var ju = "[object Boolean]", Bu = "[object Date]", $u = "[object Map]", Vu = "[object Number]", Gu = "[object RegExp]", Yu = "[object Set]", Xu = "[object String]", Wu = "[object Symbol]", zu = "[object ArrayBuffer]", Ju = "[object DataView]", Hu = "[object Float32Array]", Ku = "[object Float64Array]", qu = "[object Int8Array]", Zu = "[object Int16Array]", Qu = "[object Int32Array]", es = "[object Uint8Array]", ts = "[object Uint8ClampedArray]", rs = "[object Uint16Array]", ns = "[object Uint32Array]";
|
|
525
|
+
function is(n, u, l) {
|
|
544
526
|
var v = n.constructor;
|
|
545
|
-
switch (
|
|
546
|
-
case
|
|
547
|
-
return
|
|
548
|
-
case mu:
|
|
549
|
-
case Ru:
|
|
550
|
-
return new v(+n);
|
|
551
|
-
case Cu:
|
|
552
|
-
return yu(n, l);
|
|
553
|
-
case Au:
|
|
554
|
-
case Iu:
|
|
555
|
-
case ku:
|
|
556
|
-
case Du:
|
|
557
|
-
case Fu:
|
|
558
|
-
case Lu:
|
|
559
|
-
case Mu:
|
|
560
|
-
case Uu:
|
|
527
|
+
switch (u) {
|
|
528
|
+
case zu:
|
|
529
|
+
return nr(n);
|
|
561
530
|
case ju:
|
|
562
|
-
|
|
563
|
-
|
|
531
|
+
case Bu:
|
|
532
|
+
return new v(+n);
|
|
533
|
+
case Ju:
|
|
534
|
+
return Du(n, l);
|
|
535
|
+
case Hu:
|
|
536
|
+
case Ku:
|
|
537
|
+
case qu:
|
|
538
|
+
case Zu:
|
|
539
|
+
case Qu:
|
|
540
|
+
case es:
|
|
541
|
+
case ts:
|
|
542
|
+
case rs:
|
|
543
|
+
case ns:
|
|
544
|
+
return Uu(n, l);
|
|
545
|
+
case $u:
|
|
564
546
|
return new v();
|
|
565
|
-
case
|
|
566
|
-
case
|
|
547
|
+
case Vu:
|
|
548
|
+
case Xu:
|
|
567
549
|
return new v(n);
|
|
568
|
-
case
|
|
569
|
-
return
|
|
570
|
-
case
|
|
550
|
+
case Gu:
|
|
551
|
+
return Mu(n);
|
|
552
|
+
case Yu:
|
|
571
553
|
return new v();
|
|
572
|
-
case
|
|
573
|
-
return
|
|
554
|
+
case Wu:
|
|
555
|
+
return Fu(n);
|
|
574
556
|
}
|
|
575
557
|
}
|
|
576
|
-
function
|
|
577
|
-
return typeof n.constructor == "function" && !
|
|
558
|
+
function as(n) {
|
|
559
|
+
return typeof n.constructor == "function" && !Zt(n) ? La(Bn(n)) : {};
|
|
578
560
|
}
|
|
579
|
-
var
|
|
580
|
-
function
|
|
581
|
-
return
|
|
561
|
+
var os = "[object Map]";
|
|
562
|
+
function us(n) {
|
|
563
|
+
return Ge(n) && te(n) == os;
|
|
582
564
|
}
|
|
583
|
-
var
|
|
584
|
-
function
|
|
585
|
-
return
|
|
565
|
+
var pn = Oe && Oe.isMap, ss = pn ? Qt(pn) : us, cs = "[object Set]";
|
|
566
|
+
function fs(n) {
|
|
567
|
+
return Ge(n) && te(n) == cs;
|
|
586
568
|
}
|
|
587
|
-
var
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
function
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
593
|
-
return
|
|
569
|
+
var hn = Oe && Oe.isSet, ls = hn ? Qt(hn) : fs, ps = 1, hs = 2, ds = 4, Xn = "[object Arguments]", vs = "[object Array]", ys = "[object Boolean]", _s = "[object Date]", Es = "[object Error]", Wn = "[object Function]", gs = "[object GeneratorFunction]", bs = "[object Map]", ms = "[object Number]", zn = "[object Object]", Rs = "[object RegExp]", Os = "[object Set]", Ns = "[object String]", Ts = "[object Symbol]", Ss = "[object WeakMap]", Ps = "[object ArrayBuffer]", ws = "[object DataView]", xs = "[object Float32Array]", Cs = "[object Float64Array]", As = "[object Int8Array]", Is = "[object Int16Array]", ks = "[object Int32Array]", Ds = "[object Uint8Array]", Ls = "[object Uint8ClampedArray]", Ms = "[object Uint16Array]", Fs = "[object Uint32Array]", L = {};
|
|
570
|
+
L[Xn] = L[vs] = L[Ps] = L[ws] = L[ys] = L[_s] = L[xs] = L[Cs] = L[As] = L[Is] = L[ks] = L[bs] = L[ms] = L[zn] = L[Rs] = L[Os] = L[Ns] = L[Ts] = L[Ds] = L[Ls] = L[Ms] = L[Fs] = !0;
|
|
571
|
+
L[Es] = L[Wn] = L[Ss] = !1;
|
|
572
|
+
function it(n, u, l, v, E, m) {
|
|
573
|
+
var b, T = u & ps, O = u & hs, r = u & ds;
|
|
574
|
+
if (b !== void 0)
|
|
575
|
+
return b;
|
|
594
576
|
if (!Ye(n))
|
|
595
577
|
return n;
|
|
596
|
-
var t =
|
|
578
|
+
var t = qt(n);
|
|
597
579
|
if (t) {
|
|
598
|
-
if (
|
|
599
|
-
return
|
|
580
|
+
if (b = ku(n), !T)
|
|
581
|
+
return Ma(n, b);
|
|
600
582
|
} else {
|
|
601
|
-
var e = te(n), i = e ==
|
|
602
|
-
if (
|
|
603
|
-
return
|
|
604
|
-
if (e ==
|
|
605
|
-
if (
|
|
606
|
-
return
|
|
583
|
+
var e = te(n), i = e == Wn || e == gs;
|
|
584
|
+
if (Ln(n))
|
|
585
|
+
return yu(n, T);
|
|
586
|
+
if (e == zn || e == Xn || i && !E) {
|
|
587
|
+
if (b = O || i ? {} : as(n), !T)
|
|
588
|
+
return O ? Ru(n, du(b, n)) : bu(n, hu(b, n));
|
|
607
589
|
} else {
|
|
608
|
-
if (!
|
|
609
|
-
return
|
|
610
|
-
|
|
590
|
+
if (!L[e])
|
|
591
|
+
return E ? n : {};
|
|
592
|
+
b = is(n, e, T);
|
|
611
593
|
}
|
|
612
594
|
}
|
|
613
|
-
|
|
614
|
-
var o =
|
|
595
|
+
m || (m = new Pe());
|
|
596
|
+
var o = m.get(n);
|
|
615
597
|
if (o)
|
|
616
598
|
return o;
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
}) :
|
|
620
|
-
|
|
599
|
+
m.set(n, b), ls(n) ? n.forEach(function(a) {
|
|
600
|
+
b.add(it(a, u, l, a, n, m));
|
|
601
|
+
}) : ss(n) && n.forEach(function(a, p) {
|
|
602
|
+
b.set(p, it(a, u, l, p, n, m));
|
|
621
603
|
});
|
|
622
|
-
var
|
|
623
|
-
return
|
|
624
|
-
c && (p = a, a = n[p]),
|
|
625
|
-
}),
|
|
604
|
+
var s = r ? O ? Nu : Ou : O ? tr : er, c = t ? void 0 : s(n);
|
|
605
|
+
return Fa(c || n, function(a, p) {
|
|
606
|
+
c && (p = a, a = n[p]), Cn(b, p, it(a, u, l, p, n, m));
|
|
607
|
+
}), b;
|
|
626
608
|
}
|
|
627
|
-
var
|
|
628
|
-
function
|
|
629
|
-
return
|
|
609
|
+
var Us = 1, js = 4;
|
|
610
|
+
function Gt(n) {
|
|
611
|
+
return it(n, Us | js);
|
|
630
612
|
}
|
|
631
|
-
function
|
|
613
|
+
function Bs(n, u) {
|
|
632
614
|
if (n === "page") {
|
|
633
|
-
if (
|
|
615
|
+
if (u == "common")
|
|
634
616
|
return "pageCommon";
|
|
635
|
-
} else if (n === "comp" &&
|
|
617
|
+
} else if (n === "comp" && u === "common")
|
|
636
618
|
return "compCommon";
|
|
637
619
|
}
|
|
638
|
-
function
|
|
639
|
-
|
|
620
|
+
function dn(n) {
|
|
621
|
+
if (n.ui)
|
|
622
|
+
return Gt(n.default);
|
|
640
623
|
if (n.array)
|
|
641
|
-
return n.default
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
case "numInput":
|
|
650
|
-
return 0;
|
|
651
|
-
case "switch":
|
|
652
|
-
return !1;
|
|
653
|
-
case "select":
|
|
654
|
-
return ((s = n.items) == null ? void 0 : s[0].value) ?? "";
|
|
655
|
-
case "colorPicker":
|
|
656
|
-
return "#FFFFFF";
|
|
657
|
-
case "multiTypes":
|
|
658
|
-
return ((l = n.types) == null ? void 0 : l[0].default) ?? "";
|
|
659
|
-
default:
|
|
660
|
-
console.assert(!1, `not implemented ui=${n.ui}`);
|
|
624
|
+
return n.default ? Gt(n.default) : [];
|
|
625
|
+
console.assert(!1);
|
|
626
|
+
}
|
|
627
|
+
function vn(n, u) {
|
|
628
|
+
function l(v, E) {
|
|
629
|
+
E.ui === "strInput" && E.static || (E.children ? E.array ? v[E.key] = dn(E) : E.children.forEach((m) => {
|
|
630
|
+
v[E.key] = {}, l(v[E.key], m);
|
|
631
|
+
}) : v[E.key] = dn(E));
|
|
661
632
|
}
|
|
633
|
+
u.forEach((v) => l(n, v));
|
|
662
634
|
}
|
|
663
|
-
function
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
}) : v[g.key] = Qr(g));
|
|
668
|
-
}
|
|
669
|
-
s.forEach((v) => l(n, v));
|
|
670
|
-
}
|
|
671
|
-
function Os(n, s, l, v, g) {
|
|
672
|
-
const N = `type=${n} subtype=${s} version=${l} ref=${v} keyOrRefid=${g}`, m = Rs(n, s);
|
|
673
|
-
if (!m) {
|
|
674
|
-
console.error(`spawnNode prop tag not found, ${N}`);
|
|
635
|
+
function $s(n, u, l, v, E) {
|
|
636
|
+
const m = `type=${n} subtype=${u} version=${l} ref=${v} keyOrRefid=${E}`, b = Bs(n, u);
|
|
637
|
+
if (!b) {
|
|
638
|
+
console.error(`spawnNode prop tag not found, ${m}`);
|
|
675
639
|
return;
|
|
676
640
|
}
|
|
677
|
-
const T =
|
|
641
|
+
const T = li[l];
|
|
678
642
|
if (!T) {
|
|
679
|
-
console.error(`spawnNode pkg not found version, ${
|
|
643
|
+
console.error(`spawnNode pkg not found version, ${m}`);
|
|
680
644
|
return;
|
|
681
645
|
}
|
|
682
|
-
const
|
|
646
|
+
const O = {
|
|
683
647
|
basic: {
|
|
684
648
|
id: "",
|
|
685
649
|
key: ""
|
|
686
650
|
}
|
|
687
|
-
}, r =
|
|
651
|
+
}, r = Nn(16);
|
|
688
652
|
if (v) {
|
|
689
|
-
const t = T.refKey, e =
|
|
653
|
+
const t = T.refKey, e = E;
|
|
690
654
|
if (!T.elements.has(t)) {
|
|
691
|
-
console.error(`spawnNode [ref] element not found in pkg, ${
|
|
655
|
+
console.error(`spawnNode [ref] element not found in pkg, ${m}`);
|
|
692
656
|
return;
|
|
693
657
|
}
|
|
694
|
-
const i =
|
|
658
|
+
const i = Te[t];
|
|
695
659
|
if (!i) {
|
|
696
|
-
console.error(`spawnNode [ref] element not found in global, ${
|
|
660
|
+
console.error(`spawnNode [ref] element not found in global, ${m}`);
|
|
697
661
|
return;
|
|
698
662
|
}
|
|
699
|
-
const o = i.props[
|
|
663
|
+
const o = i.props[b];
|
|
700
664
|
if (!o) {
|
|
701
|
-
console.error(`spawnNode [ref] props not found, ${
|
|
665
|
+
console.error(`spawnNode [ref] props not found, ${m}`);
|
|
702
666
|
return;
|
|
703
667
|
}
|
|
704
|
-
|
|
668
|
+
vn(O, o), O.basic.id = r, O.basic.key = t, O.ref = {
|
|
705
669
|
id: e
|
|
706
670
|
};
|
|
707
671
|
} else {
|
|
708
|
-
const t =
|
|
672
|
+
const t = E;
|
|
709
673
|
if (!T.elements.has(t)) {
|
|
710
|
-
console.error(`spawnNode [key] element not found in pkg, ${
|
|
674
|
+
console.error(`spawnNode [key] element not found in pkg, ${m}`);
|
|
711
675
|
return;
|
|
712
676
|
}
|
|
713
|
-
const e =
|
|
677
|
+
const e = Te[t];
|
|
714
678
|
if (!e) {
|
|
715
|
-
console.error(`spawnNode [key] element not found in global, ${
|
|
679
|
+
console.error(`spawnNode [key] element not found in global, ${m}`);
|
|
716
680
|
return;
|
|
717
681
|
}
|
|
718
|
-
const i = e.props[
|
|
682
|
+
const i = e.props[b];
|
|
719
683
|
if (!i) {
|
|
720
|
-
console.error(`spawnNode [key] props not found, ${
|
|
684
|
+
console.error(`spawnNode [key] props not found, ${m}`);
|
|
721
685
|
return;
|
|
722
686
|
}
|
|
723
|
-
|
|
687
|
+
vn(O, i), O.basic.id = r, O.basic.key = t, e.leaf || (O.children = []);
|
|
724
688
|
}
|
|
725
|
-
return
|
|
689
|
+
return O;
|
|
726
690
|
}
|
|
727
|
-
function
|
|
691
|
+
function xc(n, u) {
|
|
728
692
|
function l(v) {
|
|
729
|
-
if (v.basic.id ===
|
|
693
|
+
if (v.basic.id === u)
|
|
730
694
|
return v;
|
|
731
695
|
if (v.children)
|
|
732
|
-
for (let
|
|
733
|
-
const
|
|
734
|
-
if (
|
|
735
|
-
return
|
|
696
|
+
for (let E = 0; E < v.children.length; E++) {
|
|
697
|
+
const m = l(v.children[E]);
|
|
698
|
+
if (m)
|
|
699
|
+
return m;
|
|
736
700
|
}
|
|
737
701
|
}
|
|
738
702
|
for (let v = 0; v < n.length; v++) {
|
|
739
|
-
const
|
|
740
|
-
if (
|
|
741
|
-
return
|
|
703
|
+
const E = l(n[v]);
|
|
704
|
+
if (E)
|
|
705
|
+
return E;
|
|
742
706
|
}
|
|
743
707
|
}
|
|
744
|
-
function
|
|
745
|
-
function
|
|
746
|
-
var
|
|
747
|
-
v.basic.id =
|
|
708
|
+
function Cc(n) {
|
|
709
|
+
function u(v) {
|
|
710
|
+
var E;
|
|
711
|
+
v.basic.id = Nn(16), (E = v.children) == null || E.forEach((m) => u(m));
|
|
748
712
|
}
|
|
749
|
-
const l =
|
|
750
|
-
return
|
|
713
|
+
const l = Gt(n);
|
|
714
|
+
return u(l), l;
|
|
751
715
|
}
|
|
752
|
-
const
|
|
753
|
-
function
|
|
754
|
-
oe(
|
|
716
|
+
const Jn = "runtimeEnv", Hn = "runtimeMode", Kn = "runtimeDevice", qn = "runtimeDark", Zn = "runtimeType", Qn = "runtimeData", ei = "runtimeDepends", ti = "runtimeInterpreter";
|
|
717
|
+
function Ac(n) {
|
|
718
|
+
oe(Jn, n);
|
|
755
719
|
}
|
|
756
|
-
function
|
|
757
|
-
return ue(
|
|
720
|
+
function Vs() {
|
|
721
|
+
return ue(Jn);
|
|
758
722
|
}
|
|
759
|
-
function
|
|
760
|
-
oe(
|
|
723
|
+
function Ic(n) {
|
|
724
|
+
oe(Hn, n);
|
|
761
725
|
}
|
|
762
|
-
function
|
|
763
|
-
return ue(
|
|
726
|
+
function ir() {
|
|
727
|
+
return ue(Hn);
|
|
764
728
|
}
|
|
765
|
-
function
|
|
766
|
-
oe(
|
|
729
|
+
function kc(n) {
|
|
730
|
+
oe(Kn, st(n));
|
|
767
731
|
}
|
|
768
|
-
function
|
|
769
|
-
return ue(
|
|
732
|
+
function ri() {
|
|
733
|
+
return ue(Kn);
|
|
770
734
|
}
|
|
771
|
-
function
|
|
772
|
-
oe(
|
|
735
|
+
function Dc(n) {
|
|
736
|
+
oe(qn, st(n));
|
|
773
737
|
}
|
|
774
|
-
function
|
|
775
|
-
return ue(
|
|
738
|
+
function Gs() {
|
|
739
|
+
return ue(qn);
|
|
776
740
|
}
|
|
777
|
-
function
|
|
778
|
-
oe(
|
|
741
|
+
function Lc(n) {
|
|
742
|
+
oe(Zn, n);
|
|
779
743
|
}
|
|
780
|
-
function
|
|
781
|
-
return ue(
|
|
744
|
+
function ni() {
|
|
745
|
+
return ue(Zn);
|
|
782
746
|
}
|
|
783
|
-
function
|
|
784
|
-
console.assert(
|
|
747
|
+
function Mc(n) {
|
|
748
|
+
console.assert(mn(n)), oe(Qn, st(n));
|
|
785
749
|
}
|
|
786
|
-
function
|
|
787
|
-
return ue(
|
|
750
|
+
function ii() {
|
|
751
|
+
return ue(Qn);
|
|
788
752
|
}
|
|
789
|
-
function
|
|
790
|
-
console.assert(
|
|
753
|
+
function Fc(n) {
|
|
754
|
+
console.assert(mn(n)), oe(ei, st(n));
|
|
791
755
|
}
|
|
792
|
-
function
|
|
793
|
-
return ue(
|
|
756
|
+
function Ys() {
|
|
757
|
+
return ue(ei);
|
|
794
758
|
}
|
|
795
|
-
function
|
|
796
|
-
oe(
|
|
759
|
+
function Xs(n) {
|
|
760
|
+
oe(ti, n);
|
|
797
761
|
}
|
|
798
|
-
function
|
|
799
|
-
return ue(
|
|
762
|
+
function Ws() {
|
|
763
|
+
return ue(ti);
|
|
800
764
|
}
|
|
801
|
-
const
|
|
765
|
+
const zs = /* @__PURE__ */ Wt({
|
|
802
766
|
__name: "index",
|
|
803
767
|
props: {
|
|
804
768
|
node: {},
|
|
805
769
|
outer: { type: Boolean }
|
|
806
770
|
},
|
|
807
771
|
setup(n) {
|
|
808
|
-
const
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
772
|
+
const u = n, l = ir(), v = Gs(), E = Ws(), m = M(() => u.node.settings.text), b = M(() => u.node.settings.disabled), T = M(() => u.node.settings.variant), O = M(() => u.node.settings.density), r = M(() => u.node.settings.block), t = M(() => v.value ? "dark" : "light"), e = () => {
|
|
773
|
+
if (l !== "runtime" || !E)
|
|
774
|
+
return;
|
|
775
|
+
const i = E.nativeToPseudo(u.node.basic.id);
|
|
776
|
+
E.appendCode(`__triggerEvent__('${i}', 'click');`), E.run();
|
|
777
|
+
};
|
|
778
|
+
return (i, o) => {
|
|
779
|
+
const s = qi("v-btn");
|
|
780
|
+
return zt(), Rn(s, {
|
|
781
|
+
text: m.value,
|
|
782
|
+
disabled: b.value,
|
|
783
|
+
variant: T.value,
|
|
784
|
+
density: O.value,
|
|
785
|
+
block: r.value,
|
|
786
|
+
theme: t.value,
|
|
787
|
+
onClick: e
|
|
818
788
|
}, null, 8, ["text", "disabled", "variant", "density", "block", "theme"]);
|
|
819
789
|
};
|
|
820
790
|
}
|
|
821
|
-
}),
|
|
791
|
+
}), Yt = "btn_v1", Xt = "container_v1", ai = "globality_v1", oi = "ref_v1", Ne = {
|
|
822
792
|
key: "basic",
|
|
823
793
|
name: "x-runtime-lib.basic",
|
|
824
794
|
children: [
|
|
@@ -826,32 +796,35 @@ const Is = /* @__PURE__ */ on({
|
|
|
826
796
|
key: "id",
|
|
827
797
|
name: "x-runtime-lib.id",
|
|
828
798
|
ui: "strInput",
|
|
829
|
-
readonly: !0
|
|
799
|
+
readonly: !0,
|
|
800
|
+
default: ""
|
|
830
801
|
},
|
|
831
802
|
{
|
|
832
803
|
key: "name",
|
|
833
804
|
name: "x-runtime-lib.name",
|
|
834
805
|
ui: "strInput",
|
|
835
|
-
static: !0
|
|
806
|
+
static: !0,
|
|
807
|
+
default: ""
|
|
836
808
|
},
|
|
837
809
|
{
|
|
838
810
|
key: "alias",
|
|
839
811
|
name: "x-runtime-lib.alias",
|
|
840
|
-
ui: "strInput"
|
|
812
|
+
ui: "strInput",
|
|
813
|
+
default: ""
|
|
841
814
|
}
|
|
842
815
|
]
|
|
843
|
-
},
|
|
816
|
+
}, Js = [
|
|
844
817
|
{ title: "x-runtime-lib.elevated", value: "elevated" },
|
|
845
818
|
{ title: "x-runtime-lib.flat", value: "flat" },
|
|
846
819
|
{ title: "x-runtime-lib.tonal", value: "tonal" },
|
|
847
820
|
{ title: "x-runtime-lib.outlined", value: "outlined" },
|
|
848
821
|
{ title: "x-runtime-lib.text", value: "text" },
|
|
849
822
|
{ title: "x-runtime-lib.plain", value: "plain" }
|
|
850
|
-
],
|
|
823
|
+
], Hs = [
|
|
851
824
|
{ title: "x-runtime-lib.default", value: "default" },
|
|
852
825
|
{ title: "x-runtime-lib.comfortable", value: "comfortable" },
|
|
853
826
|
{ title: "x-runtime-lib.compact", value: "compact" }
|
|
854
|
-
],
|
|
827
|
+
], yn = {
|
|
855
828
|
key: "settings",
|
|
856
829
|
name: "x-runtime-lib.settings",
|
|
857
830
|
children: [
|
|
@@ -871,14 +844,14 @@ const Is = /* @__PURE__ */ on({
|
|
|
871
844
|
key: "variant",
|
|
872
845
|
name: "x-runtime-lib.variant",
|
|
873
846
|
ui: "select",
|
|
874
|
-
items:
|
|
847
|
+
items: Js,
|
|
875
848
|
default: "elevated"
|
|
876
849
|
},
|
|
877
850
|
{
|
|
878
851
|
key: "density",
|
|
879
852
|
name: "x-runtime-lib.density",
|
|
880
853
|
ui: "select",
|
|
881
|
-
items:
|
|
854
|
+
items: Hs,
|
|
882
855
|
default: "default"
|
|
883
856
|
},
|
|
884
857
|
{
|
|
@@ -888,10 +861,10 @@ const Is = /* @__PURE__ */ on({
|
|
|
888
861
|
default: !1
|
|
889
862
|
}
|
|
890
863
|
]
|
|
891
|
-
},
|
|
892
|
-
key:
|
|
864
|
+
}, Ks = {
|
|
865
|
+
key: Yt,
|
|
893
866
|
name: "x-runtime-lib.button",
|
|
894
|
-
comp:
|
|
867
|
+
comp: zs,
|
|
895
868
|
leaf: !0,
|
|
896
869
|
events: [
|
|
897
870
|
{
|
|
@@ -902,10 +875,319 @@ const Is = /* @__PURE__ */ on({
|
|
|
902
875
|
],
|
|
903
876
|
methods: [],
|
|
904
877
|
props: {
|
|
905
|
-
pageCommon: [
|
|
906
|
-
compCommon: [
|
|
878
|
+
pageCommon: [Ne, yn],
|
|
879
|
+
compCommon: [Ne, yn]
|
|
880
|
+
}
|
|
881
|
+
};
|
|
882
|
+
function ui(n, u, l) {
|
|
883
|
+
const v = M(() => l.node.width), E = M(() => l.node.minWidth), m = M(() => l.node.maxWidth), b = M(() => {
|
|
884
|
+
if (l.outer && n === "editor") {
|
|
885
|
+
const t = Mt(l.node.height);
|
|
886
|
+
if (t)
|
|
887
|
+
return t / 100 * u.value.height + "px";
|
|
888
|
+
}
|
|
889
|
+
return l.node.height;
|
|
890
|
+
}), T = M(() => {
|
|
891
|
+
if (l.outer && n === "editor") {
|
|
892
|
+
const t = Mt(l.node.minHeight);
|
|
893
|
+
if (t)
|
|
894
|
+
return t / 100 * u.value.height + "px";
|
|
895
|
+
}
|
|
896
|
+
return l.node.minHeight;
|
|
897
|
+
}), O = M(() => {
|
|
898
|
+
if (l.outer && n === "editor") {
|
|
899
|
+
const t = Mt(l.node.maxHeight);
|
|
900
|
+
if (t)
|
|
901
|
+
return t / 100 * u.value.height + "px";
|
|
902
|
+
}
|
|
903
|
+
return l.node.maxHeight;
|
|
904
|
+
});
|
|
905
|
+
function r(t) {
|
|
906
|
+
v.value && (t.width = v.value), E.value && (t.minWidth = E.value), m.value && (t.maxWidth = m.value), b.value && (t.height = b.value), T.value && (t.minHeight = T.value), O.value && (t.maxHeight = O.value);
|
|
907
|
+
}
|
|
908
|
+
return { width: v, minWidth: E, maxWidth: m, height: b, minHeight: T, maxHeight: O, applySize: r };
|
|
909
|
+
}
|
|
910
|
+
function qs(n) {
|
|
911
|
+
const u = M(() => n.node.margin.top), l = M(() => n.node.margin.left), v = M(() => n.node.margin.bottom), E = M(() => n.node.margin.right);
|
|
912
|
+
function m(b) {
|
|
913
|
+
u.value && (b.marginTop = u.value), l.value && (b.marginLeft = l.value), v.value && (b.marginBottom = v.value), E.value && (b.marginRight = E.value);
|
|
914
|
+
}
|
|
915
|
+
return { marginTop: u, marginLeft: l, marginBottom: v, marginRight: E, applyMargin: m };
|
|
916
|
+
}
|
|
917
|
+
function Zs(n) {
|
|
918
|
+
const u = M(() => {
|
|
919
|
+
var b;
|
|
920
|
+
return (b = n.node.padding) == null ? void 0 : b.top;
|
|
921
|
+
}), l = M(() => {
|
|
922
|
+
var b;
|
|
923
|
+
return (b = n.node.padding) == null ? void 0 : b.left;
|
|
924
|
+
}), v = M(() => {
|
|
925
|
+
var b;
|
|
926
|
+
return (b = n.node.padding) == null ? void 0 : b.bottom;
|
|
927
|
+
}), E = M(() => {
|
|
928
|
+
var b;
|
|
929
|
+
return (b = n.node.padding) == null ? void 0 : b.right;
|
|
930
|
+
});
|
|
931
|
+
function m(b) {
|
|
932
|
+
u.value && (b.paddingTop = u.value), l.value && (b.paddingLeft = l.value), v.value && (b.paddingBottom = v.value), E.value && (b.paddingRight = E.value);
|
|
933
|
+
}
|
|
934
|
+
return { paddingTop: u, paddingLeft: l, paddingBottom: v, paddingRight: E, applyPadding: m };
|
|
935
|
+
}
|
|
936
|
+
function Qs(n) {
|
|
937
|
+
const u = M(() => {
|
|
938
|
+
var m;
|
|
939
|
+
return (m = n.node.border) == null ? void 0 : m.style;
|
|
940
|
+
}), l = M(() => {
|
|
941
|
+
var m;
|
|
942
|
+
return (m = n.node.border) == null ? void 0 : m.width;
|
|
943
|
+
}), v = M(() => {
|
|
944
|
+
var m;
|
|
945
|
+
return (m = n.node.border) == null ? void 0 : m.color;
|
|
946
|
+
});
|
|
947
|
+
function E(m) {
|
|
948
|
+
u.value && (m.borderStyle = u.value), l.value && (m.borderWidth = l.value), v.value && (m.borderColor = v.value);
|
|
949
|
+
}
|
|
950
|
+
return { borderStyle: u, borderWidth: l, borderColor: v, applyBorder: E };
|
|
951
|
+
}
|
|
952
|
+
const ec = /* @__PURE__ */ Wt({
|
|
953
|
+
__name: "index",
|
|
954
|
+
props: {
|
|
955
|
+
node: {},
|
|
956
|
+
outer: { type: Boolean }
|
|
957
|
+
},
|
|
958
|
+
setup(n) {
|
|
959
|
+
const u = n, l = ir(), v = ri(), E = ni(), m = ii(), { applySize: b } = ui(l, v, u), { applyMargin: T } = qs(u), { applyPadding: O } = Zs(u), { applyBorder: r } = Qs(u), t = M(() => {
|
|
960
|
+
const e = {}, i = m.type;
|
|
961
|
+
return E === "page" ? i === "common" ? (b(e), T(e), O(e), r(e)) : console.assert(!1) : E === "comp" && i === "common" ? (b(e), T(e), O(e), r(e)) : console.assert(!1), e;
|
|
962
|
+
});
|
|
963
|
+
return (e, i) => (zt(), Zi("div", {
|
|
964
|
+
style: Qi(t.value)
|
|
965
|
+
}, [
|
|
966
|
+
ea(e.$slots, "default")
|
|
967
|
+
], 4));
|
|
968
|
+
}
|
|
969
|
+
}), rt = [
|
|
970
|
+
{
|
|
971
|
+
name: "x-runtime-lib.default",
|
|
972
|
+
ui: "word",
|
|
973
|
+
validator: Jt,
|
|
974
|
+
default: ""
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
name: "x-runtime-lib.auto",
|
|
978
|
+
ui: "word",
|
|
979
|
+
validator: (n) => n === "auto",
|
|
980
|
+
default: "auto"
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
name: "x-runtime-lib.pixel",
|
|
984
|
+
ui: "pixelInput",
|
|
985
|
+
validator: Ht,
|
|
986
|
+
default: "0px",
|
|
987
|
+
precision: 0,
|
|
988
|
+
min: 0,
|
|
989
|
+
max: 1 / 0,
|
|
990
|
+
step: 1
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
name: "x-runtime-lib.percent",
|
|
994
|
+
ui: "percentInput",
|
|
995
|
+
validator: Kt,
|
|
996
|
+
default: "0%",
|
|
997
|
+
precision: 4,
|
|
998
|
+
min: 0,
|
|
999
|
+
max: 1 / 0,
|
|
1000
|
+
step: 1
|
|
1001
|
+
}
|
|
1002
|
+
], at = {
|
|
1003
|
+
key: "margin",
|
|
1004
|
+
name: "x-runtime-lib.margin",
|
|
1005
|
+
children: [
|
|
1006
|
+
{
|
|
1007
|
+
key: "top",
|
|
1008
|
+
name: "x-runtime-lib.top",
|
|
1009
|
+
ui: "multiTypes",
|
|
1010
|
+
types: rt,
|
|
1011
|
+
default: ""
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
key: "left",
|
|
1015
|
+
name: "x-runtime-lib.left",
|
|
1016
|
+
ui: "multiTypes",
|
|
1017
|
+
types: rt,
|
|
1018
|
+
default: ""
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
key: "bottom",
|
|
1022
|
+
name: "x-runtime-lib.bottom",
|
|
1023
|
+
ui: "multiTypes",
|
|
1024
|
+
types: rt,
|
|
1025
|
+
default: ""
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
key: "right",
|
|
1029
|
+
name: "x-runtime-lib.right",
|
|
1030
|
+
ui: "multiTypes",
|
|
1031
|
+
types: rt,
|
|
1032
|
+
default: ""
|
|
1033
|
+
}
|
|
1034
|
+
]
|
|
1035
|
+
}, nt = [
|
|
1036
|
+
{
|
|
1037
|
+
name: "x-runtime-lib.default",
|
|
1038
|
+
ui: "word",
|
|
1039
|
+
validator: Jt,
|
|
1040
|
+
default: ""
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
name: "x-runtime-lib.pixel",
|
|
1044
|
+
ui: "pixelInput",
|
|
1045
|
+
validator: Ht,
|
|
1046
|
+
default: "0px",
|
|
1047
|
+
precision: 0,
|
|
1048
|
+
min: 0,
|
|
1049
|
+
max: 1 / 0,
|
|
1050
|
+
step: 1
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
name: "x-runtime-lib.percent",
|
|
1054
|
+
ui: "percentInput",
|
|
1055
|
+
validator: Kt,
|
|
1056
|
+
default: "0%",
|
|
1057
|
+
precision: 4,
|
|
1058
|
+
min: 0,
|
|
1059
|
+
max: 1 / 0,
|
|
1060
|
+
step: 1
|
|
1061
|
+
}
|
|
1062
|
+
], ot = {
|
|
1063
|
+
key: "padding",
|
|
1064
|
+
name: "x-runtime-lib.padding",
|
|
1065
|
+
children: [
|
|
1066
|
+
{
|
|
1067
|
+
key: "top",
|
|
1068
|
+
name: "x-runtime-lib.top",
|
|
1069
|
+
ui: "multiTypes",
|
|
1070
|
+
types: nt,
|
|
1071
|
+
default: ""
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
key: "left",
|
|
1075
|
+
name: "x-runtime-lib.left",
|
|
1076
|
+
ui: "multiTypes",
|
|
1077
|
+
types: nt,
|
|
1078
|
+
default: ""
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
key: "bottom",
|
|
1082
|
+
name: "x-runtime-lib.bottom",
|
|
1083
|
+
ui: "multiTypes",
|
|
1084
|
+
types: nt,
|
|
1085
|
+
default: ""
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
key: "right",
|
|
1089
|
+
name: "x-runtime-lib.right",
|
|
1090
|
+
ui: "multiTypes",
|
|
1091
|
+
types: nt,
|
|
1092
|
+
default: ""
|
|
1093
|
+
}
|
|
1094
|
+
]
|
|
1095
|
+
}, me = [
|
|
1096
|
+
{
|
|
1097
|
+
name: "x-runtime-lib.default",
|
|
1098
|
+
ui: "word",
|
|
1099
|
+
validator: Jt,
|
|
1100
|
+
default: ""
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
name: "x-runtime-lib.pixel",
|
|
1104
|
+
ui: "pixelInput",
|
|
1105
|
+
validator: Ht,
|
|
1106
|
+
default: "0px",
|
|
1107
|
+
precision: 0,
|
|
1108
|
+
min: 0,
|
|
1109
|
+
max: 1 / 0,
|
|
1110
|
+
step: 1
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
name: "x-runtime-lib.percent",
|
|
1114
|
+
ui: "percentInput",
|
|
1115
|
+
validator: Kt,
|
|
1116
|
+
default: "0%",
|
|
1117
|
+
precision: 4,
|
|
1118
|
+
min: 0,
|
|
1119
|
+
max: 1 / 0,
|
|
1120
|
+
step: 1
|
|
1121
|
+
}
|
|
1122
|
+
], ut = {
|
|
1123
|
+
key: "size",
|
|
1124
|
+
name: "x-runtime-lib.size",
|
|
1125
|
+
children: [
|
|
1126
|
+
{
|
|
1127
|
+
key: "width",
|
|
1128
|
+
name: "x-runtime-lib.width",
|
|
1129
|
+
ui: "multiTypes",
|
|
1130
|
+
types: me,
|
|
1131
|
+
default: ""
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
key: "minWidth",
|
|
1135
|
+
name: "x-runtime-lib.minWidth",
|
|
1136
|
+
ui: "multiTypes",
|
|
1137
|
+
types: me,
|
|
1138
|
+
default: ""
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
key: "maxWidth",
|
|
1142
|
+
name: "x-runtime-lib.maxWidth",
|
|
1143
|
+
ui: "multiTypes",
|
|
1144
|
+
types: me,
|
|
1145
|
+
default: ""
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
key: "height",
|
|
1149
|
+
name: "x-runtime-lib.height",
|
|
1150
|
+
ui: "multiTypes",
|
|
1151
|
+
types: me,
|
|
1152
|
+
default: ""
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
key: "minHeight",
|
|
1156
|
+
name: "x-runtime-lib.minHeight",
|
|
1157
|
+
ui: "multiTypes",
|
|
1158
|
+
types: me,
|
|
1159
|
+
default: ""
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
key: "maxHeight",
|
|
1163
|
+
name: "x-runtime-lib.maxHeight",
|
|
1164
|
+
ui: "multiTypes",
|
|
1165
|
+
types: me,
|
|
1166
|
+
default: ""
|
|
1167
|
+
}
|
|
1168
|
+
]
|
|
1169
|
+
}, _n = {
|
|
1170
|
+
key: "settings",
|
|
1171
|
+
name: "x-runtime-lib.settings",
|
|
1172
|
+
children: []
|
|
1173
|
+
}, tc = {
|
|
1174
|
+
key: Xt,
|
|
1175
|
+
name: "x-runtime-lib.container",
|
|
1176
|
+
comp: ec,
|
|
1177
|
+
leaf: !1,
|
|
1178
|
+
events: [
|
|
1179
|
+
{
|
|
1180
|
+
key: "click",
|
|
1181
|
+
name: "EVENT_CLICK",
|
|
1182
|
+
params: []
|
|
1183
|
+
}
|
|
1184
|
+
],
|
|
1185
|
+
methods: [],
|
|
1186
|
+
props: {
|
|
1187
|
+
pageCommon: [Ne, ut, at, ot, _n],
|
|
1188
|
+
compCommon: [Ne, ut, at, ot, _n]
|
|
907
1189
|
}
|
|
908
|
-
},
|
|
1190
|
+
}, En = {
|
|
909
1191
|
key: "globalSettings",
|
|
910
1192
|
name: "x-runtime-lib.globalSettings",
|
|
911
1193
|
children: [
|
|
@@ -916,8 +1198,8 @@ const Is = /* @__PURE__ */ on({
|
|
|
916
1198
|
default: "#00000000"
|
|
917
1199
|
}
|
|
918
1200
|
]
|
|
919
|
-
},
|
|
920
|
-
key:
|
|
1201
|
+
}, si = {
|
|
1202
|
+
key: ai,
|
|
921
1203
|
name: "x-runtime-lib.globality",
|
|
922
1204
|
comp: "",
|
|
923
1205
|
leaf: !1,
|
|
@@ -954,55 +1236,27 @@ const Is = /* @__PURE__ */ on({
|
|
|
954
1236
|
],
|
|
955
1237
|
methods: [],
|
|
956
1238
|
props: {
|
|
957
|
-
pageCommon: [
|
|
958
|
-
compCommon: [
|
|
1239
|
+
pageCommon: [En],
|
|
1240
|
+
compCommon: [En]
|
|
959
1241
|
},
|
|
960
1242
|
internal: !0
|
|
961
1243
|
};
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
if (l.outer && n === "editor") {
|
|
965
|
-
const t = Ct(l.node.height);
|
|
966
|
-
if (t)
|
|
967
|
-
return t / 100 * s.value.height + "px";
|
|
968
|
-
}
|
|
969
|
-
return l.node.height;
|
|
970
|
-
}), T = W(() => {
|
|
971
|
-
if (l.outer && n === "editor") {
|
|
972
|
-
const t = Ct(l.node.minHeight);
|
|
973
|
-
if (t)
|
|
974
|
-
return t / 100 * s.value.height + "px";
|
|
975
|
-
}
|
|
976
|
-
return l.node.minHeight;
|
|
977
|
-
}), R = W(() => {
|
|
978
|
-
if (l.outer && n === "editor") {
|
|
979
|
-
const t = Ct(l.node.maxHeight);
|
|
980
|
-
if (t)
|
|
981
|
-
return t / 100 * s.value.height + "px";
|
|
982
|
-
}
|
|
983
|
-
return l.node.maxHeight;
|
|
984
|
-
});
|
|
985
|
-
function r(t) {
|
|
986
|
-
v.value && (t.width = v.value), g.value && (t.minWidth = g.value), N.value && (t.maxWidth = N.value), m.value && (t.height = m.value), T.value && (t.minHeight = T.value), R.value && (t.maxHeight = R.value);
|
|
987
|
-
}
|
|
988
|
-
return { width: v, minWidth: g, maxWidth: N, height: m, minHeight: T, maxHeight: R, applySize: r };
|
|
989
|
-
}
|
|
990
|
-
var Us = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
991
|
-
function js(n) {
|
|
1244
|
+
var rc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1245
|
+
function nc(n) {
|
|
992
1246
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
993
1247
|
}
|
|
994
|
-
function
|
|
1248
|
+
function ic(n) {
|
|
995
1249
|
if (n.__esModule) return n;
|
|
996
|
-
var
|
|
997
|
-
if (typeof
|
|
1250
|
+
var u = n.default;
|
|
1251
|
+
if (typeof u == "function") {
|
|
998
1252
|
var l = function v() {
|
|
999
|
-
return this instanceof v ? Reflect.construct(
|
|
1253
|
+
return this instanceof v ? Reflect.construct(u, arguments, this.constructor) : u.apply(this, arguments);
|
|
1000
1254
|
};
|
|
1001
|
-
l.prototype =
|
|
1255
|
+
l.prototype = u.prototype;
|
|
1002
1256
|
} else l = {};
|
|
1003
1257
|
return Object.defineProperty(l, "__esModule", { value: !0 }), Object.keys(n).forEach(function(v) {
|
|
1004
|
-
var
|
|
1005
|
-
Object.defineProperty(l, v,
|
|
1258
|
+
var E = Object.getOwnPropertyDescriptor(n, v);
|
|
1259
|
+
Object.defineProperty(l, v, E.get ? E : {
|
|
1006
1260
|
enumerable: !0,
|
|
1007
1261
|
get: function() {
|
|
1008
1262
|
return n[v];
|
|
@@ -1010,15 +1264,15 @@ function Bs(n) {
|
|
|
1010
1264
|
});
|
|
1011
1265
|
}), l;
|
|
1012
1266
|
}
|
|
1013
|
-
var
|
|
1014
|
-
const
|
|
1267
|
+
var ci = { exports: {} };
|
|
1268
|
+
const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1015
1269
|
__proto__: null,
|
|
1016
|
-
default:
|
|
1017
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1018
|
-
(function(n,
|
|
1019
|
-
(function(v,
|
|
1020
|
-
n.exports =
|
|
1021
|
-
})(
|
|
1270
|
+
default: ac
|
|
1271
|
+
}, Symbol.toStringTag, { value: "Module" })), uc = /* @__PURE__ */ ic(oc);
|
|
1272
|
+
(function(n, u) {
|
|
1273
|
+
(function(v, E) {
|
|
1274
|
+
n.exports = E();
|
|
1275
|
+
})(rc, () => (
|
|
1022
1276
|
/******/
|
|
1023
1277
|
(() => {
|
|
1024
1278
|
var l = {
|
|
@@ -1028,7 +1282,7 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1028
1282
|
!*** ./original-repo/interpreter.js ***!
|
|
1029
1283
|
\**************************************/
|
|
1030
1284
|
/***/
|
|
1031
|
-
function(
|
|
1285
|
+
function(b, T, O) {
|
|
1032
1286
|
/**
|
|
1033
1287
|
* @license
|
|
1034
1288
|
* Copyright 2013 Neil Fraser
|
|
@@ -1041,8 +1295,8 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1041
1295
|
return new i({ options: {} });
|
|
1042
1296
|
};
|
|
1043
1297
|
var o = this.newNode();
|
|
1044
|
-
for (var
|
|
1045
|
-
o[
|
|
1298
|
+
for (var s in t)
|
|
1299
|
+
o[s] = s === "body" ? t[s].slice() : t[s];
|
|
1046
1300
|
this.ast = o, this.tasks = [], this.initFunc_ = e, this.paused_ = !1, this.polyfills_ = [], this.functionCounter_ = 0, this.stepFunctions_ = /* @__PURE__ */ Object.create(null);
|
|
1047
1301
|
var c = /^step([A-Z]\w*)$/, a;
|
|
1048
1302
|
for (var p in this)
|
|
@@ -1133,10 +1387,10 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1133
1387
|
e ? t.start = e : delete t.start, i ? t.end = i : delete t.end;
|
|
1134
1388
|
for (var o in t)
|
|
1135
1389
|
if (o !== "loc" && t.hasOwnProperty(o)) {
|
|
1136
|
-
var
|
|
1137
|
-
|
|
1390
|
+
var s = t[o];
|
|
1391
|
+
s && typeof s == "object" && r.stripLocations_(
|
|
1138
1392
|
/** @type {!Object} */
|
|
1139
|
-
|
|
1393
|
+
s,
|
|
1140
1394
|
e,
|
|
1141
1395
|
i
|
|
1142
1396
|
);
|
|
@@ -1165,7 +1419,7 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1165
1419
|
if (i = this.nextTask_(), !i)
|
|
1166
1420
|
return !0;
|
|
1167
1421
|
}
|
|
1168
|
-
var o = i.node,
|
|
1422
|
+
var o = i.node, s = r.currentInterpreter_;
|
|
1169
1423
|
r.currentInterpreter_ = this;
|
|
1170
1424
|
try {
|
|
1171
1425
|
var c = this.stepFunctions_[o.type](t, i, o);
|
|
@@ -1173,7 +1427,7 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1173
1427
|
if (a !== r.STEP_ERROR)
|
|
1174
1428
|
throw this.value !== a && (this.value = void 0), a;
|
|
1175
1429
|
} finally {
|
|
1176
|
-
r.currentInterpreter_ =
|
|
1430
|
+
r.currentInterpreter_ = s;
|
|
1177
1431
|
}
|
|
1178
1432
|
if (c && t.push(c), this.getterStep_)
|
|
1179
1433
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -1258,14 +1512,14 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1258
1512
|
this.createNativeFunction(isFinite, !1),
|
|
1259
1513
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1260
1514
|
);
|
|
1261
|
-
for (var
|
|
1515
|
+
for (var s = [
|
|
1262
1516
|
[escape, "escape"],
|
|
1263
1517
|
[unescape, "unescape"],
|
|
1264
1518
|
[decodeURI, "decodeURI"],
|
|
1265
1519
|
[decodeURIComponent, "decodeURIComponent"],
|
|
1266
1520
|
[encodeURI, "encodeURI"],
|
|
1267
1521
|
[encodeURIComponent, "encodeURIComponent"]
|
|
1268
|
-
], c = 0; c <
|
|
1522
|
+
], c = 0; c < s.length; c++)
|
|
1269
1523
|
i = /* @__PURE__ */ function(a) {
|
|
1270
1524
|
return function(p) {
|
|
1271
1525
|
try {
|
|
@@ -1274,9 +1528,9 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1274
1528
|
e.throwException(e.URI_ERROR, d.message);
|
|
1275
1529
|
}
|
|
1276
1530
|
};
|
|
1277
|
-
}(
|
|
1531
|
+
}(s[c][0]), this.setProperty(
|
|
1278
1532
|
t,
|
|
1279
|
-
|
|
1533
|
+
s[c][1],
|
|
1280
1534
|
this.createNativeFunction(i, !1),
|
|
1281
1535
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1282
1536
|
);
|
|
@@ -1318,17 +1572,17 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1318
1572
|
var a = "";
|
|
1319
1573
|
var p = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1320
1574
|
if (p) {
|
|
1321
|
-
for (var d = p.split(/\s*,\s*/),
|
|
1322
|
-
var
|
|
1323
|
-
o.test(
|
|
1575
|
+
for (var d = p.split(/\s*,\s*/), g = 0; g < d.length; g++) {
|
|
1576
|
+
var N = d[g];
|
|
1577
|
+
o.test(N) || e.throwException(
|
|
1324
1578
|
e.SYNTAX_ERROR,
|
|
1325
|
-
"Invalid function argument: " +
|
|
1579
|
+
"Invalid function argument: " + N
|
|
1326
1580
|
);
|
|
1327
1581
|
}
|
|
1328
1582
|
p = d.join(", ");
|
|
1329
1583
|
}
|
|
1330
1584
|
try {
|
|
1331
|
-
var
|
|
1585
|
+
var R = e.parse_(
|
|
1332
1586
|
"(function(" + p + ") {" + a + "})",
|
|
1333
1587
|
"function" + e.functionCodeNumber_++
|
|
1334
1588
|
);
|
|
@@ -1338,11 +1592,11 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1338
1592
|
"Invalid code: " + I.message
|
|
1339
1593
|
);
|
|
1340
1594
|
}
|
|
1341
|
-
|
|
1595
|
+
R.body.length !== 1 && e.throwException(
|
|
1342
1596
|
e.SYNTAX_ERROR,
|
|
1343
1597
|
"Invalid code in function body"
|
|
1344
1598
|
);
|
|
1345
|
-
var S =
|
|
1599
|
+
var S = R.body[0].expression;
|
|
1346
1600
|
return e.createFunction(
|
|
1347
1601
|
S,
|
|
1348
1602
|
e.globalScope,
|
|
@@ -1467,10 +1721,10 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1467
1721
|
this.OBJECT,
|
|
1468
1722
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1469
1723
|
);
|
|
1470
|
-
var o = function(
|
|
1471
|
-
|
|
1724
|
+
var o = function(s) {
|
|
1725
|
+
s == null && e.throwException(
|
|
1472
1726
|
e.TYPE_ERROR,
|
|
1473
|
-
"Cannot convert '" +
|
|
1727
|
+
"Cannot convert '" + s + "' to object"
|
|
1474
1728
|
);
|
|
1475
1729
|
};
|
|
1476
1730
|
i = function(c) {
|
|
@@ -1565,25 +1819,25 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1565
1819
|
e.TYPE_ERROR,
|
|
1566
1820
|
"Object.getOwnPropertyDescriptor called on non-object: " + c
|
|
1567
1821
|
), a = String(a), a in c.properties) {
|
|
1568
|
-
var p = Object.getOwnPropertyDescriptor(c.properties, a), d = c.getter[a],
|
|
1569
|
-
return d ||
|
|
1570
|
-
|
|
1822
|
+
var p = Object.getOwnPropertyDescriptor(c.properties, a), d = c.getter[a], g = c.setter[a], N = e.createObjectProto(e.OBJECT_PROTO);
|
|
1823
|
+
return d || g ? (e.setProperty(N, "get", d), e.setProperty(N, "set", g)) : (e.setProperty(
|
|
1824
|
+
N,
|
|
1571
1825
|
"value",
|
|
1572
1826
|
/** @type {!Interpreter.Value} */
|
|
1573
1827
|
p.value
|
|
1574
1828
|
), e.setProperty(
|
|
1575
|
-
|
|
1829
|
+
N,
|
|
1576
1830
|
"writable",
|
|
1577
1831
|
p.writable
|
|
1578
1832
|
)), e.setProperty(
|
|
1579
|
-
|
|
1833
|
+
N,
|
|
1580
1834
|
"configurable",
|
|
1581
1835
|
p.configurable
|
|
1582
1836
|
), e.setProperty(
|
|
1583
|
-
|
|
1837
|
+
N,
|
|
1584
1838
|
"enumerable",
|
|
1585
1839
|
p.enumerable
|
|
1586
|
-
),
|
|
1840
|
+
), N;
|
|
1587
1841
|
}
|
|
1588
1842
|
}, this.setProperty(
|
|
1589
1843
|
this.OBJECT,
|
|
@@ -1637,7 +1891,7 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1637
1891
|
}, this.setNativeFunctionPrototype(this.OBJECT, "isPrototypeOf", i);
|
|
1638
1892
|
}, r.prototype.initArray = function(t) {
|
|
1639
1893
|
var e = this, i;
|
|
1640
|
-
i = function(
|
|
1894
|
+
i = function(s) {
|
|
1641
1895
|
if (e.calledWithNew())
|
|
1642
1896
|
var c = this;
|
|
1643
1897
|
else
|
|
@@ -1659,8 +1913,8 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1659
1913
|
"Array",
|
|
1660
1914
|
this.ARRAY,
|
|
1661
1915
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1662
|
-
), i = function(
|
|
1663
|
-
return
|
|
1916
|
+
), i = function(s) {
|
|
1917
|
+
return s && s.class === "Array";
|
|
1664
1918
|
}, this.setProperty(
|
|
1665
1919
|
this.ARRAY,
|
|
1666
1920
|
"isArray",
|
|
@@ -2139,11 +2393,11 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2139
2393
|
"toLowerCase",
|
|
2140
2394
|
"toUpperCase",
|
|
2141
2395
|
"trim"
|
|
2142
|
-
],
|
|
2396
|
+
], s = 0; s < o.length; s++)
|
|
2143
2397
|
this.setNativeFunctionPrototype(
|
|
2144
2398
|
this.STRING,
|
|
2145
|
-
o[
|
|
2146
|
-
String.prototype[o[
|
|
2399
|
+
o[s],
|
|
2400
|
+
String.prototype[o[s]]
|
|
2147
2401
|
);
|
|
2148
2402
|
i = function(a, p, d) {
|
|
2149
2403
|
p = e.pseudoToNative(p), d = e.pseudoToNative(d);
|
|
@@ -2155,21 +2409,21 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2155
2409
|
/** @type {?} */
|
|
2156
2410
|
d
|
|
2157
2411
|
);
|
|
2158
|
-
} catch (
|
|
2412
|
+
} catch (g) {
|
|
2159
2413
|
e.throwException(
|
|
2160
2414
|
e.ERROR,
|
|
2161
|
-
"localeCompare: " +
|
|
2415
|
+
"localeCompare: " + g.message
|
|
2162
2416
|
);
|
|
2163
2417
|
}
|
|
2164
2418
|
}, this.setNativeFunctionPrototype(this.STRING, "localeCompare", i), i = function(a, p, d) {
|
|
2165
|
-
var
|
|
2419
|
+
var g = String(this);
|
|
2166
2420
|
if (p = p ? Number(p) : void 0, e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, d), e.REGEXP_MODE === 2)) {
|
|
2167
2421
|
if (r.vm) {
|
|
2168
|
-
var
|
|
2169
|
-
string:
|
|
2422
|
+
var N = {
|
|
2423
|
+
string: g,
|
|
2170
2424
|
separator: a,
|
|
2171
2425
|
limit: p
|
|
2172
|
-
},
|
|
2426
|
+
}, R = "string.split(separator, limit)", D = e.vmCall(R, N, a, d);
|
|
2173
2427
|
D !== r.REGEXP_TIMEOUT && d(e.nativeToPseudo(D));
|
|
2174
2428
|
} else {
|
|
2175
2429
|
var S = e.createWorker(), I = e.regExpTimeout(
|
|
@@ -2177,28 +2431,28 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2177
2431
|
S,
|
|
2178
2432
|
d
|
|
2179
2433
|
);
|
|
2180
|
-
S.onmessage = function(
|
|
2181
|
-
clearTimeout(I), d(e.nativeToPseudo(
|
|
2182
|
-
}, S.postMessage(["split",
|
|
2434
|
+
S.onmessage = function(W) {
|
|
2435
|
+
clearTimeout(I), d(e.nativeToPseudo(W.data));
|
|
2436
|
+
}, S.postMessage(["split", g, a, p]);
|
|
2183
2437
|
}
|
|
2184
2438
|
return;
|
|
2185
2439
|
}
|
|
2186
|
-
var D =
|
|
2440
|
+
var D = g.split(a, p);
|
|
2187
2441
|
d(e.nativeToPseudo(D));
|
|
2188
2442
|
}, this.setAsyncFunctionPrototype(this.STRING, "split", i), i = function(a, p) {
|
|
2189
2443
|
var d = String(this);
|
|
2190
2444
|
if (a = e.isa(a, e.REGEXP) ? a.data : new RegExp(a), e.maybeThrowRegExp(a, p), e.REGEXP_MODE === 2) {
|
|
2191
2445
|
if (r.vm) {
|
|
2192
|
-
var
|
|
2446
|
+
var g = {
|
|
2193
2447
|
string: d,
|
|
2194
2448
|
regexp: a
|
|
2195
|
-
},
|
|
2449
|
+
}, N = "string.match(regexp)", I = e.vmCall(N, g, a, p);
|
|
2196
2450
|
I !== r.REGEXP_TIMEOUT && p(I && e.matchToPseudo_(I));
|
|
2197
2451
|
} else {
|
|
2198
|
-
var
|
|
2199
|
-
|
|
2452
|
+
var R = e.createWorker(), S = e.regExpTimeout(a, R, p);
|
|
2453
|
+
R.onmessage = function(D) {
|
|
2200
2454
|
clearTimeout(S), p(D.data && e.matchToPseudo_(D.data));
|
|
2201
|
-
},
|
|
2455
|
+
}, R.postMessage(["match", d, a]);
|
|
2202
2456
|
}
|
|
2203
2457
|
return;
|
|
2204
2458
|
}
|
|
@@ -2208,11 +2462,11 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2208
2462
|
var d = String(this);
|
|
2209
2463
|
if (e.isa(a, e.REGEXP) ? a = a.data : a = new RegExp(a), e.maybeThrowRegExp(a, p), e.REGEXP_MODE === 2) {
|
|
2210
2464
|
if (r.vm) {
|
|
2211
|
-
var
|
|
2465
|
+
var g = {
|
|
2212
2466
|
string: d,
|
|
2213
2467
|
regexp: a
|
|
2214
|
-
},
|
|
2215
|
-
|
|
2468
|
+
}, N = "string.search(regexp)", R = e.vmCall(N, g, a, p);
|
|
2469
|
+
R !== r.REGEXP_TIMEOUT && p(R);
|
|
2216
2470
|
} else {
|
|
2217
2471
|
var S = e.createWorker(), I = e.regExpTimeout(a, S, p);
|
|
2218
2472
|
S.onmessage = function(D) {
|
|
@@ -2223,14 +2477,14 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2223
2477
|
}
|
|
2224
2478
|
p(d.search(a));
|
|
2225
2479
|
}, this.setAsyncFunctionPrototype(this.STRING, "search", i), i = function(a, p, d) {
|
|
2226
|
-
var
|
|
2480
|
+
var g = String(this);
|
|
2227
2481
|
if (p = String(p), e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, d), e.REGEXP_MODE === 2)) {
|
|
2228
2482
|
if (r.vm) {
|
|
2229
|
-
var
|
|
2230
|
-
string:
|
|
2483
|
+
var N = {
|
|
2484
|
+
string: g,
|
|
2231
2485
|
substr: a,
|
|
2232
2486
|
newSubstr: p
|
|
2233
|
-
},
|
|
2487
|
+
}, R = "string.replace(substr, newSubstr)", S = e.vmCall(R, N, a, d);
|
|
2234
2488
|
S !== r.REGEXP_TIMEOUT && d(S);
|
|
2235
2489
|
} else {
|
|
2236
2490
|
var I = e.createWorker(), D = e.regExpTimeout(
|
|
@@ -2238,13 +2492,13 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2238
2492
|
I,
|
|
2239
2493
|
d
|
|
2240
2494
|
);
|
|
2241
|
-
I.onmessage = function(
|
|
2242
|
-
clearTimeout(D), d(
|
|
2243
|
-
}, I.postMessage(["replace",
|
|
2495
|
+
I.onmessage = function(W) {
|
|
2496
|
+
clearTimeout(D), d(W.data);
|
|
2497
|
+
}, I.postMessage(["replace", g, a, p]);
|
|
2244
2498
|
}
|
|
2245
2499
|
return;
|
|
2246
2500
|
}
|
|
2247
|
-
d(
|
|
2501
|
+
d(g.replace(a, p));
|
|
2248
2502
|
}, this.setAsyncFunctionPrototype(this.STRING, "replace", i), this.polyfills_.push(
|
|
2249
2503
|
/* POLYFILL START */
|
|
2250
2504
|
"(function() {",
|
|
@@ -2286,8 +2540,8 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2286
2540
|
);
|
|
2287
2541
|
}, r.prototype.initBoolean = function(t) {
|
|
2288
2542
|
var e = this, i;
|
|
2289
|
-
i = function(
|
|
2290
|
-
return
|
|
2543
|
+
i = function(s) {
|
|
2544
|
+
return s = r.nativeGlobal.Boolean(s), e.calledWithNew() ? (this.data = s, this) : s;
|
|
2291
2545
|
}, this.BOOLEAN = this.createNativeFunction(i, !0), this.setProperty(
|
|
2292
2546
|
t,
|
|
2293
2547
|
"Boolean",
|
|
@@ -2310,11 +2564,11 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2310
2564
|
"NaN",
|
|
2311
2565
|
"NEGATIVE_INFINITY",
|
|
2312
2566
|
"POSITIVE_INFINITY"
|
|
2313
|
-
],
|
|
2567
|
+
], s = 0; s < o.length; s++)
|
|
2314
2568
|
this.setProperty(
|
|
2315
2569
|
this.NUMBER,
|
|
2316
|
-
o[
|
|
2317
|
-
Number[o[
|
|
2570
|
+
o[s],
|
|
2571
|
+
Number[o[s]],
|
|
2318
2572
|
r.NONCONFIGURABLE_READONLY_NONENUMERABLE_DESCRIPTOR
|
|
2319
2573
|
);
|
|
2320
2574
|
i = function(a) {
|
|
@@ -2432,7 +2686,7 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2432
2686
|
"toLocaleTimeString",
|
|
2433
2687
|
"toTimeString",
|
|
2434
2688
|
"toUTCString"
|
|
2435
|
-
],
|
|
2689
|
+
], s = 0; s < o.length; s++)
|
|
2436
2690
|
i = /* @__PURE__ */ function(c) {
|
|
2437
2691
|
return function(a) {
|
|
2438
2692
|
var p = this.data;
|
|
@@ -2440,11 +2694,11 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2440
2694
|
e.TYPE_ERROR,
|
|
2441
2695
|
c + " not called on a Date"
|
|
2442
2696
|
);
|
|
2443
|
-
for (var d = [],
|
|
2444
|
-
d[
|
|
2697
|
+
for (var d = [], g = 0; g < arguments.length; g++)
|
|
2698
|
+
d[g] = e.pseudoToNative(arguments[g]);
|
|
2445
2699
|
return p[c].apply(p, d);
|
|
2446
2700
|
};
|
|
2447
|
-
}(o[
|
|
2701
|
+
}(o[s]), this.setNativeFunctionPrototype(this.DATE, o[s], i);
|
|
2448
2702
|
i = function() {
|
|
2449
2703
|
try {
|
|
2450
2704
|
return this.data.toISOString();
|
|
@@ -2457,20 +2711,20 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2457
2711
|
}, this.setNativeFunctionPrototype(this.DATE, "toISOString", i);
|
|
2458
2712
|
}, r.prototype.initRegExp = function(t) {
|
|
2459
2713
|
var e = this, i;
|
|
2460
|
-
i = function(
|
|
2714
|
+
i = function(s, c) {
|
|
2461
2715
|
if (e.calledWithNew())
|
|
2462
2716
|
var a = this;
|
|
2463
2717
|
else {
|
|
2464
|
-
if (c === void 0 && e.isa(
|
|
2465
|
-
return
|
|
2718
|
+
if (c === void 0 && e.isa(s, e.REGEXP))
|
|
2719
|
+
return s;
|
|
2466
2720
|
var a = e.createObjectProto(e.REGEXP_PROTO);
|
|
2467
2721
|
}
|
|
2468
|
-
|
|
2722
|
+
s = s === void 0 ? "" : String(s), c = c ? String(c) : "", /^[gmi]*$/.test(c) || e.throwException(
|
|
2469
2723
|
e.SYNTAX_ERROR,
|
|
2470
2724
|
"Invalid regexp flag: " + c
|
|
2471
2725
|
);
|
|
2472
2726
|
try {
|
|
2473
|
-
var p = new r.nativeGlobal.RegExp(
|
|
2727
|
+
var p = new r.nativeGlobal.RegExp(s, c);
|
|
2474
2728
|
} catch (d) {
|
|
2475
2729
|
e.throwException(e.SYNTAX_ERROR, d.message);
|
|
2476
2730
|
}
|
|
@@ -2509,24 +2763,24 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2509
2763
|
"}",
|
|
2510
2764
|
"});"
|
|
2511
2765
|
/* POLYFILL END */
|
|
2512
|
-
), i = function(
|
|
2766
|
+
), i = function(s, c) {
|
|
2513
2767
|
var a = this.data;
|
|
2514
|
-
if (
|
|
2768
|
+
if (s = String(s), a.lastIndex = Number(e.getProperty(this, "lastIndex")), e.maybeThrowRegExp(a, c), e.REGEXP_MODE === 2) {
|
|
2515
2769
|
if (r.vm) {
|
|
2516
2770
|
var p = {
|
|
2517
|
-
string:
|
|
2771
|
+
string: s,
|
|
2518
2772
|
regexp: a
|
|
2519
2773
|
}, d = "regexp.exec(string)", S = e.vmCall(d, p, a, c);
|
|
2520
2774
|
S !== r.REGEXP_TIMEOUT && (e.setProperty(this, "lastIndex", a.lastIndex), c(e.matchToPseudo_(S)));
|
|
2521
2775
|
} else {
|
|
2522
|
-
var
|
|
2523
|
-
|
|
2524
|
-
clearTimeout(
|
|
2525
|
-
},
|
|
2776
|
+
var g = e.createWorker(), N = e.regExpTimeout(a, g, c), R = this;
|
|
2777
|
+
g.onmessage = function(I) {
|
|
2778
|
+
clearTimeout(N), e.setProperty(R, "lastIndex", I.data[1]), c(e.matchToPseudo_(I.data[0]));
|
|
2779
|
+
}, g.postMessage(["exec", a, a.lastIndex, s]);
|
|
2526
2780
|
}
|
|
2527
2781
|
return;
|
|
2528
2782
|
}
|
|
2529
|
-
var S = a.exec(
|
|
2783
|
+
var S = a.exec(s);
|
|
2530
2784
|
e.setProperty(this, "lastIndex", a.lastIndex), c(e.matchToPseudo_(S));
|
|
2531
2785
|
}, this.setAsyncFunctionPrototype(this.REGEXP, "exec", i);
|
|
2532
2786
|
}, r.prototype.matchToPseudo_ = function(t) {
|
|
@@ -2543,12 +2797,12 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2543
2797
|
return null;
|
|
2544
2798
|
}, r.prototype.initError = function(t) {
|
|
2545
2799
|
var e = this;
|
|
2546
|
-
this.ERROR = this.createNativeFunction(function(
|
|
2800
|
+
this.ERROR = this.createNativeFunction(function(s) {
|
|
2547
2801
|
if (e.calledWithNew())
|
|
2548
2802
|
var c = this;
|
|
2549
2803
|
else
|
|
2550
2804
|
var c = e.createObject(e.ERROR);
|
|
2551
|
-
return e.populateError(c,
|
|
2805
|
+
return e.populateError(c, s), c;
|
|
2552
2806
|
}, !0), this.setProperty(
|
|
2553
2807
|
t,
|
|
2554
2808
|
"Error",
|
|
@@ -2566,32 +2820,32 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2566
2820
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2567
2821
|
);
|
|
2568
2822
|
var i = function(o) {
|
|
2569
|
-
var
|
|
2823
|
+
var s = e.createNativeFunction(
|
|
2570
2824
|
function(c) {
|
|
2571
2825
|
if (e.calledWithNew())
|
|
2572
2826
|
var a = this;
|
|
2573
2827
|
else
|
|
2574
|
-
var a = e.createObject(
|
|
2828
|
+
var a = e.createObject(s);
|
|
2575
2829
|
return e.populateError(a, c), a;
|
|
2576
2830
|
},
|
|
2577
2831
|
!0
|
|
2578
2832
|
);
|
|
2579
2833
|
return e.setProperty(
|
|
2580
|
-
|
|
2834
|
+
s,
|
|
2581
2835
|
"prototype",
|
|
2582
2836
|
e.createObject(e.ERROR),
|
|
2583
2837
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2584
2838
|
), e.setProperty(
|
|
2585
|
-
|
|
2839
|
+
s.properties.prototype,
|
|
2586
2840
|
"name",
|
|
2587
2841
|
o,
|
|
2588
2842
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2589
2843
|
), e.setProperty(
|
|
2590
2844
|
t,
|
|
2591
2845
|
o,
|
|
2592
|
-
|
|
2846
|
+
s,
|
|
2593
2847
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2594
|
-
),
|
|
2848
|
+
), s;
|
|
2595
2849
|
};
|
|
2596
2850
|
this.EVAL_ERROR = i("EvalError"), this.RANGE_ERROR = i("RangeError"), this.REFERENCE_ERROR = i("ReferenceError"), this.SYNTAX_ERROR = i("SyntaxError"), this.TYPE_ERROR = i("TypeError"), this.URI_ERROR = i("URIError");
|
|
2597
2851
|
}, r.prototype.initMath = function(t) {
|
|
@@ -2618,7 +2872,7 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2618
2872
|
Math[i[o]],
|
|
2619
2873
|
r.READONLY_NONENUMERABLE_DESCRIPTOR
|
|
2620
2874
|
);
|
|
2621
|
-
for (var
|
|
2875
|
+
for (var s = [
|
|
2622
2876
|
"abs",
|
|
2623
2877
|
"acos",
|
|
2624
2878
|
"asin",
|
|
@@ -2637,11 +2891,11 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2637
2891
|
"sin",
|
|
2638
2892
|
"sqrt",
|
|
2639
2893
|
"tan"
|
|
2640
|
-
], o = 0; o <
|
|
2894
|
+
], o = 0; o < s.length; o++)
|
|
2641
2895
|
this.setProperty(
|
|
2642
2896
|
e,
|
|
2643
|
-
|
|
2644
|
-
this.createNativeFunction(Math[
|
|
2897
|
+
s[o],
|
|
2898
|
+
this.createNativeFunction(Math[s[o]], !1),
|
|
2645
2899
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2646
2900
|
);
|
|
2647
2901
|
}, r.prototype.initJSON = function(t) {
|
|
@@ -2662,16 +2916,16 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2662
2916
|
a && a.class === "Function" ? i.throwException(
|
|
2663
2917
|
i.TYPE_ERROR,
|
|
2664
2918
|
"Function replacer on JSON.stringify not supported"
|
|
2665
|
-
) : a && a.class === "Array" ? (a = i.pseudoToNative(a), a = a.filter(function(
|
|
2666
|
-
return typeof
|
|
2919
|
+
) : a && a.class === "Array" ? (a = i.pseudoToNative(a), a = a.filter(function(N) {
|
|
2920
|
+
return typeof N == "string" || typeof N == "number";
|
|
2667
2921
|
})) : a = null, typeof p != "string" && typeof p != "number" && (p = void 0);
|
|
2668
2922
|
var d = i.pseudoToNative(c);
|
|
2669
2923
|
try {
|
|
2670
|
-
var
|
|
2671
|
-
} catch (
|
|
2672
|
-
i.throwException(i.TYPE_ERROR,
|
|
2924
|
+
var g = JSON.stringify(d, a, p);
|
|
2925
|
+
} catch (N) {
|
|
2926
|
+
i.throwException(i.TYPE_ERROR, N.message);
|
|
2673
2927
|
}
|
|
2674
|
-
return
|
|
2928
|
+
return g;
|
|
2675
2929
|
}, this.setProperty(
|
|
2676
2930
|
o,
|
|
2677
2931
|
"stringify",
|
|
@@ -2724,24 +2978,24 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2724
2978
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2725
2979
|
);
|
|
2726
2980
|
for (var i = [], o = this.stateStack.length - 1; o >= 0; o--) {
|
|
2727
|
-
var
|
|
2981
|
+
var s = this.stateStack[o], c = s.node;
|
|
2728
2982
|
if (c.type === "CallExpression") {
|
|
2729
|
-
var a =
|
|
2983
|
+
var a = s.func_;
|
|
2730
2984
|
a && i.length && (i[i.length - 1].datumName = this.getProperty(a, "name"));
|
|
2731
2985
|
}
|
|
2732
2986
|
c.loc && (!i.length || c.type === "CallExpression") && i.push({ datumLoc: c.loc });
|
|
2733
2987
|
}
|
|
2734
|
-
for (var p = String(this.getProperty(t, "name")), d = String(this.getProperty(t, "message")),
|
|
2988
|
+
for (var p = String(this.getProperty(t, "name")), d = String(this.getProperty(t, "message")), g = p + ": " + d + `
|
|
2735
2989
|
`, o = 0; o < i.length; o++) {
|
|
2736
|
-
var
|
|
2737
|
-
|
|
2738
|
-
` :
|
|
2990
|
+
var N = i[o].datumLoc, R = i[o].datumName, S = N.source + ":" + N.start.line + ":" + N.start.column;
|
|
2991
|
+
R ? g += " at " + R + " (" + S + `)
|
|
2992
|
+
` : g += " at " + S + `
|
|
2739
2993
|
`;
|
|
2740
2994
|
}
|
|
2741
2995
|
this.setProperty(
|
|
2742
2996
|
t,
|
|
2743
2997
|
"stack",
|
|
2744
|
-
|
|
2998
|
+
g.trim(),
|
|
2745
2999
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2746
3000
|
);
|
|
2747
3001
|
}, r.prototype.createWorker = function() {
|
|
@@ -2752,9 +3006,9 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2752
3006
|
{ type: "application/javascript" }
|
|
2753
3007
|
), this.createWorker.blob_ = t), new Worker(URL.createObjectURL(t));
|
|
2754
3008
|
}, r.prototype.vmCall = function(t, e, i, o) {
|
|
2755
|
-
var
|
|
3009
|
+
var s = { timeout: this.REGEXP_THREAD_TIMEOUT };
|
|
2756
3010
|
try {
|
|
2757
|
-
return r.vm.runInNewContext(t, e,
|
|
3011
|
+
return r.vm.runInNewContext(t, e, s);
|
|
2758
3012
|
} catch {
|
|
2759
3013
|
o(null), this.throwException(this.ERROR, "RegExp Timeout: " + i);
|
|
2760
3014
|
}
|
|
@@ -2771,7 +3025,7 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2771
3025
|
i = !0;
|
|
2772
3026
|
else {
|
|
2773
3027
|
try {
|
|
2774
|
-
r.vm =
|
|
3028
|
+
r.vm = O(
|
|
2775
3029
|
/*! vm */
|
|
2776
3030
|
"vm"
|
|
2777
3031
|
);
|
|
@@ -2833,11 +3087,11 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2833
3087
|
}, r.prototype.createFunction = function(t, e, i) {
|
|
2834
3088
|
var o = this.createFunctionBase_(t.params.length, !0);
|
|
2835
3089
|
o.parentScope = e, o.node = t;
|
|
2836
|
-
var
|
|
3090
|
+
var s = t.id ? String(t.id.name) : i || "";
|
|
2837
3091
|
return this.setProperty(
|
|
2838
3092
|
o,
|
|
2839
3093
|
"name",
|
|
2840
|
-
|
|
3094
|
+
s,
|
|
2841
3095
|
r.READONLY_NONENUMERABLE_DESCRIPTOR
|
|
2842
3096
|
), o;
|
|
2843
3097
|
}, r.prototype.createNativeFunction = function(t, e) {
|
|
@@ -2868,8 +3122,8 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2868
3122
|
if (o !== -1)
|
|
2869
3123
|
return i.pseudo[o];
|
|
2870
3124
|
if (i.native.push(t), t instanceof RegExp) {
|
|
2871
|
-
var
|
|
2872
|
-
return this.populateRegExp(
|
|
3125
|
+
var s = this.createObjectProto(this.REGEXP_PROTO);
|
|
3126
|
+
return this.populateRegExp(s, t), i.pseudo.push(s), s;
|
|
2873
3127
|
}
|
|
2874
3128
|
if (t instanceof Date) {
|
|
2875
3129
|
var c = this.createObjectProto(this.DATE_PROTO);
|
|
@@ -2881,18 +3135,18 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2881
3135
|
return a.pseudoToNative(D);
|
|
2882
3136
|
}), I = t.apply(a, S);
|
|
2883
3137
|
return a.nativeToPseudo(I);
|
|
2884
|
-
}, d = Object.getOwnPropertyDescriptor(t, "prototype"),
|
|
2885
|
-
return i.pseudo.push(
|
|
3138
|
+
}, d = Object.getOwnPropertyDescriptor(t, "prototype"), g = this.createNativeFunction(p, !!d);
|
|
3139
|
+
return i.pseudo.push(g), g;
|
|
2886
3140
|
}
|
|
2887
|
-
var
|
|
2888
|
-
Array.isArray(t) ?
|
|
2889
|
-
for (var
|
|
3141
|
+
var N;
|
|
3142
|
+
Array.isArray(t) ? N = this.createArray() : N = this.createObjectProto(this.OBJECT_PROTO), i.pseudo.push(N);
|
|
3143
|
+
for (var R in t)
|
|
2890
3144
|
this.setProperty(
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
this.nativeToPseudo(t[
|
|
3145
|
+
N,
|
|
3146
|
+
R,
|
|
3147
|
+
this.nativeToPseudo(t[R], i)
|
|
2894
3148
|
);
|
|
2895
|
-
return
|
|
3149
|
+
return N;
|
|
2896
3150
|
}, r.prototype.pseudoToNative = function(t, e) {
|
|
2897
3151
|
if (t == null || t === !0 || t === !1 || typeof t == "string" || typeof t == "number")
|
|
2898
3152
|
return t;
|
|
@@ -2905,8 +3159,8 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2905
3159
|
if (o !== -1)
|
|
2906
3160
|
return i.native[o];
|
|
2907
3161
|
if (i.pseudo.push(t), this.isa(t, this.REGEXP)) {
|
|
2908
|
-
var
|
|
2909
|
-
return
|
|
3162
|
+
var s = new RegExp(t.data.source, t.data.flags);
|
|
3163
|
+
return s.lastIndex = t.data.lastIndex, i.native.push(s), s;
|
|
2910
3164
|
}
|
|
2911
3165
|
if (this.isa(t, this.DATE)) {
|
|
2912
3166
|
var c = new Date(t.data.valueOf());
|
|
@@ -2983,15 +3237,15 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2983
3237
|
), typeof t == "object" && !(t instanceof r.Object))
|
|
2984
3238
|
throw TypeError("Expecting native value or pseudo object");
|
|
2985
3239
|
o && ("get" in o || "set" in o) && ("value" in o || "writable" in o) && this.throwException(this.TYPE_ERROR, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
2986
|
-
var
|
|
3240
|
+
var s = !this.stateStack || this.getScope().strict;
|
|
2987
3241
|
if (!(t instanceof r.Object)) {
|
|
2988
|
-
|
|
3242
|
+
s && this.throwException(this.TYPE_ERROR, "Can't create property '" + e + "' on '" + t + "'");
|
|
2989
3243
|
return;
|
|
2990
3244
|
}
|
|
2991
3245
|
if (this.isa(t, this.STRING)) {
|
|
2992
3246
|
var c = r.legalArrayIndex(e);
|
|
2993
3247
|
if (e === "length" || !isNaN(c) && c < String(t).length) {
|
|
2994
|
-
|
|
3248
|
+
s && this.throwException(this.TYPE_ERROR, "Cannot assign to read only property '" + e + "' of String '" + t.data + "'");
|
|
2995
3249
|
return;
|
|
2996
3250
|
}
|
|
2997
3251
|
}
|
|
@@ -3009,7 +3263,7 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3009
3263
|
} else isNaN(p = r.legalArrayIndex(e)) || (t.properties.length = Math.max(a, p + 1));
|
|
3010
3264
|
}
|
|
3011
3265
|
if (t.preventExtensions && !(e in t.properties)) {
|
|
3012
|
-
|
|
3266
|
+
s && this.throwException(this.TYPE_ERROR, "Can't add property '" + e + "', object is not extensible");
|
|
3013
3267
|
return;
|
|
3014
3268
|
}
|
|
3015
3269
|
if (o) {
|
|
@@ -3024,20 +3278,20 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3024
3278
|
} else {
|
|
3025
3279
|
if (i === r.VALUE_IN_DESCRIPTOR)
|
|
3026
3280
|
throw ReferenceError("Value not specified");
|
|
3027
|
-
for (var
|
|
3028
|
-
if (
|
|
3029
|
-
|
|
3281
|
+
for (var g = t; !(e in g.properties); )
|
|
3282
|
+
if (g = this.getPrototype(g), !g) {
|
|
3283
|
+
g = t;
|
|
3030
3284
|
break;
|
|
3031
3285
|
}
|
|
3032
|
-
if (
|
|
3033
|
-
return this.setterStep_ = !0,
|
|
3034
|
-
if (
|
|
3035
|
-
|
|
3286
|
+
if (g.setter && g.setter[e])
|
|
3287
|
+
return this.setterStep_ = !0, g.setter[e];
|
|
3288
|
+
if (g.getter && g.getter[e])
|
|
3289
|
+
s && this.throwException(this.TYPE_ERROR, "Cannot set property '" + e + "' of object '" + t + "' which only has a getter");
|
|
3036
3290
|
else
|
|
3037
3291
|
try {
|
|
3038
3292
|
t.properties[e] = i;
|
|
3039
3293
|
} catch {
|
|
3040
|
-
|
|
3294
|
+
s && this.throwException(this.TYPE_ERROR, "Cannot assign to read only property '" + e + "' of object '" + t + "'");
|
|
3041
3295
|
}
|
|
3042
3296
|
}
|
|
3043
3297
|
}, r.prototype.setProperty.placeholderGet_ = function() {
|
|
@@ -3071,7 +3325,7 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3071
3325
|
var o = t.body && t.body[0];
|
|
3072
3326
|
o && o.expression && o.expression.type === "Literal" && o.expression.value === "use strict" && (i = !0);
|
|
3073
3327
|
}
|
|
3074
|
-
var
|
|
3328
|
+
var s = this.createObjectProto(null), c = new r.Scope(e, i, s);
|
|
3075
3329
|
return e || this.initGlobal(c.object), this.populateScope_(t, c), c;
|
|
3076
3330
|
}, r.prototype.createSpecialScope = function(t, e) {
|
|
3077
3331
|
if (!t)
|
|
@@ -3132,7 +3386,7 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3132
3386
|
case "TryStatement":
|
|
3133
3387
|
case "WithStatement":
|
|
3134
3388
|
case "WhileStatement":
|
|
3135
|
-
var
|
|
3389
|
+
var s = t.constructor;
|
|
3136
3390
|
for (var c in t)
|
|
3137
3391
|
if (c !== "loc") {
|
|
3138
3392
|
var a = t[c];
|
|
@@ -3140,12 +3394,12 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3140
3394
|
var p;
|
|
3141
3395
|
if (Array.isArray(a)) {
|
|
3142
3396
|
for (var o = 0; o < a.length; o++)
|
|
3143
|
-
if (a[o] && a[o].constructor ===
|
|
3397
|
+
if (a[o] && a[o].constructor === s) {
|
|
3144
3398
|
p = this.populateScope_(a[o], e);
|
|
3145
3399
|
for (var c in p)
|
|
3146
3400
|
i[c] = p[c];
|
|
3147
3401
|
}
|
|
3148
|
-
} else if (a.constructor ===
|
|
3402
|
+
} else if (a.constructor === s) {
|
|
3149
3403
|
p = this.populateScope_(a, e);
|
|
3150
3404
|
for (var c in p)
|
|
3151
3405
|
i[c] = p[c];
|
|
@@ -3188,15 +3442,15 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3188
3442
|
if (t === r.Completion.NORMAL)
|
|
3189
3443
|
throw TypeError("Should not unwind for NORMAL completions");
|
|
3190
3444
|
e: for (var o = this.stateStack; o.length > 0; o.pop()) {
|
|
3191
|
-
var
|
|
3192
|
-
switch (
|
|
3445
|
+
var s = o[o.length - 1];
|
|
3446
|
+
switch (s.node.type) {
|
|
3193
3447
|
case "TryStatement":
|
|
3194
|
-
|
|
3448
|
+
s.cv = { type: t, value: e, label: i };
|
|
3195
3449
|
return;
|
|
3196
3450
|
case "CallExpression":
|
|
3197
3451
|
case "NewExpression":
|
|
3198
3452
|
if (t === r.Completion.RETURN) {
|
|
3199
|
-
|
|
3453
|
+
s.value = e;
|
|
3200
3454
|
return;
|
|
3201
3455
|
} else if (t === r.Completion.BREAK || t === r.Completion.CONTINUE)
|
|
3202
3456
|
throw Error("Unsyntactic break/continue not rejected by Acorn");
|
|
@@ -3204,15 +3458,15 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3204
3458
|
case "Program":
|
|
3205
3459
|
if (t === r.Completion.RETURN)
|
|
3206
3460
|
return;
|
|
3207
|
-
|
|
3461
|
+
s.done = !0;
|
|
3208
3462
|
break e;
|
|
3209
3463
|
}
|
|
3210
3464
|
if (t === r.Completion.BREAK) {
|
|
3211
|
-
if (i ?
|
|
3465
|
+
if (i ? s.labels && s.labels.indexOf(i) !== -1 : s.isLoop || s.isSwitch) {
|
|
3212
3466
|
o.pop();
|
|
3213
3467
|
return;
|
|
3214
3468
|
}
|
|
3215
|
-
} else if (t === r.Completion.CONTINUE && (i ?
|
|
3469
|
+
} else if (t === r.Completion.CONTINUE && (i ? s.labels && s.labels.indexOf(i) !== -1 : s.isLoop))
|
|
3216
3470
|
return;
|
|
3217
3471
|
}
|
|
3218
3472
|
var c;
|
|
@@ -3224,8 +3478,8 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3224
3478
|
SyntaxError,
|
|
3225
3479
|
TypeError,
|
|
3226
3480
|
URIError
|
|
3227
|
-
}, p = String(this.getProperty(e, "name")), d = this.getProperty(e, "message").valueOf(),
|
|
3228
|
-
c =
|
|
3481
|
+
}, p = String(this.getProperty(e, "name")), d = this.getProperty(e, "message").valueOf(), g = a[p] || Error;
|
|
3482
|
+
c = g(d), c.stack = String(this.getProperty(e, "stack"));
|
|
3229
3483
|
} else
|
|
3230
3484
|
c = String(e);
|
|
3231
3485
|
throw this.value = c, c;
|
|
@@ -3261,18 +3515,18 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3261
3515
|
}
|
|
3262
3516
|
return "???";
|
|
3263
3517
|
}, r.prototype.createTask_ = function(t, e) {
|
|
3264
|
-
var i = this.stateStack[this.stateStack.length - 1], o = Array.from(e),
|
|
3265
|
-
if (
|
|
3266
|
-
d =
|
|
3518
|
+
var i = this.stateStack[this.stateStack.length - 1], o = Array.from(e), s = o.shift(), c = Math.max(Number(o.shift() || 0), 0), a = this.newNode(), p, d, g;
|
|
3519
|
+
if (s instanceof r.Object && s.class === "Function")
|
|
3520
|
+
d = s, a.type = "CallExpression", p = i.scope;
|
|
3267
3521
|
else {
|
|
3268
3522
|
try {
|
|
3269
|
-
|
|
3523
|
+
g = this.parse_(String(s), "taskCode" + this.taskCodeNumber_++);
|
|
3270
3524
|
} catch (D) {
|
|
3271
3525
|
this.throwException(this.SYNTAX_ERROR, "Invalid code: " + D.message);
|
|
3272
3526
|
}
|
|
3273
|
-
a.type = "EvalProgram_", a.body =
|
|
3274
|
-
var
|
|
3275
|
-
r.stripLocations_(a,
|
|
3527
|
+
a.type = "EvalProgram_", a.body = g.body;
|
|
3528
|
+
var N = i.node.arguments[0], R = N ? N.start : void 0, S = N ? N.end : void 0;
|
|
3529
|
+
r.stripLocations_(a, R, S), p = this.globalScope, o.length = 0;
|
|
3276
3530
|
}
|
|
3277
3531
|
var I = new r.Task(
|
|
3278
3532
|
d,
|
|
@@ -3305,19 +3559,19 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3305
3559
|
this.getterStep_ = !1;
|
|
3306
3560
|
var i = Array.isArray(e) ? e[0] : e, o = this.newNode();
|
|
3307
3561
|
o.type = "CallExpression";
|
|
3308
|
-
var
|
|
3562
|
+
var s = new r.State(
|
|
3309
3563
|
o,
|
|
3310
3564
|
this.stateStack[this.stateStack.length - 1].scope
|
|
3311
3565
|
);
|
|
3312
|
-
return
|
|
3566
|
+
return s.doneCallee_ = 2, s.funcThis_ = i, s.func_ = t, s.doneArgs_ = !0, s.arguments_ = [], s;
|
|
3313
3567
|
}, r.prototype.createSetter_ = function(t, e, i) {
|
|
3314
3568
|
if (!this.setterStep_)
|
|
3315
3569
|
throw Error("Unexpected call to createSetter");
|
|
3316
3570
|
this.setterStep_ = !1;
|
|
3317
|
-
var o = Array.isArray(e) ? e[0] : this.globalObject,
|
|
3318
|
-
|
|
3571
|
+
var o = Array.isArray(e) ? e[0] : this.globalObject, s = this.newNode();
|
|
3572
|
+
s.type = "CallExpression";
|
|
3319
3573
|
var c = new r.State(
|
|
3320
|
-
|
|
3574
|
+
s,
|
|
3321
3575
|
this.stateStack[this.stateStack.length - 1].scope
|
|
3322
3576
|
);
|
|
3323
3577
|
return c.doneCallee_ = 2, c.funcThis_ = o, c.func_ = t, c.doneArgs_ = !0, c.arguments_ = [i], c;
|
|
@@ -3354,9 +3608,9 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3354
3608
|
try {
|
|
3355
3609
|
var e = [], i = this.properties.length, o = !1;
|
|
3356
3610
|
i > 1024 && (i = 1e3, o = !0);
|
|
3357
|
-
for (var
|
|
3358
|
-
var c = this.properties[
|
|
3359
|
-
e[
|
|
3611
|
+
for (var s = 0; s < i; s++) {
|
|
3612
|
+
var c = this.properties[s];
|
|
3613
|
+
e[s] = c instanceof r.Object && t.indexOf(c) !== -1 ? "..." : c;
|
|
3360
3614
|
}
|
|
3361
3615
|
o && e.push("...");
|
|
3362
3616
|
} finally {
|
|
@@ -3396,14 +3650,14 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3396
3650
|
/** @type {(boolean|number|string)} */
|
|
3397
3651
|
this.data
|
|
3398
3652
|
) : this;
|
|
3399
|
-
}, r.Task = function(t, e, i, o,
|
|
3400
|
-
this.functionRef = t, this.argsArray = e, this.scope = i, this.node = o, this.interval =
|
|
3653
|
+
}, r.Task = function(t, e, i, o, s) {
|
|
3654
|
+
this.functionRef = t, this.argsArray = e, this.scope = i, this.node = o, this.interval = s, this.pid = ++r.Task.pid, this.time = 0;
|
|
3401
3655
|
}, r.Task.pid = 0, r.prototype.stepArrayExpression = function(t, e, i) {
|
|
3402
|
-
var o = i.elements,
|
|
3403
|
-
for (e.array_ ? (this.setProperty(e.array_,
|
|
3404
|
-
if (o[
|
|
3405
|
-
return e.n_ =
|
|
3406
|
-
|
|
3656
|
+
var o = i.elements, s = e.n_ || 0;
|
|
3657
|
+
for (e.array_ ? (this.setProperty(e.array_, s, e.value), s++) : (e.array_ = this.createArray(), e.array_.properties.length = o.length); s < o.length; ) {
|
|
3658
|
+
if (o[s])
|
|
3659
|
+
return e.n_ = s, new r.State(o[s], e.scope);
|
|
3660
|
+
s++;
|
|
3407
3661
|
}
|
|
3408
3662
|
t.pop(), t[t.length - 1].value = e.array_;
|
|
3409
3663
|
}, r.prototype.stepAssignmentExpression = function(t, e, i) {
|
|
@@ -3414,12 +3668,12 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3414
3668
|
}
|
|
3415
3669
|
if (!e.doneRight_) {
|
|
3416
3670
|
if (e.leftReference_ || (e.leftReference_ = e.value), e.doneGetter_ && (e.leftValue_ = e.value), !e.doneGetter_ && i.operator !== "=") {
|
|
3417
|
-
var
|
|
3418
|
-
if (e.leftValue_ =
|
|
3671
|
+
var s = this.getValue(e.leftReference_);
|
|
3672
|
+
if (e.leftValue_ = s, this.getterStep_) {
|
|
3419
3673
|
e.doneGetter_ = !0;
|
|
3420
3674
|
var c = (
|
|
3421
3675
|
/** @type {!Interpreter.Object} */
|
|
3422
|
-
|
|
3676
|
+
s
|
|
3423
3677
|
);
|
|
3424
3678
|
return this.createGetter_(c, e.leftReference_);
|
|
3425
3679
|
}
|
|
@@ -3481,85 +3735,85 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3481
3735
|
if (!e.doneRight_)
|
|
3482
3736
|
return e.doneRight_ = !0, e.leftValue_ = e.value, new r.State(i.right, e.scope);
|
|
3483
3737
|
t.pop();
|
|
3484
|
-
var o = e.leftValue_,
|
|
3738
|
+
var o = e.leftValue_, s = e.value, c;
|
|
3485
3739
|
switch (i.operator) {
|
|
3486
3740
|
case "==":
|
|
3487
|
-
c = o ==
|
|
3741
|
+
c = o == s;
|
|
3488
3742
|
break;
|
|
3489
3743
|
case "!=":
|
|
3490
|
-
c = o !=
|
|
3744
|
+
c = o != s;
|
|
3491
3745
|
break;
|
|
3492
3746
|
case "===":
|
|
3493
|
-
c = o ===
|
|
3747
|
+
c = o === s;
|
|
3494
3748
|
break;
|
|
3495
3749
|
case "!==":
|
|
3496
|
-
c = o !==
|
|
3750
|
+
c = o !== s;
|
|
3497
3751
|
break;
|
|
3498
3752
|
case ">":
|
|
3499
|
-
c = o >
|
|
3753
|
+
c = o > s;
|
|
3500
3754
|
break;
|
|
3501
3755
|
case ">=":
|
|
3502
|
-
c = o >=
|
|
3756
|
+
c = o >= s;
|
|
3503
3757
|
break;
|
|
3504
3758
|
case "<":
|
|
3505
|
-
c = o <
|
|
3759
|
+
c = o < s;
|
|
3506
3760
|
break;
|
|
3507
3761
|
case "<=":
|
|
3508
|
-
c = o <=
|
|
3762
|
+
c = o <= s;
|
|
3509
3763
|
break;
|
|
3510
3764
|
case "+":
|
|
3511
|
-
c = o +
|
|
3765
|
+
c = o + s;
|
|
3512
3766
|
break;
|
|
3513
3767
|
case "-":
|
|
3514
|
-
c = o -
|
|
3768
|
+
c = o - s;
|
|
3515
3769
|
break;
|
|
3516
3770
|
case "*":
|
|
3517
|
-
c = o *
|
|
3771
|
+
c = o * s;
|
|
3518
3772
|
break;
|
|
3519
3773
|
case "/":
|
|
3520
|
-
c = o /
|
|
3774
|
+
c = o / s;
|
|
3521
3775
|
break;
|
|
3522
3776
|
case "%":
|
|
3523
|
-
c = o %
|
|
3777
|
+
c = o % s;
|
|
3524
3778
|
break;
|
|
3525
3779
|
case "&":
|
|
3526
|
-
c = o &
|
|
3780
|
+
c = o & s;
|
|
3527
3781
|
break;
|
|
3528
3782
|
case "|":
|
|
3529
|
-
c = o |
|
|
3783
|
+
c = o | s;
|
|
3530
3784
|
break;
|
|
3531
3785
|
case "^":
|
|
3532
|
-
c = o ^
|
|
3786
|
+
c = o ^ s;
|
|
3533
3787
|
break;
|
|
3534
3788
|
case "<<":
|
|
3535
|
-
c = o <<
|
|
3789
|
+
c = o << s;
|
|
3536
3790
|
break;
|
|
3537
3791
|
case ">>":
|
|
3538
|
-
c = o >>
|
|
3792
|
+
c = o >> s;
|
|
3539
3793
|
break;
|
|
3540
3794
|
case ">>>":
|
|
3541
|
-
c = o >>>
|
|
3795
|
+
c = o >>> s;
|
|
3542
3796
|
break;
|
|
3543
3797
|
case "in":
|
|
3544
|
-
|
|
3798
|
+
s instanceof r.Object || this.throwException(
|
|
3545
3799
|
this.TYPE_ERROR,
|
|
3546
|
-
"'in' expects an object, not '" +
|
|
3547
|
-
), c = this.hasProperty(
|
|
3800
|
+
"'in' expects an object, not '" + s + "'"
|
|
3801
|
+
), c = this.hasProperty(s, o);
|
|
3548
3802
|
break;
|
|
3549
3803
|
case "instanceof":
|
|
3550
|
-
this.isa(
|
|
3804
|
+
this.isa(s, this.FUNCTION) || this.throwException(
|
|
3551
3805
|
this.TYPE_ERROR,
|
|
3552
|
-
"'instanceof' expects an object, not '" +
|
|
3553
|
-
), c = o instanceof r.Object ? this.isa(o,
|
|
3806
|
+
"'instanceof' expects an object, not '" + s + "'"
|
|
3807
|
+
), c = o instanceof r.Object ? this.isa(o, s) : !1;
|
|
3554
3808
|
break;
|
|
3555
3809
|
default:
|
|
3556
3810
|
throw SyntaxError("Unknown binary operator: " + i.operator);
|
|
3557
3811
|
}
|
|
3558
3812
|
t[t.length - 1].value = c;
|
|
3559
3813
|
}, r.prototype.stepBlockStatement = function(t, e, i) {
|
|
3560
|
-
var o = e.n_ || 0,
|
|
3561
|
-
if (
|
|
3562
|
-
return e.n_ = o + 1, new r.State(
|
|
3814
|
+
var o = e.n_ || 0, s = i.body[o];
|
|
3815
|
+
if (s)
|
|
3816
|
+
return e.n_ = o + 1, new r.State(s, e.scope);
|
|
3563
3817
|
t.pop();
|
|
3564
3818
|
}, r.prototype.stepBreakStatement = function(t, e, i) {
|
|
3565
3819
|
var o = i.label && i.label.name;
|
|
@@ -3572,30 +3826,30 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3572
3826
|
}
|
|
3573
3827
|
if (e.doneCallee_ === 1) {
|
|
3574
3828
|
e.doneCallee_ = 2;
|
|
3575
|
-
var
|
|
3576
|
-
if (Array.isArray(
|
|
3577
|
-
if (e.func_ = this.getValue(
|
|
3829
|
+
var s = e.value;
|
|
3830
|
+
if (Array.isArray(s)) {
|
|
3831
|
+
if (e.func_ = this.getValue(s), s[0] === r.SCOPE_REFERENCE ? e.directEval_ = s[1] === "eval" : e.funcThis_ = s[0], s = e.func_, this.getterStep_)
|
|
3578
3832
|
return e.doneCallee_ = 1, this.createGetter_(
|
|
3579
3833
|
/** @type {!Interpreter.Object} */
|
|
3580
|
-
|
|
3834
|
+
s,
|
|
3581
3835
|
e.value
|
|
3582
3836
|
);
|
|
3583
3837
|
} else
|
|
3584
|
-
e.func_ =
|
|
3838
|
+
e.func_ = s;
|
|
3585
3839
|
e.arguments_ = [], e.n_ = 0;
|
|
3586
3840
|
}
|
|
3587
|
-
var
|
|
3841
|
+
var s = e.func_;
|
|
3588
3842
|
if (!e.doneArgs_) {
|
|
3589
3843
|
if (e.n_ !== 0 && e.arguments_.push(e.value), i.arguments[e.n_])
|
|
3590
3844
|
return new r.State(i.arguments[e.n_++], e.scope);
|
|
3591
3845
|
if (i.type === "NewExpression") {
|
|
3592
|
-
if ((!(
|
|
3846
|
+
if ((!(s instanceof r.Object) || s.illegalConstructor) && this.throwException(
|
|
3593
3847
|
this.TYPE_ERROR,
|
|
3594
3848
|
this.nodeSummary(i.callee) + " is not a constructor"
|
|
3595
|
-
),
|
|
3849
|
+
), s === this.ARRAY)
|
|
3596
3850
|
e.funcThis_ = this.createArray();
|
|
3597
3851
|
else {
|
|
3598
|
-
var c =
|
|
3852
|
+
var c = s.properties.prototype;
|
|
3599
3853
|
(typeof c != "object" || c === null) && (c = this.OBJECT_PROTO), e.funcThis_ = this.createObjectProto(c);
|
|
3600
3854
|
}
|
|
3601
3855
|
e.isConstructor = !0;
|
|
@@ -3605,18 +3859,18 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3605
3859
|
if (e.doneExec_)
|
|
3606
3860
|
t.pop(), e.isConstructor && typeof e.value != "object" ? t[t.length - 1].value = e.funcThis_ : t[t.length - 1].value = e.value;
|
|
3607
3861
|
else {
|
|
3608
|
-
e.doneExec_ = !0,
|
|
3862
|
+
e.doneExec_ = !0, s instanceof r.Object || this.throwException(
|
|
3609
3863
|
this.TYPE_ERROR,
|
|
3610
3864
|
this.nodeSummary(i.callee) + " is not a function"
|
|
3611
3865
|
);
|
|
3612
|
-
var a =
|
|
3866
|
+
var a = s.node;
|
|
3613
3867
|
if (a) {
|
|
3614
|
-
for (var p = this.createScope(a.body,
|
|
3615
|
-
this.setProperty(d,
|
|
3868
|
+
for (var p = this.createScope(a.body, s.parentScope), d = this.createArray(), g = 0; g < e.arguments_.length; g++)
|
|
3869
|
+
this.setProperty(d, g, e.arguments_[g]);
|
|
3616
3870
|
this.setProperty(p.object, "arguments", d);
|
|
3617
|
-
for (var
|
|
3618
|
-
var
|
|
3619
|
-
this.setProperty(p.object,
|
|
3871
|
+
for (var g = 0; g < a.params.length; g++) {
|
|
3872
|
+
var N = a.params[g].name, R = e.arguments_.length > g ? e.arguments_[g] : void 0;
|
|
3873
|
+
this.setProperty(p.object, N, R);
|
|
3620
3874
|
}
|
|
3621
3875
|
return p.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), this.setProperty(
|
|
3622
3876
|
p.object,
|
|
@@ -3624,7 +3878,7 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3624
3878
|
e.funcThis_,
|
|
3625
3879
|
r.READONLY_DESCRIPTOR
|
|
3626
3880
|
), e.value = void 0, new r.State(a.body, p);
|
|
3627
|
-
} else if (
|
|
3881
|
+
} else if (s.eval) {
|
|
3628
3882
|
var S = e.arguments_[0];
|
|
3629
3883
|
if (typeof S != "string")
|
|
3630
3884
|
e.value = S;
|
|
@@ -3634,23 +3888,23 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3634
3888
|
String(S),
|
|
3635
3889
|
"eval" + this.evalCodeNumber_++
|
|
3636
3890
|
);
|
|
3637
|
-
} catch (
|
|
3638
|
-
this.throwException(this.SYNTAX_ERROR, "Invalid code: " +
|
|
3891
|
+
} catch (B) {
|
|
3892
|
+
this.throwException(this.SYNTAX_ERROR, "Invalid code: " + B.message);
|
|
3639
3893
|
}
|
|
3640
3894
|
var D = this.newNode();
|
|
3641
3895
|
D.type = "EvalProgram_", D.body = I.body, r.stripLocations_(D, i.start, i.end);
|
|
3642
3896
|
var p = e.directEval_ ? e.scope : this.globalScope;
|
|
3643
3897
|
return p.strict ? p = this.createScope(I, p) : this.populateScope_(I, p), this.value = void 0, new r.State(D, p);
|
|
3644
3898
|
}
|
|
3645
|
-
} else if (
|
|
3646
|
-
e.scope.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), e.value =
|
|
3647
|
-
else if (
|
|
3648
|
-
var
|
|
3649
|
-
e.value = se,
|
|
3650
|
-
},
|
|
3651
|
-
new Array(
|
|
3652
|
-
).slice(0,
|
|
3653
|
-
ve.push(
|
|
3899
|
+
} else if (s.nativeFunc)
|
|
3900
|
+
e.scope.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), e.value = s.nativeFunc.apply(e.funcThis_, e.arguments_);
|
|
3901
|
+
else if (s.asyncFunc) {
|
|
3902
|
+
var W = this, we = function(se) {
|
|
3903
|
+
e.value = se, W.paused_ = !1;
|
|
3904
|
+
}, J = s.asyncFunc.length - 1, ve = e.arguments_.concat(
|
|
3905
|
+
new Array(J)
|
|
3906
|
+
).slice(0, J);
|
|
3907
|
+
ve.push(we), this.paused_ = !0, e.scope.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), s.asyncFunc.apply(e.funcThis_, ve);
|
|
3654
3908
|
return;
|
|
3655
3909
|
} else
|
|
3656
3910
|
this.throwException(
|
|
@@ -3664,10 +3918,10 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3664
3918
|
return e.mode_ = 1, new r.State(i.test, e.scope);
|
|
3665
3919
|
if (o === 1) {
|
|
3666
3920
|
e.mode_ = 2;
|
|
3667
|
-
var
|
|
3668
|
-
if (
|
|
3921
|
+
var s = !!e.value;
|
|
3922
|
+
if (s && i.consequent)
|
|
3669
3923
|
return new r.State(i.consequent, e.scope);
|
|
3670
|
-
if (!
|
|
3924
|
+
if (!s && i.alternate)
|
|
3671
3925
|
return new r.State(i.alternate, e.scope);
|
|
3672
3926
|
this.value = void 0;
|
|
3673
3927
|
}
|
|
@@ -3687,9 +3941,9 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3687
3941
|
}, r.prototype.stepEmptyStatement = function(t, e, i) {
|
|
3688
3942
|
t.pop();
|
|
3689
3943
|
}, r.prototype.stepEvalProgram_ = function(t, e, i) {
|
|
3690
|
-
var o = e.n_ || 0,
|
|
3691
|
-
if (
|
|
3692
|
-
return e.n_ = o + 1, new r.State(
|
|
3944
|
+
var o = e.n_ || 0, s = i.body[o];
|
|
3945
|
+
if (s)
|
|
3946
|
+
return e.n_ = o + 1, new r.State(s, e.scope);
|
|
3693
3947
|
t.pop(), t[t.length - 1].value = this.value;
|
|
3694
3948
|
}, r.prototype.stepExpressionStatement = function(t, e, i) {
|
|
3695
3949
|
if (!e.done_)
|
|
@@ -3741,12 +3995,12 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3741
3995
|
}
|
|
3742
3996
|
if (!e.doneVariable_) {
|
|
3743
3997
|
e.doneVariable_ = !0;
|
|
3744
|
-
var
|
|
3745
|
-
if (
|
|
3746
|
-
e.variable_ = [r.SCOPE_REFERENCE,
|
|
3998
|
+
var s = i.left;
|
|
3999
|
+
if (s.type === "VariableDeclaration")
|
|
4000
|
+
e.variable_ = [r.SCOPE_REFERENCE, s.declarations[0].id.name];
|
|
3747
4001
|
else {
|
|
3748
4002
|
e.variable_ = null;
|
|
3749
|
-
var c = new r.State(
|
|
4003
|
+
var c = new r.State(s, e.scope);
|
|
3750
4004
|
return c.components = !0, c;
|
|
3751
4005
|
}
|
|
3752
4006
|
}
|
|
@@ -3797,25 +4051,25 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3797
4051
|
}
|
|
3798
4052
|
var o = this.getValueFromScope(i.name);
|
|
3799
4053
|
if (this.getterStep_) {
|
|
3800
|
-
var
|
|
4054
|
+
var s = (
|
|
3801
4055
|
/** @type {!Interpreter.Object} */
|
|
3802
4056
|
o
|
|
3803
4057
|
);
|
|
3804
|
-
return this.createGetter_(
|
|
4058
|
+
return this.createGetter_(s, this.globalObject);
|
|
3805
4059
|
}
|
|
3806
4060
|
t[t.length - 1].value = o;
|
|
3807
4061
|
}, r.prototype.stepIfStatement = r.prototype.stepConditionalExpression, r.prototype.stepLabeledStatement = function(t, e, i) {
|
|
3808
4062
|
t.pop();
|
|
3809
4063
|
var o = e.labels || [];
|
|
3810
4064
|
o.push(i.label.name);
|
|
3811
|
-
var
|
|
3812
|
-
return
|
|
4065
|
+
var s = new r.State(i.body, e.scope);
|
|
4066
|
+
return s.labels = o, s;
|
|
3813
4067
|
}, r.prototype.stepLiteral = function(t, e, i) {
|
|
3814
4068
|
t.pop();
|
|
3815
4069
|
var o = i.value;
|
|
3816
4070
|
if (o instanceof RegExp) {
|
|
3817
|
-
var
|
|
3818
|
-
this.populateRegExp(
|
|
4071
|
+
var s = this.createObjectProto(this.REGEXP_PROTO);
|
|
4072
|
+
this.populateRegExp(s, o), o = s;
|
|
3819
4073
|
}
|
|
3820
4074
|
t[t.length - 1].value = o;
|
|
3821
4075
|
}, r.prototype.stepLogicalExpression = function(t, e, i) {
|
|
@@ -3842,33 +4096,33 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3842
4096
|
if (t.pop(), e.components)
|
|
3843
4097
|
t[t.length - 1].value = [e.object_, o];
|
|
3844
4098
|
else {
|
|
3845
|
-
var
|
|
4099
|
+
var s = this.getProperty(e.object_, o);
|
|
3846
4100
|
if (this.getterStep_) {
|
|
3847
4101
|
var c = (
|
|
3848
4102
|
/** @type {!Interpreter.Object} */
|
|
3849
|
-
|
|
4103
|
+
s
|
|
3850
4104
|
);
|
|
3851
4105
|
return this.createGetter_(c, e.object_);
|
|
3852
4106
|
}
|
|
3853
|
-
t[t.length - 1].value =
|
|
4107
|
+
t[t.length - 1].value = s;
|
|
3854
4108
|
}
|
|
3855
4109
|
}, r.prototype.stepNewExpression = r.prototype.stepCallExpression, r.prototype.stepObjectExpression = function(t, e, i) {
|
|
3856
|
-
var o = e.n_ || 0,
|
|
4110
|
+
var o = e.n_ || 0, s = i.properties[o];
|
|
3857
4111
|
if (!e.object_)
|
|
3858
4112
|
e.object_ = this.createObjectProto(this.OBJECT_PROTO), e.properties_ = /* @__PURE__ */ Object.create(null);
|
|
3859
4113
|
else {
|
|
3860
4114
|
var c = e.destinationName;
|
|
3861
|
-
e.properties_[c] || (e.properties_[c] = {}), e.properties_[c][
|
|
4115
|
+
e.properties_[c] || (e.properties_[c] = {}), e.properties_[c][s.kind] = e.value, e.n_ = ++o, s = i.properties[o];
|
|
3862
4116
|
}
|
|
3863
|
-
if (
|
|
3864
|
-
var a =
|
|
4117
|
+
if (s) {
|
|
4118
|
+
var a = s.key;
|
|
3865
4119
|
if (a.type === "Identifier")
|
|
3866
4120
|
var c = a.name;
|
|
3867
4121
|
else if (a.type === "Literal")
|
|
3868
4122
|
var c = a.value;
|
|
3869
4123
|
else
|
|
3870
4124
|
throw SyntaxError("Unknown object structure: " + a.type);
|
|
3871
|
-
return e.destinationName = c, new r.State(
|
|
4125
|
+
return e.destinationName = c, new r.State(s.value, e.scope);
|
|
3872
4126
|
}
|
|
3873
4127
|
for (var a in e.properties_) {
|
|
3874
4128
|
var p = e.properties_[a];
|
|
@@ -3899,31 +4153,31 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3899
4153
|
return e.done_ = !0, new r.State(i.argument, e.scope);
|
|
3900
4154
|
this.unwind(r.Completion.RETURN, e.value, void 0);
|
|
3901
4155
|
}, r.prototype.stepSequenceExpression = function(t, e, i) {
|
|
3902
|
-
var o = e.n_ || 0,
|
|
3903
|
-
if (
|
|
3904
|
-
return e.n_ = o + 1, new r.State(
|
|
4156
|
+
var o = e.n_ || 0, s = i.expressions[o];
|
|
4157
|
+
if (s)
|
|
4158
|
+
return e.n_ = o + 1, new r.State(s, e.scope);
|
|
3905
4159
|
t.pop(), t[t.length - 1].value = e.value;
|
|
3906
4160
|
}, r.prototype.stepSwitchStatement = function(t, e, i) {
|
|
3907
4161
|
if (!e.test_)
|
|
3908
4162
|
return e.test_ = 1, new r.State(i.discriminant, e.scope);
|
|
3909
4163
|
for (e.test_ === 1 && (e.test_ = 2, e.switchValue_ = e.value, e.defaultCase_ = -1); ; ) {
|
|
3910
|
-
var o = e.index_ || 0,
|
|
3911
|
-
if (!e.matched_ &&
|
|
4164
|
+
var o = e.index_ || 0, s = i.cases[o];
|
|
4165
|
+
if (!e.matched_ && s && !s.test) {
|
|
3912
4166
|
e.defaultCase_ = o, e.index_ = o + 1;
|
|
3913
4167
|
continue;
|
|
3914
4168
|
}
|
|
3915
|
-
if (!
|
|
4169
|
+
if (!s && !e.matched_ && e.defaultCase_ !== -1) {
|
|
3916
4170
|
e.matched_ = !0, e.index_ = e.defaultCase_;
|
|
3917
4171
|
continue;
|
|
3918
4172
|
}
|
|
3919
|
-
if (
|
|
3920
|
-
if (!e.matched_ && !e.tested_ &&
|
|
3921
|
-
return e.tested_ = !0, new r.State(
|
|
4173
|
+
if (s) {
|
|
4174
|
+
if (!e.matched_ && !e.tested_ && s.test)
|
|
4175
|
+
return e.tested_ = !0, new r.State(s.test, e.scope);
|
|
3922
4176
|
if (e.matched_ || e.value === e.switchValue_) {
|
|
3923
4177
|
e.matched_ = !0;
|
|
3924
4178
|
var c = e.n_ || 0;
|
|
3925
|
-
if (
|
|
3926
|
-
return e.isSwitch = !0, e.n_ = c + 1, new r.State(
|
|
4179
|
+
if (s.consequent[c])
|
|
4180
|
+
return e.isSwitch = !0, e.n_ = c + 1, new r.State(s.consequent[c], e.scope);
|
|
3927
4181
|
}
|
|
3928
4182
|
e.tested_ = !1, e.n_ = 0, e.index_ = o + 1;
|
|
3929
4183
|
} else {
|
|
@@ -3956,44 +4210,44 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3956
4210
|
return o.components = i.operator === "delete", o;
|
|
3957
4211
|
}
|
|
3958
4212
|
t.pop();
|
|
3959
|
-
var
|
|
4213
|
+
var s = e.value;
|
|
3960
4214
|
switch (i.operator) {
|
|
3961
4215
|
case "-":
|
|
3962
|
-
|
|
4216
|
+
s = -s;
|
|
3963
4217
|
break;
|
|
3964
4218
|
case "+":
|
|
3965
|
-
|
|
4219
|
+
s = +s;
|
|
3966
4220
|
break;
|
|
3967
4221
|
case "!":
|
|
3968
|
-
|
|
4222
|
+
s = !s;
|
|
3969
4223
|
break;
|
|
3970
4224
|
case "~":
|
|
3971
|
-
|
|
4225
|
+
s = ~s;
|
|
3972
4226
|
break;
|
|
3973
4227
|
case "delete":
|
|
3974
4228
|
var c = !0;
|
|
3975
|
-
if (Array.isArray(
|
|
3976
|
-
var a =
|
|
4229
|
+
if (Array.isArray(s)) {
|
|
4230
|
+
var a = s[0];
|
|
3977
4231
|
a === r.SCOPE_REFERENCE && (a = e.scope);
|
|
3978
|
-
var p = String(
|
|
4232
|
+
var p = String(s[1]);
|
|
3979
4233
|
try {
|
|
3980
4234
|
delete a.properties[p];
|
|
3981
4235
|
} catch {
|
|
3982
4236
|
e.scope.strict ? this.throwException(this.TYPE_ERROR, "Cannot delete property '" + p + "' of '" + a + "'") : c = !1;
|
|
3983
4237
|
}
|
|
3984
4238
|
}
|
|
3985
|
-
|
|
4239
|
+
s = c;
|
|
3986
4240
|
break;
|
|
3987
4241
|
case "typeof":
|
|
3988
|
-
|
|
4242
|
+
s = s && s.class === "Function" ? "function" : typeof s;
|
|
3989
4243
|
break;
|
|
3990
4244
|
case "void":
|
|
3991
|
-
|
|
4245
|
+
s = void 0;
|
|
3992
4246
|
break;
|
|
3993
4247
|
default:
|
|
3994
4248
|
throw SyntaxError("Unknown unary operator: " + i.operator);
|
|
3995
4249
|
}
|
|
3996
|
-
t[t.length - 1].value =
|
|
4250
|
+
t[t.length - 1].value = s;
|
|
3997
4251
|
}, r.prototype.stepUpdateExpression = function(t, e, i) {
|
|
3998
4252
|
if (!e.doneLeft_) {
|
|
3999
4253
|
e.doneLeft_ = !0;
|
|
@@ -4004,11 +4258,11 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4004
4258
|
var c = this.getValue(e.leftSide_);
|
|
4005
4259
|
if (e.leftValue_ = c, this.getterStep_) {
|
|
4006
4260
|
e.doneGetter_ = !0;
|
|
4007
|
-
var
|
|
4261
|
+
var s = (
|
|
4008
4262
|
/** @type {!Interpreter.Object} */
|
|
4009
4263
|
c
|
|
4010
4264
|
);
|
|
4011
|
-
return this.createGetter_(
|
|
4265
|
+
return this.createGetter_(s, e.leftSide_);
|
|
4012
4266
|
}
|
|
4013
4267
|
}
|
|
4014
4268
|
if (e.doneSetter_) {
|
|
@@ -4027,11 +4281,11 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4027
4281
|
return e.doneSetter_ = !0, e.setterValue_ = p, this.createSetter_(d, e.leftSide_, a);
|
|
4028
4282
|
t.pop(), t[t.length - 1].value = p;
|
|
4029
4283
|
}, r.prototype.stepVariableDeclaration = function(t, e, i) {
|
|
4030
|
-
var o = i.declarations,
|
|
4031
|
-
for (e.init_ && c && (this.setValueToScope(c.id.name, e.value), e.init_ = !1, c = o[++
|
|
4284
|
+
var o = i.declarations, s = e.n_ || 0, c = o[s];
|
|
4285
|
+
for (e.init_ && c && (this.setValueToScope(c.id.name, e.value), e.init_ = !1, c = o[++s]); c; ) {
|
|
4032
4286
|
if (c.init)
|
|
4033
|
-
return e.n_ =
|
|
4034
|
-
c = o[++
|
|
4287
|
+
return e.n_ = s, e.init_ = !0, e.destinationName = c.id.name, new r.State(c.init, e.scope);
|
|
4288
|
+
c = o[++s];
|
|
4035
4289
|
}
|
|
4036
4290
|
t.pop();
|
|
4037
4291
|
}, r.prototype.stepWithStatement = function(t, e, i) {
|
|
@@ -4040,7 +4294,7 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4040
4294
|
t.pop();
|
|
4041
4295
|
var o = this.createSpecialScope(e.scope, e.value);
|
|
4042
4296
|
return new r.State(i.body, o);
|
|
4043
|
-
}, r.prototype.stepWhileStatement = r.prototype.stepDoWhileStatement, r.nativeGlobal.Interpreter = r, r.prototype.step = r.prototype.step, r.prototype.run = r.prototype.run, r.prototype.appendCode = r.prototype.appendCode, r.prototype.createObject = r.prototype.createObject, r.prototype.createObjectProto = r.prototype.createObjectProto, r.prototype.createAsyncFunction = r.prototype.createAsyncFunction, r.prototype.createNativeFunction = r.prototype.createNativeFunction, r.prototype.getProperty = r.prototype.getProperty, r.prototype.setProperty = r.prototype.setProperty, r.prototype.getStatus = r.prototype.getStatus, r.prototype.nativeToPseudo = r.prototype.nativeToPseudo, r.prototype.pseudoToNative = r.prototype.pseudoToNative, r.prototype.getGlobalScope = r.prototype.getGlobalScope, r.prototype.setGlobalScope = r.prototype.setGlobalScope, r.prototype.getStateStack = r.prototype.getStateStack, r.prototype.setStateStack = r.prototype.setStateStack, r.VALUE_IN_DESCRIPTOR = r.VALUE_IN_DESCRIPTOR, r.Status = r.Status,
|
|
4297
|
+
}, r.prototype.stepWhileStatement = r.prototype.stepDoWhileStatement, r.nativeGlobal.Interpreter = r, r.prototype.step = r.prototype.step, r.prototype.run = r.prototype.run, r.prototype.appendCode = r.prototype.appendCode, r.prototype.createObject = r.prototype.createObject, r.prototype.createObjectProto = r.prototype.createObjectProto, r.prototype.createAsyncFunction = r.prototype.createAsyncFunction, r.prototype.createNativeFunction = r.prototype.createNativeFunction, r.prototype.getProperty = r.prototype.getProperty, r.prototype.setProperty = r.prototype.setProperty, r.prototype.getStatus = r.prototype.getStatus, r.prototype.nativeToPseudo = r.prototype.nativeToPseudo, r.prototype.pseudoToNative = r.prototype.pseudoToNative, r.prototype.getGlobalScope = r.prototype.getGlobalScope, r.prototype.setGlobalScope = r.prototype.setGlobalScope, r.prototype.getStateStack = r.prototype.getStateStack, r.prototype.setStateStack = r.prototype.setStateStack, r.VALUE_IN_DESCRIPTOR = r.VALUE_IN_DESCRIPTOR, r.Status = r.Status, b.exports = {
|
|
4044
4298
|
Interpreter: r
|
|
4045
4299
|
};
|
|
4046
4300
|
}
|
|
@@ -4051,14 +4305,14 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4051
4305
|
!*** ./original-repo/acorn.js ***!
|
|
4052
4306
|
\********************************/
|
|
4053
4307
|
/***/
|
|
4054
|
-
function(
|
|
4055
|
-
(function(
|
|
4308
|
+
function(b, T) {
|
|
4309
|
+
(function(O, r) {
|
|
4056
4310
|
return r(T);
|
|
4057
|
-
})(typeof globalThis > "u" ? this || window : globalThis, function(
|
|
4058
|
-
|
|
4311
|
+
})(typeof globalThis > "u" ? this || window : globalThis, function(O) {
|
|
4312
|
+
O.version = "0.5.0";
|
|
4059
4313
|
var r, t = "", e, i;
|
|
4060
|
-
|
|
4061
|
-
return t = String(f), e = t.length,
|
|
4314
|
+
O.parse = function(f, h) {
|
|
4315
|
+
return t = String(f), e = t.length, s(h), wi(), $i(r.program);
|
|
4062
4316
|
};
|
|
4063
4317
|
var o = {
|
|
4064
4318
|
// JS-Interpreter change:
|
|
@@ -4118,7 +4372,7 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4118
4372
|
// `locations` is on or off.
|
|
4119
4373
|
directSourceFile: null
|
|
4120
4374
|
};
|
|
4121
|
-
function
|
|
4375
|
+
function s(f) {
|
|
4122
4376
|
r = f || {};
|
|
4123
4377
|
for (var h in o)
|
|
4124
4378
|
Object.prototype.hasOwnProperty.call(r, h) || (r[h] = o[h]);
|
|
@@ -4134,71 +4388,71 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4134
4388
|
break;
|
|
4135
4389
|
}
|
|
4136
4390
|
return { line: y, column: h - _ };
|
|
4137
|
-
}, a = 0, p = 0, d = 0,
|
|
4391
|
+
}, a = 0, p = 0, d = 0, g, N, R, S, I, D, W, we = 0, J = 0, ve, se, B, z;
|
|
4138
4392
|
function A(f, h) {
|
|
4139
4393
|
var y = c(t, f);
|
|
4140
4394
|
h += " (" + y.line + ":" + y.column + ")";
|
|
4141
4395
|
var _ = new SyntaxError(h);
|
|
4142
4396
|
throw _.pos = f, _.loc = y, _.raisedAt = a, _;
|
|
4143
4397
|
}
|
|
4144
|
-
var
|
|
4145
|
-
break:
|
|
4146
|
-
case:
|
|
4147
|
-
catch:
|
|
4148
|
-
continue:
|
|
4149
|
-
debugger:
|
|
4150
|
-
default:
|
|
4151
|
-
do:
|
|
4152
|
-
else:
|
|
4153
|
-
finally:
|
|
4154
|
-
for:
|
|
4155
|
-
function:
|
|
4156
|
-
if:
|
|
4157
|
-
return:
|
|
4158
|
-
switch:
|
|
4159
|
-
throw:
|
|
4160
|
-
try:
|
|
4161
|
-
var:
|
|
4162
|
-
while:
|
|
4163
|
-
with:
|
|
4164
|
-
null:
|
|
4165
|
-
true:
|
|
4166
|
-
false:
|
|
4167
|
-
new:
|
|
4398
|
+
var pi = [], Xe = { type: "num" }, ar = { type: "regexp" }, ht = { type: "string" }, ye = { type: "name" }, dt = { type: "eof" }, vt = { keyword: "break" }, yt = { keyword: "case", beforeExpr: !0 }, or = { keyword: "catch" }, ur = { keyword: "continue" }, sr = { keyword: "debugger" }, cr = { keyword: "default" }, fr = { keyword: "do", isLoop: !0 }, lr = { keyword: "else", beforeExpr: !0 }, pr = { keyword: "finally" }, hr = { keyword: "for", isLoop: !0 }, _t = { keyword: "function" }, dr = { keyword: "if" }, vr = { keyword: "return", beforeExpr: !0 }, Et = { keyword: "switch" }, yr = { keyword: "throw", beforeExpr: !0 }, _r = { keyword: "try" }, gt = { keyword: "var" }, bt = { keyword: "while", isLoop: !0 }, Er = { keyword: "with" }, gr = { keyword: "new", beforeExpr: !0 }, br = { keyword: "this" }, mr = { keyword: "null", atomValue: null }, Rr = { keyword: "true", atomValue: !0 }, Or = { keyword: "false", atomValue: !1 }, We = { keyword: "in", binop: 7, beforeExpr: !0 }, hi = {
|
|
4399
|
+
break: vt,
|
|
4400
|
+
case: yt,
|
|
4401
|
+
catch: or,
|
|
4402
|
+
continue: ur,
|
|
4403
|
+
debugger: sr,
|
|
4404
|
+
default: cr,
|
|
4405
|
+
do: fr,
|
|
4406
|
+
else: lr,
|
|
4407
|
+
finally: pr,
|
|
4408
|
+
for: hr,
|
|
4409
|
+
function: _t,
|
|
4410
|
+
if: dr,
|
|
4411
|
+
return: vr,
|
|
4412
|
+
switch: Et,
|
|
4413
|
+
throw: yr,
|
|
4414
|
+
try: _r,
|
|
4415
|
+
var: gt,
|
|
4416
|
+
while: bt,
|
|
4417
|
+
with: Er,
|
|
4418
|
+
null: mr,
|
|
4419
|
+
true: Rr,
|
|
4420
|
+
false: Or,
|
|
4421
|
+
new: gr,
|
|
4168
4422
|
in: We,
|
|
4169
4423
|
instanceof: { keyword: "instanceof", binop: 7, beforeExpr: !0 },
|
|
4170
|
-
this:
|
|
4424
|
+
this: br,
|
|
4171
4425
|
typeof: { keyword: "typeof", prefix: !0, beforeExpr: !0 },
|
|
4172
4426
|
void: { keyword: "void", prefix: !0, beforeExpr: !0 },
|
|
4173
4427
|
delete: { keyword: "delete", prefix: !0, beforeExpr: !0 }
|
|
4174
|
-
},
|
|
4175
|
-
function
|
|
4428
|
+
}, mt = { type: "[", beforeExpr: !0 }, Rt = { type: "]" }, xe = { type: "{", beforeExpr: !0 }, _e = { type: "}" }, Z = { type: "(", beforeExpr: !0 }, K = { type: ")" }, ne = { type: ",", beforeExpr: !0 }, Q = { type: ";", beforeExpr: !0 }, Ce = { type: ":", beforeExpr: !0 }, Nr = { type: "." }, Tr = { type: "?", beforeExpr: !0 }, Sr = { binop: 10, beforeExpr: !0 }, Pr = { isAssign: !0, beforeExpr: !0 }, ce = { isAssign: !0, beforeExpr: !0 }, di = { postfix: !0, prefix: !0, isUpdate: !0 }, wr = { prefix: !0, beforeExpr: !0 }, xr = { binop: 1, beforeExpr: !0 }, Cr = { binop: 2, beforeExpr: !0 }, vi = { binop: 3, beforeExpr: !0 }, yi = { binop: 4, beforeExpr: !0 }, _i = { binop: 5, beforeExpr: !0 }, Ei = { binop: 6, beforeExpr: !0 }, gi = { binop: 7, beforeExpr: !0 }, bi = { binop: 8, beforeExpr: !0 }, mi = { binop: 9, prefix: !0, beforeExpr: !0 }, Ri = { binop: 10, beforeExpr: !0 };
|
|
4429
|
+
function ze(f) {
|
|
4176
4430
|
for (var h = f.split(" "), y = /* @__PURE__ */ Object.create(null), _ = 0; _ < h.length; _++)
|
|
4177
4431
|
y[h[_]] = !0;
|
|
4178
4432
|
return function(x) {
|
|
4179
4433
|
return y[x] || !1;
|
|
4180
4434
|
};
|
|
4181
4435
|
}
|
|
4182
|
-
var
|
|
4183
|
-
return f < 65 ? f === 36 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 &&
|
|
4184
|
-
},
|
|
4185
|
-
return f < 48 ? f === 36 : f < 58 ? !0 : f < 65 ? !1 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 &&
|
|
4436
|
+
var Oi = ze("class enum extends super const export import"), Ar = ze("implements interface let package private protected public static yield"), Je = ze("eval arguments"), Ni = ze("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Ti = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ir = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", Si = "̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_", kr = new RegExp("[" + Ir + "]"), Pi = new RegExp("[" + Ir + Si + "]"), He = /[\n\r\u2028\u2029]/, Ke = /\r\n|[\n\r\u2028\u2029]/g, qe = function(f) {
|
|
4437
|
+
return f < 65 ? f === 36 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 && kr.test(String.fromCharCode(f));
|
|
4438
|
+
}, Dr = function(f) {
|
|
4439
|
+
return f < 48 ? f === 36 : f < 58 ? !0 : f < 65 ? !1 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 && Pi.test(String.fromCharCode(f));
|
|
4186
4440
|
};
|
|
4187
4441
|
function fe() {
|
|
4188
|
-
this.line = D, this.column = a -
|
|
4442
|
+
this.line = D, this.column = a - W;
|
|
4189
4443
|
}
|
|
4190
|
-
function
|
|
4191
|
-
D = 1, a =
|
|
4444
|
+
function wi() {
|
|
4445
|
+
D = 1, a = W = 0, I = !0, Ae();
|
|
4192
4446
|
}
|
|
4193
|
-
function
|
|
4194
|
-
d = a, r.locations && (
|
|
4447
|
+
function V(f, h) {
|
|
4448
|
+
d = a, r.locations && (N = new fe()), R = f, Ae(), S = h, I = f.beforeExpr;
|
|
4195
4449
|
}
|
|
4196
|
-
function
|
|
4450
|
+
function xi() {
|
|
4197
4451
|
var f = r.onComment && r.locations && new fe(), h = a, y = t.indexOf("*/", a += 2);
|
|
4198
4452
|
if (y === -1 && A(a - 2, "Unterminated comment"), a = y + 2, r.locations) {
|
|
4199
4453
|
Ke.lastIndex = h;
|
|
4200
4454
|
for (var _; (_ = Ke.exec(t)) && _.index < a; )
|
|
4201
|
-
++D,
|
|
4455
|
+
++D, W = _.index + _[0].length;
|
|
4202
4456
|
}
|
|
4203
4457
|
r.onComment && r.onComment(
|
|
4204
4458
|
!0,
|
|
@@ -4209,7 +4463,7 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4209
4463
|
r.locations && new fe()
|
|
4210
4464
|
);
|
|
4211
4465
|
}
|
|
4212
|
-
function
|
|
4466
|
+
function Ot() {
|
|
4213
4467
|
for (var f = a, h = r.onComment && r.locations && new fe(), y = t.charCodeAt(a += 2); a < e && y !== 10 && y !== 13 && y !== 8232 && y !== 8233; )
|
|
4214
4468
|
++a, y = t.charCodeAt(a);
|
|
4215
4469
|
r.onComment && r.onComment(
|
|
@@ -4221,7 +4475,7 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4221
4475
|
r.locations && new fe()
|
|
4222
4476
|
);
|
|
4223
4477
|
}
|
|
4224
|
-
function
|
|
4478
|
+
function Ae() {
|
|
4225
4479
|
for (; a < e; ) {
|
|
4226
4480
|
var f = t.charCodeAt(a);
|
|
4227
4481
|
if (f === 32)
|
|
@@ -4229,99 +4483,99 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4229
4483
|
else if (f === 13) {
|
|
4230
4484
|
++a;
|
|
4231
4485
|
var h = t.charCodeAt(a);
|
|
4232
|
-
h === 10 && ++a, r.locations && (++D,
|
|
4486
|
+
h === 10 && ++a, r.locations && (++D, W = a);
|
|
4233
4487
|
} else if (f === 10 || f === 8232 || f === 8233)
|
|
4234
|
-
++a, r.locations && (++D,
|
|
4488
|
+
++a, r.locations && (++D, W = a);
|
|
4235
4489
|
else if (f > 8 && f < 14)
|
|
4236
4490
|
++a;
|
|
4237
4491
|
else if (f === 47) {
|
|
4238
4492
|
var h = t.charCodeAt(a + 1);
|
|
4239
4493
|
if (h === 42)
|
|
4240
|
-
|
|
4494
|
+
xi();
|
|
4241
4495
|
else if (h === 47)
|
|
4242
|
-
|
|
4496
|
+
Ot();
|
|
4243
4497
|
else break;
|
|
4244
4498
|
} else if (f === 160)
|
|
4245
4499
|
++a;
|
|
4246
|
-
else if (f >= 5760 &&
|
|
4500
|
+
else if (f >= 5760 && Ti.test(String.fromCharCode(f)))
|
|
4247
4501
|
++a;
|
|
4248
4502
|
else
|
|
4249
4503
|
break;
|
|
4250
4504
|
}
|
|
4251
4505
|
}
|
|
4252
|
-
function
|
|
4506
|
+
function Ci() {
|
|
4253
4507
|
var f = t.charCodeAt(a + 1);
|
|
4254
|
-
f >= 48 && f <= 57 ?
|
|
4508
|
+
f >= 48 && f <= 57 ? Mr(!0) : (++a, V(Nr));
|
|
4255
4509
|
}
|
|
4256
|
-
function
|
|
4510
|
+
function Ai() {
|
|
4257
4511
|
var f = t.charCodeAt(a + 1);
|
|
4258
|
-
I ? (++a,
|
|
4512
|
+
I ? (++a, Lr()) : f === 61 ? G(ce, 2) : G(Sr, 1);
|
|
4259
4513
|
}
|
|
4260
|
-
function
|
|
4514
|
+
function Ii() {
|
|
4261
4515
|
var f = t.charCodeAt(a + 1);
|
|
4262
|
-
f === 61 ? G(ce, 2) : G(
|
|
4516
|
+
f === 61 ? G(ce, 2) : G(Ri, 1);
|
|
4263
4517
|
}
|
|
4264
|
-
function
|
|
4518
|
+
function ki(f) {
|
|
4265
4519
|
var h = t.charCodeAt(a + 1);
|
|
4266
|
-
h === f ? G(f === 124 ?
|
|
4520
|
+
h === f ? G(f === 124 ? xr : Cr, 2) : h === 61 ? G(ce, 2) : G(f === 124 ? vi : _i, 1);
|
|
4267
4521
|
}
|
|
4268
|
-
function
|
|
4522
|
+
function Di() {
|
|
4269
4523
|
var f = t.charCodeAt(a + 1);
|
|
4270
|
-
f === 61 ? G(ce, 2) : G(
|
|
4524
|
+
f === 61 ? G(ce, 2) : G(yi, 1);
|
|
4271
4525
|
}
|
|
4272
|
-
function
|
|
4526
|
+
function Li(f) {
|
|
4273
4527
|
var h = t.charCodeAt(a + 1);
|
|
4274
4528
|
if (h === f) {
|
|
4275
|
-
if (h === 45 && t.charCodeAt(a + 2) === 62 && He.test(t.slice(
|
|
4276
|
-
a += 3,
|
|
4529
|
+
if (h === 45 && t.charCodeAt(a + 2) === 62 && He.test(t.slice(J, a))) {
|
|
4530
|
+
a += 3, Ot(), Ae(), Ee();
|
|
4277
4531
|
return;
|
|
4278
4532
|
}
|
|
4279
|
-
G(
|
|
4280
|
-
} else h === 61 ? G(ce, 2) : G(
|
|
4533
|
+
G(di, 2);
|
|
4534
|
+
} else h === 61 ? G(ce, 2) : G(mi, 1);
|
|
4281
4535
|
}
|
|
4282
|
-
function
|
|
4536
|
+
function Mi(f) {
|
|
4283
4537
|
var h = t.charCodeAt(a + 1), y = 1;
|
|
4284
4538
|
if (h === f) {
|
|
4285
|
-
y = f === 62 && t.charCodeAt(a + 2) === 62 ? 3 : 2, t.charCodeAt(a + y) === 61 ? G(ce, y + 1) : G(
|
|
4539
|
+
y = f === 62 && t.charCodeAt(a + 2) === 62 ? 3 : 2, t.charCodeAt(a + y) === 61 ? G(ce, y + 1) : G(bi, y);
|
|
4286
4540
|
return;
|
|
4287
4541
|
}
|
|
4288
4542
|
if (h === 33 && f === 60 && t.charCodeAt(a + 2) === 45 && t.charCodeAt(a + 3) === 45) {
|
|
4289
|
-
a += 4,
|
|
4543
|
+
a += 4, Ot(), Ae(), Ee();
|
|
4290
4544
|
return;
|
|
4291
4545
|
}
|
|
4292
|
-
h === 61 && (y = t.charCodeAt(a + 2) === 61 ? 3 : 2), G(
|
|
4546
|
+
h === 61 && (y = t.charCodeAt(a + 2) === 61 ? 3 : 2), G(gi, y);
|
|
4293
4547
|
}
|
|
4294
|
-
function
|
|
4548
|
+
function Fi(f) {
|
|
4295
4549
|
var h = t.charCodeAt(a + 1);
|
|
4296
|
-
h === 61 ? G(
|
|
4550
|
+
h === 61 ? G(Ei, t.charCodeAt(a + 2) === 61 ? 3 : 2) : G(f === 61 ? Pr : wr, 1);
|
|
4297
4551
|
}
|
|
4298
|
-
function
|
|
4552
|
+
function Ui(f) {
|
|
4299
4553
|
switch (f) {
|
|
4300
4554
|
case 46:
|
|
4301
|
-
return
|
|
4555
|
+
return Ci();
|
|
4302
4556
|
case 40:
|
|
4303
|
-
return ++a,
|
|
4557
|
+
return ++a, V(Z);
|
|
4304
4558
|
case 41:
|
|
4305
|
-
return ++a,
|
|
4559
|
+
return ++a, V(K);
|
|
4306
4560
|
case 59:
|
|
4307
|
-
return ++a,
|
|
4561
|
+
return ++a, V(Q);
|
|
4308
4562
|
case 44:
|
|
4309
|
-
return ++a,
|
|
4563
|
+
return ++a, V(ne);
|
|
4310
4564
|
case 91:
|
|
4311
|
-
return ++a,
|
|
4565
|
+
return ++a, V(mt);
|
|
4312
4566
|
case 93:
|
|
4313
|
-
return ++a,
|
|
4567
|
+
return ++a, V(Rt);
|
|
4314
4568
|
case 123:
|
|
4315
|
-
return ++a,
|
|
4569
|
+
return ++a, V(xe);
|
|
4316
4570
|
case 125:
|
|
4317
|
-
return ++a,
|
|
4571
|
+
return ++a, V(_e);
|
|
4318
4572
|
case 58:
|
|
4319
|
-
return ++a,
|
|
4573
|
+
return ++a, V(Ce);
|
|
4320
4574
|
case 63:
|
|
4321
|
-
return ++a,
|
|
4575
|
+
return ++a, V(Tr);
|
|
4322
4576
|
case 48:
|
|
4323
4577
|
var h = t.charCodeAt(a + 1);
|
|
4324
|
-
if (h === 120 || h === 88) return
|
|
4578
|
+
if (h === 120 || h === 88) return ji();
|
|
4325
4579
|
case 49:
|
|
4326
4580
|
case 50:
|
|
4327
4581
|
case 51:
|
|
@@ -4331,53 +4585,53 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4331
4585
|
case 55:
|
|
4332
4586
|
case 56:
|
|
4333
4587
|
case 57:
|
|
4334
|
-
return
|
|
4588
|
+
return Mr(!1);
|
|
4335
4589
|
case 34:
|
|
4336
4590
|
case 39:
|
|
4337
|
-
return
|
|
4591
|
+
return Bi(f);
|
|
4338
4592
|
case 47:
|
|
4339
|
-
return
|
|
4593
|
+
return Ai();
|
|
4340
4594
|
case 37:
|
|
4341
4595
|
case 42:
|
|
4342
|
-
return
|
|
4596
|
+
return Ii();
|
|
4343
4597
|
case 124:
|
|
4344
4598
|
case 38:
|
|
4345
|
-
return
|
|
4599
|
+
return ki(f);
|
|
4346
4600
|
case 94:
|
|
4347
|
-
return
|
|
4601
|
+
return Di();
|
|
4348
4602
|
case 43:
|
|
4349
4603
|
case 45:
|
|
4350
|
-
return
|
|
4604
|
+
return Li(f);
|
|
4351
4605
|
case 60:
|
|
4352
4606
|
case 62:
|
|
4353
|
-
return
|
|
4607
|
+
return Mi(f);
|
|
4354
4608
|
case 61:
|
|
4355
4609
|
case 33:
|
|
4356
|
-
return
|
|
4610
|
+
return Fi(f);
|
|
4357
4611
|
case 126:
|
|
4358
|
-
return G(
|
|
4612
|
+
return G(wr, 1);
|
|
4359
4613
|
}
|
|
4360
4614
|
return !1;
|
|
4361
4615
|
}
|
|
4362
4616
|
function Ee(f) {
|
|
4363
|
-
if (f ? a = p + 1 : p = a, r.locations && (
|
|
4364
|
-
if (a >= e) return
|
|
4617
|
+
if (f ? a = p + 1 : p = a, r.locations && (g = new fe()), f) return Lr();
|
|
4618
|
+
if (a >= e) return V(dt);
|
|
4365
4619
|
var h = t.charCodeAt(a);
|
|
4366
4620
|
if (qe(h) || h === 92)
|
|
4367
|
-
return
|
|
4368
|
-
var y =
|
|
4621
|
+
return Ur();
|
|
4622
|
+
var y = Ui(h);
|
|
4369
4623
|
if (y === !1) {
|
|
4370
4624
|
var _ = String.fromCharCode(h);
|
|
4371
|
-
if (_ === "\\" ||
|
|
4372
|
-
return
|
|
4625
|
+
if (_ === "\\" || kr.test(_))
|
|
4626
|
+
return Ur();
|
|
4373
4627
|
A(a, "Unexpected character '" + _ + "'");
|
|
4374
4628
|
}
|
|
4375
4629
|
}
|
|
4376
4630
|
function G(f, h) {
|
|
4377
4631
|
var y = t.slice(a, a + h);
|
|
4378
|
-
a += h,
|
|
4632
|
+
a += h, V(f, y);
|
|
4379
4633
|
}
|
|
4380
|
-
function
|
|
4634
|
+
function Lr() {
|
|
4381
4635
|
for (var f, h, y = a; ; ) {
|
|
4382
4636
|
a >= e && A(y, "Unterminated regexp");
|
|
4383
4637
|
var _ = t.charAt(a);
|
|
@@ -4396,43 +4650,43 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4396
4650
|
}
|
|
4397
4651
|
var x = t.slice(y, a);
|
|
4398
4652
|
++a;
|
|
4399
|
-
var P =
|
|
4653
|
+
var P = Fr();
|
|
4400
4654
|
P && !/^[gmi]*$/.test(P) && A(y, "Invalid regexp flag");
|
|
4401
4655
|
try {
|
|
4402
4656
|
var C = new RegExp(x, P);
|
|
4403
|
-
} catch (
|
|
4404
|
-
throw
|
|
4657
|
+
} catch (U) {
|
|
4658
|
+
throw U instanceof SyntaxError && A(y, U.message), U;
|
|
4405
4659
|
}
|
|
4406
|
-
|
|
4660
|
+
V(ar, C);
|
|
4407
4661
|
}
|
|
4408
|
-
function
|
|
4662
|
+
function Ie(f, h) {
|
|
4409
4663
|
for (var y = a, _ = 0, x = h === void 0 ? 1 / 0 : h, P = 0; P < x; ++P) {
|
|
4410
|
-
var C = t.charCodeAt(a),
|
|
4411
|
-
if (C >= 97 ?
|
|
4412
|
-
++a, _ = _ * f +
|
|
4664
|
+
var C = t.charCodeAt(a), U;
|
|
4665
|
+
if (C >= 97 ? U = C - 97 + 10 : C >= 65 ? U = C - 65 + 10 : C >= 48 && C <= 57 ? U = C - 48 : U = 1 / 0, U >= f) break;
|
|
4666
|
+
++a, _ = _ * f + U;
|
|
4413
4667
|
}
|
|
4414
4668
|
return a === y || h !== void 0 && a - y !== h ? null : _;
|
|
4415
4669
|
}
|
|
4416
|
-
function
|
|
4670
|
+
function ji() {
|
|
4417
4671
|
a += 2;
|
|
4418
|
-
var f =
|
|
4419
|
-
f === null && A(p + 2, "Expected hexadecimal number"), qe(t.charCodeAt(a)) && A(a, "Identifier directly after number"),
|
|
4672
|
+
var f = Ie(16);
|
|
4673
|
+
f === null && A(p + 2, "Expected hexadecimal number"), qe(t.charCodeAt(a)) && A(a, "Identifier directly after number"), V(Xe, f);
|
|
4420
4674
|
}
|
|
4421
|
-
function
|
|
4675
|
+
function Mr(f) {
|
|
4422
4676
|
var h = a, y = !1, _ = t.charCodeAt(a) === 48;
|
|
4423
|
-
!f &&
|
|
4677
|
+
!f && Ie(10) === null && A(h, "Invalid number"), t.charCodeAt(a) === 46 && (++a, Ie(10), y = !0);
|
|
4424
4678
|
var x = t.charCodeAt(a);
|
|
4425
|
-
(x === 69 || x === 101) && (x = t.charCodeAt(++a), (x === 43 || x === 45) && ++a,
|
|
4679
|
+
(x === 69 || x === 101) && (x = t.charCodeAt(++a), (x === 43 || x === 45) && ++a, Ie(10) === null && A(h, "Invalid number"), y = !0), qe(t.charCodeAt(a)) && A(a, "Identifier directly after number");
|
|
4426
4680
|
var P = t.slice(h, a), C;
|
|
4427
|
-
y ? C = parseFloat(P) : !_ || P.length === 1 ? C = parseInt(P, 10) : /[89]/.test(P) ||
|
|
4681
|
+
y ? C = parseFloat(P) : !_ || P.length === 1 ? C = parseInt(P, 10) : /[89]/.test(P) || z ? A(h, "Invalid number") : C = parseInt(P, 8), V(Xe, C);
|
|
4428
4682
|
}
|
|
4429
|
-
function
|
|
4683
|
+
function Bi(f) {
|
|
4430
4684
|
a++;
|
|
4431
4685
|
for (var h = ""; ; ) {
|
|
4432
4686
|
a >= e && A(p, "Unterminated string constant");
|
|
4433
4687
|
var y = t.charCodeAt(a);
|
|
4434
4688
|
if (y === f) {
|
|
4435
|
-
++a,
|
|
4689
|
+
++a, V(ht, h);
|
|
4436
4690
|
return;
|
|
4437
4691
|
}
|
|
4438
4692
|
if (y === 92) {
|
|
@@ -4441,7 +4695,7 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4441
4695
|
for (_ && (_ = _[0]); _ && parseInt(_, 8) > 255; )
|
|
4442
4696
|
_ = _.slice(0, -1);
|
|
4443
4697
|
if (_ === "0" && (_ = null), ++a, _)
|
|
4444
|
-
|
|
4698
|
+
z && A(a - 2, "Octal literal in strict mode"), h += String.fromCharCode(parseInt(_, 8)), a += _.length - 1;
|
|
4445
4699
|
else
|
|
4446
4700
|
switch (y) {
|
|
4447
4701
|
case 110:
|
|
@@ -4478,7 +4732,7 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4478
4732
|
case 13:
|
|
4479
4733
|
t.charCodeAt(a) === 10 && ++a;
|
|
4480
4734
|
case 10:
|
|
4481
|
-
r.locations && (
|
|
4735
|
+
r.locations && (W = a, ++D);
|
|
4482
4736
|
break;
|
|
4483
4737
|
default:
|
|
4484
4738
|
h += String.fromCharCode(y);
|
|
@@ -4489,329 +4743,329 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4489
4743
|
}
|
|
4490
4744
|
}
|
|
4491
4745
|
function Ze(f) {
|
|
4492
|
-
var h =
|
|
4746
|
+
var h = Ie(16, f);
|
|
4493
4747
|
return h === null && A(p, "Bad character escape sequence"), /** @type {number} */
|
|
4494
4748
|
h;
|
|
4495
4749
|
}
|
|
4496
4750
|
var ge;
|
|
4497
|
-
function
|
|
4751
|
+
function Fr() {
|
|
4498
4752
|
ge = !1;
|
|
4499
4753
|
for (var f, h = !0, y = a; ; ) {
|
|
4500
4754
|
var _ = t.charCodeAt(a);
|
|
4501
|
-
if (
|
|
4755
|
+
if (Dr(_))
|
|
4502
4756
|
ge && (f += t.charAt(a)), ++a;
|
|
4503
4757
|
else if (_ === 92) {
|
|
4504
4758
|
ge || (f = t.slice(y, a)), ge = !0, t.charCodeAt(++a) !== 117 && A(a, "Expecting Unicode escape sequence \\uXXXX"), ++a;
|
|
4505
4759
|
var x = Ze(4), P = String.fromCharCode(x);
|
|
4506
|
-
P || A(a - 1, "Invalid Unicode escape"), (h ? qe(x) :
|
|
4760
|
+
P || A(a - 1, "Invalid Unicode escape"), (h ? qe(x) : Dr(x)) || A(a - 4, "Invalid Unicode escape"), f += P;
|
|
4507
4761
|
} else
|
|
4508
4762
|
break;
|
|
4509
4763
|
h = !1;
|
|
4510
4764
|
}
|
|
4511
4765
|
return ge ? f : t.slice(y, a);
|
|
4512
4766
|
}
|
|
4513
|
-
function
|
|
4514
|
-
var f =
|
|
4515
|
-
!ge &&
|
|
4767
|
+
function Ur() {
|
|
4768
|
+
var f = Fr(), h = ye;
|
|
4769
|
+
!ge && Ni(f) && (h = hi[f]), V(h, f);
|
|
4516
4770
|
}
|
|
4517
4771
|
function k() {
|
|
4518
|
-
|
|
4772
|
+
we = p, J = d, ve = N, Ee();
|
|
4519
4773
|
}
|
|
4520
|
-
function
|
|
4521
|
-
if (
|
|
4522
|
-
for (; a <
|
|
4523
|
-
|
|
4524
|
-
`,
|
|
4525
|
-
|
|
4774
|
+
function Nt(f) {
|
|
4775
|
+
if (z = f, a = p, r.locations)
|
|
4776
|
+
for (; a < W; )
|
|
4777
|
+
W = t.lastIndexOf(`
|
|
4778
|
+
`, W - 2) + 1, --D;
|
|
4779
|
+
Ae(), Ee();
|
|
4526
4780
|
}
|
|
4527
|
-
function
|
|
4781
|
+
function jr() {
|
|
4528
4782
|
this.type = null, this.start = p, this.end = null;
|
|
4529
4783
|
}
|
|
4530
|
-
function
|
|
4531
|
-
this.start =
|
|
4784
|
+
function Br() {
|
|
4785
|
+
this.start = g, this.end = null, i && (this.source = i);
|
|
4532
4786
|
}
|
|
4533
|
-
function
|
|
4534
|
-
var f = new
|
|
4535
|
-
return r.locations && (f.loc = new
|
|
4787
|
+
function Y() {
|
|
4788
|
+
var f = new jr();
|
|
4789
|
+
return r.locations && (f.loc = new Br()), r.directSourceFile && (f.sourceFile = r.directSourceFile), r.ranges && (f.range = [p, 0]), f;
|
|
4536
4790
|
}
|
|
4537
4791
|
function ie(f) {
|
|
4538
|
-
var h = new
|
|
4539
|
-
return h.start = f.start, r.locations && (h.loc = new
|
|
4792
|
+
var h = new jr();
|
|
4793
|
+
return h.start = f.start, r.locations && (h.loc = new Br(), h.loc.start = f.loc.start), r.ranges && (h.range = [f.range[0], 0]), h;
|
|
4540
4794
|
}
|
|
4541
4795
|
function w(f, h) {
|
|
4542
|
-
return f.type = h, f.end =
|
|
4796
|
+
return f.type = h, f.end = J, r.locations && (f.loc.end = ve), r.ranges && (f.range[1] = J), f;
|
|
4543
4797
|
}
|
|
4544
|
-
function
|
|
4798
|
+
function Tt(f) {
|
|
4545
4799
|
return f.type === "ExpressionStatement" && f.expression.type === "Literal" && f.expression.value === "use strict";
|
|
4546
4800
|
}
|
|
4547
|
-
function
|
|
4548
|
-
return
|
|
4801
|
+
function j(f) {
|
|
4802
|
+
return R === f ? (k(), !0) : !1;
|
|
4549
4803
|
}
|
|
4550
4804
|
function Qe() {
|
|
4551
|
-
return !r.strictSemicolons && (
|
|
4805
|
+
return !r.strictSemicolons && (R === dt || R === _e || He.test(t.slice(J, p)));
|
|
4552
4806
|
}
|
|
4553
4807
|
function le() {
|
|
4554
|
-
!
|
|
4808
|
+
!j(Q) && !Qe() && ee();
|
|
4555
4809
|
}
|
|
4556
|
-
function
|
|
4557
|
-
|
|
4810
|
+
function $(f) {
|
|
4811
|
+
R === f ? k() : ee();
|
|
4558
4812
|
}
|
|
4559
4813
|
function ee() {
|
|
4560
4814
|
A(p, "Unexpected token");
|
|
4561
4815
|
}
|
|
4562
4816
|
function et(f) {
|
|
4563
|
-
f.type !== "Identifier" && f.type !== "MemberExpression" && A(f.start, "Assigning to rvalue"),
|
|
4817
|
+
f.type !== "Identifier" && f.type !== "MemberExpression" && A(f.start, "Assigning to rvalue"), z && f.type === "Identifier" && Je(f.name) && A(f.start, "Assigning to " + f.name + " in strict mode");
|
|
4564
4818
|
}
|
|
4565
|
-
function
|
|
4566
|
-
|
|
4567
|
-
var h = f ||
|
|
4568
|
-
for (f || (h.body = []);
|
|
4819
|
+
function $i(f) {
|
|
4820
|
+
we = J = a, r.locations && (ve = new fe()), se = z = !1, B = [], Ee();
|
|
4821
|
+
var h = f || Y(), y = !0;
|
|
4822
|
+
for (f || (h.body = []); R !== dt; ) {
|
|
4569
4823
|
var _ = H();
|
|
4570
|
-
h.body.push(_), y &&
|
|
4824
|
+
h.body.push(_), y && Tt(_) && Nt(!0), y = !1;
|
|
4571
4825
|
}
|
|
4572
4826
|
return w(h, "Program");
|
|
4573
4827
|
}
|
|
4574
|
-
var
|
|
4828
|
+
var St = { kind: "loop" }, Vi = { kind: "switch" };
|
|
4575
4829
|
function H() {
|
|
4576
|
-
(
|
|
4577
|
-
var f =
|
|
4830
|
+
(R === Sr || R === ce && S === "/=") && Ee(!0);
|
|
4831
|
+
var f = R, h = Y();
|
|
4578
4832
|
switch (f) {
|
|
4579
|
-
case
|
|
4580
|
-
case
|
|
4833
|
+
case vt:
|
|
4834
|
+
case ur:
|
|
4581
4835
|
k();
|
|
4582
|
-
var y = f ===
|
|
4583
|
-
|
|
4584
|
-
for (var _ = 0; _ <
|
|
4585
|
-
var x =
|
|
4836
|
+
var y = f === vt;
|
|
4837
|
+
j(Q) || Qe() ? h.label = null : R !== ye ? ee() : (h.label = ae(), le());
|
|
4838
|
+
for (var _ = 0; _ < B.length; ++_) {
|
|
4839
|
+
var x = B[_];
|
|
4586
4840
|
if ((h.label === null || x.name === h.label.name) && (x.kind !== null && (y || x.kind === "loop") || h.label && y))
|
|
4587
4841
|
break;
|
|
4588
4842
|
}
|
|
4589
|
-
return _ ===
|
|
4590
|
-
case
|
|
4843
|
+
return _ === B.length && A(h.start, "Unsyntactic " + f.keyword), w(h, y ? "BreakStatement" : "ContinueStatement");
|
|
4844
|
+
case sr:
|
|
4591
4845
|
return k(), le(), w(h, "DebuggerStatement");
|
|
4592
|
-
case
|
|
4593
|
-
return k(),
|
|
4594
|
-
case
|
|
4595
|
-
if (k(),
|
|
4596
|
-
if (
|
|
4597
|
-
var P =
|
|
4598
|
-
return k(),
|
|
4846
|
+
case fr:
|
|
4847
|
+
return k(), B.push(St), h.body = H(), B.pop(), $(bt), h.test = ke(), le(), w(h, "DoWhileStatement");
|
|
4848
|
+
case hr:
|
|
4849
|
+
if (k(), B.push(St), $(Z), R === Q) return Pt(h, null);
|
|
4850
|
+
if (R === gt) {
|
|
4851
|
+
var P = Y();
|
|
4852
|
+
return k(), Vr(P, !0), w(P, "VariableDeclaration"), P.declarations.length === 1 && j(We) ? $r(h, P) : Pt(h, P);
|
|
4599
4853
|
}
|
|
4600
|
-
var P =
|
|
4601
|
-
return
|
|
4602
|
-
case
|
|
4603
|
-
return k(),
|
|
4604
|
-
case
|
|
4605
|
-
return k(), h.test =
|
|
4606
|
-
case
|
|
4607
|
-
return !se && !r.allowReturnOutsideFunction && A(p, "'return' outside of function"), k(),
|
|
4608
|
-
case
|
|
4609
|
-
k(), h.discriminant =
|
|
4610
|
-
for (var C,
|
|
4611
|
-
if (
|
|
4612
|
-
var
|
|
4613
|
-
C && w(C, "SwitchCase"), h.cases.push(C =
|
|
4854
|
+
var P = X(!1, !0);
|
|
4855
|
+
return j(We) ? (et(P), $r(h, P)) : Pt(h, P);
|
|
4856
|
+
case _t:
|
|
4857
|
+
return k(), It(h, !0);
|
|
4858
|
+
case dr:
|
|
4859
|
+
return k(), h.test = ke(), h.consequent = H(), h.alternate = j(lr) ? H() : null, w(h, "IfStatement");
|
|
4860
|
+
case vr:
|
|
4861
|
+
return !se && !r.allowReturnOutsideFunction && A(p, "'return' outside of function"), k(), j(Q) || Qe() ? h.argument = null : (h.argument = X(), le()), w(h, "ReturnStatement");
|
|
4862
|
+
case Et:
|
|
4863
|
+
k(), h.discriminant = ke(), h.cases = [], $(xe), B.push(Vi);
|
|
4864
|
+
for (var C, U; R !== _e; )
|
|
4865
|
+
if (R === yt || R === cr) {
|
|
4866
|
+
var Me = R === yt;
|
|
4867
|
+
C && w(C, "SwitchCase"), h.cases.push(C = Y()), C.consequent = [], k(), Me ? C.test = X() : (U && A(we, "Multiple default clauses"), U = !0, C.test = null), $(Ce);
|
|
4614
4868
|
} else
|
|
4615
4869
|
C || ee(), C.consequent.push(H());
|
|
4616
|
-
return C && w(C, "SwitchCase"), k(),
|
|
4617
|
-
case
|
|
4618
|
-
return k(), He.test(t.slice(
|
|
4619
|
-
case
|
|
4620
|
-
if (k(), h.block =
|
|
4621
|
-
var be =
|
|
4622
|
-
k(),
|
|
4870
|
+
return C && w(C, "SwitchCase"), k(), B.pop(), w(h, "SwitchStatement");
|
|
4871
|
+
case yr:
|
|
4872
|
+
return k(), He.test(t.slice(J, p)) && A(J, "Illegal newline after throw"), h.argument = X(), le(), w(h, "ThrowStatement");
|
|
4873
|
+
case _r:
|
|
4874
|
+
if (k(), h.block = De(), h.handler = null, R === or) {
|
|
4875
|
+
var be = Y();
|
|
4876
|
+
k(), $(Z), be.param = ae(), z && Je(be.param.name) && A(be.param.start, "Binding " + be.param.name + " in strict mode"), $(K), be.body = De(), h.handler = w(be, "CatchClause");
|
|
4623
4877
|
}
|
|
4624
|
-
return h.finalizer =
|
|
4625
|
-
case
|
|
4626
|
-
return k(),
|
|
4627
|
-
case
|
|
4628
|
-
return k(), h.test =
|
|
4629
|
-
case
|
|
4630
|
-
return
|
|
4631
|
-
case
|
|
4632
|
-
return
|
|
4878
|
+
return h.finalizer = j(pr) ? De() : null, !h.handler && !h.finalizer && A(h.start, "Missing catch or finally clause"), w(h, "TryStatement");
|
|
4879
|
+
case gt:
|
|
4880
|
+
return k(), Vr(h), le(), w(h, "VariableDeclaration");
|
|
4881
|
+
case bt:
|
|
4882
|
+
return k(), h.test = ke(), B.push(St), h.body = H(), B.pop(), w(h, "WhileStatement");
|
|
4883
|
+
case Er:
|
|
4884
|
+
return z && A(p, "'with' in strict mode"), k(), h.object = ke(), h.body = H(), w(h, "WithStatement");
|
|
4885
|
+
case xe:
|
|
4886
|
+
return De();
|
|
4633
4887
|
case Q:
|
|
4634
4888
|
return k(), w(h, "EmptyStatement");
|
|
4635
4889
|
default:
|
|
4636
|
-
var
|
|
4637
|
-
if (f === ye && tt.type === "Identifier" &&
|
|
4638
|
-
for (var _ = 0; _ <
|
|
4639
|
-
|
|
4640
|
-
var
|
|
4641
|
-
return
|
|
4890
|
+
var Dt = S, tt = X();
|
|
4891
|
+
if (f === ye && tt.type === "Identifier" && j(Ce)) {
|
|
4892
|
+
for (var _ = 0; _ < B.length; ++_)
|
|
4893
|
+
B[_].name === Dt && A(tt.start, "Label '" + Dt + "' is already declared");
|
|
4894
|
+
var Ji = R.isLoop ? "loop" : R === Et ? "switch" : null;
|
|
4895
|
+
return B.push({ name: Dt, kind: Ji }), h.body = H(), B.pop(), h.label = tt, w(h, "LabeledStatement");
|
|
4642
4896
|
} else
|
|
4643
4897
|
return h.expression = tt, le(), w(h, "ExpressionStatement");
|
|
4644
4898
|
}
|
|
4645
4899
|
}
|
|
4646
|
-
function
|
|
4647
|
-
|
|
4648
|
-
var f =
|
|
4649
|
-
return
|
|
4900
|
+
function ke() {
|
|
4901
|
+
$(Z);
|
|
4902
|
+
var f = X();
|
|
4903
|
+
return $(K), f;
|
|
4650
4904
|
}
|
|
4651
|
-
function
|
|
4652
|
-
var h =
|
|
4653
|
-
for (h.body = [],
|
|
4905
|
+
function De(f) {
|
|
4906
|
+
var h = Y(), y = !0, _ = !1, x;
|
|
4907
|
+
for (h.body = [], $(xe); !j(_e); ) {
|
|
4654
4908
|
var P = H();
|
|
4655
|
-
h.body.push(P), y && f &&
|
|
4909
|
+
h.body.push(P), y && f && Tt(P) && (x = _, Nt(_ = !0)), y = !1;
|
|
4656
4910
|
}
|
|
4657
|
-
return _ && !x &&
|
|
4911
|
+
return _ && !x && Nt(!1), w(h, "BlockStatement");
|
|
4658
4912
|
}
|
|
4659
|
-
function
|
|
4660
|
-
return f.init = h,
|
|
4913
|
+
function Pt(f, h) {
|
|
4914
|
+
return f.init = h, $(Q), f.test = R === Q ? null : X(), $(Q), f.update = R === K ? null : X(), $(K), f.body = H(), B.pop(), w(f, "ForStatement");
|
|
4661
4915
|
}
|
|
4662
|
-
function
|
|
4663
|
-
return f.left = h, f.right =
|
|
4916
|
+
function $r(f, h) {
|
|
4917
|
+
return f.left = h, f.right = X(), $(K), f.body = H(), B.pop(), w(f, "ForInStatement");
|
|
4664
4918
|
}
|
|
4665
|
-
function
|
|
4919
|
+
function Vr(f, h) {
|
|
4666
4920
|
for (f.declarations = [], f.kind = "var"; ; ) {
|
|
4667
|
-
var y =
|
|
4668
|
-
if (y.id = ae(),
|
|
4921
|
+
var y = Y();
|
|
4922
|
+
if (y.id = ae(), z && Je(y.id.name) && A(y.id.start, "Binding " + y.id.name + " in strict mode"), y.init = j(Pr) ? X(!0, h) : null, f.declarations.push(w(y, "VariableDeclarator")), !j(ne)) break;
|
|
4669
4923
|
}
|
|
4670
4924
|
}
|
|
4671
|
-
function
|
|
4672
|
-
var y =
|
|
4673
|
-
if (!f &&
|
|
4925
|
+
function X(f, h) {
|
|
4926
|
+
var y = wt(h);
|
|
4927
|
+
if (!f && R === ne) {
|
|
4674
4928
|
var _ = ie(y);
|
|
4675
|
-
for (_.expressions = [y];
|
|
4929
|
+
for (_.expressions = [y]; j(ne); ) _.expressions.push(wt(h));
|
|
4676
4930
|
return w(_, "SequenceExpression");
|
|
4677
4931
|
}
|
|
4678
4932
|
return y;
|
|
4679
4933
|
}
|
|
4680
|
-
function
|
|
4681
|
-
var h =
|
|
4682
|
-
if (
|
|
4934
|
+
function wt(f) {
|
|
4935
|
+
var h = Gi(f);
|
|
4936
|
+
if (R.isAssign) {
|
|
4683
4937
|
var y = ie(h);
|
|
4684
|
-
return y.operator = S, y.left = h, k(), y.right =
|
|
4938
|
+
return y.operator = S, y.left = h, k(), y.right = wt(f), et(h), w(y, "AssignmentExpression");
|
|
4685
4939
|
}
|
|
4686
4940
|
return h;
|
|
4687
4941
|
}
|
|
4688
|
-
function
|
|
4689
|
-
var h =
|
|
4690
|
-
if (
|
|
4942
|
+
function Gi(f) {
|
|
4943
|
+
var h = Yi(f);
|
|
4944
|
+
if (j(Tr)) {
|
|
4691
4945
|
var y = ie(h);
|
|
4692
|
-
return y.test = h, y.consequent =
|
|
4946
|
+
return y.test = h, y.consequent = X(!0), $(Ce), y.alternate = X(!0, f), w(y, "ConditionalExpression");
|
|
4693
4947
|
}
|
|
4694
4948
|
return h;
|
|
4695
4949
|
}
|
|
4696
|
-
function
|
|
4697
|
-
return
|
|
4950
|
+
function Yi(f) {
|
|
4951
|
+
return xt(Ct(), -1, f);
|
|
4698
4952
|
}
|
|
4699
|
-
function
|
|
4700
|
-
var _ =
|
|
4701
|
-
if (_ !== null && (!y ||
|
|
4953
|
+
function xt(f, h, y) {
|
|
4954
|
+
var _ = R.binop;
|
|
4955
|
+
if (_ !== null && (!y || R !== We) && _ > h) {
|
|
4702
4956
|
var x = ie(f);
|
|
4703
4957
|
x.left = f, x.operator = S;
|
|
4704
|
-
var P =
|
|
4705
|
-
k(), x.right =
|
|
4706
|
-
var C = w(x, P ===
|
|
4707
|
-
return
|
|
4958
|
+
var P = R;
|
|
4959
|
+
k(), x.right = xt(Ct(), _, y);
|
|
4960
|
+
var C = w(x, P === xr || P === Cr ? "LogicalExpression" : "BinaryExpression");
|
|
4961
|
+
return xt(C, h, y);
|
|
4708
4962
|
}
|
|
4709
4963
|
return f;
|
|
4710
4964
|
}
|
|
4711
|
-
function
|
|
4712
|
-
if (
|
|
4713
|
-
var f =
|
|
4714
|
-
return f.operator = S, f.prefix = !0, I = !0, k(), f.argument =
|
|
4965
|
+
function Ct() {
|
|
4966
|
+
if (R.prefix) {
|
|
4967
|
+
var f = Y(), h = R.isUpdate;
|
|
4968
|
+
return f.operator = S, f.prefix = !0, I = !0, k(), f.argument = Ct(), h ? et(f.argument) : z && f.operator === "delete" && f.argument.type === "Identifier" && A(f.start, "Deleting local variable in strict mode"), w(f, h ? "UpdateExpression" : "UnaryExpression");
|
|
4715
4969
|
}
|
|
4716
|
-
for (var y =
|
|
4970
|
+
for (var y = Xi(); R.postfix && !Qe(); ) {
|
|
4717
4971
|
var f = ie(y);
|
|
4718
4972
|
f.operator = S, f.prefix = !1, f.argument = y, et(y), k(), y = w(f, "UpdateExpression");
|
|
4719
4973
|
}
|
|
4720
4974
|
return y;
|
|
4721
4975
|
}
|
|
4722
|
-
function
|
|
4723
|
-
return
|
|
4976
|
+
function Xi() {
|
|
4977
|
+
return Le(At());
|
|
4724
4978
|
}
|
|
4725
|
-
function
|
|
4979
|
+
function Le(f, h) {
|
|
4726
4980
|
var y;
|
|
4727
|
-
return
|
|
4981
|
+
return j(Nr) ? (y = ie(f), y.object = f, y.property = ae(!0), y.computed = !1, Le(w(y, "MemberExpression"), h)) : j(mt) ? (y = ie(f), y.object = f, y.property = X(), y.computed = !0, $(Rt), Le(w(y, "MemberExpression"), h)) : !h && j(Z) ? (y = ie(f), y.callee = f, y.arguments = kt(K, !1), Le(w(y, "CallExpression"), h)) : f;
|
|
4728
4982
|
}
|
|
4729
|
-
function
|
|
4983
|
+
function At() {
|
|
4730
4984
|
var f;
|
|
4731
|
-
switch (
|
|
4732
|
-
case
|
|
4733
|
-
return f =
|
|
4985
|
+
switch (R) {
|
|
4986
|
+
case br:
|
|
4987
|
+
return f = Y(), k(), w(f, "ThisExpression");
|
|
4734
4988
|
case ye:
|
|
4735
4989
|
return ae();
|
|
4736
4990
|
case Xe:
|
|
4737
|
-
case
|
|
4738
|
-
case
|
|
4739
|
-
return f =
|
|
4740
|
-
case
|
|
4741
|
-
case
|
|
4742
|
-
case
|
|
4743
|
-
return f =
|
|
4991
|
+
case ht:
|
|
4992
|
+
case ar:
|
|
4993
|
+
return f = Y(), f.value = S, f.raw = t.slice(p, d), k(), w(f, "Literal");
|
|
4994
|
+
case mr:
|
|
4995
|
+
case Rr:
|
|
4996
|
+
case Or:
|
|
4997
|
+
return f = Y(), f.value = R.atomValue, f.raw = R.keyword, k(), w(f, "Literal");
|
|
4744
4998
|
case Z:
|
|
4745
|
-
var h =
|
|
4999
|
+
var h = g, y = p;
|
|
4746
5000
|
k();
|
|
4747
|
-
var _ =
|
|
4748
|
-
return _.start = y, _.end = d, r.locations && (_.loc.start = h, _.loc.end =
|
|
4749
|
-
case
|
|
4750
|
-
return f =
|
|
4751
|
-
case
|
|
4752
|
-
return
|
|
4753
|
-
case
|
|
4754
|
-
return f =
|
|
4755
|
-
case
|
|
4756
|
-
return
|
|
5001
|
+
var _ = X();
|
|
5002
|
+
return _.start = y, _.end = d, r.locations && (_.loc.start = h, _.loc.end = N), r.ranges && (_.range = [y, d]), $(K), _;
|
|
5003
|
+
case mt:
|
|
5004
|
+
return f = Y(), k(), f.elements = kt(Rt, !0, !0), w(f, "ArrayExpression");
|
|
5005
|
+
case xe:
|
|
5006
|
+
return zi();
|
|
5007
|
+
case _t:
|
|
5008
|
+
return f = Y(), k(), It(f, !1);
|
|
5009
|
+
case gr:
|
|
5010
|
+
return Wi();
|
|
4757
5011
|
}
|
|
4758
5012
|
ee();
|
|
4759
5013
|
}
|
|
4760
|
-
function
|
|
4761
|
-
var f =
|
|
4762
|
-
return k(), f.callee =
|
|
5014
|
+
function Wi() {
|
|
5015
|
+
var f = Y();
|
|
5016
|
+
return k(), f.callee = Le(At(), !0), f.arguments = j(Z) ? kt(K, !1) : pi, w(f, "NewExpression");
|
|
4763
5017
|
}
|
|
4764
|
-
function
|
|
4765
|
-
var f =
|
|
4766
|
-
for (f.properties = [], k(); !
|
|
5018
|
+
function zi() {
|
|
5019
|
+
var f = Y(), h = !0, y = !1;
|
|
5020
|
+
for (f.properties = [], k(); !j(_e); ) {
|
|
4767
5021
|
if (h)
|
|
4768
5022
|
h = !1;
|
|
4769
|
-
else if (
|
|
5023
|
+
else if ($(ne), r.allowTrailingCommas && j(_e))
|
|
4770
5024
|
break;
|
|
4771
|
-
var _ = { key:
|
|
4772
|
-
if (
|
|
5025
|
+
var _ = { key: Gr() }, x = !1, P;
|
|
5026
|
+
if (j(Ce) ? (_.value = X(!0), P = _.kind = "init") : _.key.type === "Identifier" && (_.key.name === "get" || _.key.name === "set") ? (x = y = !0, P = _.kind = _.key.name, _.key = Gr(), R !== Z && ee(), _.value = It(Y(), !1)) : ee(), _.key.type === "Identifier" && (z || y))
|
|
4773
5027
|
for (var C = 0; C < f.properties.length; ++C) {
|
|
4774
|
-
var
|
|
4775
|
-
if (
|
|
4776
|
-
var
|
|
4777
|
-
|
|
5028
|
+
var U = f.properties[C];
|
|
5029
|
+
if (U.key.name === _.key.name) {
|
|
5030
|
+
var Me = P === U.kind || x && U.kind === "init" || P === "init" && (U.kind === "get" || U.kind === "set");
|
|
5031
|
+
Me && !z && P === "init" && U.kind === "init" && (Me = !1), Me && A(_.key.start, "Redefinition of property");
|
|
4778
5032
|
}
|
|
4779
5033
|
}
|
|
4780
5034
|
f.properties.push(_);
|
|
4781
5035
|
}
|
|
4782
5036
|
return w(f, "ObjectExpression");
|
|
4783
5037
|
}
|
|
4784
|
-
function
|
|
4785
|
-
return
|
|
5038
|
+
function Gr() {
|
|
5039
|
+
return R === Xe || R === ht ? At() : ae(!0);
|
|
4786
5040
|
}
|
|
4787
|
-
function
|
|
4788
|
-
|
|
5041
|
+
function It(f, h) {
|
|
5042
|
+
R === ye ? f.id = ae() : h ? ee() : f.id = null, f.params = [];
|
|
4789
5043
|
var y = !0;
|
|
4790
|
-
for (
|
|
4791
|
-
y ? y = !1 :
|
|
4792
|
-
var _ = se, x =
|
|
4793
|
-
if (se = !0,
|
|
5044
|
+
for ($(Z); !j(K); )
|
|
5045
|
+
y ? y = !1 : $(ne), f.params.push(ae());
|
|
5046
|
+
var _ = se, x = B;
|
|
5047
|
+
if (se = !0, B = [], f.body = De(!0), se = _, B = x, z || f.body.body.length && Tt(f.body.body[0]))
|
|
4794
5048
|
for (var P = f.id ? -1 : 0; P < f.params.length; ++P) {
|
|
4795
5049
|
var C = P < 0 ? f.id : f.params[P];
|
|
4796
|
-
if ((
|
|
4797
|
-
for (var
|
|
4798
|
-
C.name === f.params[
|
|
5050
|
+
if ((Ar(C.name) || Je(C.name)) && A(C.start, "Defining '" + C.name + "' in strict mode"), P >= 0)
|
|
5051
|
+
for (var U = 0; U < P; ++U)
|
|
5052
|
+
C.name === f.params[U].name && A(C.start, "Argument name clash in strict mode");
|
|
4799
5053
|
}
|
|
4800
5054
|
return w(f, h ? "FunctionDeclaration" : "FunctionExpression");
|
|
4801
5055
|
}
|
|
4802
|
-
function
|
|
4803
|
-
for (var _ = [], x = !0; !
|
|
5056
|
+
function kt(f, h, y) {
|
|
5057
|
+
for (var _ = [], x = !0; !j(f); ) {
|
|
4804
5058
|
if (x)
|
|
4805
5059
|
x = !1;
|
|
4806
|
-
else if (
|
|
5060
|
+
else if ($(ne), h && r.allowTrailingCommas && j(f))
|
|
4807
5061
|
break;
|
|
4808
|
-
_.push(y &&
|
|
5062
|
+
_.push(y && R === ne ? null : X(!0));
|
|
4809
5063
|
}
|
|
4810
5064
|
return _;
|
|
4811
5065
|
}
|
|
4812
5066
|
function ae(f) {
|
|
4813
|
-
var h =
|
|
4814
|
-
return f && r.forbidReserved === "everywhere" && (f = !1),
|
|
5067
|
+
var h = Y();
|
|
5068
|
+
return f && r.forbidReserved === "everywhere" && (f = !1), R === ye ? (!f && (r.forbidReserved && Oi(S) || z && Ar(S)) && t.slice(p, d).indexOf("\\") === -1 && A(p, "The keyword '" + S + "' is reserved"), h.name = S) : f && R.keyword ? h.name = R.keyword : ee(), I = !1, k(), w(h, "Identifier");
|
|
4815
5069
|
}
|
|
4816
5070
|
});
|
|
4817
5071
|
}
|
|
@@ -4822,17 +5076,17 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4822
5076
|
!*** external "vm" ***!
|
|
4823
5077
|
\*********************/
|
|
4824
5078
|
/***/
|
|
4825
|
-
(
|
|
4826
|
-
|
|
5079
|
+
(b) => {
|
|
5080
|
+
b.exports = uc;
|
|
4827
5081
|
}
|
|
4828
5082
|
)
|
|
4829
5083
|
/******/
|
|
4830
5084
|
}, v = {};
|
|
4831
|
-
function
|
|
4832
|
-
var T = v[
|
|
5085
|
+
function E(b) {
|
|
5086
|
+
var T = v[b];
|
|
4833
5087
|
if (T !== void 0)
|
|
4834
5088
|
return T.exports;
|
|
4835
|
-
var
|
|
5089
|
+
var O = v[b] = {
|
|
4836
5090
|
/******/
|
|
4837
5091
|
// no module.id needed
|
|
4838
5092
|
/******/
|
|
@@ -4841,222 +5095,222 @@ const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4841
5095
|
exports: {}
|
|
4842
5096
|
/******/
|
|
4843
5097
|
};
|
|
4844
|
-
return l[
|
|
5098
|
+
return l[b].call(O.exports, O, O.exports, E), O.exports;
|
|
4845
5099
|
}
|
|
4846
|
-
|
|
4847
|
-
for (var
|
|
4848
|
-
|
|
4849
|
-
},
|
|
4850
|
-
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(
|
|
5100
|
+
E.d = (b, T) => {
|
|
5101
|
+
for (var O in T)
|
|
5102
|
+
E.o(T, O) && !E.o(b, O) && Object.defineProperty(b, O, { enumerable: !0, get: T[O] });
|
|
5103
|
+
}, E.o = (b, T) => Object.prototype.hasOwnProperty.call(b, T), E.r = (b) => {
|
|
5104
|
+
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(b, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(b, "__esModule", { value: !0 });
|
|
4851
5105
|
};
|
|
4852
|
-
var
|
|
5106
|
+
var m = {};
|
|
4853
5107
|
return (() => {
|
|
4854
5108
|
/*!*******************************!*\
|
|
4855
5109
|
!*** ./src/js-interpreter.js ***!
|
|
4856
5110
|
\*******************************/
|
|
4857
|
-
|
|
5111
|
+
E.r(m), E.d(m, {
|
|
4858
5112
|
/* harmony export */
|
|
4859
|
-
default: () =>
|
|
5113
|
+
default: () => O
|
|
4860
5114
|
/* harmony export */
|
|
4861
5115
|
});
|
|
4862
|
-
const
|
|
5116
|
+
const b = E(
|
|
4863
5117
|
/*! ../original-repo/acorn */
|
|
4864
5118
|
"./original-repo/acorn.js"
|
|
4865
5119
|
);
|
|
4866
|
-
globalThis.acorn =
|
|
4867
|
-
const { Interpreter: T } =
|
|
5120
|
+
globalThis.acorn = b;
|
|
5121
|
+
const { Interpreter: T } = E(
|
|
4868
5122
|
/*! ../original-repo/interpreter */
|
|
4869
5123
|
"./original-repo/interpreter.js"
|
|
4870
|
-
),
|
|
4871
|
-
})(),
|
|
5124
|
+
), O = T;
|
|
5125
|
+
})(), m = m.default, m;
|
|
4872
5126
|
})()
|
|
4873
5127
|
));
|
|
4874
|
-
})(
|
|
4875
|
-
var
|
|
4876
|
-
const
|
|
4877
|
-
function
|
|
5128
|
+
})(ci);
|
|
5129
|
+
var sc = ci.exports;
|
|
5130
|
+
const cc = /* @__PURE__ */ nc(sc);
|
|
5131
|
+
function fc(n, u) {
|
|
4878
5132
|
function l(T) {
|
|
4879
|
-
const
|
|
4880
|
-
console.log(
|
|
5133
|
+
const O = n.pseudoToNative(T);
|
|
5134
|
+
console.log(O);
|
|
4881
5135
|
}
|
|
4882
5136
|
function v(T) {
|
|
4883
|
-
const
|
|
5137
|
+
const O = n.pseudoToNative(T);
|
|
4884
5138
|
let r = "";
|
|
4885
|
-
typeof
|
|
5139
|
+
typeof O == "object" ? r = JSON.stringify(O) : r = String(O), On.emit("consoleAppend", r);
|
|
4886
5140
|
}
|
|
4887
|
-
function
|
|
4888
|
-
const r = n.pseudoToNative(T), t = n.pseudoToNative(
|
|
4889
|
-
r === "info" ?
|
|
5141
|
+
function E(T, O) {
|
|
5142
|
+
const r = n.pseudoToNative(T), t = n.pseudoToNative(O);
|
|
5143
|
+
r === "info" ? ia(t) : r === "success" ? aa(t) : r === "warning" ? oa(t) : r === "error" && ua(t);
|
|
4890
5144
|
}
|
|
4891
|
-
function
|
|
4892
|
-
const r = n.pseudoToNative(T), t = n.pseudoToNative(
|
|
5145
|
+
function m(T, O) {
|
|
5146
|
+
const r = n.pseudoToNative(T), t = n.pseudoToNative(O);
|
|
4893
5147
|
setTimeout(() => {
|
|
4894
5148
|
n.appendCode(`__timeoutCallbackV1__(${r})`), n.run();
|
|
4895
5149
|
}, t);
|
|
4896
5150
|
}
|
|
4897
|
-
function
|
|
5151
|
+
function b(T, O) {
|
|
4898
5152
|
const r = n.pseudoToNative(T);
|
|
4899
5153
|
setTimeout(() => {
|
|
4900
|
-
|
|
5154
|
+
O(), n.run();
|
|
4901
5155
|
}, r);
|
|
4902
5156
|
}
|
|
4903
5157
|
n.setProperty(
|
|
4904
|
-
|
|
5158
|
+
u,
|
|
4905
5159
|
"__consoleLogV1__",
|
|
4906
5160
|
n.createNativeFunction(l)
|
|
4907
5161
|
), n.setProperty(
|
|
4908
|
-
|
|
5162
|
+
u,
|
|
4909
5163
|
"__debugTraceV1__",
|
|
4910
5164
|
n.createNativeFunction(v)
|
|
4911
5165
|
), n.setProperty(
|
|
4912
|
-
|
|
5166
|
+
u,
|
|
4913
5167
|
"__messageV1__",
|
|
4914
|
-
n.createNativeFunction(
|
|
5168
|
+
n.createNativeFunction(E)
|
|
4915
5169
|
), n.setProperty(
|
|
4916
|
-
|
|
5170
|
+
u,
|
|
4917
5171
|
"__timeoutV1__",
|
|
4918
|
-
n.createNativeFunction(
|
|
5172
|
+
n.createNativeFunction(m)
|
|
4919
5173
|
), n.setProperty(
|
|
4920
|
-
|
|
5174
|
+
u,
|
|
4921
5175
|
"__delayV1__",
|
|
4922
|
-
n.createAsyncFunction(
|
|
5176
|
+
n.createAsyncFunction(b)
|
|
4923
5177
|
);
|
|
4924
5178
|
}
|
|
4925
|
-
class
|
|
4926
|
-
constructor(
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
this.context =
|
|
5179
|
+
class lc {
|
|
5180
|
+
constructor(u) {
|
|
5181
|
+
Lt(this, "context");
|
|
5182
|
+
Lt(this, "nodes");
|
|
5183
|
+
this.context = u, this.nodes = {};
|
|
4930
5184
|
const l = (v) => {
|
|
4931
|
-
var
|
|
4932
|
-
this.nodes[v.basic.id] = v, (
|
|
5185
|
+
var E;
|
|
5186
|
+
this.nodes[v.basic.id] = v, (E = v.children) == null || E.forEach((m) => l(m));
|
|
4933
5187
|
};
|
|
4934
5188
|
this.context.data.view.nodes.forEach((v) => l(v));
|
|
4935
5189
|
}
|
|
4936
|
-
getNode(
|
|
4937
|
-
return this.nodes[
|
|
5190
|
+
getNode(u) {
|
|
5191
|
+
return this.nodes[u];
|
|
4938
5192
|
}
|
|
4939
|
-
addNode(
|
|
4940
|
-
const
|
|
4941
|
-
let
|
|
4942
|
-
if (
|
|
4943
|
-
const T = this.getNode(
|
|
5193
|
+
addNode(u, l, v) {
|
|
5194
|
+
const E = `parent=${u} ref=${l} keyOrRefid=${v}`;
|
|
5195
|
+
let m;
|
|
5196
|
+
if (u) {
|
|
5197
|
+
const T = this.getNode(u);
|
|
4944
5198
|
if (!T)
|
|
4945
|
-
return console.error(`NodeMgr/addNode parent not found, ${
|
|
5199
|
+
return console.error(`NodeMgr/addNode parent not found, ${E}`), "";
|
|
4946
5200
|
if (!T.children)
|
|
4947
|
-
return console.error(`NodeMgr/addNode parent no children, ${
|
|
4948
|
-
|
|
5201
|
+
return console.error(`NodeMgr/addNode parent no children, ${E}`), "";
|
|
5202
|
+
m = T.children;
|
|
4949
5203
|
} else
|
|
4950
|
-
|
|
4951
|
-
if (!
|
|
5204
|
+
m = this.context.data.view.nodes;
|
|
5205
|
+
if (!m)
|
|
4952
5206
|
return "";
|
|
4953
|
-
const
|
|
5207
|
+
const b = $s(
|
|
4954
5208
|
this.context.type,
|
|
4955
5209
|
this.context.data.type,
|
|
4956
5210
|
this.context.data.version,
|
|
4957
5211
|
l,
|
|
4958
5212
|
v
|
|
4959
5213
|
);
|
|
4960
|
-
return
|
|
5214
|
+
return b ? (m.push(b), this.nodes[b.basic.id] = b, b.basic.id) : (console.error(`NodeMgr/addNode spawn node failed, ${E}`), "");
|
|
4961
5215
|
}
|
|
4962
|
-
deleteNode(
|
|
4963
|
-
this.getNode(
|
|
5216
|
+
deleteNode(u) {
|
|
5217
|
+
this.getNode(u);
|
|
4964
5218
|
}
|
|
4965
5219
|
}
|
|
4966
|
-
function
|
|
4967
|
-
const v = new
|
|
4968
|
-
function
|
|
4969
|
-
const o =
|
|
4970
|
-
return
|
|
5220
|
+
function pc(n, u, l) {
|
|
5221
|
+
const v = new lc(n);
|
|
5222
|
+
function E(t, e, i) {
|
|
5223
|
+
const o = u.pseudoToNative(t), s = u.pseudoToNative(e), c = u.pseudoToNative(i), a = v.addNode(o, s, c);
|
|
5224
|
+
return u.nativeToPseudo(a);
|
|
4971
5225
|
}
|
|
4972
|
-
function
|
|
4973
|
-
const e =
|
|
5226
|
+
function m(t) {
|
|
5227
|
+
const e = u.pseudoToNative(t);
|
|
4974
5228
|
v.deleteNode(e);
|
|
4975
5229
|
}
|
|
4976
|
-
function
|
|
4977
|
-
const i =
|
|
5230
|
+
function b(t, e) {
|
|
5231
|
+
const i = u.pseudoToNative(t), o = u.pseudoToNative(e), s = `id=${i} keys=${o}`;
|
|
4978
5232
|
let c;
|
|
4979
5233
|
if (i === "globality" ? c = n.data.view : c = v.getNode(i), !c) {
|
|
4980
|
-
console.error(`getNodePropV1 node not found, ${
|
|
5234
|
+
console.error(`getNodePropV1 node not found, ${s}`);
|
|
4981
5235
|
return;
|
|
4982
5236
|
}
|
|
4983
5237
|
const a = o.split("."), p = a.length;
|
|
4984
5238
|
for (let d = 0; d < p; d++) {
|
|
4985
|
-
const
|
|
5239
|
+
const g = a[d];
|
|
4986
5240
|
if (d === p - 1)
|
|
4987
|
-
return
|
|
4988
|
-
if (c = c[
|
|
4989
|
-
console.error(`getNodePropV1 unpkg failed, ${
|
|
5241
|
+
return u.nativeToPseudo(c[g]);
|
|
5242
|
+
if (c = c[g], !c) {
|
|
5243
|
+
console.error(`getNodePropV1 unpkg failed, ${s}`);
|
|
4990
5244
|
return;
|
|
4991
5245
|
}
|
|
4992
5246
|
}
|
|
4993
5247
|
}
|
|
4994
5248
|
function T(t, e, i) {
|
|
4995
|
-
const o =
|
|
5249
|
+
const o = u.pseudoToNative(t), s = u.pseudoToNative(e), c = u.pseudoToNative(i), a = `id=${o} keys=${s} value=${c}`;
|
|
4996
5250
|
let p;
|
|
4997
5251
|
if (o === "globality" ? p = n.data.view : p = v.getNode(o), !p) {
|
|
4998
5252
|
console.error(`setNodePropV1 node not found, ${a}`);
|
|
4999
5253
|
return;
|
|
5000
5254
|
}
|
|
5001
|
-
const d =
|
|
5002
|
-
for (let
|
|
5003
|
-
const
|
|
5004
|
-
if (
|
|
5005
|
-
p[
|
|
5006
|
-
else if (p = p[
|
|
5255
|
+
const d = s.split("."), g = d.length;
|
|
5256
|
+
for (let N = 0; N < g; N++) {
|
|
5257
|
+
const R = d[N];
|
|
5258
|
+
if (N === g - 1)
|
|
5259
|
+
p[R] = c;
|
|
5260
|
+
else if (p = p[R], !p) {
|
|
5007
5261
|
console.error(`setNodePropV1 unpkg failed, ${a}`);
|
|
5008
5262
|
return;
|
|
5009
5263
|
}
|
|
5010
5264
|
}
|
|
5011
5265
|
}
|
|
5012
|
-
function
|
|
5013
|
-
const o =
|
|
5014
|
-
|
|
5015
|
-
i(
|
|
5266
|
+
function O(t, e, i) {
|
|
5267
|
+
const o = u.pseudoToNative(t), s = u.pseudoToNative(e);
|
|
5268
|
+
sa({ title: o, text: s }).then((c) => {
|
|
5269
|
+
i(u.nativeToPseudo(c)), u.run();
|
|
5016
5270
|
});
|
|
5017
5271
|
}
|
|
5018
5272
|
function r(t, e, i, o) {
|
|
5019
|
-
const
|
|
5020
|
-
|
|
5021
|
-
o(
|
|
5273
|
+
const s = u.pseudoToNative(t), c = u.pseudoToNative(e), a = u.pseudoToNative(i);
|
|
5274
|
+
ca({ title: s, label: c, value: a }).then((p) => {
|
|
5275
|
+
o(u.nativeToPseudo(p)), u.run();
|
|
5022
5276
|
});
|
|
5023
5277
|
}
|
|
5024
|
-
|
|
5278
|
+
u.setProperty(
|
|
5025
5279
|
l,
|
|
5026
5280
|
"__addNodeV1__",
|
|
5027
|
-
|
|
5028
|
-
),
|
|
5281
|
+
u.createNativeFunction(E)
|
|
5282
|
+
), u.setProperty(
|
|
5029
5283
|
l,
|
|
5030
5284
|
"__deleteNodeV1__",
|
|
5031
|
-
|
|
5032
|
-
),
|
|
5285
|
+
u.createNativeFunction(m)
|
|
5286
|
+
), u.setProperty(
|
|
5033
5287
|
l,
|
|
5034
5288
|
"__getNodePropV1__",
|
|
5035
|
-
|
|
5036
|
-
),
|
|
5289
|
+
u.createNativeFunction(b)
|
|
5290
|
+
), u.setProperty(
|
|
5037
5291
|
l,
|
|
5038
5292
|
"__setNodePropV1__",
|
|
5039
|
-
|
|
5040
|
-
),
|
|
5293
|
+
u.createNativeFunction(T)
|
|
5294
|
+
), u.setProperty(
|
|
5041
5295
|
l,
|
|
5042
5296
|
"__openConfirmDlgV1__",
|
|
5043
|
-
|
|
5044
|
-
),
|
|
5297
|
+
u.createAsyncFunction(O)
|
|
5298
|
+
), u.setProperty(
|
|
5045
5299
|
l,
|
|
5046
5300
|
"__openPromptDlgV1__",
|
|
5047
|
-
|
|
5301
|
+
u.createAsyncFunction(r)
|
|
5048
5302
|
);
|
|
5049
5303
|
}
|
|
5050
|
-
function
|
|
5051
|
-
|
|
5304
|
+
function hc(n, u, l) {
|
|
5305
|
+
fc(u, l), pc(n, u, l);
|
|
5052
5306
|
}
|
|
5053
|
-
const
|
|
5307
|
+
const dc = `
|
|
5054
5308
|
var __env__ = 'dev'
|
|
5055
5309
|
|
|
5056
5310
|
function __getEnvV1__() {
|
|
5057
5311
|
return __env__
|
|
5058
5312
|
}
|
|
5059
|
-
`,
|
|
5313
|
+
`, vc = `
|
|
5060
5314
|
var __events__ = {}
|
|
5061
5315
|
|
|
5062
5316
|
function __addEventListenerV1__(id, event, callback) {
|
|
@@ -5127,7 +5381,7 @@ function __triggerEvent__(id, event, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p1
|
|
|
5127
5381
|
callbacks[i](p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16)
|
|
5128
5382
|
}
|
|
5129
5383
|
}
|
|
5130
|
-
`,
|
|
5384
|
+
`, yc = `
|
|
5131
5385
|
var __timers__ = {}
|
|
5132
5386
|
var __currTimerId__ = 0
|
|
5133
5387
|
|
|
@@ -5169,26 +5423,26 @@ function __timeoutCallbackV1__(timerId) {
|
|
|
5169
5423
|
}
|
|
5170
5424
|
}
|
|
5171
5425
|
}
|
|
5172
|
-
`,
|
|
5426
|
+
`, _c = `
|
|
5173
5427
|
function __destroy__() {
|
|
5174
5428
|
}
|
|
5175
|
-
`,
|
|
5176
|
-
function
|
|
5177
|
-
const l = new
|
|
5178
|
-
|
|
5179
|
-
(v,
|
|
5180
|
-
|
|
5429
|
+
`, Ec = dc + vc + yc + _c;
|
|
5430
|
+
function gc(n, u) {
|
|
5431
|
+
const l = new cc(
|
|
5432
|
+
Ec,
|
|
5433
|
+
(v, E) => {
|
|
5434
|
+
hc(n, v, E);
|
|
5181
5435
|
}
|
|
5182
5436
|
);
|
|
5183
|
-
return l.appendCode(
|
|
5437
|
+
return l.appendCode(u), l.appendCode(`
|
|
5184
5438
|
__env__ = '${n.env}';
|
|
5185
5439
|
__triggerEvent__('globality', 'startup');
|
|
5186
5440
|
`), l.run(), l;
|
|
5187
5441
|
}
|
|
5188
|
-
function
|
|
5442
|
+
function gn(n) {
|
|
5189
5443
|
n.appendCode("__destroy__();"), n.run();
|
|
5190
5444
|
}
|
|
5191
|
-
const
|
|
5445
|
+
const bc = /* @__PURE__ */ Wt({
|
|
5192
5446
|
__name: "index",
|
|
5193
5447
|
props: {
|
|
5194
5448
|
id: {},
|
|
@@ -5197,30 +5451,23 @@ const rc = /* @__PURE__ */ on({
|
|
|
5197
5451
|
outer: { type: Boolean }
|
|
5198
5452
|
},
|
|
5199
5453
|
setup(n) {
|
|
5200
|
-
const { t:
|
|
5454
|
+
const { t: u } = na(), l = n, v = Vs(), E = ir(), m = ri(), b = ni(), T = ii(), O = Ys(), r = M(() => O[l.refContext.refid]);
|
|
5201
5455
|
let t;
|
|
5202
|
-
|
|
5203
|
-
r.value ||
|
|
5456
|
+
ta(() => {
|
|
5457
|
+
r.value || On.emit("compNotAvail", l.refContext.refid), t && (gn(t), t = void 0), r.value && E === "runtime" && (t = gc(
|
|
5204
5458
|
{
|
|
5205
5459
|
env: v,
|
|
5206
|
-
type:
|
|
5460
|
+
type: b,
|
|
5207
5461
|
data: T
|
|
5208
5462
|
},
|
|
5209
5463
|
r.value.data.code.script
|
|
5210
|
-
),
|
|
5211
|
-
}),
|
|
5212
|
-
t && (
|
|
5464
|
+
), Xs(t));
|
|
5465
|
+
}), ra(() => {
|
|
5466
|
+
t && (gn(t), t = void 0);
|
|
5213
5467
|
});
|
|
5214
|
-
const { applySize: e } =
|
|
5215
|
-
const d = {},
|
|
5216
|
-
|
|
5217
|
-
case "common":
|
|
5218
|
-
e(d);
|
|
5219
|
-
break;
|
|
5220
|
-
default:
|
|
5221
|
-
console.assert(!1, `invalid subtype=${E}`);
|
|
5222
|
-
}
|
|
5223
|
-
return d;
|
|
5468
|
+
const { applySize: e } = ui(E, m, l), i = M(() => {
|
|
5469
|
+
const d = {}, g = T.type;
|
|
5470
|
+
return b === "page" ? g === "common" ? e(d) : console.assert(!1) : b === "comp" && g === "common" ? e(d) : console.assert(!1), d;
|
|
5224
5471
|
});
|
|
5225
5472
|
function o() {
|
|
5226
5473
|
let d = l.refContext.parent;
|
|
@@ -5231,147 +5478,87 @@ const rc = /* @__PURE__ */ on({
|
|
|
5231
5478
|
}
|
|
5232
5479
|
return !1;
|
|
5233
5480
|
}
|
|
5234
|
-
function
|
|
5235
|
-
let
|
|
5236
|
-
return d.ref ?
|
|
5481
|
+
function s(d) {
|
|
5482
|
+
let g;
|
|
5483
|
+
return d.ref ? g = c(d) : g = a(d), g;
|
|
5237
5484
|
}
|
|
5238
5485
|
function c(d) {
|
|
5239
|
-
const
|
|
5240
|
-
let
|
|
5241
|
-
return
|
|
5486
|
+
const g = li[T.version].refKey, N = Te[g];
|
|
5487
|
+
let R;
|
|
5488
|
+
return N ? R = Fe(N.comp, {
|
|
5242
5489
|
refContext: {
|
|
5243
5490
|
parent: l.refContext,
|
|
5244
5491
|
refid: d.ref.id
|
|
5245
5492
|
},
|
|
5246
5493
|
node: d
|
|
5247
|
-
}) : console.assert(!1),
|
|
5494
|
+
}) : console.assert(!1), R;
|
|
5248
5495
|
}
|
|
5249
5496
|
function a(d) {
|
|
5250
|
-
var
|
|
5251
|
-
let
|
|
5252
|
-
const
|
|
5253
|
-
return
|
|
5254
|
-
|
|
5255
|
-
}),
|
|
5497
|
+
var R;
|
|
5498
|
+
let g;
|
|
5499
|
+
const N = Te[d.basic.key];
|
|
5500
|
+
return N ? ((R = d.children) == null || R.forEach((S) => {
|
|
5501
|
+
s(S);
|
|
5502
|
+
}), g = Fe(N.comp, { node: d })) : console.assert(!1, `invalid element key=${d.basic.key}`), g;
|
|
5256
5503
|
}
|
|
5257
5504
|
const p = () => {
|
|
5258
5505
|
const d = [];
|
|
5259
5506
|
if (o())
|
|
5260
|
-
d.push(
|
|
5507
|
+
d.push(Fe("div", u("x-runtime-lib.circularRef")));
|
|
5261
5508
|
else if (r.value) {
|
|
5262
|
-
const
|
|
5263
|
-
|
|
5264
|
-
const
|
|
5265
|
-
d.push(
|
|
5266
|
-
}) : console.assert(!1, `invalid subtype=${
|
|
5509
|
+
const g = r.value.data.type;
|
|
5510
|
+
g === "common" ? r.value.data.view.nodes.forEach((N) => {
|
|
5511
|
+
const R = s(N);
|
|
5512
|
+
d.push(R);
|
|
5513
|
+
}) : console.assert(!1, `invalid subtype=${g}`);
|
|
5267
5514
|
} else
|
|
5268
|
-
d.push(
|
|
5269
|
-
return
|
|
5515
|
+
d.push(Fe("div", u("x-runtime-lib.compNotAvail")));
|
|
5516
|
+
return Fe("div", { id: l.id, style: i.value }, d);
|
|
5270
5517
|
};
|
|
5271
|
-
return (d,
|
|
5518
|
+
return (d, g) => (zt(), Rn(p));
|
|
5272
5519
|
}
|
|
5273
|
-
}),
|
|
5274
|
-
{
|
|
5275
|
-
name: "x-runtime-lib.unset",
|
|
5276
|
-
ui: "word",
|
|
5277
|
-
validator: Vi,
|
|
5278
|
-
default: ""
|
|
5279
|
-
},
|
|
5280
|
-
{
|
|
5281
|
-
name: "x-runtime-lib.pixel",
|
|
5282
|
-
ui: "pixelInput",
|
|
5283
|
-
validator: Yi,
|
|
5284
|
-
default: "0px",
|
|
5285
|
-
precision: 0,
|
|
5286
|
-
min: 0,
|
|
5287
|
-
max: 1 / 0,
|
|
5288
|
-
step: 1
|
|
5289
|
-
},
|
|
5290
|
-
{
|
|
5291
|
-
name: "x-runtime-lib.percent",
|
|
5292
|
-
ui: "percentInput",
|
|
5293
|
-
validator: Xi,
|
|
5294
|
-
default: "0%",
|
|
5295
|
-
precision: 4,
|
|
5296
|
-
min: 0,
|
|
5297
|
-
max: 1 / 0,
|
|
5298
|
-
step: 1
|
|
5299
|
-
}
|
|
5300
|
-
], Yn = {
|
|
5520
|
+
}), bn = {
|
|
5301
5521
|
key: "ref",
|
|
5302
5522
|
name: "x-runtime-lib.ref",
|
|
5303
5523
|
children: [
|
|
5304
5524
|
{
|
|
5305
5525
|
key: "id",
|
|
5306
|
-
name: "x-runtime-lib.
|
|
5307
|
-
ui: "compSelect"
|
|
5308
|
-
},
|
|
5309
|
-
{
|
|
5310
|
-
key: "name",
|
|
5311
|
-
name: "x-runtime-lib.name",
|
|
5312
|
-
ui: "strInput",
|
|
5313
|
-
static: !0
|
|
5314
|
-
},
|
|
5315
|
-
{
|
|
5316
|
-
key: "width",
|
|
5317
|
-
name: "x-runtime-lib.width",
|
|
5318
|
-
ui: "multiTypes",
|
|
5319
|
-
types: me,
|
|
5320
|
-
default: ""
|
|
5321
|
-
},
|
|
5322
|
-
{
|
|
5323
|
-
key: "minWidth",
|
|
5324
|
-
name: "x-runtime-lib.minWidth",
|
|
5325
|
-
ui: "multiTypes",
|
|
5326
|
-
types: me,
|
|
5327
|
-
default: ""
|
|
5328
|
-
},
|
|
5329
|
-
{
|
|
5330
|
-
key: "maxWidth",
|
|
5331
|
-
name: "x-runtime-lib.maxWidth",
|
|
5332
|
-
ui: "multiTypes",
|
|
5333
|
-
types: me,
|
|
5334
|
-
default: ""
|
|
5335
|
-
},
|
|
5336
|
-
{
|
|
5337
|
-
key: "height",
|
|
5338
|
-
name: "x-runtime-lib.height",
|
|
5339
|
-
ui: "multiTypes",
|
|
5340
|
-
types: me,
|
|
5341
|
-
default: ""
|
|
5342
|
-
},
|
|
5343
|
-
{
|
|
5344
|
-
key: "minHeight",
|
|
5345
|
-
name: "x-runtime-lib.minHeight",
|
|
5346
|
-
ui: "multiTypes",
|
|
5347
|
-
types: me,
|
|
5348
|
-
default: ""
|
|
5349
|
-
},
|
|
5350
|
-
{
|
|
5351
|
-
key: "maxHeight",
|
|
5352
|
-
name: "x-runtime-lib.maxHeight",
|
|
5353
|
-
ui: "multiTypes",
|
|
5354
|
-
types: me,
|
|
5526
|
+
name: "x-runtime-lib.comp",
|
|
5527
|
+
ui: "compSelect",
|
|
5355
5528
|
default: ""
|
|
5356
5529
|
}
|
|
5357
5530
|
]
|
|
5358
|
-
},
|
|
5359
|
-
key:
|
|
5531
|
+
}, fi = {
|
|
5532
|
+
key: oi,
|
|
5360
5533
|
name: "x-runtime-lib.ref",
|
|
5361
|
-
comp:
|
|
5534
|
+
comp: bc,
|
|
5362
5535
|
leaf: !0,
|
|
5363
5536
|
events: [],
|
|
5364
5537
|
methods: [],
|
|
5365
5538
|
props: {
|
|
5366
|
-
pageCommon:
|
|
5367
|
-
compCommon:
|
|
5539
|
+
pageCommon: [Ne, bn, ut, at, ot],
|
|
5540
|
+
compCommon: [Ne, bn, ut, at, ot]
|
|
5368
5541
|
}
|
|
5369
|
-
},
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5542
|
+
}, mc = {
|
|
5543
|
+
version: "v1",
|
|
5544
|
+
globalityKey: si.key,
|
|
5545
|
+
refKey: fi.key,
|
|
5546
|
+
elements: /* @__PURE__ */ new Set([
|
|
5547
|
+
Yt,
|
|
5548
|
+
Xt,
|
|
5549
|
+
ai,
|
|
5550
|
+
oi
|
|
5551
|
+
]),
|
|
5552
|
+
groups: [
|
|
5553
|
+
{
|
|
5554
|
+
key: "basic",
|
|
5555
|
+
name: "x-runtime-lib.basic",
|
|
5556
|
+
items: [Yt, Xt]
|
|
5557
|
+
}
|
|
5558
|
+
]
|
|
5559
|
+
}, li = {
|
|
5560
|
+
v1: mc
|
|
5561
|
+
}, Te = {}, Rc = {
|
|
5375
5562
|
key: "add",
|
|
5376
5563
|
name: "METHOD_ADD",
|
|
5377
5564
|
inputs: [],
|
|
@@ -5381,59 +5568,61 @@ const rc = /* @__PURE__ */ on({
|
|
|
5381
5568
|
name: "PARAM_NEW_NODE"
|
|
5382
5569
|
}
|
|
5383
5570
|
]
|
|
5571
|
+
}, pt = (n) => {
|
|
5572
|
+
Te[n.key] && console.assert(!1, `element duplicate key=${n.key}`), n.leaf || n.methods.unshift(Rc), Te[n.key] = n;
|
|
5384
5573
|
};
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
const
|
|
5390
|
-
const v = n[
|
|
5391
|
-
return v ? typeof v == "function" ? v() : Promise.resolve(v) : new Promise((
|
|
5574
|
+
pt(Ks);
|
|
5575
|
+
pt(tc);
|
|
5576
|
+
pt(si);
|
|
5577
|
+
pt(fi);
|
|
5578
|
+
const Oc = (n, u, l) => {
|
|
5579
|
+
const v = n[u];
|
|
5580
|
+
return v ? typeof v == "function" ? v() : Promise.resolve(v) : new Promise((E, m) => {
|
|
5392
5581
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
5393
|
-
|
|
5582
|
+
m.bind(
|
|
5394
5583
|
null,
|
|
5395
5584
|
new Error(
|
|
5396
|
-
"Unknown variable dynamic import: " +
|
|
5585
|
+
"Unknown variable dynamic import: " + u + (u.split("/").length !== l ? ". Note that variables only represent file names one level deep." : "")
|
|
5397
5586
|
)
|
|
5398
5587
|
)
|
|
5399
5588
|
);
|
|
5400
5589
|
});
|
|
5401
5590
|
};
|
|
5402
|
-
async function
|
|
5403
|
-
return (await
|
|
5591
|
+
async function Uc(n) {
|
|
5592
|
+
return (await Oc(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-gana12hn.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-elu3m97j.js") }), `./locales/${n}/index.ts`, 4)).default;
|
|
5404
5593
|
}
|
|
5405
5594
|
export {
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5595
|
+
Cc as duplicateNode,
|
|
5596
|
+
Te as elements,
|
|
5597
|
+
Nn as genId,
|
|
5598
|
+
xc as getNode,
|
|
5599
|
+
dn as getPropDefault,
|
|
5600
|
+
Bs as getPropTag,
|
|
5601
|
+
vn as initProps,
|
|
5602
|
+
Gs as injectDark,
|
|
5603
|
+
ii as injectData,
|
|
5604
|
+
Ys as injectDepends,
|
|
5605
|
+
ri as injectDevice,
|
|
5606
|
+
Vs as injectEnv,
|
|
5607
|
+
Ws as injectInterpreter,
|
|
5608
|
+
ir as injectMode,
|
|
5609
|
+
ni as injectType,
|
|
5610
|
+
Jt as isEmptyStr,
|
|
5611
|
+
Kt as isPercentStr,
|
|
5612
|
+
Ht as isPixelStr,
|
|
5613
|
+
Uc as loadLocaleMessageRuntime,
|
|
5614
|
+
Mt as parsePercentStr,
|
|
5615
|
+
wc as parsePixelStr,
|
|
5616
|
+
li as pkgs,
|
|
5617
|
+
Dc as provideDark,
|
|
5618
|
+
Mc as provideData,
|
|
5619
|
+
Fc as provideDepends,
|
|
5620
|
+
kc as provideDevice,
|
|
5621
|
+
Ac as provideEnv,
|
|
5622
|
+
Xs as provideInterpreter,
|
|
5623
|
+
Ic as provideMode,
|
|
5624
|
+
Lc as provideType,
|
|
5625
|
+
$s as spawnNode,
|
|
5626
|
+
gc as startInterpreter,
|
|
5627
|
+
gn as stopInterpreter
|
|
5439
5628
|
};
|