x-runtime-lib 0.4.17 → 0.5.1
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/composables/element/basic/size.d.ts +3 -3
- package/dist/index.js +1175 -1183
- package/dist/types/data.d.ts +4 -0
- package/dist/utils/node.d.ts +4 -3
- package/dist/utils/provideInject.d.ts +9 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,111 +1,111 @@
|
|
|
1
1
|
var wi = Object.defineProperty;
|
|
2
|
-
var xi = (n, s,
|
|
3
|
-
var
|
|
4
|
-
import { provide as oe,
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { eventBus as cn, messageInfo as
|
|
7
|
-
const
|
|
2
|
+
var xi = (n, s, l) => s in n ? wi(n, s, { enumerable: !0, configurable: !0, writable: !0, value: l }) : n[s] = l;
|
|
3
|
+
var xt = (n, s, l) => xi(n, typeof s != "symbol" ? s + "" : s, l);
|
|
4
|
+
import { provide as oe, inject as ue, readonly as $e, isReactive as an, defineComponent as on, computed as W, resolveComponent as Ci, openBlock as un, createBlock as sn, watchEffect as Ai, onBeforeUnmount as Ii, h as Le } from "vue";
|
|
5
|
+
import { useI18n as ki } from "vue-i18n";
|
|
6
|
+
import { eventBus as cn, messageInfo as Di, messageSuccess as Fi, messageWarning as Li, messageError as Mi, openConfirmDlg as Ui, openPromptDlg as ji } from "x-essential-lib";
|
|
7
|
+
const Bi = /* @__PURE__ */ new Set([
|
|
8
8
|
"globality_v1",
|
|
9
9
|
"btn_v1",
|
|
10
10
|
"ref_v1"
|
|
11
|
-
]),
|
|
11
|
+
]), $i = [
|
|
12
12
|
{
|
|
13
13
|
key: "basic",
|
|
14
14
|
name: "x-runtime-lib.basic",
|
|
15
15
|
items: ["globality_v1", "btn_v1"]
|
|
16
16
|
}
|
|
17
|
-
],
|
|
17
|
+
], Gi = {
|
|
18
18
|
version: "v1",
|
|
19
19
|
globalityKey: "globality_v1",
|
|
20
20
|
refKey: "ref_v1",
|
|
21
|
-
elements:
|
|
22
|
-
groups:
|
|
21
|
+
elements: Bi,
|
|
22
|
+
groups: $i
|
|
23
23
|
}, fn = {
|
|
24
|
-
v1:
|
|
25
|
-
},
|
|
24
|
+
v1: Gi
|
|
25
|
+
}, Cr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
26
26
|
function ln(n) {
|
|
27
27
|
let s = "";
|
|
28
|
-
for (let
|
|
29
|
-
const v = Math.floor(Math.random() *
|
|
30
|
-
s +=
|
|
28
|
+
for (let l = 0; l < n; l++) {
|
|
29
|
+
const v = Math.floor(Math.random() * Cr.length);
|
|
30
|
+
s += Cr[v];
|
|
31
31
|
}
|
|
32
32
|
return s;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Vi(n) {
|
|
35
35
|
return n === "";
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Yi(n) {
|
|
38
38
|
if (typeof n != "string" || !n.endsWith("px"))
|
|
39
39
|
return !1;
|
|
40
|
-
const s = n.substring(0, n.length - 2),
|
|
41
|
-
return !(isNaN(
|
|
40
|
+
const s = n.substring(0, n.length - 2), l = parseFloat(s);
|
|
41
|
+
return !(isNaN(l) || l % 1 !== 0);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Xi(n) {
|
|
44
44
|
if (typeof n != "string" || !n.endsWith("%"))
|
|
45
45
|
return !1;
|
|
46
|
-
const s = n.substring(0, n.length - 1),
|
|
47
|
-
return !isNaN(
|
|
46
|
+
const s = n.substring(0, n.length - 1), l = parseFloat(s);
|
|
47
|
+
return !isNaN(l);
|
|
48
48
|
}
|
|
49
49
|
function pc(n) {
|
|
50
50
|
if (typeof n != "string" || !n.endsWith("px"))
|
|
51
51
|
return;
|
|
52
|
-
const s = n.substring(0, n.length - 2),
|
|
53
|
-
if (!isNaN(
|
|
54
|
-
return
|
|
52
|
+
const s = n.substring(0, n.length - 2), l = parseFloat(s);
|
|
53
|
+
if (!isNaN(l) && l % 1 === 0)
|
|
54
|
+
return l;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Ct(n) {
|
|
57
57
|
if (typeof n != "string" || !n.endsWith("%"))
|
|
58
58
|
return;
|
|
59
|
-
const s = n.substring(0, n.length - 1),
|
|
60
|
-
if (!isNaN(
|
|
61
|
-
return
|
|
59
|
+
const s = n.substring(0, n.length - 1), l = parseFloat(s);
|
|
60
|
+
if (!isNaN(l))
|
|
61
|
+
return l;
|
|
62
62
|
}
|
|
63
|
-
var pn = typeof global == "object" && global && global.Object === Object && global,
|
|
64
|
-
function
|
|
65
|
-
var s =
|
|
63
|
+
var pn = typeof global == "object" && global && global.Object === Object && global, Wi = typeof self == "object" && self && self.Object === Object && self, q = pn || Wi || Function("return this")(), Re = q.Symbol, hn = Object.prototype, Ji = hn.hasOwnProperty, zi = hn.toString, Me = Re ? Re.toStringTag : void 0;
|
|
64
|
+
function Hi(n) {
|
|
65
|
+
var s = Ji.call(n, Me), l = n[Me];
|
|
66
66
|
try {
|
|
67
|
-
n[
|
|
67
|
+
n[Me] = void 0;
|
|
68
68
|
var v = !0;
|
|
69
69
|
} catch {
|
|
70
70
|
}
|
|
71
|
-
var g =
|
|
72
|
-
return v && (s ? n[
|
|
71
|
+
var g = zi.call(n);
|
|
72
|
+
return v && (s ? n[Me] = l : delete n[Me]), g;
|
|
73
73
|
}
|
|
74
|
-
var
|
|
75
|
-
function
|
|
76
|
-
return
|
|
74
|
+
var Ki = Object.prototype, qi = Ki.toString;
|
|
75
|
+
function Zi(n) {
|
|
76
|
+
return qi.call(n);
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var Qi = "[object Null]", ea = "[object Undefined]", Ar = Re ? Re.toStringTag : void 0;
|
|
79
79
|
function Ge(n) {
|
|
80
|
-
return n == null ? n === void 0 ?
|
|
80
|
+
return n == null ? n === void 0 ? ea : Qi : Ar && Ar in Object(n) ? Hi(n) : Zi(n);
|
|
81
81
|
}
|
|
82
82
|
function Ve(n) {
|
|
83
83
|
return n != null && typeof n == "object";
|
|
84
84
|
}
|
|
85
|
-
var
|
|
85
|
+
var Ut = Array.isArray;
|
|
86
86
|
function Ye(n) {
|
|
87
87
|
var s = typeof n;
|
|
88
88
|
return n != null && (s == "object" || s == "function");
|
|
89
89
|
}
|
|
90
|
-
var
|
|
90
|
+
var ta = "[object AsyncFunction]", ra = "[object Function]", na = "[object GeneratorFunction]", ia = "[object Proxy]";
|
|
91
91
|
function dn(n) {
|
|
92
92
|
if (!Ye(n))
|
|
93
93
|
return !1;
|
|
94
94
|
var s = Ge(n);
|
|
95
|
-
return s ==
|
|
95
|
+
return s == ra || s == na || s == ta || s == ia;
|
|
96
96
|
}
|
|
97
|
-
var
|
|
98
|
-
var n = /[^.]+$/.exec(
|
|
97
|
+
var At = q["__core-js_shared__"], Ir = function() {
|
|
98
|
+
var n = /[^.]+$/.exec(At && At.keys && At.keys.IE_PROTO || "");
|
|
99
99
|
return n ? "Symbol(src)_1." + n : "";
|
|
100
100
|
}();
|
|
101
|
-
function
|
|
102
|
-
return !!
|
|
101
|
+
function aa(n) {
|
|
102
|
+
return !!Ir && Ir in n;
|
|
103
103
|
}
|
|
104
|
-
var
|
|
105
|
-
function
|
|
104
|
+
var oa = Function.prototype, ua = oa.toString;
|
|
105
|
+
function he(n) {
|
|
106
106
|
if (n != null) {
|
|
107
107
|
try {
|
|
108
|
-
return
|
|
108
|
+
return ua.call(n);
|
|
109
109
|
} catch {
|
|
110
110
|
}
|
|
111
111
|
try {
|
|
@@ -115,441 +115,442 @@ function de(n) {
|
|
|
115
115
|
}
|
|
116
116
|
return "";
|
|
117
117
|
}
|
|
118
|
-
var
|
|
119
|
-
"^" +
|
|
118
|
+
var sa = /[\\^$.*+?()[\]{}|]/g, ca = /^\[object .+?Constructor\]$/, fa = Function.prototype, la = Object.prototype, pa = fa.toString, ha = la.hasOwnProperty, da = RegExp(
|
|
119
|
+
"^" + pa.call(ha).replace(sa, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
120
120
|
);
|
|
121
|
-
function
|
|
122
|
-
if (!Ye(n) ||
|
|
121
|
+
function va(n) {
|
|
122
|
+
if (!Ye(n) || aa(n))
|
|
123
123
|
return !1;
|
|
124
|
-
var s = dn(n) ?
|
|
125
|
-
return s.test(
|
|
124
|
+
var s = dn(n) ? da : ca;
|
|
125
|
+
return s.test(he(n));
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function ya(n, s) {
|
|
128
128
|
return n == null ? void 0 : n[s];
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
var
|
|
132
|
-
return
|
|
130
|
+
function de(n, s) {
|
|
131
|
+
var l = ya(n, s);
|
|
132
|
+
return va(l) ? l : void 0;
|
|
133
133
|
}
|
|
134
|
-
var
|
|
134
|
+
var kt = de(q, "WeakMap"), kr = Object.create, _a = /* @__PURE__ */ function() {
|
|
135
135
|
function n() {
|
|
136
136
|
}
|
|
137
137
|
return function(s) {
|
|
138
138
|
if (!Ye(s))
|
|
139
139
|
return {};
|
|
140
|
-
if (
|
|
141
|
-
return
|
|
140
|
+
if (kr)
|
|
141
|
+
return kr(s);
|
|
142
142
|
n.prototype = s;
|
|
143
|
-
var
|
|
144
|
-
return n.prototype = void 0,
|
|
143
|
+
var l = new n();
|
|
144
|
+
return n.prototype = void 0, l;
|
|
145
145
|
};
|
|
146
146
|
}();
|
|
147
|
-
function
|
|
148
|
-
var
|
|
149
|
-
for (s || (s = Array(v)); ++
|
|
150
|
-
s[
|
|
147
|
+
function Ea(n, s) {
|
|
148
|
+
var l = -1, v = n.length;
|
|
149
|
+
for (s || (s = Array(v)); ++l < v; )
|
|
150
|
+
s[l] = n[l];
|
|
151
151
|
return s;
|
|
152
152
|
}
|
|
153
|
-
var
|
|
153
|
+
var Dr = function() {
|
|
154
154
|
try {
|
|
155
|
-
var n =
|
|
155
|
+
var n = de(Object, "defineProperty");
|
|
156
156
|
return n({}, "", {}), n;
|
|
157
157
|
} catch {
|
|
158
158
|
}
|
|
159
159
|
}();
|
|
160
|
-
function
|
|
161
|
-
for (var
|
|
160
|
+
function ga(n, s) {
|
|
161
|
+
for (var l = -1, v = n == null ? 0 : n.length; ++l < v && s(n[l], l, n) !== !1; )
|
|
162
162
|
;
|
|
163
163
|
return n;
|
|
164
164
|
}
|
|
165
|
-
var
|
|
166
|
-
function
|
|
167
|
-
var
|
|
168
|
-
return s = s ??
|
|
165
|
+
var ba = 9007199254740991, ma = /^(?:0|[1-9]\d*)$/;
|
|
166
|
+
function Ra(n, s) {
|
|
167
|
+
var l = typeof n;
|
|
168
|
+
return s = s ?? ba, !!s && (l == "number" || l != "symbol" && ma.test(n)) && n > -1 && n % 1 == 0 && n < s;
|
|
169
169
|
}
|
|
170
|
-
function vn(n, s,
|
|
171
|
-
s == "__proto__" &&
|
|
170
|
+
function vn(n, s, l) {
|
|
171
|
+
s == "__proto__" && Dr ? Dr(n, s, {
|
|
172
172
|
configurable: !0,
|
|
173
173
|
enumerable: !0,
|
|
174
|
-
value:
|
|
174
|
+
value: l,
|
|
175
175
|
writable: !0
|
|
176
|
-
}) : n[s] =
|
|
176
|
+
}) : n[s] = l;
|
|
177
177
|
}
|
|
178
178
|
function yn(n, s) {
|
|
179
179
|
return n === s || n !== n && s !== s;
|
|
180
180
|
}
|
|
181
|
-
var
|
|
182
|
-
function _n(n, s,
|
|
181
|
+
var Oa = Object.prototype, Na = Oa.hasOwnProperty;
|
|
182
|
+
function _n(n, s, l) {
|
|
183
183
|
var v = n[s];
|
|
184
|
-
(!(
|
|
185
|
-
}
|
|
186
|
-
function
|
|
187
|
-
var g = !
|
|
188
|
-
|
|
189
|
-
for (var
|
|
190
|
-
var
|
|
191
|
-
R === void 0 && (R = n[
|
|
184
|
+
(!(Na.call(n, s) && yn(v, l)) || l === void 0 && !(s in n)) && vn(n, s, l);
|
|
185
|
+
}
|
|
186
|
+
function it(n, s, l, v) {
|
|
187
|
+
var g = !l;
|
|
188
|
+
l || (l = {});
|
|
189
|
+
for (var N = -1, m = s.length; ++N < m; ) {
|
|
190
|
+
var T = s[N], R = void 0;
|
|
191
|
+
R === void 0 && (R = n[T]), g ? vn(l, T, R) : _n(l, T, R);
|
|
192
192
|
}
|
|
193
|
-
return
|
|
193
|
+
return l;
|
|
194
194
|
}
|
|
195
|
-
var
|
|
195
|
+
var Ta = 9007199254740991;
|
|
196
196
|
function En(n) {
|
|
197
|
-
return typeof n == "number" && n > -1 && n % 1 == 0 && n <=
|
|
197
|
+
return typeof n == "number" && n > -1 && n % 1 == 0 && n <= Ta;
|
|
198
198
|
}
|
|
199
199
|
function gn(n) {
|
|
200
200
|
return n != null && En(n.length) && !dn(n);
|
|
201
201
|
}
|
|
202
|
-
var
|
|
203
|
-
function
|
|
204
|
-
var s = n && n.constructor,
|
|
205
|
-
return n ===
|
|
202
|
+
var Sa = Object.prototype;
|
|
203
|
+
function jt(n) {
|
|
204
|
+
var s = n && n.constructor, l = typeof s == "function" && s.prototype || Sa;
|
|
205
|
+
return n === l;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
for (var
|
|
209
|
-
v[
|
|
207
|
+
function Pa(n, s) {
|
|
208
|
+
for (var l = -1, v = Array(n); ++l < n; )
|
|
209
|
+
v[l] = s(l);
|
|
210
210
|
return v;
|
|
211
211
|
}
|
|
212
|
-
var
|
|
213
|
-
function
|
|
214
|
-
return Ve(n) && Ge(n) ==
|
|
212
|
+
var wa = "[object Arguments]";
|
|
213
|
+
function Fr(n) {
|
|
214
|
+
return Ve(n) && Ge(n) == wa;
|
|
215
215
|
}
|
|
216
|
-
var bn = Object.prototype,
|
|
216
|
+
var bn = Object.prototype, xa = bn.hasOwnProperty, Ca = bn.propertyIsEnumerable, Aa = Fr(/* @__PURE__ */ function() {
|
|
217
217
|
return arguments;
|
|
218
|
-
}()) ?
|
|
219
|
-
return Ve(n) &&
|
|
218
|
+
}()) ? Fr : function(n) {
|
|
219
|
+
return Ve(n) && xa.call(n, "callee") && !Ca.call(n, "callee");
|
|
220
220
|
};
|
|
221
|
-
function
|
|
221
|
+
function Ia() {
|
|
222
222
|
return !1;
|
|
223
223
|
}
|
|
224
|
-
var mn = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
225
|
-
L[qa] = L[Za] = L[Qa] = L[eo] = L[to] = L[ro] = L[no] = L[io] =
|
|
226
|
-
L[La] = L[
|
|
227
|
-
function
|
|
224
|
+
var mn = typeof exports == "object" && exports && !exports.nodeType && exports, Lr = mn && typeof module == "object" && module && !module.nodeType && module, ka = Lr && Lr.exports === mn, Mr = ka ? q.Buffer : void 0, Da = Mr ? Mr.isBuffer : void 0, Rn = Da || Ia, Fa = "[object Arguments]", La = "[object Array]", Ma = "[object Boolean]", Ua = "[object Date]", ja = "[object Error]", Ba = "[object Function]", $a = "[object Map]", Ga = "[object Number]", Va = "[object Object]", Ya = "[object RegExp]", Xa = "[object Set]", Wa = "[object String]", Ja = "[object WeakMap]", za = "[object ArrayBuffer]", Ha = "[object DataView]", Ka = "[object Float32Array]", qa = "[object Float64Array]", Za = "[object Int8Array]", Qa = "[object Int16Array]", eo = "[object Int32Array]", to = "[object Uint8Array]", ro = "[object Uint8ClampedArray]", no = "[object Uint16Array]", io = "[object Uint32Array]", L = {};
|
|
225
|
+
L[Ka] = L[qa] = L[Za] = L[Qa] = L[eo] = L[to] = L[ro] = L[no] = L[io] = !0;
|
|
226
|
+
L[Fa] = L[La] = L[za] = L[Ma] = L[Ha] = L[Ua] = L[ja] = L[Ba] = L[$a] = L[Ga] = L[Va] = L[Ya] = L[Xa] = L[Wa] = L[Ja] = !1;
|
|
227
|
+
function ao(n) {
|
|
228
228
|
return Ve(n) && En(n.length) && !!L[Ge(n)];
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Bt(n) {
|
|
231
231
|
return function(s) {
|
|
232
232
|
return n(s);
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
|
-
var On = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
235
|
+
var On = typeof exports == "object" && exports && !exports.nodeType && exports, Ue = On && typeof module == "object" && module && !module.nodeType && module, oo = Ue && Ue.exports === On, It = oo && pn.process, Oe = function() {
|
|
236
236
|
try {
|
|
237
|
-
var n =
|
|
238
|
-
return n ||
|
|
237
|
+
var n = Ue && Ue.require && Ue.require("util").types;
|
|
238
|
+
return n || It && It.binding && It.binding("util");
|
|
239
239
|
} catch {
|
|
240
240
|
}
|
|
241
|
-
}(),
|
|
241
|
+
}(), Ur = Oe && Oe.isTypedArray, uo = Ur ? Bt(Ur) : ao, so = Object.prototype, co = so.hasOwnProperty;
|
|
242
242
|
function Nn(n, s) {
|
|
243
|
-
var
|
|
243
|
+
var l = Ut(n), v = !l && Aa(n), g = !l && !v && Rn(n), N = !l && !v && !g && uo(n), m = l || v || g || N, T = m ? Pa(n.length, String) : [], R = T.length;
|
|
244
244
|
for (var r in n)
|
|
245
|
-
(s ||
|
|
245
|
+
(s || co.call(n, r)) && !(m && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
246
246
|
(r == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
247
247
|
g && (r == "offset" || r == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
return
|
|
248
|
+
N && (r == "buffer" || r == "byteLength" || r == "byteOffset") || // Skip index properties.
|
|
249
|
+
Ra(r, R))) && T.push(r);
|
|
250
|
+
return T;
|
|
251
251
|
}
|
|
252
252
|
function Tn(n, s) {
|
|
253
|
-
return function(
|
|
254
|
-
return n(s(
|
|
253
|
+
return function(l) {
|
|
254
|
+
return n(s(l));
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
var
|
|
258
|
-
function
|
|
259
|
-
if (!
|
|
260
|
-
return
|
|
257
|
+
var fo = Tn(Object.keys, Object), lo = Object.prototype, po = lo.hasOwnProperty;
|
|
258
|
+
function ho(n) {
|
|
259
|
+
if (!jt(n))
|
|
260
|
+
return fo(n);
|
|
261
261
|
var s = [];
|
|
262
|
-
for (var
|
|
263
|
-
|
|
262
|
+
for (var l in Object(n))
|
|
263
|
+
po.call(n, l) && l != "constructor" && s.push(l);
|
|
264
264
|
return s;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
return gn(n) ? Nn(n) :
|
|
266
|
+
function $t(n) {
|
|
267
|
+
return gn(n) ? Nn(n) : ho(n);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function vo(n) {
|
|
270
270
|
var s = [];
|
|
271
271
|
if (n != null)
|
|
272
|
-
for (var
|
|
273
|
-
s.push(
|
|
272
|
+
for (var l in Object(n))
|
|
273
|
+
s.push(l);
|
|
274
274
|
return s;
|
|
275
275
|
}
|
|
276
|
-
var
|
|
277
|
-
function
|
|
276
|
+
var yo = Object.prototype, _o = yo.hasOwnProperty;
|
|
277
|
+
function Eo(n) {
|
|
278
278
|
if (!Ye(n))
|
|
279
|
-
return
|
|
280
|
-
var s =
|
|
279
|
+
return vo(n);
|
|
280
|
+
var s = jt(n), l = [];
|
|
281
281
|
for (var v in n)
|
|
282
|
-
v == "constructor" && (s || !
|
|
283
|
-
return
|
|
282
|
+
v == "constructor" && (s || !_o.call(n, v)) || l.push(v);
|
|
283
|
+
return l;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
return gn(n) ? Nn(n, !0) :
|
|
285
|
+
function Gt(n) {
|
|
286
|
+
return gn(n) ? Nn(n, !0) : Eo(n);
|
|
287
287
|
}
|
|
288
|
-
var
|
|
289
|
-
function
|
|
290
|
-
this.__data__ =
|
|
288
|
+
var je = de(Object, "create");
|
|
289
|
+
function go() {
|
|
290
|
+
this.__data__ = je ? je(null) : {}, this.size = 0;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function bo(n) {
|
|
293
293
|
var s = this.has(n) && delete this.__data__[n];
|
|
294
294
|
return this.size -= s ? 1 : 0, s;
|
|
295
295
|
}
|
|
296
|
-
var
|
|
297
|
-
function
|
|
296
|
+
var mo = "__lodash_hash_undefined__", Ro = Object.prototype, Oo = Ro.hasOwnProperty;
|
|
297
|
+
function No(n) {
|
|
298
298
|
var s = this.__data__;
|
|
299
|
-
if (
|
|
300
|
-
var
|
|
301
|
-
return
|
|
299
|
+
if (je) {
|
|
300
|
+
var l = s[n];
|
|
301
|
+
return l === mo ? void 0 : l;
|
|
302
302
|
}
|
|
303
|
-
return
|
|
303
|
+
return Oo.call(s, n) ? s[n] : void 0;
|
|
304
304
|
}
|
|
305
|
-
var
|
|
306
|
-
function
|
|
305
|
+
var To = Object.prototype, So = To.hasOwnProperty;
|
|
306
|
+
function Po(n) {
|
|
307
307
|
var s = this.__data__;
|
|
308
|
-
return
|
|
308
|
+
return je ? s[n] !== void 0 : So.call(s, n);
|
|
309
309
|
}
|
|
310
|
-
var
|
|
311
|
-
function
|
|
312
|
-
var
|
|
313
|
-
return this.size += this.has(n) ? 0 : 1,
|
|
310
|
+
var wo = "__lodash_hash_undefined__";
|
|
311
|
+
function xo(n, s) {
|
|
312
|
+
var l = this.__data__;
|
|
313
|
+
return this.size += this.has(n) ? 0 : 1, l[n] = je && s === void 0 ? wo : s, this;
|
|
314
314
|
}
|
|
315
|
-
function
|
|
316
|
-
var s = -1,
|
|
317
|
-
for (this.clear(); ++s <
|
|
315
|
+
function pe(n) {
|
|
316
|
+
var s = -1, l = n == null ? 0 : n.length;
|
|
317
|
+
for (this.clear(); ++s < l; ) {
|
|
318
318
|
var v = n[s];
|
|
319
319
|
this.set(v[0], v[1]);
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
function
|
|
322
|
+
pe.prototype.clear = go;
|
|
323
|
+
pe.prototype.delete = bo;
|
|
324
|
+
pe.prototype.get = No;
|
|
325
|
+
pe.prototype.has = Po;
|
|
326
|
+
pe.prototype.set = xo;
|
|
327
|
+
function Co() {
|
|
328
328
|
this.__data__ = [], this.size = 0;
|
|
329
329
|
}
|
|
330
|
-
function
|
|
331
|
-
for (var
|
|
332
|
-
if (yn(n[
|
|
333
|
-
return
|
|
330
|
+
function at(n, s) {
|
|
331
|
+
for (var l = n.length; l--; )
|
|
332
|
+
if (yn(n[l][0], s))
|
|
333
|
+
return l;
|
|
334
334
|
return -1;
|
|
335
335
|
}
|
|
336
|
-
var
|
|
337
|
-
function
|
|
338
|
-
var s = this.__data__,
|
|
339
|
-
if (
|
|
336
|
+
var Ao = Array.prototype, Io = Ao.splice;
|
|
337
|
+
function ko(n) {
|
|
338
|
+
var s = this.__data__, l = at(s, n);
|
|
339
|
+
if (l < 0)
|
|
340
340
|
return !1;
|
|
341
341
|
var v = s.length - 1;
|
|
342
|
-
return
|
|
342
|
+
return l == v ? s.pop() : Io.call(s, l, 1), --this.size, !0;
|
|
343
343
|
}
|
|
344
|
-
function
|
|
345
|
-
var s = this.__data__,
|
|
346
|
-
return
|
|
344
|
+
function Do(n) {
|
|
345
|
+
var s = this.__data__, l = at(s, n);
|
|
346
|
+
return l < 0 ? void 0 : s[l][1];
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
return
|
|
348
|
+
function Fo(n) {
|
|
349
|
+
return at(this.__data__, n) > -1;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
352
|
-
var
|
|
353
|
-
return v < 0 ? (++this.size,
|
|
351
|
+
function Lo(n, s) {
|
|
352
|
+
var l = this.__data__, v = at(l, n);
|
|
353
|
+
return v < 0 ? (++this.size, l.push([n, s])) : l[v][1] = s, this;
|
|
354
354
|
}
|
|
355
355
|
function re(n) {
|
|
356
|
-
var s = -1,
|
|
357
|
-
for (this.clear(); ++s <
|
|
356
|
+
var s = -1, l = n == null ? 0 : n.length;
|
|
357
|
+
for (this.clear(); ++s < l; ) {
|
|
358
358
|
var v = n[s];
|
|
359
359
|
this.set(v[0], v[1]);
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
re.prototype.clear =
|
|
363
|
-
re.prototype.delete =
|
|
364
|
-
re.prototype.get =
|
|
365
|
-
re.prototype.has =
|
|
366
|
-
re.prototype.set =
|
|
367
|
-
var
|
|
368
|
-
function
|
|
362
|
+
re.prototype.clear = Co;
|
|
363
|
+
re.prototype.delete = ko;
|
|
364
|
+
re.prototype.get = Do;
|
|
365
|
+
re.prototype.has = Fo;
|
|
366
|
+
re.prototype.set = Lo;
|
|
367
|
+
var Be = de(q, "Map");
|
|
368
|
+
function Mo() {
|
|
369
369
|
this.size = 0, this.__data__ = {
|
|
370
|
-
hash: new
|
|
371
|
-
map: new (
|
|
372
|
-
string: new
|
|
370
|
+
hash: new pe(),
|
|
371
|
+
map: new (Be || re)(),
|
|
372
|
+
string: new pe()
|
|
373
373
|
};
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function Uo(n) {
|
|
376
376
|
var s = typeof n;
|
|
377
377
|
return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? n !== "__proto__" : n === null;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
var
|
|
381
|
-
return
|
|
379
|
+
function ot(n, s) {
|
|
380
|
+
var l = n.__data__;
|
|
381
|
+
return Uo(s) ? l[typeof s == "string" ? "string" : "hash"] : l.map;
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
var s =
|
|
383
|
+
function jo(n) {
|
|
384
|
+
var s = ot(this, n).delete(n);
|
|
385
385
|
return this.size -= s ? 1 : 0, s;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
388
|
-
return
|
|
387
|
+
function Bo(n) {
|
|
388
|
+
return ot(this, n).get(n);
|
|
389
389
|
}
|
|
390
|
-
function
|
|
391
|
-
return
|
|
390
|
+
function $o(n) {
|
|
391
|
+
return ot(this, n).has(n);
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
var
|
|
395
|
-
return
|
|
393
|
+
function Go(n, s) {
|
|
394
|
+
var l = ot(this, n), v = l.size;
|
|
395
|
+
return l.set(n, s), this.size += l.size == v ? 0 : 1, this;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
var s = -1,
|
|
399
|
-
for (this.clear(); ++s <
|
|
397
|
+
function Te(n) {
|
|
398
|
+
var s = -1, l = n == null ? 0 : n.length;
|
|
399
|
+
for (this.clear(); ++s < l; ) {
|
|
400
400
|
var v = n[s];
|
|
401
401
|
this.set(v[0], v[1]);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
404
|
+
Te.prototype.clear = Mo;
|
|
405
|
+
Te.prototype.delete = jo;
|
|
406
|
+
Te.prototype.get = Bo;
|
|
407
|
+
Te.prototype.has = $o;
|
|
408
|
+
Te.prototype.set = Go;
|
|
409
409
|
function Sn(n, s) {
|
|
410
|
-
for (var
|
|
411
|
-
n[g +
|
|
410
|
+
for (var l = -1, v = s.length, g = n.length; ++l < v; )
|
|
411
|
+
n[g + l] = s[l];
|
|
412
412
|
return n;
|
|
413
413
|
}
|
|
414
414
|
var Pn = Tn(Object.getPrototypeOf, Object);
|
|
415
|
-
function
|
|
415
|
+
function Vo() {
|
|
416
416
|
this.__data__ = new re(), this.size = 0;
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
var s = this.__data__,
|
|
420
|
-
return this.size = s.size,
|
|
418
|
+
function Yo(n) {
|
|
419
|
+
var s = this.__data__, l = s.delete(n);
|
|
420
|
+
return this.size = s.size, l;
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function Xo(n) {
|
|
423
423
|
return this.__data__.get(n);
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function Wo(n) {
|
|
426
426
|
return this.__data__.has(n);
|
|
427
427
|
}
|
|
428
|
-
var
|
|
429
|
-
function
|
|
430
|
-
var
|
|
431
|
-
if (
|
|
432
|
-
var v =
|
|
433
|
-
if (
|
|
434
|
-
return v.push([n, s]), this.size = ++
|
|
435
|
-
|
|
428
|
+
var Jo = 200;
|
|
429
|
+
function zo(n, s) {
|
|
430
|
+
var l = this.__data__;
|
|
431
|
+
if (l instanceof re) {
|
|
432
|
+
var v = l.__data__;
|
|
433
|
+
if (!Be || v.length < Jo - 1)
|
|
434
|
+
return v.push([n, s]), this.size = ++l.size, this;
|
|
435
|
+
l = this.__data__ = new Te(v);
|
|
436
436
|
}
|
|
437
|
-
return
|
|
437
|
+
return l.set(n, s), this.size = l.size, this;
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function Se(n) {
|
|
440
440
|
var s = this.__data__ = new re(n);
|
|
441
441
|
this.size = s.size;
|
|
442
442
|
}
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
function
|
|
449
|
-
return n &&
|
|
443
|
+
Se.prototype.clear = Vo;
|
|
444
|
+
Se.prototype.delete = Yo;
|
|
445
|
+
Se.prototype.get = Xo;
|
|
446
|
+
Se.prototype.has = Wo;
|
|
447
|
+
Se.prototype.set = zo;
|
|
448
|
+
function Ho(n, s) {
|
|
449
|
+
return n && it(s, $t(s), n);
|
|
450
450
|
}
|
|
451
|
-
function
|
|
452
|
-
return n &&
|
|
451
|
+
function Ko(n, s) {
|
|
452
|
+
return n && it(s, Gt(s), n);
|
|
453
453
|
}
|
|
454
|
-
var wn = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
455
|
-
function
|
|
454
|
+
var wn = typeof exports == "object" && exports && !exports.nodeType && exports, jr = wn && typeof module == "object" && module && !module.nodeType && module, qo = jr && jr.exports === wn, Br = qo ? q.Buffer : void 0, $r = Br ? Br.allocUnsafe : void 0;
|
|
455
|
+
function Zo(n, s) {
|
|
456
456
|
if (s)
|
|
457
457
|
return n.slice();
|
|
458
|
-
var
|
|
458
|
+
var l = n.length, v = $r ? $r(l) : new n.constructor(l);
|
|
459
459
|
return n.copy(v), v;
|
|
460
460
|
}
|
|
461
|
-
function
|
|
462
|
-
for (var
|
|
463
|
-
var m = n[
|
|
464
|
-
s(m,
|
|
461
|
+
function Qo(n, s) {
|
|
462
|
+
for (var l = -1, v = n == null ? 0 : n.length, g = 0, N = []; ++l < v; ) {
|
|
463
|
+
var m = n[l];
|
|
464
|
+
s(m, l, n) && (N[g++] = m);
|
|
465
465
|
}
|
|
466
|
-
return
|
|
466
|
+
return N;
|
|
467
467
|
}
|
|
468
468
|
function xn() {
|
|
469
469
|
return [];
|
|
470
470
|
}
|
|
471
|
-
var
|
|
472
|
-
return n == null ? [] : (n = Object(n),
|
|
473
|
-
return
|
|
471
|
+
var eu = Object.prototype, tu = eu.propertyIsEnumerable, Gr = Object.getOwnPropertySymbols, Vt = Gr ? function(n) {
|
|
472
|
+
return n == null ? [] : (n = Object(n), Qo(Gr(n), function(s) {
|
|
473
|
+
return tu.call(n, s);
|
|
474
474
|
}));
|
|
475
475
|
} : xn;
|
|
476
|
-
function
|
|
477
|
-
return
|
|
476
|
+
function ru(n, s) {
|
|
477
|
+
return it(n, Vt(n), s);
|
|
478
478
|
}
|
|
479
|
-
var
|
|
479
|
+
var nu = Object.getOwnPropertySymbols, Cn = nu ? function(n) {
|
|
480
480
|
for (var s = []; n; )
|
|
481
|
-
Sn(s,
|
|
481
|
+
Sn(s, Vt(n)), n = Pn(n);
|
|
482
482
|
return s;
|
|
483
483
|
} : xn;
|
|
484
|
-
function
|
|
485
|
-
return
|
|
484
|
+
function iu(n, s) {
|
|
485
|
+
return it(n, Cn(n), s);
|
|
486
486
|
}
|
|
487
|
-
function An(n, s,
|
|
487
|
+
function An(n, s, l) {
|
|
488
488
|
var v = s(n);
|
|
489
|
-
return
|
|
489
|
+
return Ut(n) ? v : Sn(v, l(n));
|
|
490
490
|
}
|
|
491
|
-
function
|
|
492
|
-
return An(n,
|
|
491
|
+
function au(n) {
|
|
492
|
+
return An(n, $t, Vt);
|
|
493
493
|
}
|
|
494
|
-
function
|
|
495
|
-
return An(n,
|
|
494
|
+
function ou(n) {
|
|
495
|
+
return An(n, Gt, Cn);
|
|
496
496
|
}
|
|
497
|
-
var
|
|
498
|
-
(
|
|
499
|
-
var s = Ge(n),
|
|
497
|
+
var Dt = de(q, "DataView"), Ft = de(q, "Promise"), Lt = de(q, "Set"), Vr = "[object Map]", uu = "[object Object]", Yr = "[object Promise]", Xr = "[object Set]", Wr = "[object WeakMap]", Jr = "[object DataView]", su = he(Dt), cu = he(Be), fu = he(Ft), lu = he(Lt), pu = he(kt), te = Ge;
|
|
498
|
+
(Dt && te(new Dt(new ArrayBuffer(1))) != Jr || Be && te(new Be()) != Vr || Ft && te(Ft.resolve()) != Yr || Lt && te(new Lt()) != Xr || kt && te(new kt()) != Wr) && (te = function(n) {
|
|
499
|
+
var s = Ge(n), l = s == uu ? n.constructor : void 0, v = l ? he(l) : "";
|
|
500
500
|
if (v)
|
|
501
501
|
switch (v) {
|
|
502
|
+
case su:
|
|
503
|
+
return Jr;
|
|
502
504
|
case cu:
|
|
503
|
-
return
|
|
505
|
+
return Vr;
|
|
504
506
|
case fu:
|
|
505
507
|
return Yr;
|
|
506
508
|
case lu:
|
|
507
509
|
return Xr;
|
|
508
510
|
case pu:
|
|
509
511
|
return Wr;
|
|
510
|
-
case hu:
|
|
511
|
-
return Jr;
|
|
512
512
|
}
|
|
513
513
|
return s;
|
|
514
514
|
});
|
|
515
|
-
var
|
|
516
|
-
function
|
|
517
|
-
var s = n.length,
|
|
518
|
-
return s && typeof n[0] == "string" &&
|
|
515
|
+
var hu = Object.prototype, du = hu.hasOwnProperty;
|
|
516
|
+
function vu(n) {
|
|
517
|
+
var s = n.length, l = new n.constructor(s);
|
|
518
|
+
return s && typeof n[0] == "string" && du.call(n, "index") && (l.index = n.index, l.input = n.input), l;
|
|
519
519
|
}
|
|
520
|
-
var
|
|
521
|
-
function
|
|
520
|
+
var zr = q.Uint8Array;
|
|
521
|
+
function Yt(n) {
|
|
522
522
|
var s = new n.constructor(n.byteLength);
|
|
523
|
-
return new
|
|
523
|
+
return new zr(s).set(new zr(n)), s;
|
|
524
524
|
}
|
|
525
|
-
function
|
|
526
|
-
var
|
|
527
|
-
return new n.constructor(
|
|
525
|
+
function yu(n, s) {
|
|
526
|
+
var l = s ? Yt(n.buffer) : n.buffer;
|
|
527
|
+
return new n.constructor(l, n.byteOffset, n.byteLength);
|
|
528
528
|
}
|
|
529
|
-
var
|
|
530
|
-
function
|
|
531
|
-
var s = new n.constructor(n.source,
|
|
529
|
+
var _u = /\w*$/;
|
|
530
|
+
function Eu(n) {
|
|
531
|
+
var s = new n.constructor(n.source, _u.exec(n));
|
|
532
532
|
return s.lastIndex = n.lastIndex, s;
|
|
533
533
|
}
|
|
534
|
-
var
|
|
535
|
-
function
|
|
536
|
-
return
|
|
534
|
+
var Hr = Re ? Re.prototype : void 0, Kr = Hr ? Hr.valueOf : void 0;
|
|
535
|
+
function gu(n) {
|
|
536
|
+
return Kr ? Object(Kr.call(n)) : {};
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
var
|
|
540
|
-
return new n.constructor(
|
|
538
|
+
function bu(n, s) {
|
|
539
|
+
var l = s ? Yt(n.buffer) : n.buffer;
|
|
540
|
+
return new n.constructor(l, n.byteOffset, n.length);
|
|
541
541
|
}
|
|
542
|
-
var
|
|
543
|
-
function
|
|
542
|
+
var mu = "[object Boolean]", Ru = "[object Date]", Ou = "[object Map]", Nu = "[object Number]", Tu = "[object RegExp]", Su = "[object Set]", Pu = "[object String]", wu = "[object Symbol]", xu = "[object ArrayBuffer]", Cu = "[object DataView]", Au = "[object Float32Array]", Iu = "[object Float64Array]", ku = "[object Int8Array]", Du = "[object Int16Array]", Fu = "[object Int32Array]", Lu = "[object Uint8Array]", Mu = "[object Uint8ClampedArray]", Uu = "[object Uint16Array]", ju = "[object Uint32Array]";
|
|
543
|
+
function Bu(n, s, l) {
|
|
544
544
|
var v = n.constructor;
|
|
545
545
|
switch (s) {
|
|
546
|
-
case
|
|
547
|
-
return
|
|
546
|
+
case xu:
|
|
547
|
+
return Yt(n);
|
|
548
|
+
case mu:
|
|
548
549
|
case Ru:
|
|
549
|
-
case Ou:
|
|
550
550
|
return new v(+n);
|
|
551
|
+
case Cu:
|
|
552
|
+
return yu(n, l);
|
|
551
553
|
case Au:
|
|
552
|
-
return _u(n, p);
|
|
553
554
|
case Iu:
|
|
554
555
|
case ku:
|
|
555
556
|
case Du:
|
|
@@ -558,89 +559,88 @@ function $u(n, s, p) {
|
|
|
558
559
|
case Mu:
|
|
559
560
|
case Uu:
|
|
560
561
|
case ju:
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
case Nu:
|
|
562
|
+
return bu(n, l);
|
|
563
|
+
case Ou:
|
|
564
564
|
return new v();
|
|
565
|
-
case
|
|
566
|
-
case
|
|
565
|
+
case Nu:
|
|
566
|
+
case Pu:
|
|
567
567
|
return new v(n);
|
|
568
|
+
case Tu:
|
|
569
|
+
return Eu(n);
|
|
568
570
|
case Su:
|
|
569
|
-
return gu(n);
|
|
570
|
-
case Pu:
|
|
571
571
|
return new v();
|
|
572
|
-
case
|
|
573
|
-
return
|
|
572
|
+
case wu:
|
|
573
|
+
return gu(n);
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
function
|
|
577
|
-
return typeof n.constructor == "function" && !
|
|
576
|
+
function $u(n) {
|
|
577
|
+
return typeof n.constructor == "function" && !jt(n) ? _a(Pn(n)) : {};
|
|
578
578
|
}
|
|
579
|
-
var
|
|
580
|
-
function
|
|
581
|
-
return Ve(n) && te(n) ==
|
|
579
|
+
var Gu = "[object Map]";
|
|
580
|
+
function Vu(n) {
|
|
581
|
+
return Ve(n) && te(n) == Gu;
|
|
582
582
|
}
|
|
583
|
-
var
|
|
584
|
-
function
|
|
585
|
-
return Ve(n) && te(n) ==
|
|
583
|
+
var qr = Oe && Oe.isMap, Yu = qr ? Bt(qr) : Vu, Xu = "[object Set]";
|
|
584
|
+
function Wu(n) {
|
|
585
|
+
return Ve(n) && te(n) == Xu;
|
|
586
586
|
}
|
|
587
|
-
var
|
|
588
|
-
F[In] = F[
|
|
589
|
-
F[
|
|
590
|
-
function rt(n, s,
|
|
591
|
-
var m,
|
|
587
|
+
var Zr = Oe && Oe.isSet, Ju = Zr ? Bt(Zr) : Wu, zu = 1, Hu = 2, Ku = 4, In = "[object Arguments]", qu = "[object Array]", Zu = "[object Boolean]", Qu = "[object Date]", es = "[object Error]", kn = "[object Function]", ts = "[object GeneratorFunction]", rs = "[object Map]", ns = "[object Number]", Dn = "[object Object]", is = "[object RegExp]", as = "[object Set]", os = "[object String]", us = "[object Symbol]", ss = "[object WeakMap]", cs = "[object ArrayBuffer]", fs = "[object DataView]", ls = "[object Float32Array]", ps = "[object Float64Array]", hs = "[object Int8Array]", ds = "[object Int16Array]", vs = "[object Int32Array]", ys = "[object Uint8Array]", _s = "[object Uint8ClampedArray]", Es = "[object Uint16Array]", gs = "[object Uint32Array]", F = {};
|
|
588
|
+
F[In] = F[qu] = F[cs] = F[fs] = F[Zu] = F[Qu] = F[ls] = F[ps] = F[hs] = F[ds] = F[vs] = F[rs] = F[ns] = F[Dn] = F[is] = F[as] = F[os] = F[us] = F[ys] = F[_s] = F[Es] = F[gs] = !0;
|
|
589
|
+
F[es] = F[kn] = F[ss] = !1;
|
|
590
|
+
function rt(n, s, l, v, g, N) {
|
|
591
|
+
var m, T = s & zu, R = s & Hu, r = s & Ku;
|
|
592
592
|
if (m !== void 0)
|
|
593
593
|
return m;
|
|
594
594
|
if (!Ye(n))
|
|
595
595
|
return n;
|
|
596
|
-
var t =
|
|
596
|
+
var t = Ut(n);
|
|
597
597
|
if (t) {
|
|
598
|
-
if (m =
|
|
599
|
-
return
|
|
598
|
+
if (m = vu(n), !T)
|
|
599
|
+
return Ea(n, m);
|
|
600
600
|
} else {
|
|
601
|
-
var e = te(n), i = e == kn || e ==
|
|
601
|
+
var e = te(n), i = e == kn || e == ts;
|
|
602
602
|
if (Rn(n))
|
|
603
|
-
return
|
|
603
|
+
return Zo(n, T);
|
|
604
604
|
if (e == Dn || e == In || i && !g) {
|
|
605
|
-
if (m = R || i ? {} :
|
|
606
|
-
return R ?
|
|
605
|
+
if (m = R || i ? {} : $u(n), !T)
|
|
606
|
+
return R ? iu(n, Ko(m, n)) : ru(n, Ho(m, n));
|
|
607
607
|
} else {
|
|
608
608
|
if (!F[e])
|
|
609
609
|
return g ? n : {};
|
|
610
|
-
m =
|
|
610
|
+
m = Bu(n, e, T);
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
|
|
614
|
-
var o =
|
|
613
|
+
N || (N = new Se());
|
|
614
|
+
var o = N.get(n);
|
|
615
615
|
if (o)
|
|
616
616
|
return o;
|
|
617
|
-
|
|
618
|
-
m.add(rt(a, s,
|
|
619
|
-
}) :
|
|
620
|
-
m.set(
|
|
617
|
+
N.set(n, m), Ju(n) ? n.forEach(function(a) {
|
|
618
|
+
m.add(rt(a, s, l, a, n, N));
|
|
619
|
+
}) : Yu(n) && n.forEach(function(a, p) {
|
|
620
|
+
m.set(p, rt(a, s, l, p, n, N));
|
|
621
621
|
});
|
|
622
|
-
var u = r ? R ?
|
|
623
|
-
return
|
|
624
|
-
c && (
|
|
622
|
+
var u = r ? R ? ou : au : R ? Gt : $t, c = t ? void 0 : u(n);
|
|
623
|
+
return ga(c || n, function(a, p) {
|
|
624
|
+
c && (p = a, a = n[p]), _n(m, p, rt(a, s, l, p, n, N));
|
|
625
625
|
}), m;
|
|
626
626
|
}
|
|
627
|
-
var
|
|
628
|
-
function
|
|
629
|
-
return rt(n,
|
|
627
|
+
var bs = 1, ms = 4;
|
|
628
|
+
function Mt(n) {
|
|
629
|
+
return rt(n, bs | ms);
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Rs(n, s) {
|
|
632
632
|
if (n === "page") {
|
|
633
633
|
if (s == "common")
|
|
634
634
|
return "pageCommon";
|
|
635
635
|
} else if (n === "comp" && s === "common")
|
|
636
636
|
return "compCommon";
|
|
637
637
|
}
|
|
638
|
-
function
|
|
639
|
-
var s,
|
|
638
|
+
function Qr(n) {
|
|
639
|
+
var s, l;
|
|
640
640
|
if (n.array)
|
|
641
|
-
return n.default instanceof Array ?
|
|
641
|
+
return n.default instanceof Array ? Mt(n.default) : [];
|
|
642
642
|
if (n.default !== void 0)
|
|
643
|
-
return
|
|
643
|
+
return Mt(n.default);
|
|
644
644
|
switch (n.ui) {
|
|
645
645
|
case "void":
|
|
646
646
|
return null;
|
|
@@ -655,88 +655,88 @@ function en(n) {
|
|
|
655
655
|
case "colorPicker":
|
|
656
656
|
return "#FFFFFF";
|
|
657
657
|
case "multiTypes":
|
|
658
|
-
return ((
|
|
658
|
+
return ((l = n.types) == null ? void 0 : l[0].default) ?? "";
|
|
659
659
|
default:
|
|
660
660
|
console.assert(!1, `not implemented ui=${n.ui}`);
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
function
|
|
665
|
-
g.static || (g.children ? g.array ? v[g.key] =
|
|
666
|
-
v[g.key] = {},
|
|
667
|
-
}) : v[g.key] =
|
|
663
|
+
function en(n, s) {
|
|
664
|
+
function l(v, g) {
|
|
665
|
+
g.static || (g.children ? g.array ? v[g.key] = Qr(g) : g.children.forEach((N) => {
|
|
666
|
+
v[g.key] = {}, l(v[g.key], N);
|
|
667
|
+
}) : v[g.key] = Qr(g));
|
|
668
668
|
}
|
|
669
|
-
s.forEach((v) =>
|
|
669
|
+
s.forEach((v) => l(n, v));
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
const
|
|
673
|
-
if (!
|
|
674
|
-
console.error(`prop tag not found
|
|
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}`);
|
|
675
675
|
return;
|
|
676
676
|
}
|
|
677
|
-
const
|
|
678
|
-
if (!
|
|
679
|
-
console.error(`pkg not found version
|
|
677
|
+
const T = fn[l];
|
|
678
|
+
if (!T) {
|
|
679
|
+
console.error(`spawnNode pkg not found version, ${N}`);
|
|
680
680
|
return;
|
|
681
681
|
}
|
|
682
|
-
const
|
|
682
|
+
const R = {
|
|
683
683
|
basic: {
|
|
684
684
|
id: "",
|
|
685
685
|
key: ""
|
|
686
686
|
}
|
|
687
|
-
},
|
|
687
|
+
}, r = ln(16);
|
|
688
688
|
if (v) {
|
|
689
|
-
const
|
|
690
|
-
if (!
|
|
691
|
-
console.error(`[ref] element not found in pkg
|
|
689
|
+
const t = T.refKey, e = g;
|
|
690
|
+
if (!T.elements.has(t)) {
|
|
691
|
+
console.error(`spawnNode [ref] element not found in pkg, ${N}`);
|
|
692
692
|
return;
|
|
693
693
|
}
|
|
694
|
-
const
|
|
695
|
-
if (!
|
|
696
|
-
console.error(`[ref] element not found in global
|
|
694
|
+
const i = Ne[t];
|
|
695
|
+
if (!i) {
|
|
696
|
+
console.error(`spawnNode [ref] element not found in global, ${N}`);
|
|
697
697
|
return;
|
|
698
698
|
}
|
|
699
|
-
const
|
|
700
|
-
if (!
|
|
701
|
-
console.error(`[ref] props not found
|
|
699
|
+
const o = i.props[m];
|
|
700
|
+
if (!o) {
|
|
701
|
+
console.error(`spawnNode [ref] props not found, ${N}`);
|
|
702
702
|
return;
|
|
703
703
|
}
|
|
704
|
-
|
|
705
|
-
id:
|
|
704
|
+
en(R, o), R.basic.id = r, R.basic.key = t, R.ref = {
|
|
705
|
+
id: e
|
|
706
706
|
};
|
|
707
707
|
} else {
|
|
708
|
-
const
|
|
709
|
-
if (!
|
|
710
|
-
console.error(`[key] element not found in pkg
|
|
708
|
+
const t = g;
|
|
709
|
+
if (!T.elements.has(t)) {
|
|
710
|
+
console.error(`spawnNode [key] element not found in pkg, ${N}`);
|
|
711
711
|
return;
|
|
712
712
|
}
|
|
713
|
-
const
|
|
714
|
-
if (!
|
|
715
|
-
console.error(`[key] element not found in global
|
|
713
|
+
const e = Ne[t];
|
|
714
|
+
if (!e) {
|
|
715
|
+
console.error(`spawnNode [key] element not found in global, ${N}`);
|
|
716
716
|
return;
|
|
717
717
|
}
|
|
718
|
-
const
|
|
719
|
-
if (!
|
|
720
|
-
console.error(`[key] props not found
|
|
718
|
+
const i = e.props[m];
|
|
719
|
+
if (!i) {
|
|
720
|
+
console.error(`spawnNode [key] props not found, ${N}`);
|
|
721
721
|
return;
|
|
722
722
|
}
|
|
723
|
-
|
|
723
|
+
en(R, i), R.basic.id = r, R.basic.key = t, e.leaf || (R.children = []);
|
|
724
724
|
}
|
|
725
|
-
return
|
|
725
|
+
return R;
|
|
726
726
|
}
|
|
727
727
|
function hc(n, s) {
|
|
728
|
-
function
|
|
728
|
+
function l(v) {
|
|
729
729
|
if (v.basic.id === s)
|
|
730
730
|
return v;
|
|
731
731
|
if (v.children)
|
|
732
732
|
for (let g = 0; g < v.children.length; g++) {
|
|
733
|
-
const
|
|
734
|
-
if (
|
|
735
|
-
return
|
|
733
|
+
const N = l(v.children[g]);
|
|
734
|
+
if (N)
|
|
735
|
+
return N;
|
|
736
736
|
}
|
|
737
737
|
}
|
|
738
738
|
for (let v = 0; v < n.length; v++) {
|
|
739
|
-
const g =
|
|
739
|
+
const g = l(n[v]);
|
|
740
740
|
if (g)
|
|
741
741
|
return g;
|
|
742
742
|
}
|
|
@@ -744,78 +744,76 @@ function hc(n, s) {
|
|
|
744
744
|
function dc(n) {
|
|
745
745
|
function s(v) {
|
|
746
746
|
var g;
|
|
747
|
-
v.basic.id = ln(16), (g = v.children) == null || g.forEach((
|
|
747
|
+
v.basic.id = ln(16), (g = v.children) == null || g.forEach((N) => s(N));
|
|
748
748
|
}
|
|
749
|
-
const
|
|
750
|
-
return s(
|
|
749
|
+
const l = Mt(n);
|
|
750
|
+
return s(l), l;
|
|
751
751
|
}
|
|
752
752
|
const Fn = "runtimeEnv", Ln = "runtimeMode", Mn = "runtimeDevice", Un = "runtimeDark", jn = "runtimeType", Bn = "runtimeData", $n = "runtimeDepends", Gn = "runtimeInterpreter";
|
|
753
753
|
function vc(n) {
|
|
754
|
-
oe(Fn,
|
|
754
|
+
oe(Fn, n);
|
|
755
755
|
}
|
|
756
|
-
function
|
|
757
|
-
return
|
|
756
|
+
function Ns() {
|
|
757
|
+
return ue(Fn);
|
|
758
758
|
}
|
|
759
759
|
function yc(n) {
|
|
760
|
-
oe(Ln,
|
|
760
|
+
oe(Ln, n);
|
|
761
761
|
}
|
|
762
|
-
function
|
|
763
|
-
return
|
|
762
|
+
function Ts() {
|
|
763
|
+
return ue(Ln);
|
|
764
764
|
}
|
|
765
765
|
function _c(n) {
|
|
766
|
-
oe(Mn,
|
|
766
|
+
oe(Mn, $e(n));
|
|
767
767
|
}
|
|
768
|
-
function
|
|
769
|
-
return
|
|
768
|
+
function Ss() {
|
|
769
|
+
return ue(Mn);
|
|
770
770
|
}
|
|
771
771
|
function Ec(n) {
|
|
772
|
-
oe(Un,
|
|
772
|
+
oe(Un, $e(n));
|
|
773
773
|
}
|
|
774
|
-
function
|
|
775
|
-
return
|
|
774
|
+
function Ps() {
|
|
775
|
+
return ue(Un);
|
|
776
776
|
}
|
|
777
777
|
function gc(n) {
|
|
778
|
-
oe(jn,
|
|
778
|
+
oe(jn, n);
|
|
779
779
|
}
|
|
780
|
-
function
|
|
781
|
-
return
|
|
780
|
+
function ws() {
|
|
781
|
+
return ue(jn);
|
|
782
782
|
}
|
|
783
783
|
function bc(n) {
|
|
784
|
-
console.assert(
|
|
784
|
+
console.assert(an(n)), oe(Bn, $e(n));
|
|
785
785
|
}
|
|
786
|
-
function
|
|
787
|
-
|
|
788
|
-
return console.assert(it(n)), n;
|
|
786
|
+
function xs() {
|
|
787
|
+
return ue(Bn);
|
|
789
788
|
}
|
|
790
789
|
function mc(n) {
|
|
791
|
-
console.assert(
|
|
790
|
+
console.assert(an(n)), oe($n, $e(n));
|
|
792
791
|
}
|
|
793
|
-
function
|
|
794
|
-
|
|
795
|
-
return console.assert(it(n)), n;
|
|
792
|
+
function Cs() {
|
|
793
|
+
return ue($n);
|
|
796
794
|
}
|
|
797
|
-
function
|
|
798
|
-
oe(Gn,
|
|
795
|
+
function As(n) {
|
|
796
|
+
oe(Gn, $e(n));
|
|
799
797
|
}
|
|
800
798
|
function Rc() {
|
|
801
|
-
return
|
|
799
|
+
return ue(Gn);
|
|
802
800
|
}
|
|
803
|
-
const
|
|
801
|
+
const Is = /* @__PURE__ */ on({
|
|
804
802
|
__name: "index",
|
|
805
803
|
props: {
|
|
806
804
|
node: {},
|
|
807
805
|
outer: { type: Boolean }
|
|
808
806
|
},
|
|
809
807
|
setup(n) {
|
|
810
|
-
const s =
|
|
808
|
+
const s = n, l = Ps(), v = W(() => s.node.settings.text), g = W(() => s.node.settings.disabled), N = W(() => s.node.settings.variant), m = W(() => s.node.settings.density), T = W(() => s.node.settings.block), R = W(() => l.value ? "dark" : "light");
|
|
811
809
|
return (r, t) => {
|
|
812
810
|
const e = Ci("v-btn");
|
|
813
811
|
return un(), sn(e, {
|
|
814
812
|
text: v.value,
|
|
815
813
|
disabled: g.value,
|
|
816
|
-
variant:
|
|
814
|
+
variant: N.value,
|
|
817
815
|
density: m.value,
|
|
818
|
-
block:
|
|
816
|
+
block: T.value,
|
|
819
817
|
theme: R.value
|
|
820
818
|
}, null, 8, ["text", "disabled", "variant", "density", "block", "theme"]);
|
|
821
819
|
};
|
|
@@ -842,18 +840,18 @@ const ks = /* @__PURE__ */ on({
|
|
|
842
840
|
ui: "strInput"
|
|
843
841
|
}
|
|
844
842
|
]
|
|
845
|
-
},
|
|
843
|
+
}, ks = [
|
|
846
844
|
{ title: "x-runtime-lib.elevated", value: "elevated" },
|
|
847
845
|
{ title: "x-runtime-lib.flat", value: "flat" },
|
|
848
846
|
{ title: "x-runtime-lib.tonal", value: "tonal" },
|
|
849
847
|
{ title: "x-runtime-lib.outlined", value: "outlined" },
|
|
850
848
|
{ title: "x-runtime-lib.text", value: "text" },
|
|
851
849
|
{ title: "x-runtime-lib.plain", value: "plain" }
|
|
852
|
-
],
|
|
850
|
+
], Ds = [
|
|
853
851
|
{ title: "x-runtime-lib.default", value: "default" },
|
|
854
852
|
{ title: "x-runtime-lib.comfortable", value: "comfortable" },
|
|
855
853
|
{ title: "x-runtime-lib.compact", value: "compact" }
|
|
856
|
-
],
|
|
854
|
+
], tn = {
|
|
857
855
|
key: "settings",
|
|
858
856
|
name: "x-runtime-lib.settings",
|
|
859
857
|
children: [
|
|
@@ -873,14 +871,14 @@ const ks = /* @__PURE__ */ on({
|
|
|
873
871
|
key: "variant",
|
|
874
872
|
name: "x-runtime-lib.variant",
|
|
875
873
|
ui: "select",
|
|
876
|
-
items:
|
|
874
|
+
items: ks,
|
|
877
875
|
default: "elevated"
|
|
878
876
|
},
|
|
879
877
|
{
|
|
880
878
|
key: "density",
|
|
881
879
|
name: "x-runtime-lib.density",
|
|
882
880
|
ui: "select",
|
|
883
|
-
items:
|
|
881
|
+
items: Ds,
|
|
884
882
|
default: "default"
|
|
885
883
|
},
|
|
886
884
|
{
|
|
@@ -890,10 +888,10 @@ const ks = /* @__PURE__ */ on({
|
|
|
890
888
|
default: !1
|
|
891
889
|
}
|
|
892
890
|
]
|
|
893
|
-
},
|
|
891
|
+
}, Fs = {
|
|
894
892
|
key: "btn_v1",
|
|
895
893
|
name: "x-runtime-lib.button",
|
|
896
|
-
comp:
|
|
894
|
+
comp: Is,
|
|
897
895
|
leaf: !0,
|
|
898
896
|
events: [
|
|
899
897
|
{
|
|
@@ -904,10 +902,10 @@ const ks = /* @__PURE__ */ on({
|
|
|
904
902
|
],
|
|
905
903
|
methods: [],
|
|
906
904
|
props: {
|
|
907
|
-
pageCommon: [nt,
|
|
908
|
-
compCommon: [nt,
|
|
905
|
+
pageCommon: [nt, tn],
|
|
906
|
+
compCommon: [nt, tn]
|
|
909
907
|
}
|
|
910
|
-
},
|
|
908
|
+
}, rn = {
|
|
911
909
|
key: "globalSettings",
|
|
912
910
|
name: "x-runtime-lib.globalSettings",
|
|
913
911
|
children: [
|
|
@@ -918,7 +916,7 @@ const ks = /* @__PURE__ */ on({
|
|
|
918
916
|
default: "#00000000"
|
|
919
917
|
}
|
|
920
918
|
]
|
|
921
|
-
},
|
|
919
|
+
}, Ls = {
|
|
922
920
|
key: "globality_v1",
|
|
923
921
|
name: "x-runtime-lib.globality",
|
|
924
922
|
comp: "",
|
|
@@ -956,81 +954,81 @@ const ks = /* @__PURE__ */ on({
|
|
|
956
954
|
],
|
|
957
955
|
methods: [],
|
|
958
956
|
props: {
|
|
959
|
-
pageCommon: [
|
|
960
|
-
compCommon: [
|
|
957
|
+
pageCommon: [rn],
|
|
958
|
+
compCommon: [rn]
|
|
961
959
|
},
|
|
962
960
|
internal: !0
|
|
963
961
|
};
|
|
964
|
-
function
|
|
965
|
-
const
|
|
966
|
-
if (
|
|
967
|
-
const t =
|
|
962
|
+
function Ms(n, s, l) {
|
|
963
|
+
const v = W(() => l.node.width), g = W(() => l.node.minWidth), N = W(() => l.node.maxWidth), m = W(() => {
|
|
964
|
+
if (l.outer && n === "editor") {
|
|
965
|
+
const t = Ct(l.node.height);
|
|
968
966
|
if (t)
|
|
969
|
-
return t / 100 *
|
|
967
|
+
return t / 100 * s.value.height + "px";
|
|
970
968
|
}
|
|
971
|
-
return
|
|
972
|
-
}),
|
|
973
|
-
if (
|
|
974
|
-
const t =
|
|
969
|
+
return l.node.height;
|
|
970
|
+
}), T = W(() => {
|
|
971
|
+
if (l.outer && n === "editor") {
|
|
972
|
+
const t = Ct(l.node.minHeight);
|
|
975
973
|
if (t)
|
|
976
|
-
return t / 100 *
|
|
974
|
+
return t / 100 * s.value.height + "px";
|
|
977
975
|
}
|
|
978
|
-
return
|
|
976
|
+
return l.node.minHeight;
|
|
979
977
|
}), R = W(() => {
|
|
980
|
-
if (
|
|
981
|
-
const t =
|
|
978
|
+
if (l.outer && n === "editor") {
|
|
979
|
+
const t = Ct(l.node.maxHeight);
|
|
982
980
|
if (t)
|
|
983
|
-
return t / 100 *
|
|
981
|
+
return t / 100 * s.value.height + "px";
|
|
984
982
|
}
|
|
985
|
-
return
|
|
983
|
+
return l.node.maxHeight;
|
|
986
984
|
});
|
|
987
985
|
function r(t) {
|
|
988
|
-
v.value && (t.width = v.value), g.value && (t.minWidth = g.value),
|
|
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);
|
|
989
987
|
}
|
|
990
|
-
return { width: v, minWidth: g, maxWidth:
|
|
988
|
+
return { width: v, minWidth: g, maxWidth: N, height: m, minHeight: T, maxHeight: R, applySize: r };
|
|
991
989
|
}
|
|
992
|
-
var
|
|
993
|
-
function
|
|
990
|
+
var Us = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
991
|
+
function js(n) {
|
|
994
992
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
995
993
|
}
|
|
996
|
-
function
|
|
994
|
+
function Bs(n) {
|
|
997
995
|
if (n.__esModule) return n;
|
|
998
996
|
var s = n.default;
|
|
999
997
|
if (typeof s == "function") {
|
|
1000
|
-
var
|
|
998
|
+
var l = function v() {
|
|
1001
999
|
return this instanceof v ? Reflect.construct(s, arguments, this.constructor) : s.apply(this, arguments);
|
|
1002
1000
|
};
|
|
1003
|
-
|
|
1004
|
-
} else
|
|
1005
|
-
return Object.defineProperty(
|
|
1001
|
+
l.prototype = s.prototype;
|
|
1002
|
+
} else l = {};
|
|
1003
|
+
return Object.defineProperty(l, "__esModule", { value: !0 }), Object.keys(n).forEach(function(v) {
|
|
1006
1004
|
var g = Object.getOwnPropertyDescriptor(n, v);
|
|
1007
|
-
Object.defineProperty(
|
|
1005
|
+
Object.defineProperty(l, v, g.get ? g : {
|
|
1008
1006
|
enumerable: !0,
|
|
1009
1007
|
get: function() {
|
|
1010
1008
|
return n[v];
|
|
1011
1009
|
}
|
|
1012
1010
|
});
|
|
1013
|
-
}),
|
|
1011
|
+
}), l;
|
|
1014
1012
|
}
|
|
1015
1013
|
var Vn = { exports: {} };
|
|
1016
|
-
const
|
|
1014
|
+
const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1017
1015
|
__proto__: null,
|
|
1018
|
-
default:
|
|
1019
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1016
|
+
default: $s
|
|
1017
|
+
}, Symbol.toStringTag, { value: "Module" })), Vs = /* @__PURE__ */ Bs(Gs);
|
|
1020
1018
|
(function(n, s) {
|
|
1021
1019
|
(function(v, g) {
|
|
1022
1020
|
n.exports = g();
|
|
1023
|
-
})(
|
|
1021
|
+
})(Us, () => (
|
|
1024
1022
|
/******/
|
|
1025
1023
|
(() => {
|
|
1026
|
-
var
|
|
1024
|
+
var l = {
|
|
1027
1025
|
/***/
|
|
1028
1026
|
"./original-repo/interpreter.js": (
|
|
1029
1027
|
/*!**************************************!*\
|
|
1030
1028
|
!*** ./original-repo/interpreter.js ***!
|
|
1031
1029
|
\**************************************/
|
|
1032
1030
|
/***/
|
|
1033
|
-
function(m,
|
|
1031
|
+
function(m, T, R) {
|
|
1034
1032
|
/**
|
|
1035
1033
|
* @license
|
|
1036
1034
|
* Copyright 2013 Neil Fraser
|
|
@@ -1047,12 +1045,12 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1047
1045
|
o[u] = u === "body" ? t[u].slice() : t[u];
|
|
1048
1046
|
this.ast = o, this.tasks = [], this.initFunc_ = e, this.paused_ = !1, this.polyfills_ = [], this.functionCounter_ = 0, this.stepFunctions_ = /* @__PURE__ */ Object.create(null);
|
|
1049
1047
|
var c = /^step([A-Z]\w*)$/, a;
|
|
1050
|
-
for (var
|
|
1051
|
-
typeof this[
|
|
1048
|
+
for (var p in this)
|
|
1049
|
+
typeof this[p] == "function" && (a = p.match(c)) && (this.stepFunctions_[a[1]] = this[p].bind(this));
|
|
1052
1050
|
this.globalScope = this.createScope(this.ast, null), this.globalObject = this.globalScope.object, this.ast = this.parse_(this.polyfills_.join(`
|
|
1053
1051
|
`), "polyfills"), this.polyfills_ = void 0, r.stripLocations_(this.ast, void 0, void 0);
|
|
1054
|
-
var
|
|
1055
|
-
|
|
1052
|
+
var d = new r.State(this.ast, this.globalScope);
|
|
1053
|
+
d.done = !1, this.stateStack = [d], this.run(), this.value = void 0, this.ast = o, d = new r.State(this.ast, this.globalScope), d.done = !1, this.stateStack.length = 0, this.stateStack[0] = d;
|
|
1056
1054
|
};
|
|
1057
1055
|
r.Completion = {
|
|
1058
1056
|
NORMAL: 0,
|
|
@@ -1269,11 +1267,11 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1269
1267
|
[encodeURIComponent, "encodeURIComponent"]
|
|
1270
1268
|
], c = 0; c < u.length; c++)
|
|
1271
1269
|
i = /* @__PURE__ */ function(a) {
|
|
1272
|
-
return function(
|
|
1270
|
+
return function(p) {
|
|
1273
1271
|
try {
|
|
1274
|
-
return a(
|
|
1275
|
-
} catch (
|
|
1276
|
-
e.throwException(e.URI_ERROR,
|
|
1272
|
+
return a(p);
|
|
1273
|
+
} catch (d) {
|
|
1274
|
+
e.throwException(e.URI_ERROR, d.message);
|
|
1277
1275
|
}
|
|
1278
1276
|
};
|
|
1279
1277
|
}(u[c][0]), this.setProperty(
|
|
@@ -1282,29 +1280,29 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1282
1280
|
this.createNativeFunction(i, !1),
|
|
1283
1281
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1284
1282
|
);
|
|
1285
|
-
i = function(
|
|
1283
|
+
i = function(p) {
|
|
1286
1284
|
return e.createTask_(!1, arguments);
|
|
1287
1285
|
}, this.setProperty(
|
|
1288
1286
|
t,
|
|
1289
1287
|
"setTimeout",
|
|
1290
1288
|
this.createNativeFunction(i, !1),
|
|
1291
1289
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1292
|
-
), i = function(
|
|
1290
|
+
), i = function(p) {
|
|
1293
1291
|
return e.createTask_(!0, arguments);
|
|
1294
1292
|
}, this.setProperty(
|
|
1295
1293
|
t,
|
|
1296
1294
|
"setInterval",
|
|
1297
1295
|
this.createNativeFunction(i, !1),
|
|
1298
1296
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1299
|
-
), i = function(
|
|
1300
|
-
e.deleteTask_(
|
|
1297
|
+
), i = function(p) {
|
|
1298
|
+
e.deleteTask_(p);
|
|
1301
1299
|
}, this.setProperty(
|
|
1302
1300
|
t,
|
|
1303
1301
|
"clearTimeout",
|
|
1304
1302
|
this.createNativeFunction(i, !1),
|
|
1305
1303
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1306
|
-
), i = function(
|
|
1307
|
-
e.deleteTask_(
|
|
1304
|
+
), i = function(p) {
|
|
1305
|
+
e.deleteTask_(p);
|
|
1308
1306
|
}, this.setProperty(
|
|
1309
1307
|
t,
|
|
1310
1308
|
"clearInterval",
|
|
@@ -1318,20 +1316,20 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1318
1316
|
var a = String(arguments[arguments.length - 1]);
|
|
1319
1317
|
else
|
|
1320
1318
|
var a = "";
|
|
1321
|
-
var
|
|
1322
|
-
if (
|
|
1323
|
-
for (var
|
|
1324
|
-
var
|
|
1325
|
-
o.test(
|
|
1319
|
+
var p = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1320
|
+
if (p) {
|
|
1321
|
+
for (var d = p.split(/\s*,\s*/), E = 0; E < d.length; E++) {
|
|
1322
|
+
var O = d[E];
|
|
1323
|
+
o.test(O) || e.throwException(
|
|
1326
1324
|
e.SYNTAX_ERROR,
|
|
1327
|
-
"Invalid function argument: " +
|
|
1325
|
+
"Invalid function argument: " + O
|
|
1328
1326
|
);
|
|
1329
1327
|
}
|
|
1330
|
-
|
|
1328
|
+
p = d.join(", ");
|
|
1331
1329
|
}
|
|
1332
1330
|
try {
|
|
1333
1331
|
var b = e.parse_(
|
|
1334
|
-
"(function(" +
|
|
1332
|
+
"(function(" + p + ") {" + a + "})",
|
|
1335
1333
|
"function" + e.functionCodeNumber_++
|
|
1336
1334
|
);
|
|
1337
1335
|
} catch (I) {
|
|
@@ -1344,9 +1342,9 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1344
1342
|
e.SYNTAX_ERROR,
|
|
1345
1343
|
"Invalid code in function body"
|
|
1346
1344
|
);
|
|
1347
|
-
var
|
|
1345
|
+
var S = b.body[0].expression;
|
|
1348
1346
|
return e.createFunction(
|
|
1349
|
-
|
|
1347
|
+
S,
|
|
1350
1348
|
e.globalScope,
|
|
1351
1349
|
"anonymous"
|
|
1352
1350
|
);
|
|
@@ -1371,12 +1369,12 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1371
1369
|
"length",
|
|
1372
1370
|
0,
|
|
1373
1371
|
r.READONLY_NONENUMERABLE_DESCRIPTOR
|
|
1374
|
-
), this.FUNCTION_PROTO.class = "Function", i = function(c, a,
|
|
1375
|
-
var
|
|
1376
|
-
|
|
1372
|
+
), this.FUNCTION_PROTO.class = "Function", i = function(c, a, p) {
|
|
1373
|
+
var d = e.stateStack[e.stateStack.length - 1];
|
|
1374
|
+
d.func_ = c, d.funcThis_ = a, d.arguments_ = [], p != null && (p instanceof r.Object ? d.arguments_ = Array.from(p.properties) : e.throwException(
|
|
1377
1375
|
e.TYPE_ERROR,
|
|
1378
1376
|
"CreateListFromArrayLike called on non-object"
|
|
1379
|
-
)),
|
|
1377
|
+
)), d.doneExec_ = !1;
|
|
1380
1378
|
}, this.setNativeFunctionPrototype(this.FUNCTION, "apply", i), this.polyfills_.push(
|
|
1381
1379
|
/* POLYFILL START */
|
|
1382
1380
|
// Flatten the apply args list to remove any inheritance or getter functions.
|
|
@@ -1395,8 +1393,8 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1395
1393
|
), i = function(c) {
|
|
1396
1394
|
var a = e.stateStack[e.stateStack.length - 1];
|
|
1397
1395
|
a.func_ = this, a.funcThis_ = c, a.arguments_ = [];
|
|
1398
|
-
for (var
|
|
1399
|
-
a.arguments_.push(arguments[
|
|
1396
|
+
for (var p = 1; p < arguments.length; p++)
|
|
1397
|
+
a.arguments_.push(arguments[p]);
|
|
1400
1398
|
a.doneExec_ = !1;
|
|
1401
1399
|
}, this.setNativeFunctionPrototype(this.FUNCTION, "call", i), this.polyfills_.push(
|
|
1402
1400
|
/* POLYFILL START */
|
|
@@ -1513,11 +1511,11 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1513
1511
|
"})();",
|
|
1514
1512
|
""
|
|
1515
1513
|
/* POLYFILL END */
|
|
1516
|
-
), i = function(c, a,
|
|
1514
|
+
), i = function(c, a, p) {
|
|
1517
1515
|
return a = String(a), c instanceof r.Object || e.throwException(
|
|
1518
1516
|
e.TYPE_ERROR,
|
|
1519
1517
|
"Object.defineProperty called on non-object: " + c
|
|
1520
|
-
),
|
|
1518
|
+
), p instanceof r.Object || e.throwException(
|
|
1521
1519
|
e.TYPE_ERROR,
|
|
1522
1520
|
"Property description must be an object"
|
|
1523
1521
|
), c.preventExtensions && !(a in c.properties) && e.throwException(
|
|
@@ -1527,7 +1525,7 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1527
1525
|
c,
|
|
1528
1526
|
a,
|
|
1529
1527
|
r.VALUE_IN_DESCRIPTOR,
|
|
1530
|
-
|
|
1528
|
+
p.properties
|
|
1531
1529
|
), c;
|
|
1532
1530
|
}, this.setProperty(
|
|
1533
1531
|
this.OBJECT,
|
|
@@ -1567,25 +1565,25 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1567
1565
|
e.TYPE_ERROR,
|
|
1568
1566
|
"Object.getOwnPropertyDescriptor called on non-object: " + c
|
|
1569
1567
|
), a = String(a), a in c.properties) {
|
|
1570
|
-
var
|
|
1571
|
-
return
|
|
1572
|
-
|
|
1568
|
+
var p = Object.getOwnPropertyDescriptor(c.properties, a), d = c.getter[a], E = c.setter[a], O = e.createObjectProto(e.OBJECT_PROTO);
|
|
1569
|
+
return d || E ? (e.setProperty(O, "get", d), e.setProperty(O, "set", E)) : (e.setProperty(
|
|
1570
|
+
O,
|
|
1573
1571
|
"value",
|
|
1574
1572
|
/** @type {!Interpreter.Value} */
|
|
1575
|
-
|
|
1573
|
+
p.value
|
|
1576
1574
|
), e.setProperty(
|
|
1577
|
-
|
|
1575
|
+
O,
|
|
1578
1576
|
"writable",
|
|
1579
|
-
|
|
1577
|
+
p.writable
|
|
1580
1578
|
)), e.setProperty(
|
|
1581
|
-
|
|
1579
|
+
O,
|
|
1582
1580
|
"configurable",
|
|
1583
|
-
|
|
1581
|
+
p.configurable
|
|
1584
1582
|
), e.setProperty(
|
|
1585
|
-
|
|
1583
|
+
O,
|
|
1586
1584
|
"enumerable",
|
|
1587
|
-
|
|
1588
|
-
),
|
|
1585
|
+
p.enumerable
|
|
1586
|
+
), O;
|
|
1589
1587
|
}
|
|
1590
1588
|
}, this.setProperty(
|
|
1591
1589
|
this.OBJECT,
|
|
@@ -1651,9 +1649,9 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1651
1649
|
"Invalid array length: " + a
|
|
1652
1650
|
), c.properties.length = a;
|
|
1653
1651
|
else {
|
|
1654
|
-
for (var
|
|
1655
|
-
c.properties[
|
|
1656
|
-
c.properties.length =
|
|
1652
|
+
for (var p = 0; p < arguments.length; p++)
|
|
1653
|
+
c.properties[p] = arguments[p];
|
|
1654
|
+
c.properties.length = p;
|
|
1657
1655
|
}
|
|
1658
1656
|
return c;
|
|
1659
1657
|
}, this.ARRAY = this.createNativeFunction(i, !0), this.ARRAY_PROTO = this.ARRAY.properties.prototype, this.setProperty(
|
|
@@ -2147,15 +2145,15 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2147
2145
|
o[u],
|
|
2148
2146
|
String.prototype[o[u]]
|
|
2149
2147
|
);
|
|
2150
|
-
i = function(a,
|
|
2151
|
-
|
|
2148
|
+
i = function(a, p, d) {
|
|
2149
|
+
p = e.pseudoToNative(p), d = e.pseudoToNative(d);
|
|
2152
2150
|
try {
|
|
2153
2151
|
return String(this).localeCompare(
|
|
2154
2152
|
a,
|
|
2155
2153
|
/** @type {?} */
|
|
2156
|
-
|
|
2154
|
+
p,
|
|
2157
2155
|
/** @type {?} */
|
|
2158
|
-
|
|
2156
|
+
d
|
|
2159
2157
|
);
|
|
2160
2158
|
} catch (E) {
|
|
2161
2159
|
e.throwException(
|
|
@@ -2163,90 +2161,90 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2163
2161
|
"localeCompare: " + E.message
|
|
2164
2162
|
);
|
|
2165
2163
|
}
|
|
2166
|
-
}, this.setNativeFunctionPrototype(this.STRING, "localeCompare", i), i = function(a,
|
|
2164
|
+
}, this.setNativeFunctionPrototype(this.STRING, "localeCompare", i), i = function(a, p, d) {
|
|
2167
2165
|
var E = String(this);
|
|
2168
|
-
if (
|
|
2166
|
+
if (p = p ? Number(p) : void 0, e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, d), e.REGEXP_MODE === 2)) {
|
|
2169
2167
|
if (r.vm) {
|
|
2170
|
-
var
|
|
2168
|
+
var O = {
|
|
2171
2169
|
string: E,
|
|
2172
2170
|
separator: a,
|
|
2173
|
-
limit:
|
|
2174
|
-
}, b = "string.split(separator, limit)", D = e.vmCall(b,
|
|
2175
|
-
D !== r.REGEXP_TIMEOUT &&
|
|
2171
|
+
limit: p
|
|
2172
|
+
}, b = "string.split(separator, limit)", D = e.vmCall(b, O, a, d);
|
|
2173
|
+
D !== r.REGEXP_TIMEOUT && d(e.nativeToPseudo(D));
|
|
2176
2174
|
} else {
|
|
2177
|
-
var
|
|
2175
|
+
var S = e.createWorker(), I = e.regExpTimeout(
|
|
2178
2176
|
a,
|
|
2179
|
-
|
|
2180
|
-
|
|
2177
|
+
S,
|
|
2178
|
+
d
|
|
2181
2179
|
);
|
|
2182
|
-
|
|
2183
|
-
clearTimeout(I),
|
|
2184
|
-
},
|
|
2180
|
+
S.onmessage = function(X) {
|
|
2181
|
+
clearTimeout(I), d(e.nativeToPseudo(X.data));
|
|
2182
|
+
}, S.postMessage(["split", E, a, p]);
|
|
2185
2183
|
}
|
|
2186
2184
|
return;
|
|
2187
2185
|
}
|
|
2188
|
-
var D = E.split(a,
|
|
2189
|
-
|
|
2190
|
-
}, this.setAsyncFunctionPrototype(this.STRING, "split", i), i = function(a,
|
|
2191
|
-
var
|
|
2192
|
-
if (a = e.isa(a, e.REGEXP) ? a.data : new RegExp(a), e.maybeThrowRegExp(a,
|
|
2186
|
+
var D = E.split(a, p);
|
|
2187
|
+
d(e.nativeToPseudo(D));
|
|
2188
|
+
}, this.setAsyncFunctionPrototype(this.STRING, "split", i), i = function(a, p) {
|
|
2189
|
+
var d = String(this);
|
|
2190
|
+
if (a = e.isa(a, e.REGEXP) ? a.data : new RegExp(a), e.maybeThrowRegExp(a, p), e.REGEXP_MODE === 2) {
|
|
2193
2191
|
if (r.vm) {
|
|
2194
2192
|
var E = {
|
|
2195
|
-
string:
|
|
2193
|
+
string: d,
|
|
2196
2194
|
regexp: a
|
|
2197
|
-
},
|
|
2198
|
-
I !== r.REGEXP_TIMEOUT &&
|
|
2195
|
+
}, O = "string.match(regexp)", I = e.vmCall(O, E, a, p);
|
|
2196
|
+
I !== r.REGEXP_TIMEOUT && p(I && e.matchToPseudo_(I));
|
|
2199
2197
|
} else {
|
|
2200
|
-
var b = e.createWorker(),
|
|
2198
|
+
var b = e.createWorker(), S = e.regExpTimeout(a, b, p);
|
|
2201
2199
|
b.onmessage = function(D) {
|
|
2202
|
-
clearTimeout(
|
|
2203
|
-
}, b.postMessage(["match",
|
|
2200
|
+
clearTimeout(S), p(D.data && e.matchToPseudo_(D.data));
|
|
2201
|
+
}, b.postMessage(["match", d, a]);
|
|
2204
2202
|
}
|
|
2205
2203
|
return;
|
|
2206
2204
|
}
|
|
2207
|
-
var I =
|
|
2208
|
-
|
|
2209
|
-
}, this.setAsyncFunctionPrototype(this.STRING, "match", i), i = function(a,
|
|
2210
|
-
var
|
|
2211
|
-
if (e.isa(a, e.REGEXP) ? a = a.data : a = new RegExp(a), e.maybeThrowRegExp(a,
|
|
2205
|
+
var I = d.match(a);
|
|
2206
|
+
p(I && e.matchToPseudo_(I));
|
|
2207
|
+
}, this.setAsyncFunctionPrototype(this.STRING, "match", i), i = function(a, p) {
|
|
2208
|
+
var d = String(this);
|
|
2209
|
+
if (e.isa(a, e.REGEXP) ? a = a.data : a = new RegExp(a), e.maybeThrowRegExp(a, p), e.REGEXP_MODE === 2) {
|
|
2212
2210
|
if (r.vm) {
|
|
2213
2211
|
var E = {
|
|
2214
|
-
string:
|
|
2212
|
+
string: d,
|
|
2215
2213
|
regexp: a
|
|
2216
|
-
},
|
|
2217
|
-
b !== r.REGEXP_TIMEOUT &&
|
|
2214
|
+
}, O = "string.search(regexp)", b = e.vmCall(O, E, a, p);
|
|
2215
|
+
b !== r.REGEXP_TIMEOUT && p(b);
|
|
2218
2216
|
} else {
|
|
2219
|
-
var
|
|
2220
|
-
|
|
2221
|
-
clearTimeout(I),
|
|
2222
|
-
},
|
|
2217
|
+
var S = e.createWorker(), I = e.regExpTimeout(a, S, p);
|
|
2218
|
+
S.onmessage = function(D) {
|
|
2219
|
+
clearTimeout(I), p(D.data);
|
|
2220
|
+
}, S.postMessage(["search", d, a]);
|
|
2223
2221
|
}
|
|
2224
2222
|
return;
|
|
2225
2223
|
}
|
|
2226
|
-
|
|
2227
|
-
}, this.setAsyncFunctionPrototype(this.STRING, "search", i), i = function(a,
|
|
2224
|
+
p(d.search(a));
|
|
2225
|
+
}, this.setAsyncFunctionPrototype(this.STRING, "search", i), i = function(a, p, d) {
|
|
2228
2226
|
var E = String(this);
|
|
2229
|
-
if (
|
|
2227
|
+
if (p = String(p), e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, d), e.REGEXP_MODE === 2)) {
|
|
2230
2228
|
if (r.vm) {
|
|
2231
|
-
var
|
|
2229
|
+
var O = {
|
|
2232
2230
|
string: E,
|
|
2233
2231
|
substr: a,
|
|
2234
|
-
newSubstr:
|
|
2235
|
-
}, b = "string.replace(substr, newSubstr)",
|
|
2236
|
-
|
|
2232
|
+
newSubstr: p
|
|
2233
|
+
}, b = "string.replace(substr, newSubstr)", S = e.vmCall(b, O, a, d);
|
|
2234
|
+
S !== r.REGEXP_TIMEOUT && d(S);
|
|
2237
2235
|
} else {
|
|
2238
2236
|
var I = e.createWorker(), D = e.regExpTimeout(
|
|
2239
2237
|
a,
|
|
2240
2238
|
I,
|
|
2241
|
-
|
|
2239
|
+
d
|
|
2242
2240
|
);
|
|
2243
2241
|
I.onmessage = function(X) {
|
|
2244
|
-
clearTimeout(D),
|
|
2245
|
-
}, I.postMessage(["replace", E, a,
|
|
2242
|
+
clearTimeout(D), d(X.data);
|
|
2243
|
+
}, I.postMessage(["replace", E, a, p]);
|
|
2246
2244
|
}
|
|
2247
2245
|
return;
|
|
2248
2246
|
}
|
|
2249
|
-
|
|
2247
|
+
d(E.replace(a, p));
|
|
2250
2248
|
}, this.setAsyncFunctionPrototype(this.STRING, "replace", i), this.polyfills_.push(
|
|
2251
2249
|
/* POLYFILL START */
|
|
2252
2250
|
"(function() {",
|
|
@@ -2322,52 +2320,52 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2322
2320
|
i = function(a) {
|
|
2323
2321
|
try {
|
|
2324
2322
|
return Number(this).toExponential(a);
|
|
2325
|
-
} catch (
|
|
2326
|
-
e.throwException(e.ERROR,
|
|
2323
|
+
} catch (p) {
|
|
2324
|
+
e.throwException(e.ERROR, p.message);
|
|
2327
2325
|
}
|
|
2328
2326
|
}, this.setNativeFunctionPrototype(this.NUMBER, "toExponential", i), i = function(a) {
|
|
2329
2327
|
try {
|
|
2330
2328
|
return Number(this).toFixed(a);
|
|
2331
|
-
} catch (
|
|
2332
|
-
e.throwException(e.ERROR,
|
|
2329
|
+
} catch (p) {
|
|
2330
|
+
e.throwException(e.ERROR, p.message);
|
|
2333
2331
|
}
|
|
2334
2332
|
}, this.setNativeFunctionPrototype(this.NUMBER, "toFixed", i), i = function(a) {
|
|
2335
2333
|
try {
|
|
2336
2334
|
return Number(this).toPrecision(a);
|
|
2337
|
-
} catch (
|
|
2338
|
-
e.throwException(e.ERROR,
|
|
2335
|
+
} catch (p) {
|
|
2336
|
+
e.throwException(e.ERROR, p.message);
|
|
2339
2337
|
}
|
|
2340
2338
|
}, this.setNativeFunctionPrototype(this.NUMBER, "toPrecision", i), i = function(a) {
|
|
2341
2339
|
try {
|
|
2342
2340
|
return Number(this).toString(a);
|
|
2343
|
-
} catch (
|
|
2344
|
-
e.throwException(e.ERROR,
|
|
2341
|
+
} catch (p) {
|
|
2342
|
+
e.throwException(e.ERROR, p.message);
|
|
2345
2343
|
}
|
|
2346
|
-
}, this.setNativeFunctionPrototype(this.NUMBER, "toString", i), i = function(a,
|
|
2347
|
-
a = a ? e.pseudoToNative(a) : void 0,
|
|
2344
|
+
}, this.setNativeFunctionPrototype(this.NUMBER, "toString", i), i = function(a, p) {
|
|
2345
|
+
a = a ? e.pseudoToNative(a) : void 0, p = p ? e.pseudoToNative(p) : void 0;
|
|
2348
2346
|
try {
|
|
2349
2347
|
return Number(this).toLocaleString(
|
|
2350
2348
|
/** @type {?} */
|
|
2351
2349
|
a,
|
|
2352
2350
|
/** @type {?} */
|
|
2353
|
-
|
|
2351
|
+
p
|
|
2354
2352
|
);
|
|
2355
|
-
} catch (
|
|
2353
|
+
} catch (d) {
|
|
2356
2354
|
e.throwException(
|
|
2357
2355
|
e.ERROR,
|
|
2358
|
-
"toLocaleString: " +
|
|
2356
|
+
"toLocaleString: " + d.message
|
|
2359
2357
|
);
|
|
2360
2358
|
}
|
|
2361
2359
|
}, this.setNativeFunctionPrototype(this.NUMBER, "toLocaleString", i);
|
|
2362
2360
|
}, r.prototype.initDate = function(t) {
|
|
2363
2361
|
var e = this, i;
|
|
2364
|
-
i = function(a,
|
|
2362
|
+
i = function(a, p) {
|
|
2365
2363
|
if (!e.calledWithNew())
|
|
2366
2364
|
return r.nativeGlobal.Date();
|
|
2367
|
-
var
|
|
2365
|
+
var d = [null].concat(Array.from(arguments));
|
|
2368
2366
|
return this.data = new (Function.prototype.bind.apply(
|
|
2369
2367
|
r.nativeGlobal.Date,
|
|
2370
|
-
|
|
2368
|
+
d
|
|
2371
2369
|
))(), this;
|
|
2372
2370
|
}, this.DATE = this.createNativeFunction(i, !0), this.DATE_PROTO = this.DATE.properties.prototype, this.setProperty(
|
|
2373
2371
|
t,
|
|
@@ -2437,14 +2435,14 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2437
2435
|
], u = 0; u < o.length; u++)
|
|
2438
2436
|
i = /* @__PURE__ */ function(c) {
|
|
2439
2437
|
return function(a) {
|
|
2440
|
-
var
|
|
2441
|
-
|
|
2438
|
+
var p = this.data;
|
|
2439
|
+
p instanceof Date || e.throwException(
|
|
2442
2440
|
e.TYPE_ERROR,
|
|
2443
2441
|
c + " not called on a Date"
|
|
2444
2442
|
);
|
|
2445
|
-
for (var
|
|
2446
|
-
|
|
2447
|
-
return
|
|
2443
|
+
for (var d = [], E = 0; E < arguments.length; E++)
|
|
2444
|
+
d[E] = e.pseudoToNative(arguments[E]);
|
|
2445
|
+
return p[c].apply(p, d);
|
|
2448
2446
|
};
|
|
2449
2447
|
}(o[u]), this.setNativeFunctionPrototype(this.DATE, o[u], i);
|
|
2450
2448
|
i = function() {
|
|
@@ -2472,11 +2470,11 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2472
2470
|
"Invalid regexp flag: " + c
|
|
2473
2471
|
);
|
|
2474
2472
|
try {
|
|
2475
|
-
var
|
|
2476
|
-
} catch (
|
|
2477
|
-
e.throwException(e.SYNTAX_ERROR,
|
|
2473
|
+
var p = new r.nativeGlobal.RegExp(u, c);
|
|
2474
|
+
} catch (d) {
|
|
2475
|
+
e.throwException(e.SYNTAX_ERROR, d.message);
|
|
2478
2476
|
}
|
|
2479
|
-
return e.populateRegExp(a,
|
|
2477
|
+
return e.populateRegExp(a, p), a;
|
|
2480
2478
|
}, this.REGEXP = this.createNativeFunction(i, !0), this.REGEXP_PROTO = this.REGEXP.properties.prototype, this.setProperty(
|
|
2481
2479
|
t,
|
|
2482
2480
|
"RegExp",
|
|
@@ -2515,21 +2513,21 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2515
2513
|
var a = this.data;
|
|
2516
2514
|
if (u = String(u), a.lastIndex = Number(e.getProperty(this, "lastIndex")), e.maybeThrowRegExp(a, c), e.REGEXP_MODE === 2) {
|
|
2517
2515
|
if (r.vm) {
|
|
2518
|
-
var
|
|
2516
|
+
var p = {
|
|
2519
2517
|
string: u,
|
|
2520
2518
|
regexp: a
|
|
2521
|
-
},
|
|
2522
|
-
|
|
2519
|
+
}, d = "regexp.exec(string)", S = e.vmCall(d, p, a, c);
|
|
2520
|
+
S !== r.REGEXP_TIMEOUT && (e.setProperty(this, "lastIndex", a.lastIndex), c(e.matchToPseudo_(S)));
|
|
2523
2521
|
} else {
|
|
2524
|
-
var E = e.createWorker(),
|
|
2522
|
+
var E = e.createWorker(), O = e.regExpTimeout(a, E, c), b = this;
|
|
2525
2523
|
E.onmessage = function(I) {
|
|
2526
|
-
clearTimeout(
|
|
2524
|
+
clearTimeout(O), e.setProperty(b, "lastIndex", I.data[1]), c(e.matchToPseudo_(I.data[0]));
|
|
2527
2525
|
}, E.postMessage(["exec", a, a.lastIndex, u]);
|
|
2528
2526
|
}
|
|
2529
2527
|
return;
|
|
2530
2528
|
}
|
|
2531
|
-
var
|
|
2532
|
-
e.setProperty(this, "lastIndex", a.lastIndex), c(e.matchToPseudo_(
|
|
2529
|
+
var S = a.exec(u);
|
|
2530
|
+
e.setProperty(this, "lastIndex", a.lastIndex), c(e.matchToPseudo_(S));
|
|
2533
2531
|
}, this.setAsyncFunctionPrototype(this.REGEXP, "exec", i);
|
|
2534
2532
|
}, r.prototype.matchToPseudo_ = function(t) {
|
|
2535
2533
|
if (t) {
|
|
@@ -2656,22 +2654,22 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2656
2654
|
), e = function(c) {
|
|
2657
2655
|
try {
|
|
2658
2656
|
var a = JSON.parse(String(c));
|
|
2659
|
-
} catch (
|
|
2660
|
-
i.throwException(i.SYNTAX_ERROR,
|
|
2657
|
+
} catch (p) {
|
|
2658
|
+
i.throwException(i.SYNTAX_ERROR, p.message);
|
|
2661
2659
|
}
|
|
2662
2660
|
return i.nativeToPseudo(a);
|
|
2663
|
-
}, this.setProperty(o, "parse", this.createNativeFunction(e, !1)), e = function(c, a,
|
|
2661
|
+
}, this.setProperty(o, "parse", this.createNativeFunction(e, !1)), e = function(c, a, p) {
|
|
2664
2662
|
a && a.class === "Function" ? i.throwException(
|
|
2665
2663
|
i.TYPE_ERROR,
|
|
2666
2664
|
"Function replacer on JSON.stringify not supported"
|
|
2667
|
-
) : a && a.class === "Array" ? (a = i.pseudoToNative(a), a = a.filter(function(
|
|
2668
|
-
return typeof
|
|
2669
|
-
})) : a = null, typeof
|
|
2670
|
-
var
|
|
2665
|
+
) : a && a.class === "Array" ? (a = i.pseudoToNative(a), a = a.filter(function(O) {
|
|
2666
|
+
return typeof O == "string" || typeof O == "number";
|
|
2667
|
+
})) : a = null, typeof p != "string" && typeof p != "number" && (p = void 0);
|
|
2668
|
+
var d = i.pseudoToNative(c);
|
|
2671
2669
|
try {
|
|
2672
|
-
var E = JSON.stringify(
|
|
2673
|
-
} catch (
|
|
2674
|
-
i.throwException(i.TYPE_ERROR,
|
|
2670
|
+
var E = JSON.stringify(d, a, p);
|
|
2671
|
+
} catch (O) {
|
|
2672
|
+
i.throwException(i.TYPE_ERROR, O.message);
|
|
2675
2673
|
}
|
|
2676
2674
|
return E;
|
|
2677
2675
|
}, this.setProperty(
|
|
@@ -2733,11 +2731,11 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2733
2731
|
}
|
|
2734
2732
|
c.loc && (!i.length || c.type === "CallExpression") && i.push({ datumLoc: c.loc });
|
|
2735
2733
|
}
|
|
2736
|
-
for (var
|
|
2734
|
+
for (var p = String(this.getProperty(t, "name")), d = String(this.getProperty(t, "message")), E = p + ": " + d + `
|
|
2737
2735
|
`, o = 0; o < i.length; o++) {
|
|
2738
|
-
var
|
|
2739
|
-
b ? E += " at " + b + " (" +
|
|
2740
|
-
` : E += " at " +
|
|
2736
|
+
var O = i[o].datumLoc, b = i[o].datumName, S = O.source + ":" + O.start.line + ":" + O.start.column;
|
|
2737
|
+
b ? E += " at " + b + " (" + S + `)
|
|
2738
|
+
` : E += " at " + S + `
|
|
2741
2739
|
`;
|
|
2742
2740
|
}
|
|
2743
2741
|
this.setProperty(
|
|
@@ -2878,23 +2876,23 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2878
2876
|
return c.data = new Date(t.valueOf()), i.pseudo.push(c), c;
|
|
2879
2877
|
}
|
|
2880
2878
|
if (typeof t == "function") {
|
|
2881
|
-
var a = this,
|
|
2882
|
-
var
|
|
2879
|
+
var a = this, p = function() {
|
|
2880
|
+
var S = Array.prototype.slice.call(arguments).map(function(D) {
|
|
2883
2881
|
return a.pseudoToNative(D);
|
|
2884
|
-
}), I = t.apply(a,
|
|
2882
|
+
}), I = t.apply(a, S);
|
|
2885
2883
|
return a.nativeToPseudo(I);
|
|
2886
|
-
},
|
|
2884
|
+
}, d = Object.getOwnPropertyDescriptor(t, "prototype"), E = this.createNativeFunction(p, !!d);
|
|
2887
2885
|
return i.pseudo.push(E), E;
|
|
2888
2886
|
}
|
|
2889
|
-
var
|
|
2890
|
-
Array.isArray(t) ?
|
|
2887
|
+
var O;
|
|
2888
|
+
Array.isArray(t) ? O = this.createArray() : O = this.createObjectProto(this.OBJECT_PROTO), i.pseudo.push(O);
|
|
2891
2889
|
for (var b in t)
|
|
2892
2890
|
this.setProperty(
|
|
2893
|
-
|
|
2891
|
+
O,
|
|
2894
2892
|
b,
|
|
2895
2893
|
this.nativeToPseudo(t[b], i)
|
|
2896
2894
|
);
|
|
2897
|
-
return
|
|
2895
|
+
return O;
|
|
2898
2896
|
}, r.prototype.pseudoToNative = function(t, e) {
|
|
2899
2897
|
if (t == null || t === !0 || t === !1 || typeof t == "string" || typeof t == "number")
|
|
2900
2898
|
return t;
|
|
@@ -2916,13 +2914,13 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2916
2914
|
}
|
|
2917
2915
|
var a = this.isa(t, this.ARRAY) ? [] : {};
|
|
2918
2916
|
i.native.push(a);
|
|
2919
|
-
var
|
|
2920
|
-
for (var
|
|
2921
|
-
|
|
2917
|
+
var p;
|
|
2918
|
+
for (var d in t.properties)
|
|
2919
|
+
p = this.pseudoToNative(t.properties[d], i), Object.defineProperty(
|
|
2922
2920
|
a,
|
|
2923
|
-
|
|
2921
|
+
d,
|
|
2924
2922
|
{
|
|
2925
|
-
value:
|
|
2923
|
+
value: p,
|
|
2926
2924
|
writable: !0,
|
|
2927
2925
|
enumerable: !0,
|
|
2928
2926
|
configurable: !0
|
|
@@ -2998,7 +2996,7 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2998
2996
|
}
|
|
2999
2997
|
}
|
|
3000
2998
|
if (t.class === "Array") {
|
|
3001
|
-
var a = t.properties.length,
|
|
2999
|
+
var a = t.properties.length, p;
|
|
3002
3000
|
if (e === "length") {
|
|
3003
3001
|
if (o) {
|
|
3004
3002
|
if (!("value" in o))
|
|
@@ -3006,19 +3004,19 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3006
3004
|
i = o.value;
|
|
3007
3005
|
}
|
|
3008
3006
|
if (i = r.legalArrayLength(i), isNaN(i) && this.throwException(this.RANGE_ERROR, "Invalid array length"), i < a)
|
|
3009
|
-
for (
|
|
3010
|
-
|
|
3011
|
-
} else isNaN(
|
|
3007
|
+
for (p in t.properties)
|
|
3008
|
+
p = r.legalArrayIndex(p), !isNaN(p) && i <= p && delete t.properties[p];
|
|
3009
|
+
} else isNaN(p = r.legalArrayIndex(e)) || (t.properties.length = Math.max(a, p + 1));
|
|
3012
3010
|
}
|
|
3013
3011
|
if (t.preventExtensions && !(e in t.properties)) {
|
|
3014
3012
|
u && this.throwException(this.TYPE_ERROR, "Can't add property '" + e + "', object is not extensible");
|
|
3015
3013
|
return;
|
|
3016
3014
|
}
|
|
3017
3015
|
if (o) {
|
|
3018
|
-
var
|
|
3019
|
-
"get" in o && o.get && (t.getter[e] = o.get,
|
|
3016
|
+
var d = {};
|
|
3017
|
+
"get" in o && o.get && (t.getter[e] = o.get, d.get = this.setProperty.placeholderGet_), "set" in o && o.set && (t.setter[e] = o.set, d.set = this.setProperty.placeholderSet_), "configurable" in o && (d.configurable = o.configurable), "enumerable" in o && (d.enumerable = o.enumerable), "writable" in o && (d.writable = o.writable, delete t.getter[e], delete t.setter[e]), "value" in o ? (d.value = o.value, delete t.getter[e], delete t.setter[e]) : i !== r.VALUE_IN_DESCRIPTOR && (d.value = i, delete t.getter[e], delete t.setter[e]);
|
|
3020
3018
|
try {
|
|
3021
|
-
Object.defineProperty(t.properties, e,
|
|
3019
|
+
Object.defineProperty(t.properties, e, d);
|
|
3022
3020
|
} catch {
|
|
3023
3021
|
this.throwException(this.TYPE_ERROR, "Cannot redefine property: " + e);
|
|
3024
3022
|
}
|
|
@@ -3139,18 +3137,18 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3139
3137
|
if (c !== "loc") {
|
|
3140
3138
|
var a = t[c];
|
|
3141
3139
|
if (a && typeof a == "object") {
|
|
3142
|
-
var
|
|
3140
|
+
var p;
|
|
3143
3141
|
if (Array.isArray(a)) {
|
|
3144
3142
|
for (var o = 0; o < a.length; o++)
|
|
3145
3143
|
if (a[o] && a[o].constructor === u) {
|
|
3146
|
-
|
|
3147
|
-
for (var c in
|
|
3148
|
-
i[c] =
|
|
3144
|
+
p = this.populateScope_(a[o], e);
|
|
3145
|
+
for (var c in p)
|
|
3146
|
+
i[c] = p[c];
|
|
3149
3147
|
}
|
|
3150
3148
|
} else if (a.constructor === u) {
|
|
3151
|
-
|
|
3152
|
-
for (var c in
|
|
3153
|
-
i[c] =
|
|
3149
|
+
p = this.populateScope_(a, e);
|
|
3150
|
+
for (var c in p)
|
|
3151
|
+
i[c] = p[c];
|
|
3154
3152
|
}
|
|
3155
3153
|
}
|
|
3156
3154
|
}
|
|
@@ -3226,8 +3224,8 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3226
3224
|
SyntaxError,
|
|
3227
3225
|
TypeError,
|
|
3228
3226
|
URIError
|
|
3229
|
-
},
|
|
3230
|
-
c = E(
|
|
3227
|
+
}, p = String(this.getProperty(e, "name")), d = this.getProperty(e, "message").valueOf(), E = a[p] || Error;
|
|
3228
|
+
c = E(d), c.stack = String(this.getProperty(e, "stack"));
|
|
3231
3229
|
} else
|
|
3232
3230
|
c = String(e);
|
|
3233
3231
|
throw this.value = c, c;
|
|
@@ -3263,9 +3261,9 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3263
3261
|
}
|
|
3264
3262
|
return "???";
|
|
3265
3263
|
}, r.prototype.createTask_ = function(t, e) {
|
|
3266
|
-
var i = this.stateStack[this.stateStack.length - 1], o = Array.from(e), u = o.shift(), c = Math.max(Number(o.shift() || 0), 0), a = this.newNode(),
|
|
3264
|
+
var i = this.stateStack[this.stateStack.length - 1], o = Array.from(e), u = o.shift(), c = Math.max(Number(o.shift() || 0), 0), a = this.newNode(), p, d, E;
|
|
3267
3265
|
if (u instanceof r.Object && u.class === "Function")
|
|
3268
|
-
|
|
3266
|
+
d = u, a.type = "CallExpression", p = i.scope;
|
|
3269
3267
|
else {
|
|
3270
3268
|
try {
|
|
3271
3269
|
E = this.parse_(String(u), "taskCode" + this.taskCodeNumber_++);
|
|
@@ -3273,13 +3271,13 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3273
3271
|
this.throwException(this.SYNTAX_ERROR, "Invalid code: " + D.message);
|
|
3274
3272
|
}
|
|
3275
3273
|
a.type = "EvalProgram_", a.body = E.body;
|
|
3276
|
-
var
|
|
3277
|
-
r.stripLocations_(a, b,
|
|
3274
|
+
var O = i.node.arguments[0], b = O ? O.start : void 0, S = O ? O.end : void 0;
|
|
3275
|
+
r.stripLocations_(a, b, S), p = this.globalScope, o.length = 0;
|
|
3278
3276
|
}
|
|
3279
3277
|
var I = new r.Task(
|
|
3280
|
-
|
|
3278
|
+
d,
|
|
3281
3279
|
o,
|
|
3282
|
-
|
|
3280
|
+
p,
|
|
3283
3281
|
a,
|
|
3284
3282
|
t ? c : -1
|
|
3285
3283
|
);
|
|
@@ -3370,27 +3368,27 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3370
3368
|
var t = r.toStringCycles_;
|
|
3371
3369
|
if (t.indexOf(this) !== -1)
|
|
3372
3370
|
return "[object Error]";
|
|
3373
|
-
var a,
|
|
3371
|
+
var a, p, d = this;
|
|
3374
3372
|
do
|
|
3375
|
-
if ("name" in
|
|
3376
|
-
a =
|
|
3373
|
+
if ("name" in d.properties) {
|
|
3374
|
+
a = d.properties.name;
|
|
3377
3375
|
break;
|
|
3378
3376
|
}
|
|
3379
|
-
while (
|
|
3380
|
-
|
|
3377
|
+
while (d = d.proto);
|
|
3378
|
+
d = this;
|
|
3381
3379
|
do
|
|
3382
|
-
if ("message" in
|
|
3383
|
-
|
|
3380
|
+
if ("message" in d.properties) {
|
|
3381
|
+
p = d.properties.message;
|
|
3384
3382
|
break;
|
|
3385
3383
|
}
|
|
3386
|
-
while (
|
|
3384
|
+
while (d = d.proto);
|
|
3387
3385
|
t.push(this);
|
|
3388
3386
|
try {
|
|
3389
|
-
a = a && String(a),
|
|
3387
|
+
a = a && String(a), p = p && String(p);
|
|
3390
3388
|
} finally {
|
|
3391
3389
|
t.pop();
|
|
3392
3390
|
}
|
|
3393
|
-
return
|
|
3391
|
+
return p ? a + ": " + p : String(a);
|
|
3394
3392
|
}
|
|
3395
3393
|
return this.data !== null ? String(this.data) : "[object " + this.class + "]";
|
|
3396
3394
|
}, r.Object.prototype.valueOf = function() {
|
|
@@ -3432,50 +3430,50 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3432
3430
|
t.pop(), t[t.length - 1].value = e.setterValue_;
|
|
3433
3431
|
return;
|
|
3434
3432
|
}
|
|
3435
|
-
var a = e.leftValue_,
|
|
3433
|
+
var a = e.leftValue_, p = e.value;
|
|
3436
3434
|
switch (i.operator) {
|
|
3437
3435
|
case "=":
|
|
3438
|
-
a =
|
|
3436
|
+
a = p;
|
|
3439
3437
|
break;
|
|
3440
3438
|
case "+=":
|
|
3441
|
-
a +=
|
|
3439
|
+
a += p;
|
|
3442
3440
|
break;
|
|
3443
3441
|
case "-=":
|
|
3444
|
-
a -=
|
|
3442
|
+
a -= p;
|
|
3445
3443
|
break;
|
|
3446
3444
|
case "*=":
|
|
3447
|
-
a *=
|
|
3445
|
+
a *= p;
|
|
3448
3446
|
break;
|
|
3449
3447
|
case "/=":
|
|
3450
|
-
a /=
|
|
3448
|
+
a /= p;
|
|
3451
3449
|
break;
|
|
3452
3450
|
case "%=":
|
|
3453
|
-
a %=
|
|
3451
|
+
a %= p;
|
|
3454
3452
|
break;
|
|
3455
3453
|
case "<<=":
|
|
3456
|
-
a <<=
|
|
3454
|
+
a <<= p;
|
|
3457
3455
|
break;
|
|
3458
3456
|
case ">>=":
|
|
3459
|
-
a >>=
|
|
3457
|
+
a >>= p;
|
|
3460
3458
|
break;
|
|
3461
3459
|
case ">>>=":
|
|
3462
|
-
a >>>=
|
|
3460
|
+
a >>>= p;
|
|
3463
3461
|
break;
|
|
3464
3462
|
case "&=":
|
|
3465
|
-
a &=
|
|
3463
|
+
a &= p;
|
|
3466
3464
|
break;
|
|
3467
3465
|
case "^=":
|
|
3468
|
-
a ^=
|
|
3466
|
+
a ^= p;
|
|
3469
3467
|
break;
|
|
3470
3468
|
case "|=":
|
|
3471
|
-
a |=
|
|
3469
|
+
a |= p;
|
|
3472
3470
|
break;
|
|
3473
3471
|
default:
|
|
3474
3472
|
throw SyntaxError("Unknown assignment expression: " + i.operator);
|
|
3475
3473
|
}
|
|
3476
|
-
var
|
|
3477
|
-
if (
|
|
3478
|
-
return e.doneSetter_ = !0, e.setterValue_ = a, this.createSetter_(
|
|
3474
|
+
var d = this.setValue(e.leftReference_, a);
|
|
3475
|
+
if (d)
|
|
3476
|
+
return e.doneSetter_ = !0, e.setterValue_ = a, this.createSetter_(d, e.leftReference_, a);
|
|
3479
3477
|
t.pop(), t[t.length - 1].value = a;
|
|
3480
3478
|
}, r.prototype.stepBinaryExpression = function(t, e, i) {
|
|
3481
3479
|
if (!e.doneLeft_)
|
|
@@ -3613,27 +3611,27 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3613
3611
|
);
|
|
3614
3612
|
var a = u.node;
|
|
3615
3613
|
if (a) {
|
|
3616
|
-
for (var
|
|
3617
|
-
this.setProperty(
|
|
3618
|
-
this.setProperty(
|
|
3614
|
+
for (var p = this.createScope(a.body, u.parentScope), d = this.createArray(), E = 0; E < e.arguments_.length; E++)
|
|
3615
|
+
this.setProperty(d, E, e.arguments_[E]);
|
|
3616
|
+
this.setProperty(p.object, "arguments", d);
|
|
3619
3617
|
for (var E = 0; E < a.params.length; E++) {
|
|
3620
|
-
var
|
|
3621
|
-
this.setProperty(
|
|
3618
|
+
var O = a.params[E].name, b = e.arguments_.length > E ? e.arguments_[E] : void 0;
|
|
3619
|
+
this.setProperty(p.object, O, b);
|
|
3622
3620
|
}
|
|
3623
|
-
return
|
|
3624
|
-
|
|
3621
|
+
return p.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), this.setProperty(
|
|
3622
|
+
p.object,
|
|
3625
3623
|
"this",
|
|
3626
3624
|
e.funcThis_,
|
|
3627
3625
|
r.READONLY_DESCRIPTOR
|
|
3628
|
-
), e.value = void 0, new r.State(a.body,
|
|
3626
|
+
), e.value = void 0, new r.State(a.body, p);
|
|
3629
3627
|
} else if (u.eval) {
|
|
3630
|
-
var
|
|
3631
|
-
if (typeof
|
|
3632
|
-
e.value =
|
|
3628
|
+
var S = e.arguments_[0];
|
|
3629
|
+
if (typeof S != "string")
|
|
3630
|
+
e.value = S;
|
|
3633
3631
|
else {
|
|
3634
3632
|
try {
|
|
3635
3633
|
var I = this.parse_(
|
|
3636
|
-
String(
|
|
3634
|
+
String(S),
|
|
3637
3635
|
"eval" + this.evalCodeNumber_++
|
|
3638
3636
|
);
|
|
3639
3637
|
} catch (j) {
|
|
@@ -3641,18 +3639,18 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3641
3639
|
}
|
|
3642
3640
|
var D = this.newNode();
|
|
3643
3641
|
D.type = "EvalProgram_", D.body = I.body, r.stripLocations_(D, i.start, i.end);
|
|
3644
|
-
var
|
|
3645
|
-
return
|
|
3642
|
+
var p = e.directEval_ ? e.scope : this.globalScope;
|
|
3643
|
+
return p.strict ? p = this.createScope(I, p) : this.populateScope_(I, p), this.value = void 0, new r.State(D, p);
|
|
3646
3644
|
}
|
|
3647
3645
|
} else if (u.nativeFunc)
|
|
3648
3646
|
e.scope.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), e.value = u.nativeFunc.apply(e.funcThis_, e.arguments_);
|
|
3649
3647
|
else if (u.asyncFunc) {
|
|
3650
|
-
var X = this,
|
|
3651
|
-
e.value =
|
|
3652
|
-
}, z = u.asyncFunc.length - 1,
|
|
3648
|
+
var X = this, Pe = function(se) {
|
|
3649
|
+
e.value = se, X.paused_ = !1;
|
|
3650
|
+
}, z = u.asyncFunc.length - 1, ve = e.arguments_.concat(
|
|
3653
3651
|
new Array(z)
|
|
3654
3652
|
).slice(0, z);
|
|
3655
|
-
|
|
3653
|
+
ve.push(Pe), this.paused_ = !0, e.scope.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), u.asyncFunc.apply(e.funcThis_, ve);
|
|
3656
3654
|
return;
|
|
3657
3655
|
} else
|
|
3658
3656
|
this.throwException(
|
|
@@ -3754,9 +3752,9 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3754
3752
|
}
|
|
3755
3753
|
if (e.variable_ || (e.variable_ = e.value), !e.doneSetter_) {
|
|
3756
3754
|
e.doneSetter_ = !0;
|
|
3757
|
-
var a = e.name_,
|
|
3758
|
-
if (
|
|
3759
|
-
return this.createSetter_(
|
|
3755
|
+
var a = e.name_, p = this.setValue(e.variable_, a);
|
|
3756
|
+
if (p)
|
|
3757
|
+
return this.createSetter_(p, e.variable_, a);
|
|
3760
3758
|
}
|
|
3761
3759
|
if (e.name_ = void 0, e.doneVariable_ = !1, e.doneSetter_ = !1, i.body)
|
|
3762
3760
|
return new r.State(i.body, e.scope);
|
|
@@ -3873,22 +3871,22 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3873
3871
|
return e.destinationName = c, new r.State(u.value, e.scope);
|
|
3874
3872
|
}
|
|
3875
3873
|
for (var a in e.properties_) {
|
|
3876
|
-
var
|
|
3877
|
-
if ("get" in
|
|
3878
|
-
var
|
|
3874
|
+
var p = e.properties_[a];
|
|
3875
|
+
if ("get" in p || "set" in p) {
|
|
3876
|
+
var d = {
|
|
3879
3877
|
configurable: !0,
|
|
3880
3878
|
enumerable: !0,
|
|
3881
|
-
get:
|
|
3882
|
-
set:
|
|
3879
|
+
get: p.get,
|
|
3880
|
+
set: p.set
|
|
3883
3881
|
};
|
|
3884
3882
|
this.setProperty(
|
|
3885
3883
|
e.object_,
|
|
3886
3884
|
a,
|
|
3887
3885
|
r.VALUE_IN_DESCRIPTOR,
|
|
3888
|
-
|
|
3886
|
+
d
|
|
3889
3887
|
);
|
|
3890
3888
|
} else
|
|
3891
|
-
this.setProperty(e.object_, a,
|
|
3889
|
+
this.setProperty(e.object_, a, p.init);
|
|
3892
3890
|
}
|
|
3893
3891
|
t.pop(), t[t.length - 1].value = e.object_;
|
|
3894
3892
|
}, r.prototype.stepProgram = function(t, e, i) {
|
|
@@ -3977,11 +3975,11 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3977
3975
|
if (Array.isArray(u)) {
|
|
3978
3976
|
var a = u[0];
|
|
3979
3977
|
a === r.SCOPE_REFERENCE && (a = e.scope);
|
|
3980
|
-
var
|
|
3978
|
+
var p = String(u[1]);
|
|
3981
3979
|
try {
|
|
3982
|
-
delete a.properties[
|
|
3980
|
+
delete a.properties[p];
|
|
3983
3981
|
} catch {
|
|
3984
|
-
e.scope.strict ? this.throwException(this.TYPE_ERROR, "Cannot delete property '" +
|
|
3982
|
+
e.scope.strict ? this.throwException(this.TYPE_ERROR, "Cannot delete property '" + p + "' of '" + a + "'") : c = !1;
|
|
3985
3983
|
}
|
|
3986
3984
|
}
|
|
3987
3985
|
u = c;
|
|
@@ -4024,10 +4022,10 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4024
4022
|
a = c - 1;
|
|
4025
4023
|
else
|
|
4026
4024
|
throw SyntaxError("Unknown update expression: " + i.operator);
|
|
4027
|
-
var
|
|
4028
|
-
if (
|
|
4029
|
-
return e.doneSetter_ = !0, e.setterValue_ =
|
|
4030
|
-
t.pop(), t[t.length - 1].value =
|
|
4025
|
+
var p = i.prefix ? a : c, d = this.setValue(e.leftSide_, a);
|
|
4026
|
+
if (d)
|
|
4027
|
+
return e.doneSetter_ = !0, e.setterValue_ = p, this.createSetter_(d, e.leftSide_, a);
|
|
4028
|
+
t.pop(), t[t.length - 1].value = p;
|
|
4031
4029
|
}, r.prototype.stepVariableDeclaration = function(t, e, i) {
|
|
4032
4030
|
var o = i.declarations, u = e.n_ || 0, c = o[u];
|
|
4033
4031
|
for (e.init_ && c && (this.setValueToScope(c.id.name, e.value), e.init_ = !1, c = o[++u]); c; ) {
|
|
@@ -4053,9 +4051,9 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4053
4051
|
!*** ./original-repo/acorn.js ***!
|
|
4054
4052
|
\********************************/
|
|
4055
4053
|
/***/
|
|
4056
|
-
function(m,
|
|
4054
|
+
function(m, T) {
|
|
4057
4055
|
(function(R, r) {
|
|
4058
|
-
return r(
|
|
4056
|
+
return r(T);
|
|
4059
4057
|
})(typeof globalThis > "u" ? this || window : globalThis, function(R) {
|
|
4060
4058
|
R.version = "0.5.0";
|
|
4061
4059
|
var r, t = "", e, i;
|
|
@@ -4127,103 +4125,103 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4127
4125
|
i = r.sourceFile;
|
|
4128
4126
|
}
|
|
4129
4127
|
var c = function(f, h) {
|
|
4130
|
-
for (var
|
|
4128
|
+
for (var y = 1, _ = 0; ; ) {
|
|
4131
4129
|
Ke.lastIndex = _;
|
|
4132
4130
|
var x = Ke.exec(f);
|
|
4133
4131
|
if (x && x.index < h)
|
|
4134
|
-
++
|
|
4132
|
+
++y, _ = x.index + x[0].length;
|
|
4135
4133
|
else
|
|
4136
4134
|
break;
|
|
4137
4135
|
}
|
|
4138
|
-
return { line:
|
|
4139
|
-
}, a = 0,
|
|
4136
|
+
return { line: y, column: h - _ };
|
|
4137
|
+
}, a = 0, p = 0, d = 0, E, O, b, S, I, D, X, Pe = 0, z = 0, ve, se, j, J;
|
|
4140
4138
|
function A(f, h) {
|
|
4141
|
-
var
|
|
4142
|
-
h += " (" +
|
|
4139
|
+
var y = c(t, f);
|
|
4140
|
+
h += " (" + y.line + ":" + y.column + ")";
|
|
4143
4141
|
var _ = new SyntaxError(h);
|
|
4144
|
-
throw _.pos = f, _.loc =
|
|
4142
|
+
throw _.pos = f, _.loc = y, _.raisedAt = a, _;
|
|
4145
4143
|
}
|
|
4146
|
-
var Xn = [], Xe = { type: "num" },
|
|
4147
|
-
break:
|
|
4148
|
-
case:
|
|
4149
|
-
catch:
|
|
4150
|
-
continue:
|
|
4151
|
-
debugger:
|
|
4152
|
-
default:
|
|
4153
|
-
do:
|
|
4154
|
-
else:
|
|
4155
|
-
finally:
|
|
4156
|
-
for:
|
|
4157
|
-
function:
|
|
4158
|
-
if:
|
|
4159
|
-
return:
|
|
4160
|
-
switch:
|
|
4161
|
-
throw:
|
|
4162
|
-
try:
|
|
4163
|
-
var:
|
|
4164
|
-
while:
|
|
4165
|
-
with:
|
|
4166
|
-
null:
|
|
4167
|
-
true:
|
|
4168
|
-
false:
|
|
4169
|
-
new:
|
|
4144
|
+
var Xn = [], Xe = { type: "num" }, Xt = { type: "regexp" }, ut = { type: "string" }, ye = { type: "name" }, st = { type: "eof" }, ct = { keyword: "break" }, ft = { keyword: "case", beforeExpr: !0 }, Wt = { keyword: "catch" }, Jt = { keyword: "continue" }, zt = { keyword: "debugger" }, Ht = { keyword: "default" }, Kt = { keyword: "do", isLoop: !0 }, qt = { keyword: "else", beforeExpr: !0 }, Zt = { keyword: "finally" }, Qt = { keyword: "for", isLoop: !0 }, lt = { keyword: "function" }, er = { keyword: "if" }, tr = { keyword: "return", beforeExpr: !0 }, pt = { keyword: "switch" }, rr = { keyword: "throw", beforeExpr: !0 }, nr = { keyword: "try" }, ht = { keyword: "var" }, dt = { keyword: "while", isLoop: !0 }, ir = { keyword: "with" }, ar = { keyword: "new", beforeExpr: !0 }, or = { keyword: "this" }, ur = { keyword: "null", atomValue: null }, sr = { keyword: "true", atomValue: !0 }, cr = { keyword: "false", atomValue: !1 }, We = { keyword: "in", binop: 7, beforeExpr: !0 }, Wn = {
|
|
4145
|
+
break: ct,
|
|
4146
|
+
case: ft,
|
|
4147
|
+
catch: Wt,
|
|
4148
|
+
continue: Jt,
|
|
4149
|
+
debugger: zt,
|
|
4150
|
+
default: Ht,
|
|
4151
|
+
do: Kt,
|
|
4152
|
+
else: qt,
|
|
4153
|
+
finally: Zt,
|
|
4154
|
+
for: Qt,
|
|
4155
|
+
function: lt,
|
|
4156
|
+
if: er,
|
|
4157
|
+
return: tr,
|
|
4158
|
+
switch: pt,
|
|
4159
|
+
throw: rr,
|
|
4160
|
+
try: nr,
|
|
4161
|
+
var: ht,
|
|
4162
|
+
while: dt,
|
|
4163
|
+
with: ir,
|
|
4164
|
+
null: ur,
|
|
4165
|
+
true: sr,
|
|
4166
|
+
false: cr,
|
|
4167
|
+
new: ar,
|
|
4170
4168
|
in: We,
|
|
4171
4169
|
instanceof: { keyword: "instanceof", binop: 7, beforeExpr: !0 },
|
|
4172
|
-
this:
|
|
4170
|
+
this: or,
|
|
4173
4171
|
typeof: { keyword: "typeof", prefix: !0, beforeExpr: !0 },
|
|
4174
4172
|
void: { keyword: "void", prefix: !0, beforeExpr: !0 },
|
|
4175
4173
|
delete: { keyword: "delete", prefix: !0, beforeExpr: !0 }
|
|
4176
|
-
},
|
|
4174
|
+
}, vt = { type: "[", beforeExpr: !0 }, yt = { type: "]" }, we = { type: "{", beforeExpr: !0 }, _e = { type: "}" }, Z = { type: "(", beforeExpr: !0 }, K = { type: ")" }, ne = { type: ",", beforeExpr: !0 }, Q = { type: ";", beforeExpr: !0 }, xe = { type: ":", beforeExpr: !0 }, fr = { type: "." }, lr = { type: "?", beforeExpr: !0 }, pr = { binop: 10, beforeExpr: !0 }, hr = { isAssign: !0, beforeExpr: !0 }, ce = { isAssign: !0, beforeExpr: !0 }, Jn = { postfix: !0, prefix: !0, isUpdate: !0 }, dr = { prefix: !0, beforeExpr: !0 }, vr = { binop: 1, beforeExpr: !0 }, yr = { binop: 2, beforeExpr: !0 }, zn = { binop: 3, beforeExpr: !0 }, Hn = { binop: 4, beforeExpr: !0 }, Kn = { binop: 5, beforeExpr: !0 }, qn = { binop: 6, beforeExpr: !0 }, Zn = { binop: 7, beforeExpr: !0 }, Qn = { binop: 8, beforeExpr: !0 }, ei = { binop: 9, prefix: !0, beforeExpr: !0 }, ti = { binop: 10, beforeExpr: !0 };
|
|
4177
4175
|
function Je(f) {
|
|
4178
|
-
for (var h = f.split(" "),
|
|
4179
|
-
|
|
4176
|
+
for (var h = f.split(" "), y = /* @__PURE__ */ Object.create(null), _ = 0; _ < h.length; _++)
|
|
4177
|
+
y[h[_]] = !0;
|
|
4180
4178
|
return function(x) {
|
|
4181
|
-
return
|
|
4179
|
+
return y[x] || !1;
|
|
4182
4180
|
};
|
|
4183
4181
|
}
|
|
4184
|
-
var ri = Je("class enum extends super const export import"),
|
|
4185
|
-
return f < 65 ? f === 36 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 &&
|
|
4186
|
-
},
|
|
4182
|
+
var ri = Je("class enum extends super const export import"), _r = Je("implements interface let package private protected public static yield"), ze = Je("eval arguments"), ni = Je("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"), ii = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Er = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", ai = "̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_", gr = new RegExp("[" + Er + "]"), oi = new RegExp("[" + Er + ai + "]"), He = /[\n\r\u2028\u2029]/, Ke = /\r\n|[\n\r\u2028\u2029]/g, qe = function(f) {
|
|
4183
|
+
return f < 65 ? f === 36 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 && gr.test(String.fromCharCode(f));
|
|
4184
|
+
}, br = function(f) {
|
|
4187
4185
|
return f < 48 ? f === 36 : f < 58 ? !0 : f < 65 ? !1 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 && oi.test(String.fromCharCode(f));
|
|
4188
4186
|
};
|
|
4189
|
-
function
|
|
4187
|
+
function fe() {
|
|
4190
4188
|
this.line = D, this.column = a - X;
|
|
4191
4189
|
}
|
|
4192
4190
|
function ui() {
|
|
4193
|
-
D = 1, a = X = 0, I = !0,
|
|
4191
|
+
D = 1, a = X = 0, I = !0, Ce();
|
|
4194
4192
|
}
|
|
4195
4193
|
function $(f, h) {
|
|
4196
|
-
|
|
4194
|
+
d = a, r.locations && (O = new fe()), b = f, Ce(), S = h, I = f.beforeExpr;
|
|
4197
4195
|
}
|
|
4198
4196
|
function si() {
|
|
4199
|
-
var f = r.onComment && r.locations && new
|
|
4200
|
-
if (
|
|
4197
|
+
var f = r.onComment && r.locations && new fe(), h = a, y = t.indexOf("*/", a += 2);
|
|
4198
|
+
if (y === -1 && A(a - 2, "Unterminated comment"), a = y + 2, r.locations) {
|
|
4201
4199
|
Ke.lastIndex = h;
|
|
4202
4200
|
for (var _; (_ = Ke.exec(t)) && _.index < a; )
|
|
4203
4201
|
++D, X = _.index + _[0].length;
|
|
4204
4202
|
}
|
|
4205
4203
|
r.onComment && r.onComment(
|
|
4206
4204
|
!0,
|
|
4207
|
-
t.slice(h + 2,
|
|
4205
|
+
t.slice(h + 2, y),
|
|
4208
4206
|
h,
|
|
4209
4207
|
a,
|
|
4210
4208
|
f,
|
|
4211
|
-
r.locations && new
|
|
4209
|
+
r.locations && new fe()
|
|
4212
4210
|
);
|
|
4213
4211
|
}
|
|
4214
|
-
function
|
|
4215
|
-
for (var f = a, h = r.onComment && r.locations && new
|
|
4216
|
-
++a,
|
|
4212
|
+
function _t() {
|
|
4213
|
+
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
|
+
++a, y = t.charCodeAt(a);
|
|
4217
4215
|
r.onComment && r.onComment(
|
|
4218
4216
|
!1,
|
|
4219
4217
|
t.slice(f + 2, a),
|
|
4220
4218
|
f,
|
|
4221
4219
|
a,
|
|
4222
4220
|
h,
|
|
4223
|
-
r.locations && new
|
|
4221
|
+
r.locations && new fe()
|
|
4224
4222
|
);
|
|
4225
4223
|
}
|
|
4226
|
-
function
|
|
4224
|
+
function Ce() {
|
|
4227
4225
|
for (; a < e; ) {
|
|
4228
4226
|
var f = t.charCodeAt(a);
|
|
4229
4227
|
if (f === 32)
|
|
@@ -4241,7 +4239,7 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4241
4239
|
if (h === 42)
|
|
4242
4240
|
si();
|
|
4243
4241
|
else if (h === 47)
|
|
4244
|
-
|
|
4242
|
+
_t();
|
|
4245
4243
|
else break;
|
|
4246
4244
|
} else if (f === 160)
|
|
4247
4245
|
++a;
|
|
@@ -4253,49 +4251,49 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4253
4251
|
}
|
|
4254
4252
|
function ci() {
|
|
4255
4253
|
var f = t.charCodeAt(a + 1);
|
|
4256
|
-
f >= 48 && f <= 57 ?
|
|
4254
|
+
f >= 48 && f <= 57 ? Rr(!0) : (++a, $(fr));
|
|
4257
4255
|
}
|
|
4258
4256
|
function fi() {
|
|
4259
4257
|
var f = t.charCodeAt(a + 1);
|
|
4260
|
-
I ? (++a,
|
|
4258
|
+
I ? (++a, mr()) : f === 61 ? G(ce, 2) : G(pr, 1);
|
|
4261
4259
|
}
|
|
4262
4260
|
function li() {
|
|
4263
4261
|
var f = t.charCodeAt(a + 1);
|
|
4264
|
-
f === 61 ? G(
|
|
4262
|
+
f === 61 ? G(ce, 2) : G(ti, 1);
|
|
4265
4263
|
}
|
|
4266
4264
|
function pi(f) {
|
|
4267
4265
|
var h = t.charCodeAt(a + 1);
|
|
4268
|
-
h === f ? G(f === 124 ?
|
|
4266
|
+
h === f ? G(f === 124 ? vr : yr, 2) : h === 61 ? G(ce, 2) : G(f === 124 ? zn : Kn, 1);
|
|
4269
4267
|
}
|
|
4270
4268
|
function hi() {
|
|
4271
4269
|
var f = t.charCodeAt(a + 1);
|
|
4272
|
-
f === 61 ? G(
|
|
4270
|
+
f === 61 ? G(ce, 2) : G(Hn, 1);
|
|
4273
4271
|
}
|
|
4274
4272
|
function di(f) {
|
|
4275
4273
|
var h = t.charCodeAt(a + 1);
|
|
4276
4274
|
if (h === f) {
|
|
4277
4275
|
if (h === 45 && t.charCodeAt(a + 2) === 62 && He.test(t.slice(z, a))) {
|
|
4278
|
-
a += 3,
|
|
4276
|
+
a += 3, _t(), Ce(), Ee();
|
|
4279
4277
|
return;
|
|
4280
4278
|
}
|
|
4281
4279
|
G(Jn, 2);
|
|
4282
|
-
} else h === 61 ? G(
|
|
4280
|
+
} else h === 61 ? G(ce, 2) : G(ei, 1);
|
|
4283
4281
|
}
|
|
4284
4282
|
function vi(f) {
|
|
4285
|
-
var h = t.charCodeAt(a + 1),
|
|
4283
|
+
var h = t.charCodeAt(a + 1), y = 1;
|
|
4286
4284
|
if (h === f) {
|
|
4287
|
-
|
|
4285
|
+
y = f === 62 && t.charCodeAt(a + 2) === 62 ? 3 : 2, t.charCodeAt(a + y) === 61 ? G(ce, y + 1) : G(Qn, y);
|
|
4288
4286
|
return;
|
|
4289
4287
|
}
|
|
4290
4288
|
if (h === 33 && f === 60 && t.charCodeAt(a + 2) === 45 && t.charCodeAt(a + 3) === 45) {
|
|
4291
|
-
a += 4,
|
|
4289
|
+
a += 4, _t(), Ce(), Ee();
|
|
4292
4290
|
return;
|
|
4293
4291
|
}
|
|
4294
|
-
h === 61 && (
|
|
4292
|
+
h === 61 && (y = t.charCodeAt(a + 2) === 61 ? 3 : 2), G(Zn, y);
|
|
4295
4293
|
}
|
|
4296
4294
|
function yi(f) {
|
|
4297
4295
|
var h = t.charCodeAt(a + 1);
|
|
4298
|
-
h === 61 ? G(qn, t.charCodeAt(a + 2) === 61 ? 3 : 2) : G(f === 61 ?
|
|
4296
|
+
h === 61 ? G(qn, t.charCodeAt(a + 2) === 61 ? 3 : 2) : G(f === 61 ? hr : dr, 1);
|
|
4299
4297
|
}
|
|
4300
4298
|
function _i(f) {
|
|
4301
4299
|
switch (f) {
|
|
@@ -4310,17 +4308,17 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4310
4308
|
case 44:
|
|
4311
4309
|
return ++a, $(ne);
|
|
4312
4310
|
case 91:
|
|
4313
|
-
return ++a, $(
|
|
4311
|
+
return ++a, $(vt);
|
|
4314
4312
|
case 93:
|
|
4315
|
-
return ++a, $(
|
|
4313
|
+
return ++a, $(yt);
|
|
4316
4314
|
case 123:
|
|
4317
|
-
return ++a, $(
|
|
4315
|
+
return ++a, $(we);
|
|
4318
4316
|
case 125:
|
|
4319
|
-
return ++a, $(
|
|
4317
|
+
return ++a, $(_e);
|
|
4320
4318
|
case 58:
|
|
4321
|
-
return ++a, $(
|
|
4319
|
+
return ++a, $(xe);
|
|
4322
4320
|
case 63:
|
|
4323
|
-
return ++a, $(
|
|
4321
|
+
return ++a, $(lr);
|
|
4324
4322
|
case 48:
|
|
4325
4323
|
var h = t.charCodeAt(a + 1);
|
|
4326
4324
|
if (h === 120 || h === 88) return Ei();
|
|
@@ -4333,7 +4331,7 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4333
4331
|
case 55:
|
|
4334
4332
|
case 56:
|
|
4335
4333
|
case 57:
|
|
4336
|
-
return
|
|
4334
|
+
return Rr(!1);
|
|
4337
4335
|
case 34:
|
|
4338
4336
|
case 39:
|
|
4339
4337
|
return gi(f);
|
|
@@ -4357,33 +4355,33 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4357
4355
|
case 33:
|
|
4358
4356
|
return yi(f);
|
|
4359
4357
|
case 126:
|
|
4360
|
-
return G(
|
|
4358
|
+
return G(dr, 1);
|
|
4361
4359
|
}
|
|
4362
4360
|
return !1;
|
|
4363
4361
|
}
|
|
4364
|
-
function
|
|
4365
|
-
if (f ? a =
|
|
4366
|
-
if (a >= e) return $(
|
|
4362
|
+
function Ee(f) {
|
|
4363
|
+
if (f ? a = p + 1 : p = a, r.locations && (E = new fe()), f) return mr();
|
|
4364
|
+
if (a >= e) return $(st);
|
|
4367
4365
|
var h = t.charCodeAt(a);
|
|
4368
4366
|
if (qe(h) || h === 92)
|
|
4369
|
-
return
|
|
4370
|
-
var
|
|
4371
|
-
if (
|
|
4367
|
+
return Nr();
|
|
4368
|
+
var y = _i(h);
|
|
4369
|
+
if (y === !1) {
|
|
4372
4370
|
var _ = String.fromCharCode(h);
|
|
4373
|
-
if (_ === "\\" ||
|
|
4374
|
-
return
|
|
4371
|
+
if (_ === "\\" || gr.test(_))
|
|
4372
|
+
return Nr();
|
|
4375
4373
|
A(a, "Unexpected character '" + _ + "'");
|
|
4376
4374
|
}
|
|
4377
4375
|
}
|
|
4378
4376
|
function G(f, h) {
|
|
4379
|
-
var
|
|
4380
|
-
a += h, $(f,
|
|
4377
|
+
var y = t.slice(a, a + h);
|
|
4378
|
+
a += h, $(f, y);
|
|
4381
4379
|
}
|
|
4382
|
-
function
|
|
4383
|
-
for (var f, h,
|
|
4384
|
-
a >= e && A(
|
|
4380
|
+
function mr() {
|
|
4381
|
+
for (var f, h, y = a; ; ) {
|
|
4382
|
+
a >= e && A(y, "Unterminated regexp");
|
|
4385
4383
|
var _ = t.charAt(a);
|
|
4386
|
-
if (He.test(_) && A(
|
|
4384
|
+
if (He.test(_) && A(y, "Unterminated regexp"), f)
|
|
4387
4385
|
f = !1;
|
|
4388
4386
|
else {
|
|
4389
4387
|
if (_ === "[")
|
|
@@ -4396,56 +4394,56 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4396
4394
|
}
|
|
4397
4395
|
++a;
|
|
4398
4396
|
}
|
|
4399
|
-
var x = t.slice(
|
|
4397
|
+
var x = t.slice(y, a);
|
|
4400
4398
|
++a;
|
|
4401
|
-
var
|
|
4402
|
-
|
|
4399
|
+
var P = Or();
|
|
4400
|
+
P && !/^[gmi]*$/.test(P) && A(y, "Invalid regexp flag");
|
|
4403
4401
|
try {
|
|
4404
|
-
var C = new RegExp(x,
|
|
4402
|
+
var C = new RegExp(x, P);
|
|
4405
4403
|
} catch (M) {
|
|
4406
|
-
throw M instanceof SyntaxError && A(
|
|
4404
|
+
throw M instanceof SyntaxError && A(y, M.message), M;
|
|
4407
4405
|
}
|
|
4408
|
-
$(
|
|
4406
|
+
$(Xt, C);
|
|
4409
4407
|
}
|
|
4410
|
-
function
|
|
4411
|
-
for (var
|
|
4408
|
+
function Ae(f, h) {
|
|
4409
|
+
for (var y = a, _ = 0, x = h === void 0 ? 1 / 0 : h, P = 0; P < x; ++P) {
|
|
4412
4410
|
var C = t.charCodeAt(a), M;
|
|
4413
4411
|
if (C >= 97 ? M = C - 97 + 10 : C >= 65 ? M = C - 65 + 10 : C >= 48 && C <= 57 ? M = C - 48 : M = 1 / 0, M >= f) break;
|
|
4414
4412
|
++a, _ = _ * f + M;
|
|
4415
4413
|
}
|
|
4416
|
-
return a ===
|
|
4414
|
+
return a === y || h !== void 0 && a - y !== h ? null : _;
|
|
4417
4415
|
}
|
|
4418
4416
|
function Ei() {
|
|
4419
4417
|
a += 2;
|
|
4420
|
-
var f =
|
|
4421
|
-
f === null && A(
|
|
4418
|
+
var f = Ae(16);
|
|
4419
|
+
f === null && A(p + 2, "Expected hexadecimal number"), qe(t.charCodeAt(a)) && A(a, "Identifier directly after number"), $(Xe, f);
|
|
4422
4420
|
}
|
|
4423
|
-
function
|
|
4424
|
-
var h = a,
|
|
4425
|
-
!f &&
|
|
4421
|
+
function Rr(f) {
|
|
4422
|
+
var h = a, y = !1, _ = t.charCodeAt(a) === 48;
|
|
4423
|
+
!f && Ae(10) === null && A(h, "Invalid number"), t.charCodeAt(a) === 46 && (++a, Ae(10), y = !0);
|
|
4426
4424
|
var x = t.charCodeAt(a);
|
|
4427
|
-
(x === 69 || x === 101) && (x = t.charCodeAt(++a), (x === 43 || x === 45) && ++a,
|
|
4428
|
-
var
|
|
4429
|
-
|
|
4425
|
+
(x === 69 || x === 101) && (x = t.charCodeAt(++a), (x === 43 || x === 45) && ++a, Ae(10) === null && A(h, "Invalid number"), y = !0), qe(t.charCodeAt(a)) && A(a, "Identifier directly after number");
|
|
4426
|
+
var P = t.slice(h, a), C;
|
|
4427
|
+
y ? C = parseFloat(P) : !_ || P.length === 1 ? C = parseInt(P, 10) : /[89]/.test(P) || J ? A(h, "Invalid number") : C = parseInt(P, 8), $(Xe, C);
|
|
4430
4428
|
}
|
|
4431
4429
|
function gi(f) {
|
|
4432
4430
|
a++;
|
|
4433
4431
|
for (var h = ""; ; ) {
|
|
4434
|
-
a >= e && A(
|
|
4435
|
-
var
|
|
4436
|
-
if (
|
|
4437
|
-
++a, $(
|
|
4432
|
+
a >= e && A(p, "Unterminated string constant");
|
|
4433
|
+
var y = t.charCodeAt(a);
|
|
4434
|
+
if (y === f) {
|
|
4435
|
+
++a, $(ut, h);
|
|
4438
4436
|
return;
|
|
4439
4437
|
}
|
|
4440
|
-
if (
|
|
4441
|
-
|
|
4438
|
+
if (y === 92) {
|
|
4439
|
+
y = t.charCodeAt(++a);
|
|
4442
4440
|
var _ = /^[0-7]+/.exec(t.slice(a, a + 3));
|
|
4443
4441
|
for (_ && (_ = _[0]); _ && parseInt(_, 8) > 255; )
|
|
4444
4442
|
_ = _.slice(0, -1);
|
|
4445
4443
|
if (_ === "0" && (_ = null), ++a, _)
|
|
4446
4444
|
J && A(a - 2, "Octal literal in strict mode"), h += String.fromCharCode(parseInt(_, 8)), a += _.length - 1;
|
|
4447
4445
|
else
|
|
4448
|
-
switch (
|
|
4446
|
+
switch (y) {
|
|
4449
4447
|
case 110:
|
|
4450
4448
|
h += `
|
|
4451
4449
|
`;
|
|
@@ -4483,337 +4481,337 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4483
4481
|
r.locations && (X = a, ++D);
|
|
4484
4482
|
break;
|
|
4485
4483
|
default:
|
|
4486
|
-
h += String.fromCharCode(
|
|
4484
|
+
h += String.fromCharCode(y);
|
|
4487
4485
|
break;
|
|
4488
4486
|
}
|
|
4489
4487
|
} else
|
|
4490
|
-
(
|
|
4488
|
+
(y === 13 || y === 10 || y === 8232 || y === 8233) && A(p, "Unterminated string constant"), h += String.fromCharCode(y), ++a;
|
|
4491
4489
|
}
|
|
4492
4490
|
}
|
|
4493
4491
|
function Ze(f) {
|
|
4494
|
-
var h =
|
|
4495
|
-
return h === null && A(
|
|
4492
|
+
var h = Ae(16, f);
|
|
4493
|
+
return h === null && A(p, "Bad character escape sequence"), /** @type {number} */
|
|
4496
4494
|
h;
|
|
4497
4495
|
}
|
|
4498
|
-
var
|
|
4499
|
-
function
|
|
4500
|
-
|
|
4501
|
-
for (var f, h = !0,
|
|
4496
|
+
var ge;
|
|
4497
|
+
function Or() {
|
|
4498
|
+
ge = !1;
|
|
4499
|
+
for (var f, h = !0, y = a; ; ) {
|
|
4502
4500
|
var _ = t.charCodeAt(a);
|
|
4503
|
-
if (
|
|
4504
|
-
|
|
4501
|
+
if (br(_))
|
|
4502
|
+
ge && (f += t.charAt(a)), ++a;
|
|
4505
4503
|
else if (_ === 92) {
|
|
4506
|
-
|
|
4507
|
-
var x = Ze(4),
|
|
4508
|
-
|
|
4504
|
+
ge || (f = t.slice(y, a)), ge = !0, t.charCodeAt(++a) !== 117 && A(a, "Expecting Unicode escape sequence \\uXXXX"), ++a;
|
|
4505
|
+
var x = Ze(4), P = String.fromCharCode(x);
|
|
4506
|
+
P || A(a - 1, "Invalid Unicode escape"), (h ? qe(x) : br(x)) || A(a - 4, "Invalid Unicode escape"), f += P;
|
|
4509
4507
|
} else
|
|
4510
4508
|
break;
|
|
4511
4509
|
h = !1;
|
|
4512
4510
|
}
|
|
4513
|
-
return
|
|
4511
|
+
return ge ? f : t.slice(y, a);
|
|
4514
4512
|
}
|
|
4515
|
-
function
|
|
4516
|
-
var f =
|
|
4517
|
-
!
|
|
4513
|
+
function Nr() {
|
|
4514
|
+
var f = Or(), h = ye;
|
|
4515
|
+
!ge && ni(f) && (h = Wn[f]), $(h, f);
|
|
4518
4516
|
}
|
|
4519
4517
|
function k() {
|
|
4520
|
-
|
|
4518
|
+
Pe = p, z = d, ve = O, Ee();
|
|
4521
4519
|
}
|
|
4522
|
-
function
|
|
4523
|
-
if (J = f, a =
|
|
4520
|
+
function Et(f) {
|
|
4521
|
+
if (J = f, a = p, r.locations)
|
|
4524
4522
|
for (; a < X; )
|
|
4525
4523
|
X = t.lastIndexOf(`
|
|
4526
4524
|
`, X - 2) + 1, --D;
|
|
4527
|
-
|
|
4525
|
+
Ce(), Ee();
|
|
4528
4526
|
}
|
|
4529
|
-
function
|
|
4530
|
-
this.type = null, this.start =
|
|
4527
|
+
function Tr() {
|
|
4528
|
+
this.type = null, this.start = p, this.end = null;
|
|
4531
4529
|
}
|
|
4532
|
-
function
|
|
4530
|
+
function Sr() {
|
|
4533
4531
|
this.start = E, this.end = null, i && (this.source = i);
|
|
4534
4532
|
}
|
|
4535
4533
|
function V() {
|
|
4536
|
-
var f = new
|
|
4537
|
-
return r.locations && (f.loc = new
|
|
4534
|
+
var f = new Tr();
|
|
4535
|
+
return r.locations && (f.loc = new Sr()), r.directSourceFile && (f.sourceFile = r.directSourceFile), r.ranges && (f.range = [p, 0]), f;
|
|
4538
4536
|
}
|
|
4539
4537
|
function ie(f) {
|
|
4540
|
-
var h = new
|
|
4541
|
-
return h.start = f.start, r.locations && (h.loc = new
|
|
4538
|
+
var h = new Tr();
|
|
4539
|
+
return h.start = f.start, r.locations && (h.loc = new Sr(), h.loc.start = f.loc.start), r.ranges && (h.range = [f.range[0], 0]), h;
|
|
4542
4540
|
}
|
|
4543
4541
|
function w(f, h) {
|
|
4544
|
-
return f.type = h, f.end = z, r.locations && (f.loc.end =
|
|
4542
|
+
return f.type = h, f.end = z, r.locations && (f.loc.end = ve), r.ranges && (f.range[1] = z), f;
|
|
4545
4543
|
}
|
|
4546
|
-
function
|
|
4544
|
+
function gt(f) {
|
|
4547
4545
|
return f.type === "ExpressionStatement" && f.expression.type === "Literal" && f.expression.value === "use strict";
|
|
4548
4546
|
}
|
|
4549
4547
|
function U(f) {
|
|
4550
4548
|
return b === f ? (k(), !0) : !1;
|
|
4551
4549
|
}
|
|
4552
4550
|
function Qe() {
|
|
4553
|
-
return !r.strictSemicolons && (b ===
|
|
4551
|
+
return !r.strictSemicolons && (b === st || b === _e || He.test(t.slice(z, p)));
|
|
4554
4552
|
}
|
|
4555
|
-
function
|
|
4553
|
+
function le() {
|
|
4556
4554
|
!U(Q) && !Qe() && ee();
|
|
4557
4555
|
}
|
|
4558
4556
|
function B(f) {
|
|
4559
4557
|
b === f ? k() : ee();
|
|
4560
4558
|
}
|
|
4561
4559
|
function ee() {
|
|
4562
|
-
A(
|
|
4560
|
+
A(p, "Unexpected token");
|
|
4563
4561
|
}
|
|
4564
4562
|
function et(f) {
|
|
4565
4563
|
f.type !== "Identifier" && f.type !== "MemberExpression" && A(f.start, "Assigning to rvalue"), J && f.type === "Identifier" && ze(f.name) && A(f.start, "Assigning to " + f.name + " in strict mode");
|
|
4566
4564
|
}
|
|
4567
4565
|
function bi(f) {
|
|
4568
|
-
|
|
4569
|
-
var h = f || V(),
|
|
4570
|
-
for (f || (h.body = []); b !==
|
|
4566
|
+
Pe = z = a, r.locations && (ve = new fe()), se = J = !1, j = [], Ee();
|
|
4567
|
+
var h = f || V(), y = !0;
|
|
4568
|
+
for (f || (h.body = []); b !== st; ) {
|
|
4571
4569
|
var _ = H();
|
|
4572
|
-
h.body.push(_),
|
|
4570
|
+
h.body.push(_), y && gt(_) && Et(!0), y = !1;
|
|
4573
4571
|
}
|
|
4574
4572
|
return w(h, "Program");
|
|
4575
4573
|
}
|
|
4576
|
-
var
|
|
4574
|
+
var bt = { kind: "loop" }, mi = { kind: "switch" };
|
|
4577
4575
|
function H() {
|
|
4578
|
-
(b ===
|
|
4576
|
+
(b === pr || b === ce && S === "/=") && Ee(!0);
|
|
4579
4577
|
var f = b, h = V();
|
|
4580
4578
|
switch (f) {
|
|
4581
|
-
case
|
|
4582
|
-
case
|
|
4579
|
+
case ct:
|
|
4580
|
+
case Jt:
|
|
4583
4581
|
k();
|
|
4584
|
-
var
|
|
4585
|
-
U(Q) || Qe() ? h.label = null : b !==
|
|
4582
|
+
var y = f === ct;
|
|
4583
|
+
U(Q) || Qe() ? h.label = null : b !== ye ? ee() : (h.label = ae(), le());
|
|
4586
4584
|
for (var _ = 0; _ < j.length; ++_) {
|
|
4587
4585
|
var x = j[_];
|
|
4588
|
-
if ((h.label === null || x.name === h.label.name) && (x.kind !== null && (
|
|
4586
|
+
if ((h.label === null || x.name === h.label.name) && (x.kind !== null && (y || x.kind === "loop") || h.label && y))
|
|
4589
4587
|
break;
|
|
4590
4588
|
}
|
|
4591
|
-
return _ === j.length && A(h.start, "Unsyntactic " + f.keyword), w(h,
|
|
4592
|
-
case
|
|
4593
|
-
return k(),
|
|
4594
|
-
case
|
|
4595
|
-
return k(), j.push(
|
|
4596
|
-
case
|
|
4597
|
-
if (k(), j.push(
|
|
4598
|
-
if (b ===
|
|
4599
|
-
var
|
|
4600
|
-
return k(),
|
|
4589
|
+
return _ === j.length && A(h.start, "Unsyntactic " + f.keyword), w(h, y ? "BreakStatement" : "ContinueStatement");
|
|
4590
|
+
case zt:
|
|
4591
|
+
return k(), le(), w(h, "DebuggerStatement");
|
|
4592
|
+
case Kt:
|
|
4593
|
+
return k(), j.push(bt), h.body = H(), j.pop(), B(dt), h.test = Ie(), le(), w(h, "DoWhileStatement");
|
|
4594
|
+
case Qt:
|
|
4595
|
+
if (k(), j.push(bt), B(Z), b === Q) return mt(h, null);
|
|
4596
|
+
if (b === ht) {
|
|
4597
|
+
var P = V();
|
|
4598
|
+
return k(), wr(P, !0), w(P, "VariableDeclaration"), P.declarations.length === 1 && U(We) ? Pr(h, P) : mt(h, P);
|
|
4601
4599
|
}
|
|
4602
|
-
var
|
|
4603
|
-
return U(We) ? (et(
|
|
4604
|
-
case
|
|
4605
|
-
return k(),
|
|
4600
|
+
var P = Y(!1, !0);
|
|
4601
|
+
return U(We) ? (et(P), Pr(h, P)) : mt(h, P);
|
|
4602
|
+
case lt:
|
|
4603
|
+
return k(), St(h, !0);
|
|
4604
|
+
case er:
|
|
4605
|
+
return k(), h.test = Ie(), h.consequent = H(), h.alternate = U(qt) ? H() : null, w(h, "IfStatement");
|
|
4606
4606
|
case tr:
|
|
4607
|
-
return k(),
|
|
4608
|
-
case
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
var Le = b === lt;
|
|
4615
|
-
C && w(C, "SwitchCase"), h.cases.push(C = V()), C.consequent = [], k(), Le ? C.test = Y() : (M && A(we, "Multiple default clauses"), M = !0, C.test = null), B(Ce);
|
|
4607
|
+
return !se && !r.allowReturnOutsideFunction && A(p, "'return' outside of function"), k(), U(Q) || Qe() ? h.argument = null : (h.argument = Y(), le()), w(h, "ReturnStatement");
|
|
4608
|
+
case pt:
|
|
4609
|
+
k(), h.discriminant = Ie(), h.cases = [], B(we), j.push(mi);
|
|
4610
|
+
for (var C, M; b !== _e; )
|
|
4611
|
+
if (b === ft || b === Ht) {
|
|
4612
|
+
var Fe = b === ft;
|
|
4613
|
+
C && w(C, "SwitchCase"), h.cases.push(C = V()), C.consequent = [], k(), Fe ? C.test = Y() : (M && A(Pe, "Multiple default clauses"), M = !0, C.test = null), B(xe);
|
|
4616
4614
|
} else
|
|
4617
4615
|
C || ee(), C.consequent.push(H());
|
|
4618
4616
|
return C && w(C, "SwitchCase"), k(), j.pop(), w(h, "SwitchStatement");
|
|
4617
|
+
case rr:
|
|
4618
|
+
return k(), He.test(t.slice(z, p)) && A(z, "Illegal newline after throw"), h.argument = Y(), le(), w(h, "ThrowStatement");
|
|
4619
4619
|
case nr:
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
var me = V();
|
|
4624
|
-
k(), B(Z), me.param = ae(), J && ze(me.param.name) && A(me.param.start, "Binding " + me.param.name + " in strict mode"), B(K), me.body = De(), h.handler = w(me, "CatchClause");
|
|
4620
|
+
if (k(), h.block = ke(), h.handler = null, b === Wt) {
|
|
4621
|
+
var be = V();
|
|
4622
|
+
k(), B(Z), be.param = ae(), J && ze(be.param.name) && A(be.param.start, "Binding " + be.param.name + " in strict mode"), B(K), be.body = ke(), h.handler = w(be, "CatchClause");
|
|
4625
4623
|
}
|
|
4626
|
-
return h.finalizer = U(
|
|
4624
|
+
return h.finalizer = U(Zt) ? ke() : null, !h.handler && !h.finalizer && A(h.start, "Missing catch or finally clause"), w(h, "TryStatement");
|
|
4625
|
+
case ht:
|
|
4626
|
+
return k(), wr(h), le(), w(h, "VariableDeclaration");
|
|
4627
4627
|
case dt:
|
|
4628
|
-
return k(),
|
|
4629
|
-
case
|
|
4630
|
-
return
|
|
4631
|
-
case
|
|
4632
|
-
return
|
|
4633
|
-
case xe:
|
|
4634
|
-
return De();
|
|
4628
|
+
return k(), h.test = Ie(), j.push(bt), h.body = H(), j.pop(), w(h, "WhileStatement");
|
|
4629
|
+
case ir:
|
|
4630
|
+
return J && A(p, "'with' in strict mode"), k(), h.object = Ie(), h.body = H(), w(h, "WithStatement");
|
|
4631
|
+
case we:
|
|
4632
|
+
return ke();
|
|
4635
4633
|
case Q:
|
|
4636
4634
|
return k(), w(h, "EmptyStatement");
|
|
4637
4635
|
default:
|
|
4638
|
-
var
|
|
4639
|
-
if (f ===
|
|
4636
|
+
var wt = S, tt = Y();
|
|
4637
|
+
if (f === ye && tt.type === "Identifier" && U(xe)) {
|
|
4640
4638
|
for (var _ = 0; _ < j.length; ++_)
|
|
4641
|
-
j[_].name ===
|
|
4642
|
-
var Pi = b.isLoop ? "loop" : b ===
|
|
4643
|
-
return j.push({ name:
|
|
4639
|
+
j[_].name === wt && A(tt.start, "Label '" + wt + "' is already declared");
|
|
4640
|
+
var Pi = b.isLoop ? "loop" : b === pt ? "switch" : null;
|
|
4641
|
+
return j.push({ name: wt, kind: Pi }), h.body = H(), j.pop(), h.label = tt, w(h, "LabeledStatement");
|
|
4644
4642
|
} else
|
|
4645
|
-
return h.expression = tt,
|
|
4643
|
+
return h.expression = tt, le(), w(h, "ExpressionStatement");
|
|
4646
4644
|
}
|
|
4647
4645
|
}
|
|
4648
|
-
function
|
|
4646
|
+
function Ie() {
|
|
4649
4647
|
B(Z);
|
|
4650
4648
|
var f = Y();
|
|
4651
4649
|
return B(K), f;
|
|
4652
4650
|
}
|
|
4653
|
-
function
|
|
4654
|
-
var h = V(),
|
|
4655
|
-
for (h.body = [], B(
|
|
4656
|
-
var
|
|
4657
|
-
h.body.push(
|
|
4651
|
+
function ke(f) {
|
|
4652
|
+
var h = V(), y = !0, _ = !1, x;
|
|
4653
|
+
for (h.body = [], B(we); !U(_e); ) {
|
|
4654
|
+
var P = H();
|
|
4655
|
+
h.body.push(P), y && f && gt(P) && (x = _, Et(_ = !0)), y = !1;
|
|
4658
4656
|
}
|
|
4659
|
-
return _ && !x &&
|
|
4657
|
+
return _ && !x && Et(!1), w(h, "BlockStatement");
|
|
4660
4658
|
}
|
|
4661
|
-
function
|
|
4659
|
+
function mt(f, h) {
|
|
4662
4660
|
return f.init = h, B(Q), f.test = b === Q ? null : Y(), B(Q), f.update = b === K ? null : Y(), B(K), f.body = H(), j.pop(), w(f, "ForStatement");
|
|
4663
4661
|
}
|
|
4664
|
-
function
|
|
4662
|
+
function Pr(f, h) {
|
|
4665
4663
|
return f.left = h, f.right = Y(), B(K), f.body = H(), j.pop(), w(f, "ForInStatement");
|
|
4666
4664
|
}
|
|
4667
|
-
function
|
|
4665
|
+
function wr(f, h) {
|
|
4668
4666
|
for (f.declarations = [], f.kind = "var"; ; ) {
|
|
4669
|
-
var
|
|
4670
|
-
if (
|
|
4667
|
+
var y = V();
|
|
4668
|
+
if (y.id = ae(), J && ze(y.id.name) && A(y.id.start, "Binding " + y.id.name + " in strict mode"), y.init = U(hr) ? Y(!0, h) : null, f.declarations.push(w(y, "VariableDeclarator")), !U(ne)) break;
|
|
4671
4669
|
}
|
|
4672
4670
|
}
|
|
4673
4671
|
function Y(f, h) {
|
|
4674
|
-
var
|
|
4672
|
+
var y = Rt(h);
|
|
4675
4673
|
if (!f && b === ne) {
|
|
4676
|
-
var _ = ie(
|
|
4677
|
-
for (_.expressions = [
|
|
4674
|
+
var _ = ie(y);
|
|
4675
|
+
for (_.expressions = [y]; U(ne); ) _.expressions.push(Rt(h));
|
|
4678
4676
|
return w(_, "SequenceExpression");
|
|
4679
4677
|
}
|
|
4680
|
-
return
|
|
4678
|
+
return y;
|
|
4681
4679
|
}
|
|
4682
|
-
function
|
|
4680
|
+
function Rt(f) {
|
|
4683
4681
|
var h = Ri(f);
|
|
4684
4682
|
if (b.isAssign) {
|
|
4685
|
-
var
|
|
4686
|
-
return
|
|
4683
|
+
var y = ie(h);
|
|
4684
|
+
return y.operator = S, y.left = h, k(), y.right = Rt(f), et(h), w(y, "AssignmentExpression");
|
|
4687
4685
|
}
|
|
4688
4686
|
return h;
|
|
4689
4687
|
}
|
|
4690
4688
|
function Ri(f) {
|
|
4691
4689
|
var h = Oi(f);
|
|
4692
|
-
if (U(
|
|
4693
|
-
var
|
|
4694
|
-
return
|
|
4690
|
+
if (U(lr)) {
|
|
4691
|
+
var y = ie(h);
|
|
4692
|
+
return y.test = h, y.consequent = Y(!0), B(xe), y.alternate = Y(!0, f), w(y, "ConditionalExpression");
|
|
4695
4693
|
}
|
|
4696
4694
|
return h;
|
|
4697
4695
|
}
|
|
4698
4696
|
function Oi(f) {
|
|
4699
|
-
return Nt(
|
|
4697
|
+
return Ot(Nt(), -1, f);
|
|
4700
4698
|
}
|
|
4701
|
-
function
|
|
4699
|
+
function Ot(f, h, y) {
|
|
4702
4700
|
var _ = b.binop;
|
|
4703
|
-
if (_ !== null && (!
|
|
4701
|
+
if (_ !== null && (!y || b !== We) && _ > h) {
|
|
4704
4702
|
var x = ie(f);
|
|
4705
|
-
x.left = f, x.operator =
|
|
4706
|
-
var
|
|
4707
|
-
k(), x.right = Nt(
|
|
4708
|
-
var C = w(x,
|
|
4709
|
-
return
|
|
4703
|
+
x.left = f, x.operator = S;
|
|
4704
|
+
var P = b;
|
|
4705
|
+
k(), x.right = Ot(Nt(), _, y);
|
|
4706
|
+
var C = w(x, P === vr || P === yr ? "LogicalExpression" : "BinaryExpression");
|
|
4707
|
+
return Ot(C, h, y);
|
|
4710
4708
|
}
|
|
4711
4709
|
return f;
|
|
4712
4710
|
}
|
|
4713
|
-
function
|
|
4711
|
+
function Nt() {
|
|
4714
4712
|
if (b.prefix) {
|
|
4715
4713
|
var f = V(), h = b.isUpdate;
|
|
4716
|
-
return f.operator =
|
|
4714
|
+
return f.operator = S, f.prefix = !0, I = !0, k(), f.argument = Nt(), h ? et(f.argument) : J && f.operator === "delete" && f.argument.type === "Identifier" && A(f.start, "Deleting local variable in strict mode"), w(f, h ? "UpdateExpression" : "UnaryExpression");
|
|
4717
4715
|
}
|
|
4718
|
-
for (var
|
|
4719
|
-
var f = ie(
|
|
4720
|
-
f.operator =
|
|
4716
|
+
for (var y = Ni(); b.postfix && !Qe(); ) {
|
|
4717
|
+
var f = ie(y);
|
|
4718
|
+
f.operator = S, f.prefix = !1, f.argument = y, et(y), k(), y = w(f, "UpdateExpression");
|
|
4721
4719
|
}
|
|
4722
|
-
return
|
|
4720
|
+
return y;
|
|
4723
4721
|
}
|
|
4724
4722
|
function Ni() {
|
|
4725
|
-
return
|
|
4723
|
+
return De(Tt());
|
|
4726
4724
|
}
|
|
4727
|
-
function
|
|
4728
|
-
var
|
|
4729
|
-
return U(
|
|
4725
|
+
function De(f, h) {
|
|
4726
|
+
var y;
|
|
4727
|
+
return U(fr) ? (y = ie(f), y.object = f, y.property = ae(!0), y.computed = !1, De(w(y, "MemberExpression"), h)) : U(vt) ? (y = ie(f), y.object = f, y.property = Y(), y.computed = !0, B(yt), De(w(y, "MemberExpression"), h)) : !h && U(Z) ? (y = ie(f), y.callee = f, y.arguments = Pt(K, !1), De(w(y, "CallExpression"), h)) : f;
|
|
4730
4728
|
}
|
|
4731
|
-
function
|
|
4729
|
+
function Tt() {
|
|
4732
4730
|
var f;
|
|
4733
4731
|
switch (b) {
|
|
4734
|
-
case
|
|
4732
|
+
case or:
|
|
4735
4733
|
return f = V(), k(), w(f, "ThisExpression");
|
|
4736
|
-
case
|
|
4734
|
+
case ye:
|
|
4737
4735
|
return ae();
|
|
4738
4736
|
case Xe:
|
|
4739
|
-
case
|
|
4740
|
-
case
|
|
4741
|
-
return f = V(), f.value =
|
|
4737
|
+
case ut:
|
|
4738
|
+
case Xt:
|
|
4739
|
+
return f = V(), f.value = S, f.raw = t.slice(p, d), k(), w(f, "Literal");
|
|
4740
|
+
case ur:
|
|
4742
4741
|
case sr:
|
|
4743
4742
|
case cr:
|
|
4744
|
-
case fr:
|
|
4745
4743
|
return f = V(), f.value = b.atomValue, f.raw = b.keyword, k(), w(f, "Literal");
|
|
4746
4744
|
case Z:
|
|
4747
|
-
var h = E,
|
|
4745
|
+
var h = E, y = p;
|
|
4748
4746
|
k();
|
|
4749
4747
|
var _ = Y();
|
|
4750
|
-
return _.start =
|
|
4751
|
-
case
|
|
4752
|
-
return f = V(), k(), f.elements =
|
|
4753
|
-
case
|
|
4748
|
+
return _.start = y, _.end = d, r.locations && (_.loc.start = h, _.loc.end = O), r.ranges && (_.range = [y, d]), B(K), _;
|
|
4749
|
+
case vt:
|
|
4750
|
+
return f = V(), k(), f.elements = Pt(yt, !0, !0), w(f, "ArrayExpression");
|
|
4751
|
+
case we:
|
|
4754
4752
|
return Si();
|
|
4755
|
-
case
|
|
4756
|
-
return f = V(), k(),
|
|
4757
|
-
case
|
|
4753
|
+
case lt:
|
|
4754
|
+
return f = V(), k(), St(f, !1);
|
|
4755
|
+
case ar:
|
|
4758
4756
|
return Ti();
|
|
4759
4757
|
}
|
|
4760
4758
|
ee();
|
|
4761
4759
|
}
|
|
4762
4760
|
function Ti() {
|
|
4763
4761
|
var f = V();
|
|
4764
|
-
return k(), f.callee =
|
|
4762
|
+
return k(), f.callee = De(Tt(), !0), f.arguments = U(Z) ? Pt(K, !1) : Xn, w(f, "NewExpression");
|
|
4765
4763
|
}
|
|
4766
4764
|
function Si() {
|
|
4767
|
-
var f = V(), h = !0,
|
|
4768
|
-
for (f.properties = [], k(); !U(
|
|
4765
|
+
var f = V(), h = !0, y = !1;
|
|
4766
|
+
for (f.properties = [], k(); !U(_e); ) {
|
|
4769
4767
|
if (h)
|
|
4770
4768
|
h = !1;
|
|
4771
|
-
else if (B(ne), r.allowTrailingCommas && U(
|
|
4769
|
+
else if (B(ne), r.allowTrailingCommas && U(_e))
|
|
4772
4770
|
break;
|
|
4773
|
-
var _ = { key:
|
|
4774
|
-
if (U(
|
|
4771
|
+
var _ = { key: xr() }, x = !1, P;
|
|
4772
|
+
if (U(xe) ? (_.value = Y(!0), P = _.kind = "init") : _.key.type === "Identifier" && (_.key.name === "get" || _.key.name === "set") ? (x = y = !0, P = _.kind = _.key.name, _.key = xr(), b !== Z && ee(), _.value = St(V(), !1)) : ee(), _.key.type === "Identifier" && (J || y))
|
|
4775
4773
|
for (var C = 0; C < f.properties.length; ++C) {
|
|
4776
4774
|
var M = f.properties[C];
|
|
4777
4775
|
if (M.key.name === _.key.name) {
|
|
4778
|
-
var
|
|
4779
|
-
|
|
4776
|
+
var Fe = P === M.kind || x && M.kind === "init" || P === "init" && (M.kind === "get" || M.kind === "set");
|
|
4777
|
+
Fe && !J && P === "init" && M.kind === "init" && (Fe = !1), Fe && A(_.key.start, "Redefinition of property");
|
|
4780
4778
|
}
|
|
4781
4779
|
}
|
|
4782
4780
|
f.properties.push(_);
|
|
4783
4781
|
}
|
|
4784
4782
|
return w(f, "ObjectExpression");
|
|
4785
4783
|
}
|
|
4786
|
-
function
|
|
4787
|
-
return b === Xe || b ===
|
|
4784
|
+
function xr() {
|
|
4785
|
+
return b === Xe || b === ut ? Tt() : ae(!0);
|
|
4788
4786
|
}
|
|
4789
|
-
function
|
|
4790
|
-
b ===
|
|
4791
|
-
var
|
|
4787
|
+
function St(f, h) {
|
|
4788
|
+
b === ye ? f.id = ae() : h ? ee() : f.id = null, f.params = [];
|
|
4789
|
+
var y = !0;
|
|
4792
4790
|
for (B(Z); !U(K); )
|
|
4793
|
-
|
|
4794
|
-
var _ =
|
|
4795
|
-
if (
|
|
4796
|
-
for (var
|
|
4797
|
-
var C =
|
|
4798
|
-
if ((
|
|
4799
|
-
for (var M = 0; M <
|
|
4791
|
+
y ? y = !1 : B(ne), f.params.push(ae());
|
|
4792
|
+
var _ = se, x = j;
|
|
4793
|
+
if (se = !0, j = [], f.body = ke(!0), se = _, j = x, J || f.body.body.length && gt(f.body.body[0]))
|
|
4794
|
+
for (var P = f.id ? -1 : 0; P < f.params.length; ++P) {
|
|
4795
|
+
var C = P < 0 ? f.id : f.params[P];
|
|
4796
|
+
if ((_r(C.name) || ze(C.name)) && A(C.start, "Defining '" + C.name + "' in strict mode"), P >= 0)
|
|
4797
|
+
for (var M = 0; M < P; ++M)
|
|
4800
4798
|
C.name === f.params[M].name && A(C.start, "Argument name clash in strict mode");
|
|
4801
4799
|
}
|
|
4802
4800
|
return w(f, h ? "FunctionDeclaration" : "FunctionExpression");
|
|
4803
4801
|
}
|
|
4804
|
-
function
|
|
4802
|
+
function Pt(f, h, y) {
|
|
4805
4803
|
for (var _ = [], x = !0; !U(f); ) {
|
|
4806
4804
|
if (x)
|
|
4807
4805
|
x = !1;
|
|
4808
4806
|
else if (B(ne), h && r.allowTrailingCommas && U(f))
|
|
4809
4807
|
break;
|
|
4810
|
-
_.push(
|
|
4808
|
+
_.push(y && b === ne ? null : Y(!0));
|
|
4811
4809
|
}
|
|
4812
4810
|
return _;
|
|
4813
4811
|
}
|
|
4814
4812
|
function ae(f) {
|
|
4815
4813
|
var h = V();
|
|
4816
|
-
return f && r.forbidReserved === "everywhere" && (f = !1), b ===
|
|
4814
|
+
return f && r.forbidReserved === "everywhere" && (f = !1), b === ye ? (!f && (r.forbidReserved && ri(S) || J && _r(S)) && t.slice(p, d).indexOf("\\") === -1 && A(p, "The keyword '" + S + "' is reserved"), h.name = S) : f && b.keyword ? h.name = b.keyword : ee(), I = !1, k(), w(h, "Identifier");
|
|
4817
4815
|
}
|
|
4818
4816
|
});
|
|
4819
4817
|
}
|
|
@@ -4825,15 +4823,15 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4825
4823
|
\*********************/
|
|
4826
4824
|
/***/
|
|
4827
4825
|
(m) => {
|
|
4828
|
-
m.exports =
|
|
4826
|
+
m.exports = Vs;
|
|
4829
4827
|
}
|
|
4830
4828
|
)
|
|
4831
4829
|
/******/
|
|
4832
4830
|
}, v = {};
|
|
4833
4831
|
function g(m) {
|
|
4834
|
-
var
|
|
4835
|
-
if (
|
|
4836
|
-
return
|
|
4832
|
+
var T = v[m];
|
|
4833
|
+
if (T !== void 0)
|
|
4834
|
+
return T.exports;
|
|
4837
4835
|
var R = v[m] = {
|
|
4838
4836
|
/******/
|
|
4839
4837
|
// no module.id needed
|
|
@@ -4843,20 +4841,20 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4843
4841
|
exports: {}
|
|
4844
4842
|
/******/
|
|
4845
4843
|
};
|
|
4846
|
-
return
|
|
4844
|
+
return l[m].call(R.exports, R, R.exports, g), R.exports;
|
|
4847
4845
|
}
|
|
4848
|
-
g.d = (m,
|
|
4849
|
-
for (var R in
|
|
4850
|
-
g.o(
|
|
4851
|
-
}, g.o = (m,
|
|
4846
|
+
g.d = (m, T) => {
|
|
4847
|
+
for (var R in T)
|
|
4848
|
+
g.o(T, R) && !g.o(m, R) && Object.defineProperty(m, R, { enumerable: !0, get: T[R] });
|
|
4849
|
+
}, g.o = (m, T) => Object.prototype.hasOwnProperty.call(m, T), g.r = (m) => {
|
|
4852
4850
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(m, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(m, "__esModule", { value: !0 });
|
|
4853
4851
|
};
|
|
4854
|
-
var
|
|
4852
|
+
var N = {};
|
|
4855
4853
|
return (() => {
|
|
4856
4854
|
/*!*******************************!*\
|
|
4857
4855
|
!*** ./src/js-interpreter.js ***!
|
|
4858
4856
|
\*******************************/
|
|
4859
|
-
g.r(
|
|
4857
|
+
g.r(N), g.d(N, {
|
|
4860
4858
|
/* harmony export */
|
|
4861
4859
|
default: () => R
|
|
4862
4860
|
/* harmony export */
|
|
@@ -4866,38 +4864,38 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4866
4864
|
"./original-repo/acorn.js"
|
|
4867
4865
|
);
|
|
4868
4866
|
globalThis.acorn = m;
|
|
4869
|
-
const { Interpreter:
|
|
4867
|
+
const { Interpreter: T } = g(
|
|
4870
4868
|
/*! ../original-repo/interpreter */
|
|
4871
4869
|
"./original-repo/interpreter.js"
|
|
4872
|
-
), R =
|
|
4873
|
-
})(),
|
|
4870
|
+
), R = T;
|
|
4871
|
+
})(), N = N.default, N;
|
|
4874
4872
|
})()
|
|
4875
4873
|
));
|
|
4876
4874
|
})(Vn);
|
|
4877
|
-
var
|
|
4878
|
-
const
|
|
4879
|
-
function
|
|
4880
|
-
function
|
|
4881
|
-
const R = n.pseudoToNative(
|
|
4875
|
+
var Ys = Vn.exports;
|
|
4876
|
+
const Xs = /* @__PURE__ */ js(Ys);
|
|
4877
|
+
function Ws(n, s) {
|
|
4878
|
+
function l(T) {
|
|
4879
|
+
const R = n.pseudoToNative(T);
|
|
4882
4880
|
console.log(R);
|
|
4883
4881
|
}
|
|
4884
|
-
function v(
|
|
4885
|
-
const R = n.pseudoToNative(
|
|
4882
|
+
function v(T) {
|
|
4883
|
+
const R = n.pseudoToNative(T);
|
|
4886
4884
|
let r = "";
|
|
4887
4885
|
typeof R == "object" ? r = JSON.stringify(R) : r = String(R), cn.emit("consoleAppend", r);
|
|
4888
4886
|
}
|
|
4889
|
-
function g(
|
|
4890
|
-
const r = n.pseudoToNative(
|
|
4891
|
-
r === "info" ?
|
|
4887
|
+
function g(T, R) {
|
|
4888
|
+
const r = n.pseudoToNative(T), t = n.pseudoToNative(R);
|
|
4889
|
+
r === "info" ? Di(t) : r === "success" ? Fi(t) : r === "warning" ? Li(t) : r === "error" && Mi(t);
|
|
4892
4890
|
}
|
|
4893
|
-
function
|
|
4894
|
-
const r = n.pseudoToNative(
|
|
4891
|
+
function N(T, R) {
|
|
4892
|
+
const r = n.pseudoToNative(T), t = n.pseudoToNative(R);
|
|
4895
4893
|
setTimeout(() => {
|
|
4896
4894
|
n.appendCode(`__timeoutCallbackV1__(${r})`), n.run();
|
|
4897
4895
|
}, t);
|
|
4898
4896
|
}
|
|
4899
|
-
function m(
|
|
4900
|
-
const r = n.pseudoToNative(
|
|
4897
|
+
function m(T, R) {
|
|
4898
|
+
const r = n.pseudoToNative(T);
|
|
4901
4899
|
setTimeout(() => {
|
|
4902
4900
|
R(), n.run();
|
|
4903
4901
|
}, r);
|
|
@@ -4905,7 +4903,7 @@ function Js(n, s) {
|
|
|
4905
4903
|
n.setProperty(
|
|
4906
4904
|
s,
|
|
4907
4905
|
"__consoleLogV1__",
|
|
4908
|
-
n.createNativeFunction(
|
|
4906
|
+
n.createNativeFunction(l)
|
|
4909
4907
|
), n.setProperty(
|
|
4910
4908
|
s,
|
|
4911
4909
|
"__debugTraceV1__",
|
|
@@ -4917,158 +4915,148 @@ function Js(n, s) {
|
|
|
4917
4915
|
), n.setProperty(
|
|
4918
4916
|
s,
|
|
4919
4917
|
"__timeoutV1__",
|
|
4920
|
-
n.createNativeFunction(
|
|
4918
|
+
n.createNativeFunction(N)
|
|
4921
4919
|
), n.setProperty(
|
|
4922
4920
|
s,
|
|
4923
4921
|
"__delayV1__",
|
|
4924
4922
|
n.createAsyncFunction(m)
|
|
4925
4923
|
);
|
|
4926
4924
|
}
|
|
4927
|
-
class
|
|
4925
|
+
class Js {
|
|
4928
4926
|
constructor(s) {
|
|
4929
|
-
|
|
4930
|
-
|
|
4927
|
+
xt(this, "context");
|
|
4928
|
+
xt(this, "nodes");
|
|
4931
4929
|
this.context = s, this.nodes = {};
|
|
4932
|
-
const
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
this.context.data.view.nodes.forEach((g) => v(g));
|
|
4930
|
+
const l = (v) => {
|
|
4931
|
+
var g;
|
|
4932
|
+
this.nodes[v.basic.id] = v, (g = v.children) == null || g.forEach((N) => l(N));
|
|
4933
|
+
};
|
|
4934
|
+
this.context.data.view.nodes.forEach((v) => l(v));
|
|
4938
4935
|
}
|
|
4939
4936
|
getNode(s) {
|
|
4940
4937
|
return this.nodes[s];
|
|
4941
4938
|
}
|
|
4942
|
-
addNode(s,
|
|
4943
|
-
|
|
4939
|
+
addNode(s, l, v) {
|
|
4940
|
+
const g = `parent=${s} ref=${l} keyOrRefid=${v}`;
|
|
4941
|
+
let N;
|
|
4944
4942
|
if (s) {
|
|
4945
|
-
const
|
|
4946
|
-
if (!
|
|
4947
|
-
return console.error(
|
|
4948
|
-
|
|
4949
|
-
), "";
|
|
4950
|
-
|
|
4951
|
-
return console.error(
|
|
4952
|
-
`NodeMgr/addNode parent no children, parent=${s} ref=${p} keyOrRefid=${v}`
|
|
4953
|
-
), "";
|
|
4954
|
-
g = m.children;
|
|
4943
|
+
const T = this.getNode(s);
|
|
4944
|
+
if (!T)
|
|
4945
|
+
return console.error(`NodeMgr/addNode parent not found, ${g}`), "";
|
|
4946
|
+
if (!T.children)
|
|
4947
|
+
return console.error(`NodeMgr/addNode parent no children, ${g}`), "";
|
|
4948
|
+
N = T.children;
|
|
4955
4949
|
} else
|
|
4956
|
-
|
|
4957
|
-
if (!
|
|
4950
|
+
N = this.context.data.view.nodes;
|
|
4951
|
+
if (!N)
|
|
4958
4952
|
return "";
|
|
4959
|
-
const
|
|
4953
|
+
const m = Os(
|
|
4960
4954
|
this.context.type,
|
|
4961
4955
|
this.context.data.type,
|
|
4962
4956
|
this.context.data.version,
|
|
4963
|
-
|
|
4957
|
+
l,
|
|
4964
4958
|
v
|
|
4965
4959
|
);
|
|
4966
|
-
return
|
|
4967
|
-
`NodeMgr/addNode spawn node failed, parent=${s} ref=${p} key=${v}`
|
|
4968
|
-
), "");
|
|
4960
|
+
return m ? (N.push(m), this.nodes[m.basic.id] = m, m.basic.id) : (console.error(`NodeMgr/addNode spawn node failed, ${g}`), "");
|
|
4969
4961
|
}
|
|
4970
4962
|
deleteNode(s) {
|
|
4971
4963
|
this.getNode(s);
|
|
4972
4964
|
}
|
|
4973
4965
|
}
|
|
4974
|
-
function
|
|
4975
|
-
const v = new
|
|
4966
|
+
function zs(n, s, l) {
|
|
4967
|
+
const v = new Js(n);
|
|
4976
4968
|
function g(t, e, i) {
|
|
4977
4969
|
const o = s.pseudoToNative(t), u = s.pseudoToNative(e), c = s.pseudoToNative(i), a = v.addNode(o, u, c);
|
|
4978
4970
|
return s.nativeToPseudo(a);
|
|
4979
4971
|
}
|
|
4980
|
-
function
|
|
4972
|
+
function N(t) {
|
|
4981
4973
|
const e = s.pseudoToNative(t);
|
|
4982
4974
|
v.deleteNode(e);
|
|
4983
4975
|
}
|
|
4984
4976
|
function m(t, e) {
|
|
4985
|
-
const i = s.pseudoToNative(t), o = s.pseudoToNative(e)
|
|
4986
|
-
let
|
|
4987
|
-
if (i === "globality" ?
|
|
4988
|
-
console.error(`getNodePropV1 node not found,
|
|
4977
|
+
const i = s.pseudoToNative(t), o = s.pseudoToNative(e), u = `id=${i} keys=${o}`;
|
|
4978
|
+
let c;
|
|
4979
|
+
if (i === "globality" ? c = n.data.view : c = v.getNode(i), !c) {
|
|
4980
|
+
console.error(`getNodePropV1 node not found, ${u}`);
|
|
4989
4981
|
return;
|
|
4990
4982
|
}
|
|
4991
|
-
const
|
|
4992
|
-
for (let
|
|
4993
|
-
const
|
|
4994
|
-
if (
|
|
4995
|
-
return s.nativeToPseudo(
|
|
4996
|
-
if (
|
|
4997
|
-
console.error(`getNodePropV1 unpkg failed,
|
|
4983
|
+
const a = o.split("."), p = a.length;
|
|
4984
|
+
for (let d = 0; d < p; d++) {
|
|
4985
|
+
const E = a[d];
|
|
4986
|
+
if (d === p - 1)
|
|
4987
|
+
return s.nativeToPseudo(c[E]);
|
|
4988
|
+
if (c = c[E], !c) {
|
|
4989
|
+
console.error(`getNodePropV1 unpkg failed, ${u}`);
|
|
4998
4990
|
return;
|
|
4999
4991
|
}
|
|
5000
4992
|
}
|
|
5001
4993
|
}
|
|
5002
|
-
function
|
|
5003
|
-
const o = s.pseudoToNative(t), u = s.pseudoToNative(e), c = s.pseudoToNative(i)
|
|
5004
|
-
let
|
|
5005
|
-
if (o === "globality" ?
|
|
5006
|
-
console.error(
|
|
5007
|
-
`setNodePropV1 node not found, id=${o} keys=${u} value=${c}`
|
|
5008
|
-
);
|
|
4994
|
+
function T(t, e, i) {
|
|
4995
|
+
const o = s.pseudoToNative(t), u = s.pseudoToNative(e), c = s.pseudoToNative(i), a = `id=${o} keys=${u} value=${c}`;
|
|
4996
|
+
let p;
|
|
4997
|
+
if (o === "globality" ? p = n.data.view : p = v.getNode(o), !p) {
|
|
4998
|
+
console.error(`setNodePropV1 node not found, ${a}`);
|
|
5009
4999
|
return;
|
|
5010
5000
|
}
|
|
5011
|
-
const
|
|
5012
|
-
for (let
|
|
5013
|
-
const
|
|
5014
|
-
if (
|
|
5015
|
-
|
|
5016
|
-
else if (
|
|
5017
|
-
console.error(
|
|
5018
|
-
`setNodePropV1 unpkg failed, id=${o} keys=${u} value=${c}`
|
|
5019
|
-
);
|
|
5001
|
+
const d = u.split("."), E = d.length;
|
|
5002
|
+
for (let O = 0; O < E; O++) {
|
|
5003
|
+
const b = d[O];
|
|
5004
|
+
if (O === E - 1)
|
|
5005
|
+
p[b] = c;
|
|
5006
|
+
else if (p = p[b], !p) {
|
|
5007
|
+
console.error(`setNodePropV1 unpkg failed, ${a}`);
|
|
5020
5008
|
return;
|
|
5021
5009
|
}
|
|
5022
5010
|
}
|
|
5023
5011
|
}
|
|
5024
5012
|
function R(t, e, i) {
|
|
5025
5013
|
const o = s.pseudoToNative(t), u = s.pseudoToNative(e);
|
|
5026
|
-
|
|
5014
|
+
Ui({ title: o, text: u }).then((c) => {
|
|
5027
5015
|
i(s.nativeToPseudo(c)), s.run();
|
|
5028
5016
|
});
|
|
5029
5017
|
}
|
|
5030
5018
|
function r(t, e, i, o) {
|
|
5031
5019
|
const u = s.pseudoToNative(t), c = s.pseudoToNative(e), a = s.pseudoToNative(i);
|
|
5032
|
-
|
|
5033
|
-
o(s.nativeToPseudo(
|
|
5020
|
+
ji({ title: u, label: c, value: a }).then((p) => {
|
|
5021
|
+
o(s.nativeToPseudo(p)), s.run();
|
|
5034
5022
|
});
|
|
5035
5023
|
}
|
|
5036
5024
|
s.setProperty(
|
|
5037
|
-
|
|
5025
|
+
l,
|
|
5038
5026
|
"__addNodeV1__",
|
|
5039
5027
|
s.createNativeFunction(g)
|
|
5040
5028
|
), s.setProperty(
|
|
5041
|
-
|
|
5029
|
+
l,
|
|
5042
5030
|
"__deleteNodeV1__",
|
|
5043
|
-
s.createNativeFunction(
|
|
5031
|
+
s.createNativeFunction(N)
|
|
5044
5032
|
), s.setProperty(
|
|
5045
|
-
|
|
5033
|
+
l,
|
|
5046
5034
|
"__getNodePropV1__",
|
|
5047
5035
|
s.createNativeFunction(m)
|
|
5048
5036
|
), s.setProperty(
|
|
5049
|
-
|
|
5037
|
+
l,
|
|
5050
5038
|
"__setNodePropV1__",
|
|
5051
|
-
s.createNativeFunction(
|
|
5039
|
+
s.createNativeFunction(T)
|
|
5052
5040
|
), s.setProperty(
|
|
5053
|
-
|
|
5041
|
+
l,
|
|
5054
5042
|
"__openConfirmDlgV1__",
|
|
5055
5043
|
s.createAsyncFunction(R)
|
|
5056
5044
|
), s.setProperty(
|
|
5057
|
-
|
|
5045
|
+
l,
|
|
5058
5046
|
"__openPromptDlgV1__",
|
|
5059
5047
|
s.createAsyncFunction(r)
|
|
5060
5048
|
);
|
|
5061
5049
|
}
|
|
5062
|
-
function
|
|
5063
|
-
|
|
5050
|
+
function Hs(n, s, l) {
|
|
5051
|
+
Ws(s, l), zs(n, s, l);
|
|
5064
5052
|
}
|
|
5065
|
-
const
|
|
5053
|
+
const Ks = `
|
|
5066
5054
|
var __env__ = 'dev'
|
|
5067
5055
|
|
|
5068
5056
|
function __getEnvV1__() {
|
|
5069
5057
|
return __env__
|
|
5070
5058
|
}
|
|
5071
|
-
`,
|
|
5059
|
+
`, qs = `
|
|
5072
5060
|
var __events__ = {}
|
|
5073
5061
|
|
|
5074
5062
|
function __addEventListenerV1__(id, event, callback) {
|
|
@@ -5139,7 +5127,7 @@ function __triggerEvent__(id, event, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p1
|
|
|
5139
5127
|
callbacks[i](p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16)
|
|
5140
5128
|
}
|
|
5141
5129
|
}
|
|
5142
|
-
`,
|
|
5130
|
+
`, Zs = `
|
|
5143
5131
|
var __timers__ = {}
|
|
5144
5132
|
var __currTimerId__ = 0
|
|
5145
5133
|
|
|
@@ -5181,21 +5169,24 @@ function __timeoutCallbackV1__(timerId) {
|
|
|
5181
5169
|
}
|
|
5182
5170
|
}
|
|
5183
5171
|
}
|
|
5184
|
-
`,
|
|
5172
|
+
`, Qs = `
|
|
5173
|
+
function __destroy__() {
|
|
5174
|
+
}
|
|
5175
|
+
`, ec = Ks + qs + Zs + Qs;
|
|
5185
5176
|
function tc(n, s) {
|
|
5186
|
-
const
|
|
5177
|
+
const l = new Xs(
|
|
5187
5178
|
ec,
|
|
5188
5179
|
(v, g) => {
|
|
5189
|
-
|
|
5180
|
+
Hs(n, v, g);
|
|
5190
5181
|
}
|
|
5191
5182
|
);
|
|
5192
|
-
return
|
|
5183
|
+
return l.appendCode(s), l.appendCode(`
|
|
5193
5184
|
__env__ = '${n.env}';
|
|
5194
5185
|
__triggerEvent__('globality', 'startup');
|
|
5195
|
-
`),
|
|
5186
|
+
`), l.run(), l;
|
|
5196
5187
|
}
|
|
5197
|
-
function
|
|
5198
|
-
n.appendCode("
|
|
5188
|
+
function nn(n) {
|
|
5189
|
+
n.appendCode("__destroy__();"), n.run();
|
|
5199
5190
|
}
|
|
5200
5191
|
const rc = /* @__PURE__ */ on({
|
|
5201
5192
|
__name: "index",
|
|
@@ -5206,89 +5197,90 @@ const rc = /* @__PURE__ */ on({
|
|
|
5206
5197
|
outer: { type: Boolean }
|
|
5207
5198
|
},
|
|
5208
5199
|
setup(n) {
|
|
5209
|
-
const { t: s } =
|
|
5210
|
-
|
|
5211
|
-
|
|
5200
|
+
const { t: s } = ki(), l = n, v = Ns(), g = Ts(), N = Ss(), m = ws(), T = xs(), R = Cs(), r = W(() => R[l.refContext.refid]);
|
|
5201
|
+
let t;
|
|
5202
|
+
Ai(() => {
|
|
5203
|
+
r.value || cn.emit("compNotAvail", l.refContext.refid), t && (nn(t), t = void 0), r.value && g === "runtime" && (t = tc(
|
|
5212
5204
|
{
|
|
5213
|
-
env: v
|
|
5214
|
-
type:
|
|
5215
|
-
data:
|
|
5205
|
+
env: v,
|
|
5206
|
+
type: m,
|
|
5207
|
+
data: T
|
|
5216
5208
|
},
|
|
5217
|
-
|
|
5218
|
-
));
|
|
5219
|
-
}),
|
|
5220
|
-
|
|
5209
|
+
r.value.data.code.script
|
|
5210
|
+
), As(t));
|
|
5211
|
+
}), Ii(() => {
|
|
5212
|
+
t && (nn(t), t = void 0);
|
|
5221
5213
|
});
|
|
5222
|
-
const { applySize:
|
|
5223
|
-
const
|
|
5224
|
-
switch (
|
|
5214
|
+
const { applySize: e } = Ms(g, N, l), i = W(() => {
|
|
5215
|
+
const d = {}, E = T.type;
|
|
5216
|
+
switch (E) {
|
|
5225
5217
|
case "common":
|
|
5226
|
-
|
|
5218
|
+
e(d);
|
|
5227
5219
|
break;
|
|
5228
5220
|
default:
|
|
5229
|
-
console.assert(!1, `invalid subtype=${
|
|
5221
|
+
console.assert(!1, `invalid subtype=${E}`);
|
|
5230
5222
|
}
|
|
5231
|
-
return
|
|
5223
|
+
return d;
|
|
5232
5224
|
});
|
|
5233
|
-
function
|
|
5234
|
-
let
|
|
5235
|
-
for (;
|
|
5236
|
-
if (
|
|
5225
|
+
function o() {
|
|
5226
|
+
let d = l.refContext.parent;
|
|
5227
|
+
for (; d; ) {
|
|
5228
|
+
if (d.refid === l.refContext.refid)
|
|
5237
5229
|
return !0;
|
|
5238
|
-
|
|
5230
|
+
d = d.parent;
|
|
5239
5231
|
}
|
|
5240
5232
|
return !1;
|
|
5241
5233
|
}
|
|
5242
|
-
function
|
|
5243
|
-
let l;
|
|
5244
|
-
return a.ref ? l = o(a) : l = u(a), l;
|
|
5245
|
-
}
|
|
5246
|
-
function o(a) {
|
|
5247
|
-
const l = fn[O.version].refKey, y = Te[l];
|
|
5234
|
+
function u(d) {
|
|
5248
5235
|
let E;
|
|
5249
|
-
return
|
|
5236
|
+
return d.ref ? E = c(d) : E = a(d), E;
|
|
5237
|
+
}
|
|
5238
|
+
function c(d) {
|
|
5239
|
+
const E = fn[T.version].refKey, O = Ne[E];
|
|
5240
|
+
let b;
|
|
5241
|
+
return O ? b = Le(O.comp, {
|
|
5250
5242
|
refContext: {
|
|
5251
|
-
parent:
|
|
5252
|
-
refid:
|
|
5243
|
+
parent: l.refContext,
|
|
5244
|
+
refid: d.ref.id
|
|
5253
5245
|
},
|
|
5254
|
-
node:
|
|
5255
|
-
}) : console.assert(!1),
|
|
5246
|
+
node: d
|
|
5247
|
+
}) : console.assert(!1), b;
|
|
5256
5248
|
}
|
|
5257
|
-
function
|
|
5258
|
-
var
|
|
5259
|
-
let
|
|
5260
|
-
const
|
|
5261
|
-
return
|
|
5262
|
-
|
|
5263
|
-
}),
|
|
5249
|
+
function a(d) {
|
|
5250
|
+
var b;
|
|
5251
|
+
let E;
|
|
5252
|
+
const O = Ne[d.basic.key];
|
|
5253
|
+
return O ? ((b = d.children) == null || b.forEach((S) => {
|
|
5254
|
+
u(S);
|
|
5255
|
+
}), E = Le(O.comp, { node: d })) : console.assert(!1, `invalid element key=${d.basic.key}`), E;
|
|
5264
5256
|
}
|
|
5265
|
-
const
|
|
5266
|
-
const
|
|
5267
|
-
if (
|
|
5268
|
-
|
|
5269
|
-
else if (
|
|
5270
|
-
const
|
|
5271
|
-
|
|
5272
|
-
const
|
|
5273
|
-
|
|
5274
|
-
}) : console.assert(!1, `invalid subtype=${
|
|
5257
|
+
const p = () => {
|
|
5258
|
+
const d = [];
|
|
5259
|
+
if (o())
|
|
5260
|
+
d.push(Le("div", s("x-runtime-lib.circularRef")));
|
|
5261
|
+
else if (r.value) {
|
|
5262
|
+
const E = r.value.data.type;
|
|
5263
|
+
E === "common" ? r.value.data.view.nodes.forEach((O) => {
|
|
5264
|
+
const b = u(O);
|
|
5265
|
+
d.push(b);
|
|
5266
|
+
}) : console.assert(!1, `invalid subtype=${E}`);
|
|
5275
5267
|
} else
|
|
5276
|
-
|
|
5277
|
-
return
|
|
5268
|
+
d.push(Le("div", s("x-runtime-lib.compNotAvail")));
|
|
5269
|
+
return Le("div", { id: l.id, style: i.value }, d);
|
|
5278
5270
|
};
|
|
5279
|
-
return (
|
|
5271
|
+
return (d, E) => (un(), sn(p));
|
|
5280
5272
|
}
|
|
5281
|
-
}),
|
|
5273
|
+
}), me = [
|
|
5282
5274
|
{
|
|
5283
5275
|
name: "x-runtime-lib.unset",
|
|
5284
5276
|
ui: "word",
|
|
5285
|
-
validator:
|
|
5277
|
+
validator: Vi,
|
|
5286
5278
|
default: ""
|
|
5287
5279
|
},
|
|
5288
5280
|
{
|
|
5289
5281
|
name: "x-runtime-lib.pixel",
|
|
5290
5282
|
ui: "pixelInput",
|
|
5291
|
-
validator:
|
|
5283
|
+
validator: Yi,
|
|
5292
5284
|
default: "0px",
|
|
5293
5285
|
precision: 0,
|
|
5294
5286
|
min: 0,
|
|
@@ -5298,7 +5290,7 @@ const rc = /* @__PURE__ */ on({
|
|
|
5298
5290
|
{
|
|
5299
5291
|
name: "x-runtime-lib.percent",
|
|
5300
5292
|
ui: "percentInput",
|
|
5301
|
-
validator:
|
|
5293
|
+
validator: Xi,
|
|
5302
5294
|
default: "0%",
|
|
5303
5295
|
precision: 4,
|
|
5304
5296
|
min: 0,
|
|
@@ -5324,42 +5316,42 @@ const rc = /* @__PURE__ */ on({
|
|
|
5324
5316
|
key: "width",
|
|
5325
5317
|
name: "x-runtime-lib.width",
|
|
5326
5318
|
ui: "multiTypes",
|
|
5327
|
-
types:
|
|
5319
|
+
types: me,
|
|
5328
5320
|
default: ""
|
|
5329
5321
|
},
|
|
5330
5322
|
{
|
|
5331
5323
|
key: "minWidth",
|
|
5332
5324
|
name: "x-runtime-lib.minWidth",
|
|
5333
5325
|
ui: "multiTypes",
|
|
5334
|
-
types:
|
|
5326
|
+
types: me,
|
|
5335
5327
|
default: ""
|
|
5336
5328
|
},
|
|
5337
5329
|
{
|
|
5338
5330
|
key: "maxWidth",
|
|
5339
5331
|
name: "x-runtime-lib.maxWidth",
|
|
5340
5332
|
ui: "multiTypes",
|
|
5341
|
-
types:
|
|
5333
|
+
types: me,
|
|
5342
5334
|
default: ""
|
|
5343
5335
|
},
|
|
5344
5336
|
{
|
|
5345
5337
|
key: "height",
|
|
5346
5338
|
name: "x-runtime-lib.height",
|
|
5347
5339
|
ui: "multiTypes",
|
|
5348
|
-
types:
|
|
5340
|
+
types: me,
|
|
5349
5341
|
default: ""
|
|
5350
5342
|
},
|
|
5351
5343
|
{
|
|
5352
5344
|
key: "minHeight",
|
|
5353
5345
|
name: "x-runtime-lib.minHeight",
|
|
5354
5346
|
ui: "multiTypes",
|
|
5355
|
-
types:
|
|
5347
|
+
types: me,
|
|
5356
5348
|
default: ""
|
|
5357
5349
|
},
|
|
5358
5350
|
{
|
|
5359
5351
|
key: "maxHeight",
|
|
5360
5352
|
name: "x-runtime-lib.maxHeight",
|
|
5361
5353
|
ui: "multiTypes",
|
|
5362
|
-
types:
|
|
5354
|
+
types: me,
|
|
5363
5355
|
default: ""
|
|
5364
5356
|
}
|
|
5365
5357
|
]
|
|
@@ -5374,10 +5366,10 @@ const rc = /* @__PURE__ */ on({
|
|
|
5374
5366
|
pageCommon: nc,
|
|
5375
5367
|
compCommon: ic
|
|
5376
5368
|
}
|
|
5377
|
-
},
|
|
5369
|
+
}, Ne = {
|
|
5378
5370
|
// basic
|
|
5379
|
-
btn_v1:
|
|
5380
|
-
globality_v1:
|
|
5371
|
+
btn_v1: Fs,
|
|
5372
|
+
globality_v1: Ls,
|
|
5381
5373
|
ref_v1: ac
|
|
5382
5374
|
}, oc = {
|
|
5383
5375
|
key: "add",
|
|
@@ -5390,18 +5382,18 @@ const rc = /* @__PURE__ */ on({
|
|
|
5390
5382
|
}
|
|
5391
5383
|
]
|
|
5392
5384
|
};
|
|
5393
|
-
for (const n in
|
|
5394
|
-
const s =
|
|
5385
|
+
for (const n in Ne) {
|
|
5386
|
+
const s = Ne[n];
|
|
5395
5387
|
s.leaf || s.methods.unshift(oc);
|
|
5396
5388
|
}
|
|
5397
|
-
const uc = (n, s,
|
|
5389
|
+
const uc = (n, s, l) => {
|
|
5398
5390
|
const v = n[s];
|
|
5399
|
-
return v ? typeof v == "function" ? v() : Promise.resolve(v) : new Promise((g,
|
|
5391
|
+
return v ? typeof v == "function" ? v() : Promise.resolve(v) : new Promise((g, N) => {
|
|
5400
5392
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
5401
|
-
|
|
5393
|
+
N.bind(
|
|
5402
5394
|
null,
|
|
5403
5395
|
new Error(
|
|
5404
|
-
"Unknown variable dynamic import: " + s + (s.split("/").length !==
|
|
5396
|
+
"Unknown variable dynamic import: " + s + (s.split("/").length !== l ? ". Note that variables only represent file names one level deep." : "")
|
|
5405
5397
|
)
|
|
5406
5398
|
)
|
|
5407
5399
|
);
|
|
@@ -5412,25 +5404,25 @@ async function Oc(n) {
|
|
|
5412
5404
|
}
|
|
5413
5405
|
export {
|
|
5414
5406
|
dc as duplicateNode,
|
|
5415
|
-
|
|
5407
|
+
Ne as elements,
|
|
5416
5408
|
ln as genId,
|
|
5417
5409
|
hc as getNode,
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5410
|
+
Qr as getPropDefault,
|
|
5411
|
+
Rs as getPropTag,
|
|
5412
|
+
en as initProps,
|
|
5413
|
+
Ps as injectDark,
|
|
5414
|
+
xs as injectData,
|
|
5415
|
+
Cs as injectDepends,
|
|
5416
|
+
Ss as injectDevice,
|
|
5417
|
+
Ns as injectEnv,
|
|
5426
5418
|
Rc as injectInterpreter,
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5419
|
+
Ts as injectMode,
|
|
5420
|
+
ws as injectType,
|
|
5421
|
+
Vi as isEmptyStr,
|
|
5422
|
+
Xi as isPercentStr,
|
|
5423
|
+
Yi as isPixelStr,
|
|
5432
5424
|
Oc as loadLocaleMessageRuntime,
|
|
5433
|
-
|
|
5425
|
+
Ct as parsePercentStr,
|
|
5434
5426
|
pc as parsePixelStr,
|
|
5435
5427
|
fn as pkgs,
|
|
5436
5428
|
Ec as provideDark,
|
|
@@ -5438,10 +5430,10 @@ export {
|
|
|
5438
5430
|
mc as provideDepends,
|
|
5439
5431
|
_c as provideDevice,
|
|
5440
5432
|
vc as provideEnv,
|
|
5441
|
-
|
|
5433
|
+
As as provideInterpreter,
|
|
5442
5434
|
yc as provideMode,
|
|
5443
5435
|
gc as provideType,
|
|
5444
|
-
|
|
5436
|
+
Os as spawnNode,
|
|
5445
5437
|
tc as startInterpreter,
|
|
5446
|
-
|
|
5438
|
+
nn as stopInterpreter
|
|
5447
5439
|
};
|