@gct-paas/render 0.1.4-dev.12 → 0.1.4-dev.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.min.js +822 -751
- package/dist/index.min.css +2 -0
- package/es/Event/baseEvent.d.ts +2 -2
- package/es/Event/baseEvent.mjs +2 -2
- package/es/Event/eventType.d.ts +1 -1
- package/es/Event/eventType.mjs +1 -0
- package/es/Event/index.d.ts +2 -2
- package/es/Event/index.mjs +1 -0
- package/es/Event/utils/runGlobalByPage.mjs +1 -1
- package/es/_virtual/_plugin-vue_export-helper.mjs +8 -0
- package/es/components/HandwritingPad.vue.d.ts +27 -0
- package/es/components/HandwritingPad.vue.mjs +7 -0
- package/es/components/HandwritingPad.vue_vue_type_script_setup_true_name_HandwritingPad_lang.mjs +109 -0
- package/es/components/HandwritingPad.vue_vue_type_style_index_0_scoped_d5b980b7_lang.css +9 -0
- package/es/components/index.d.ts +2 -0
- package/es/components/index.mjs +1 -0
- package/es/index.d.ts +1 -0
- package/es/index.mjs +5 -3
- package/es/utils/index.d.ts +1 -1
- package/es/utils/useStyle.mjs +8 -1
- package/package.json +10 -10
package/dist/index.esm.min.js
CHANGED
|
@@ -4,26 +4,26 @@ import { cloneDeep as y, differenceBy as b, get as x, isEqual as ee, isNull as t
|
|
|
4
4
|
import { extractFontStyle as re, generateWrapperStyle as ie, propsToStyle as ae } from "@gct-paas/schema";
|
|
5
5
|
import C from "dayjs";
|
|
6
6
|
import w from "bignumber.js";
|
|
7
|
-
import { computed as T,
|
|
8
|
-
import
|
|
7
|
+
import { computed as T, createElementBlock as oe, createElementVNode as se, customRef as ce, defineComponent as le, getCurrentInstance as ue, getCurrentScope as de, inject as fe, nextTick as pe, onActivated as me, onBeforeUnmount as he, onMounted as ge, onScopeDispose as _e, openBlock as ve, readonly as ye, ref as E, shallowReactive as be, shallowRef as xe, toRaw as Se, toRef as D, toValue as O, unref as Ce, watch as we } from "vue";
|
|
8
|
+
import Te from "qs";
|
|
9
9
|
//#region \0rolldown/runtime.js
|
|
10
|
-
var
|
|
10
|
+
var Ee = Object.create, De = Object.defineProperty, Oe = Object.getOwnPropertyDescriptor, ke = Object.getOwnPropertyNames, Ae = Object.getPrototypeOf, je = Object.prototype.hasOwnProperty, k = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), Me = (e, t) => {
|
|
11
11
|
let n = {};
|
|
12
|
-
for (var r in e)
|
|
12
|
+
for (var r in e) De(n, r, {
|
|
13
13
|
get: e[r],
|
|
14
14
|
enumerable: !0
|
|
15
15
|
});
|
|
16
|
-
return t ||
|
|
17
|
-
},
|
|
18
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
16
|
+
return t || De(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
17
|
+
}, Ne = (e, t, n, r) => {
|
|
18
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = ke(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !je.call(e, s) && s !== n && De(e, s, {
|
|
19
19
|
get: ((e) => t[e]).bind(null, s),
|
|
20
|
-
enumerable: !(r =
|
|
20
|
+
enumerable: !(r = Oe(t, s)) || r.enumerable
|
|
21
21
|
});
|
|
22
22
|
return e;
|
|
23
|
-
}, A = (e, t, n) => (n = e == null ? {} :
|
|
23
|
+
}, A = (e, t, n) => (n = e == null ? {} : Ee(Ae(e)), Ne(t || !e || !e.__esModule ? De(n, "default", {
|
|
24
24
|
value: e,
|
|
25
25
|
enumerable: !0
|
|
26
|
-
}) : n, e)),
|
|
26
|
+
}) : n, e)), Pe = class {
|
|
27
27
|
map = /* @__PURE__ */ new Map();
|
|
28
28
|
register(e, t) {
|
|
29
29
|
this.map.set(e, t);
|
|
@@ -37,7 +37,7 @@ var Se = Object.create, Ce = Object.defineProperty, we = Object.getOwnPropertyDe
|
|
|
37
37
|
keys() {
|
|
38
38
|
return Array.from(this.map.keys());
|
|
39
39
|
}
|
|
40
|
-
},
|
|
40
|
+
}, Fe = {
|
|
41
41
|
[s.TEXT]: { attrsTransform: [{
|
|
42
42
|
from: "specificConfig.minValue",
|
|
43
43
|
to: "minlength"
|
|
@@ -87,8 +87,8 @@ var Se = Object.create, Ce = Object.defineProperty, we = Object.getOwnPropertyDe
|
|
|
87
87
|
to: "maxValue"
|
|
88
88
|
}
|
|
89
89
|
] }
|
|
90
|
-
},
|
|
91
|
-
let { attrsTransform: n = [] } =
|
|
90
|
+
}, Ie = (e, t) => {
|
|
91
|
+
let { attrsTransform: n = [] } = Fe[e] ?? {};
|
|
92
92
|
return n.reduce((e, n) => {
|
|
93
93
|
let r = x(t, n.from);
|
|
94
94
|
return e[n.to] = r, e;
|
|
@@ -96,7 +96,7 @@ var Se = Object.create, Ce = Object.defineProperty, we = Object.getOwnPropertyDe
|
|
|
96
96
|
};
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region src/utils/useStyle.ts
|
|
99
|
-
function
|
|
99
|
+
function Le(e) {
|
|
100
100
|
let { style: t = {} } = e || {}, n = "ignoringStyle" in e ? e.ignoringStyle ?? [] : [], r = ae(t);
|
|
101
101
|
return {
|
|
102
102
|
wrapperStyle: ie(t, n),
|
|
@@ -105,9 +105,7 @@ function Ne(e) {
|
|
|
105
105
|
contentFont: re(t.contentFont)
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
|
|
109
|
-
//#region src/utils/getFieldSchema.ts
|
|
110
|
-
var Pe = class {
|
|
108
|
+
var Re = (e) => re(e), ze = class {
|
|
111
109
|
static modelData = /* @__PURE__ */ new Map();
|
|
112
110
|
static FiledData = /* @__PURE__ */ new Map();
|
|
113
111
|
static responsePromise = /* @__PURE__ */ new Map();
|
|
@@ -135,21 +133,21 @@ var Pe = class {
|
|
|
135
133
|
e && this.responsePromise.clear(), this.modelData.clear(), this.FiledData.clear();
|
|
136
134
|
}
|
|
137
135
|
};
|
|
138
|
-
async function
|
|
136
|
+
async function Be(e, t = !1) {
|
|
139
137
|
let { modelKey: n, field: r, isCustomField: i, fieldName: a, readonly: o, fieldType: s } = e.props;
|
|
140
138
|
if (!e.isField && !t || r === "table_name_") return {};
|
|
141
139
|
let c;
|
|
142
140
|
if (i ? c = {
|
|
143
141
|
name: a,
|
|
144
142
|
type: ""
|
|
145
|
-
} : n && (c = await
|
|
143
|
+
} : n && (c = await ze.getConfigByField(n, r)), !i && (!c || c.type !== s)) throw Error("该字段可能已经被删除");
|
|
146
144
|
if (!c) return {};
|
|
147
145
|
let { required: l, specificConfig: u } = c;
|
|
148
146
|
return e.props.fieldRequired = !!l, l && !o && (e.props.required = !0), u?.digits !== void 0 && (e.props.precision = u.digits), c;
|
|
149
147
|
}
|
|
150
148
|
//#endregion
|
|
151
149
|
//#region src/utils/model-transformer.ts
|
|
152
|
-
function
|
|
150
|
+
function Ve(e, t) {
|
|
153
151
|
return e?.map((e) => j(e, t)) || [];
|
|
154
152
|
}
|
|
155
153
|
function j(e = {}, t = {}) {
|
|
@@ -169,16 +167,16 @@ function j(e = {}, t = {}) {
|
|
|
169
167
|
_OPCT: n.__FOREIGN__ && typeof n.__FOREIGN__ == "object" ? j(n.__FOREIGN__, t) : {}
|
|
170
168
|
};
|
|
171
169
|
}
|
|
172
|
-
function
|
|
170
|
+
function He(e, t, n) {
|
|
173
171
|
typeof t == "object" && S(e, j(t, n));
|
|
174
172
|
}
|
|
175
|
-
function
|
|
173
|
+
function Ue(e, t, n) {
|
|
176
174
|
if (typeof t != "object") return;
|
|
177
175
|
for (let t in e) t !== "_OPCT" && t !== "_NOSUBMIT" && delete e[t];
|
|
178
176
|
let r = j(t, n);
|
|
179
177
|
r._X_ROW_KEY = t._X_ROW_KEY, S(e, r);
|
|
180
178
|
}
|
|
181
|
-
function
|
|
179
|
+
function We(e, t = {}, n = {}) {
|
|
182
180
|
let r = y(t.__FOREIGN__ || t), i = { _DICT: {} };
|
|
183
181
|
return Object.keys(r).forEach((t) => {
|
|
184
182
|
let a = `${e}.${t}`, o = n[t], s = r[t];
|
|
@@ -192,7 +190,7 @@ function ze(e, t = {}, n = {}) {
|
|
|
192
190
|
_OPCT: i
|
|
193
191
|
};
|
|
194
192
|
}
|
|
195
|
-
function
|
|
193
|
+
function Ge(e = {}, t = {}) {
|
|
196
194
|
let n = y(e);
|
|
197
195
|
return Object.keys(t ?? {})?.length ? Object.keys(n).reduce((e, r) => {
|
|
198
196
|
let i = t[r] || {}, a = n[r];
|
|
@@ -206,7 +204,7 @@ function Be(e = {}, t = {}) {
|
|
|
206
204
|
}
|
|
207
205
|
//#endregion
|
|
208
206
|
//#region ../../node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.js
|
|
209
|
-
var
|
|
207
|
+
var Ke = /* @__PURE__ */ k(((e, t) => {
|
|
210
208
|
(function(n, r) {
|
|
211
209
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_utc = r();
|
|
212
210
|
})(e, (function() {
|
|
@@ -290,7 +288,7 @@ var Ve = /* @__PURE__ */ k(((e, t) => {
|
|
|
290
288
|
};
|
|
291
289
|
};
|
|
292
290
|
}));
|
|
293
|
-
})),
|
|
291
|
+
})), qe = /* @__PURE__ */ k(((e, t) => {
|
|
294
292
|
(function(n, r) {
|
|
295
293
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_timezone = r();
|
|
296
294
|
})(e, (function() {
|
|
@@ -366,7 +364,7 @@ var Ve = /* @__PURE__ */ k(((e, t) => {
|
|
|
366
364
|
};
|
|
367
365
|
};
|
|
368
366
|
}));
|
|
369
|
-
})),
|
|
367
|
+
})), Je = /* @__PURE__ */ k(((e, t) => {
|
|
370
368
|
(function(n, r) {
|
|
371
369
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_quarterOfYear = r();
|
|
372
370
|
})(e, (function() {
|
|
@@ -391,7 +389,7 @@ var Ve = /* @__PURE__ */ k(((e, t) => {
|
|
|
391
389
|
};
|
|
392
390
|
};
|
|
393
391
|
}));
|
|
394
|
-
})),
|
|
392
|
+
})), Ye = /* @__PURE__ */ k(((e, t) => {
|
|
395
393
|
(function(n, r) {
|
|
396
394
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_toArray = r();
|
|
397
395
|
})(e, (function() {
|
|
@@ -409,7 +407,7 @@ var Ve = /* @__PURE__ */ k(((e, t) => {
|
|
|
409
407
|
};
|
|
410
408
|
};
|
|
411
409
|
}));
|
|
412
|
-
})),
|
|
410
|
+
})), Xe = /* @__PURE__ */ k(((e, t) => {
|
|
413
411
|
(function(n, r) {
|
|
414
412
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_isoWeek = r();
|
|
415
413
|
})(e, (function() {
|
|
@@ -434,193 +432,193 @@ var Ve = /* @__PURE__ */ k(((e, t) => {
|
|
|
434
432
|
};
|
|
435
433
|
};
|
|
436
434
|
}));
|
|
437
|
-
})),
|
|
438
|
-
ABS: () =>
|
|
439
|
-
ADD: () =>
|
|
440
|
-
AND: () =>
|
|
441
|
-
AVERAGE: () =>
|
|
442
|
-
CONCAT: () =>
|
|
443
|
-
COUNT: () =>
|
|
444
|
-
DATE2TIMESTAMP: () =>
|
|
445
|
-
DATEFORMAT: () =>
|
|
446
|
-
DAY: () =>
|
|
447
|
-
DIVISION: () =>
|
|
448
|
-
EQ: () =>
|
|
449
|
-
FINDSTR: () =>
|
|
450
|
-
FIXED: () =>
|
|
451
|
-
GE: () =>
|
|
452
|
-
GET: () =>
|
|
453
|
-
GT: () =>
|
|
454
|
-
HEADPUSH: () =>
|
|
455
|
-
HOUR: () =>
|
|
456
|
-
IF: () =>
|
|
457
|
-
ISDATERANGE: () =>
|
|
458
|
-
ISEMPTY: () =>
|
|
459
|
-
ISNULL: () =>
|
|
460
|
-
ISTIMERANGE: () =>
|
|
461
|
-
ISUNDEFINED: () =>
|
|
462
|
-
LARGE: () =>
|
|
463
|
-
LASTMONTHRANGE: () =>
|
|
464
|
-
LASTQUARTER: () =>
|
|
465
|
-
LASTWEEKRANGE: () =>
|
|
466
|
-
LASTYEARRANGE: () =>
|
|
467
|
-
LE: () =>
|
|
468
|
-
LEN: () =>
|
|
469
|
-
LOWER: () =>
|
|
470
|
-
LT: () =>
|
|
471
|
-
LTRIM: () =>
|
|
472
|
-
MAX: () =>
|
|
473
|
-
MIN: () =>
|
|
474
|
-
MINUTE: () =>
|
|
475
|
-
MOD: () =>
|
|
476
|
-
MONTH: () =>
|
|
477
|
-
MONTHRANGE: () =>
|
|
478
|
-
MULTIPLICATION: () =>
|
|
479
|
-
NE: () =>
|
|
480
|
-
NOW: () =>
|
|
481
|
-
OR: () =>
|
|
482
|
-
PARSENUMBER: () =>
|
|
483
|
-
POWER: () =>
|
|
484
|
-
PUSH: () =>
|
|
485
|
-
PUT: () =>
|
|
486
|
-
QUARTER: () =>
|
|
487
|
-
REDUCE: () =>
|
|
488
|
-
REPEAT: () =>
|
|
489
|
-
REPLACE: () =>
|
|
490
|
-
ROUND: () =>
|
|
491
|
-
ROUNDUP: () =>
|
|
492
|
-
RTRIM: () =>
|
|
493
|
-
SEARCHSTR: () =>
|
|
494
|
-
SEQMAP: () =>
|
|
495
|
-
SMALL: () =>
|
|
496
|
-
SPLIT: () =>
|
|
497
|
-
SQRT: () =>
|
|
498
|
-
STDEV: () =>
|
|
499
|
-
SUBSTR: () =>
|
|
500
|
-
SUBSTRING: () =>
|
|
501
|
-
SUM: () =>
|
|
502
|
-
SUMSQ: () =>
|
|
503
|
-
TIMESTAMP2DATE: () =>
|
|
504
|
-
TODAY: () =>
|
|
505
|
-
TRIM: () =>
|
|
506
|
-
TUPLE: () =>
|
|
507
|
-
UPPER: () =>
|
|
508
|
-
WEEKRANGE: () =>
|
|
509
|
-
YEAR: () =>
|
|
510
|
-
YEARRANGE: () =>
|
|
511
|
-
}),
|
|
512
|
-
C.extend(
|
|
513
|
-
function
|
|
435
|
+
})), Ze = /* @__PURE__ */ Me({
|
|
436
|
+
ABS: () => Ut,
|
|
437
|
+
ADD: () => jt,
|
|
438
|
+
AND: () => st,
|
|
439
|
+
AVERAGE: () => Ht,
|
|
440
|
+
CONCAT: () => gt,
|
|
441
|
+
COUNT: () => Sn,
|
|
442
|
+
DATE2TIMESTAMP: () => $t,
|
|
443
|
+
DATEFORMAT: () => en,
|
|
444
|
+
DAY: () => on,
|
|
445
|
+
DIVISION: () => Pt,
|
|
446
|
+
EQ: () => lt,
|
|
447
|
+
FINDSTR: () => Et,
|
|
448
|
+
FIXED: () => Ft,
|
|
449
|
+
GE: () => pt,
|
|
450
|
+
GET: () => Jt,
|
|
451
|
+
GT: () => mt,
|
|
452
|
+
HEADPUSH: () => Zt,
|
|
453
|
+
HOUR: () => sn,
|
|
454
|
+
IF: () => rt,
|
|
455
|
+
ISDATERANGE: () => _n,
|
|
456
|
+
ISEMPTY: () => it,
|
|
457
|
+
ISNULL: () => at,
|
|
458
|
+
ISTIMERANGE: () => vn,
|
|
459
|
+
ISUNDEFINED: () => ot,
|
|
460
|
+
LARGE: () => zt,
|
|
461
|
+
LASTMONTHRANGE: () => fn,
|
|
462
|
+
LASTQUARTER: () => gn,
|
|
463
|
+
LASTWEEKRANGE: () => un,
|
|
464
|
+
LASTYEARRANGE: () => mn,
|
|
465
|
+
LE: () => dt,
|
|
466
|
+
LEN: () => ht,
|
|
467
|
+
LOWER: () => bt,
|
|
468
|
+
LT: () => ft,
|
|
469
|
+
LTRIM: () => St,
|
|
470
|
+
MAX: () => Rt,
|
|
471
|
+
MIN: () => Bt,
|
|
472
|
+
MINUTE: () => cn,
|
|
473
|
+
MOD: () => Wt,
|
|
474
|
+
MONTH: () => an,
|
|
475
|
+
MONTHRANGE: () => dn,
|
|
476
|
+
MULTIPLICATION: () => Nt,
|
|
477
|
+
NE: () => ut,
|
|
478
|
+
NOW: () => tn,
|
|
479
|
+
OR: () => ct,
|
|
480
|
+
PARSENUMBER: () => Ot,
|
|
481
|
+
POWER: () => Kt,
|
|
482
|
+
PUSH: () => Xt,
|
|
483
|
+
PUT: () => Yt,
|
|
484
|
+
QUARTER: () => hn,
|
|
485
|
+
REDUCE: () => Mt,
|
|
486
|
+
REPEAT: () => wt,
|
|
487
|
+
REPLACE: () => Tt,
|
|
488
|
+
ROUND: () => It,
|
|
489
|
+
ROUNDUP: () => Lt,
|
|
490
|
+
RTRIM: () => Ct,
|
|
491
|
+
SEARCHSTR: () => Dt,
|
|
492
|
+
SEQMAP: () => bn,
|
|
493
|
+
SMALL: () => Vt,
|
|
494
|
+
SPLIT: () => kt,
|
|
495
|
+
SQRT: () => qt,
|
|
496
|
+
STDEV: () => Cn,
|
|
497
|
+
SUBSTR: () => vt,
|
|
498
|
+
SUBSTRING: () => _t,
|
|
499
|
+
SUM: () => At,
|
|
500
|
+
SUMSQ: () => xn,
|
|
501
|
+
TIMESTAMP2DATE: () => Qt,
|
|
502
|
+
TODAY: () => nn,
|
|
503
|
+
TRIM: () => xt,
|
|
504
|
+
TUPLE: () => yn,
|
|
505
|
+
UPPER: () => yt,
|
|
506
|
+
WEEKRANGE: () => ln,
|
|
507
|
+
YEAR: () => rn,
|
|
508
|
+
YEARRANGE: () => pn
|
|
509
|
+
}), Qe = /* @__PURE__ */ A(Ke(), 1), $e = /* @__PURE__ */ A(qe(), 1), et = /* @__PURE__ */ A(Je(), 1), tt = /* @__PURE__ */ A(Ye(), 1), nt = /* @__PURE__ */ A(Xe(), 1);
|
|
510
|
+
C.extend(Qe.default), C.extend($e.default), C.extend(et.default), C.extend(tt.default), C.extend(nt.default);
|
|
511
|
+
function rt(e, t, n) {
|
|
514
512
|
return e ? t : n;
|
|
515
513
|
}
|
|
516
|
-
function
|
|
514
|
+
function it(e) {
|
|
517
515
|
return e == null || e === "" || e === 0;
|
|
518
516
|
}
|
|
519
|
-
function
|
|
517
|
+
function at(e) {
|
|
520
518
|
return te(e);
|
|
521
519
|
}
|
|
522
|
-
function
|
|
520
|
+
function ot(e) {
|
|
523
521
|
return ne(e);
|
|
524
522
|
}
|
|
525
|
-
function
|
|
523
|
+
function st(...e) {
|
|
526
524
|
return (() => {
|
|
527
525
|
for (let t of e) if (!t) return !1;
|
|
528
526
|
return !0;
|
|
529
527
|
})();
|
|
530
528
|
}
|
|
531
|
-
function
|
|
529
|
+
function ct(...e) {
|
|
532
530
|
return e.some((e) => e);
|
|
533
531
|
}
|
|
534
|
-
function
|
|
532
|
+
function lt(e, t) {
|
|
535
533
|
return ee(e, t);
|
|
536
534
|
}
|
|
537
|
-
function
|
|
535
|
+
function ut(e, t) {
|
|
538
536
|
return e !== t;
|
|
539
537
|
}
|
|
540
|
-
function
|
|
538
|
+
function dt(e, t) {
|
|
541
539
|
return typeof e == "number" && typeof t == "number" || typeof e == "string" && typeof t == "string" || e instanceof Date && t instanceof Date ? e <= t : !1;
|
|
542
540
|
}
|
|
543
|
-
function
|
|
541
|
+
function ft(e, t) {
|
|
544
542
|
return typeof e == "number" && typeof t == "number" || typeof e == "string" && typeof t == "string" || e instanceof Date && t instanceof Date ? e < t : !1;
|
|
545
543
|
}
|
|
546
|
-
function
|
|
544
|
+
function pt(e, t) {
|
|
547
545
|
return typeof e == "number" && typeof t == "number" || typeof e == "string" && typeof t == "string" || e instanceof Date && t instanceof Date ? e >= t : !1;
|
|
548
546
|
}
|
|
549
|
-
function
|
|
547
|
+
function mt(e, t) {
|
|
550
548
|
return typeof e == "number" && typeof t == "number" || typeof e == "string" && typeof t == "string" || e instanceof Date && t instanceof Date ? e > t : !1;
|
|
551
549
|
}
|
|
552
|
-
function
|
|
550
|
+
function ht(e) {
|
|
553
551
|
return e?.length || 0;
|
|
554
552
|
}
|
|
555
|
-
function
|
|
553
|
+
function gt(...e) {
|
|
556
554
|
return e.join("");
|
|
557
555
|
}
|
|
558
|
-
function
|
|
556
|
+
function _t(e = "", t, n) {
|
|
559
557
|
return (() => {
|
|
560
558
|
let r = (t < 0 ? [...e].reverse().join("") : e).slice(Math.abs(t + Number(t < 0)), Math.abs(n) + Number(t >= 0));
|
|
561
559
|
return t < 0 ? [...r].reverse().join("") : r;
|
|
562
560
|
})();
|
|
563
561
|
}
|
|
564
|
-
function
|
|
562
|
+
function vt(e = "", t, n) {
|
|
565
563
|
return (() => {
|
|
566
564
|
let r = (t < 0 ? [...e].reverse().join("") : e).slice(Math.abs(t + Number(t < 0)), Math.abs(t + Number(t < 0)) + Math.abs(n));
|
|
567
565
|
return t < 0 ? [...r].reverse().join("") : r;
|
|
568
566
|
})();
|
|
569
567
|
}
|
|
570
|
-
function
|
|
568
|
+
function yt(e = "") {
|
|
571
569
|
return e.toUpperCase();
|
|
572
570
|
}
|
|
573
|
-
function
|
|
571
|
+
function bt(e = "") {
|
|
574
572
|
return e.toLowerCase();
|
|
575
573
|
}
|
|
576
|
-
function
|
|
574
|
+
function xt(e = "") {
|
|
577
575
|
return e.trim();
|
|
578
576
|
}
|
|
579
|
-
function
|
|
577
|
+
function St(e = "") {
|
|
580
578
|
return e.replace(/^\s\s*/, "");
|
|
581
579
|
}
|
|
582
|
-
function
|
|
580
|
+
function Ct(e = "") {
|
|
583
581
|
return e.replace(/\s\s*$/, "");
|
|
584
582
|
}
|
|
585
|
-
function
|
|
583
|
+
function wt(e = "", t = "") {
|
|
586
584
|
return e.match(new RegExp(t, "g"))?.length || null;
|
|
587
585
|
}
|
|
588
|
-
function
|
|
586
|
+
function Tt(e = "", t = "", n = "") {
|
|
589
587
|
return e.replace(new RegExp(t, "g"), n);
|
|
590
588
|
}
|
|
591
|
-
function
|
|
589
|
+
function Et(e = "", t = "") {
|
|
592
590
|
return e.includes(t);
|
|
593
591
|
}
|
|
594
|
-
function
|
|
592
|
+
function Dt(e = "", t = "") {
|
|
595
593
|
return e.match(new RegExp(t, "g"))?.length || 0;
|
|
596
594
|
}
|
|
597
|
-
function
|
|
595
|
+
function Ot(e = "") {
|
|
598
596
|
return (() => {
|
|
599
597
|
let t = parseFloat(e);
|
|
600
598
|
return isNaN(t) ? null : t;
|
|
601
599
|
})();
|
|
602
600
|
}
|
|
603
|
-
function
|
|
601
|
+
function kt(e = "", t = "") {
|
|
604
602
|
return e.split(t);
|
|
605
603
|
}
|
|
606
|
-
function
|
|
604
|
+
function At(...e) {
|
|
607
605
|
let t = e.flat().filter((e) => e !== "" && e != null);
|
|
608
|
-
return t.length ? t.reduce(
|
|
606
|
+
return t.length ? t.reduce(wn, 0) : "";
|
|
609
607
|
}
|
|
610
|
-
function
|
|
611
|
-
return e.flat().reduce(
|
|
608
|
+
function jt(...e) {
|
|
609
|
+
return e.flat().reduce(wn, 0);
|
|
612
610
|
}
|
|
613
|
-
function
|
|
614
|
-
return t.reduce(
|
|
611
|
+
function Mt(e, ...t) {
|
|
612
|
+
return t.reduce(Tn, e);
|
|
615
613
|
}
|
|
616
|
-
function
|
|
614
|
+
function Nt(e, ...t) {
|
|
617
615
|
let n = t.flat().filter((e) => e !== "" && e != null);
|
|
618
|
-
return n.length ? n.reduce(
|
|
616
|
+
return n.length ? n.reduce(En, e) : "";
|
|
619
617
|
}
|
|
620
|
-
function
|
|
621
|
-
return t.reduce(
|
|
618
|
+
function Pt(e, ...t) {
|
|
619
|
+
return t.reduce(Dn, e);
|
|
622
620
|
}
|
|
623
|
-
function
|
|
621
|
+
function Ft(e, t) {
|
|
624
622
|
return (() => {
|
|
625
623
|
if (t < 0) throw Error("Decimal places should be non-negative.");
|
|
626
624
|
let [n, r = ""] = e.toString().split(".");
|
|
@@ -634,7 +632,7 @@ function At(e, t) {
|
|
|
634
632
|
return `${n}.${i.join("")}`;
|
|
635
633
|
})();
|
|
636
634
|
}
|
|
637
|
-
function
|
|
635
|
+
function It(e, t) {
|
|
638
636
|
return (() => {
|
|
639
637
|
if (e === null || e === "" || e === void 0) return "";
|
|
640
638
|
if (t < 0) throw Error("Decimal places should be non-negative.");
|
|
@@ -644,49 +642,49 @@ function jt(e, t) {
|
|
|
644
642
|
return parseFloat(i + "");
|
|
645
643
|
})();
|
|
646
644
|
}
|
|
647
|
-
function
|
|
645
|
+
function Lt(e, t) {
|
|
648
646
|
if (e === null || e === "" || e === void 0) return "";
|
|
649
647
|
if (t < 0) throw Error("Decimal places should be non-negative.");
|
|
650
648
|
return t = t ? parseInt(t + "") : 0, new w(e).decimalPlaces(t, w.ROUND_UP).toNumber();
|
|
651
649
|
}
|
|
652
|
-
function
|
|
650
|
+
function Rt(...e) {
|
|
653
651
|
let t = e.flat().filter((e) => e !== "" && e != null);
|
|
654
652
|
return t.length ? Math.max.apply(null, t) : "";
|
|
655
653
|
}
|
|
656
|
-
function
|
|
654
|
+
function zt(e, t) {
|
|
657
655
|
return (() => {
|
|
658
656
|
if (t < 1 || t > e.length) throw Error("Invalid value of n. It should be between 1 and the array length.");
|
|
659
657
|
return e.sort((e, t) => t - e)[t - 1];
|
|
660
658
|
})();
|
|
661
659
|
}
|
|
662
|
-
function
|
|
660
|
+
function Bt(...e) {
|
|
663
661
|
let t = e.flat().filter((e) => e !== "" && e != null);
|
|
664
662
|
return t.length ? Math.min.apply(null, t) : "";
|
|
665
663
|
}
|
|
666
|
-
function
|
|
664
|
+
function Vt(e, t) {
|
|
667
665
|
return (() => {
|
|
668
666
|
if (t < 1 || t > e.length) throw Error("Invalid value of n. It should be between 1 and the array length.");
|
|
669
667
|
return e.sort((e, t) => e - t)[t - 1];
|
|
670
668
|
})();
|
|
671
669
|
}
|
|
672
|
-
function
|
|
670
|
+
function Ht(...e) {
|
|
673
671
|
let t = e.flat().filter((e) => e !== "" && e != null), n = t.length;
|
|
674
672
|
if (!n) return "";
|
|
675
673
|
let r = new w(0);
|
|
676
674
|
for (let e of t) r = r.plus(e);
|
|
677
675
|
return r.dividedBy(n).toNumber();
|
|
678
676
|
}
|
|
679
|
-
function
|
|
677
|
+
function Ut(e) {
|
|
680
678
|
return Math.abs.call(null, e);
|
|
681
679
|
}
|
|
682
|
-
function
|
|
680
|
+
function Wt(e, t) {
|
|
683
681
|
return (() => {
|
|
684
682
|
if (e === 0) throw Error("The second value should not be zero.");
|
|
685
683
|
let n = new w(e).mod(t).toNumber();
|
|
686
684
|
return isNaN(n) ? "" : n;
|
|
687
685
|
})();
|
|
688
686
|
}
|
|
689
|
-
function
|
|
687
|
+
function Gt(e) {
|
|
690
688
|
if (typeof e == "number") return Number.isFinite(e) ? e : null;
|
|
691
689
|
if (typeof e == "string") {
|
|
692
690
|
let t = e.trim();
|
|
@@ -700,19 +698,19 @@ function Bt(e) {
|
|
|
700
698
|
}
|
|
701
699
|
return null;
|
|
702
700
|
}
|
|
703
|
-
function
|
|
701
|
+
function Kt(e, t) {
|
|
704
702
|
return (() => {
|
|
705
|
-
let n =
|
|
703
|
+
let n = Gt(e), r = Gt(t);
|
|
706
704
|
return n === null || r === null ? NaN : Math.abs(r) > 1e9 ? r > 0 ? Infinity : 0 : n ** +r;
|
|
707
705
|
})();
|
|
708
706
|
}
|
|
709
|
-
function
|
|
707
|
+
function qt(e) {
|
|
710
708
|
return (() => {
|
|
711
|
-
let t =
|
|
709
|
+
let t = Gt(e);
|
|
712
710
|
return t === null ? NaN : Math.sqrt(t);
|
|
713
711
|
})();
|
|
714
712
|
}
|
|
715
|
-
function
|
|
713
|
+
function Jt(e, t) {
|
|
716
714
|
return (() => {
|
|
717
715
|
if (Array.isArray(e)) {
|
|
718
716
|
if (typeof t == "number") return e[t];
|
|
@@ -723,7 +721,7 @@ function Ut(e, t) {
|
|
|
723
721
|
} else throw Error("Unsupported data type. The first argument (a) should be an array or an object.");
|
|
724
722
|
})();
|
|
725
723
|
}
|
|
726
|
-
function
|
|
724
|
+
function Yt(e, t, n) {
|
|
727
725
|
return (() => {
|
|
728
726
|
if (Array.isArray(e)) if (typeof t == "number" && t >= 0 && t < e.length) e[t] = n;
|
|
729
727
|
else throw Error("For arrays, the second argument (b) should be a number.");
|
|
@@ -733,89 +731,89 @@ function Wt(e, t, n) {
|
|
|
733
731
|
return e;
|
|
734
732
|
})();
|
|
735
733
|
}
|
|
736
|
-
function
|
|
734
|
+
function Xt(e, t) {
|
|
737
735
|
return (() => {
|
|
738
736
|
if (!t) throw Error("For arrays, the second argument should not be null or undefined");
|
|
739
737
|
return e.push(t), e;
|
|
740
738
|
})();
|
|
741
739
|
}
|
|
742
|
-
function
|
|
740
|
+
function Zt(e, t) {
|
|
743
741
|
return (() => {
|
|
744
742
|
if (!t) throw Error("For arrays, the second argument should not be null or undefined");
|
|
745
743
|
return e.unshift(t), e;
|
|
746
744
|
})();
|
|
747
745
|
}
|
|
748
|
-
function
|
|
746
|
+
function Qt(e) {
|
|
749
747
|
return e ? (() => {
|
|
750
748
|
if (!e) throw Error("the frist argument should not be null");
|
|
751
749
|
let t = /* @__PURE__ */ new Date(e * 1e3);
|
|
752
750
|
return `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")} ${String(t.getHours()).padStart(2, "0")}:${String(t.getMinutes()).padStart(2, "0")}:${String(t.getSeconds()).padStart(2, "0")}`;
|
|
753
751
|
})() : void 0;
|
|
754
752
|
}
|
|
755
|
-
function
|
|
753
|
+
function $t(e) {
|
|
756
754
|
return e ? C(e).unix() : void 0;
|
|
757
755
|
}
|
|
758
|
-
function
|
|
756
|
+
function en(e, t) {
|
|
759
757
|
return e ? C(e).format(t) : void 0;
|
|
760
758
|
}
|
|
761
|
-
function
|
|
759
|
+
function tn() {
|
|
762
760
|
return C().format("YYYY-MM-DD HH:MM:ss");
|
|
763
761
|
}
|
|
764
|
-
function
|
|
762
|
+
function nn() {
|
|
765
763
|
return C().format("YYYY-MM-DD");
|
|
766
764
|
}
|
|
767
|
-
function
|
|
765
|
+
function rn(e) {
|
|
768
766
|
return C(e).year();
|
|
769
767
|
}
|
|
770
|
-
function
|
|
768
|
+
function an(e) {
|
|
771
769
|
return C(e).month();
|
|
772
770
|
}
|
|
773
|
-
function
|
|
771
|
+
function on(e) {
|
|
774
772
|
return C(e).day();
|
|
775
773
|
}
|
|
776
|
-
function
|
|
774
|
+
function sn(e) {
|
|
777
775
|
return C(e).hour();
|
|
778
776
|
}
|
|
779
|
-
function
|
|
777
|
+
function cn(e) {
|
|
780
778
|
return C(e).minute();
|
|
781
779
|
}
|
|
782
|
-
function
|
|
780
|
+
function ln() {
|
|
783
781
|
return [M(C().startOf("week").toDate()), M(C().endOf("week").toDate())];
|
|
784
782
|
}
|
|
785
|
-
function
|
|
783
|
+
function un() {
|
|
786
784
|
return [M(C().subtract(1, "week").startOf("week").toDate()), M(C().subtract(1, "week").endOf("week").toDate())];
|
|
787
785
|
}
|
|
788
|
-
function
|
|
786
|
+
function dn() {
|
|
789
787
|
return [M(C().startOf("month").toDate()), M(C().endOf("month").toDate())];
|
|
790
788
|
}
|
|
791
|
-
function
|
|
789
|
+
function fn() {
|
|
792
790
|
return [M(C().subtract(1, "month").startOf("month").toDate()), M(C().subtract(1, "month").endOf("month").toDate())];
|
|
793
791
|
}
|
|
794
|
-
function
|
|
792
|
+
function pn() {
|
|
795
793
|
return [M(C().startOf("year").toDate()), M(C().endOf("year").toDate())];
|
|
796
794
|
}
|
|
797
|
-
function
|
|
795
|
+
function mn() {
|
|
798
796
|
return [M(C().subtract(1, "year").startOf("year").toDate()), M(C().subtract(1, "year").endOf("year").toDate())];
|
|
799
797
|
}
|
|
800
|
-
function
|
|
798
|
+
function hn() {
|
|
801
799
|
return (() => {
|
|
802
800
|
let e = Math.floor((C().month() + 3) / 3);
|
|
803
801
|
return [M(C().quarter(e).startOf("quarter").toDate()), M(C().quarter(e).endOf("quarter").toDate())];
|
|
804
802
|
})();
|
|
805
803
|
}
|
|
806
|
-
function
|
|
804
|
+
function gn() {
|
|
807
805
|
return (() => {
|
|
808
806
|
let e = Math.floor((C().month() + 3) / 3);
|
|
809
807
|
return [M(C().quarter(e - 1).startOf("quarter").toDate()), M(C().quarter(e - 1).endOf("quarter").toDate())];
|
|
810
808
|
})();
|
|
811
809
|
}
|
|
812
|
-
function
|
|
810
|
+
function _n(e, t) {
|
|
813
811
|
return (() => {
|
|
814
812
|
let [n, r] = t;
|
|
815
813
|
return e >= n && e <= r;
|
|
816
814
|
})();
|
|
817
815
|
}
|
|
818
|
-
function
|
|
816
|
+
function vn(e, t) {
|
|
819
817
|
return (() => {
|
|
820
818
|
let [n, r] = t, i = C(e, "HH:mm");
|
|
821
819
|
if (n > r) {
|
|
@@ -827,26 +825,26 @@ function pn(e, t) {
|
|
|
827
825
|
function M(e) {
|
|
828
826
|
return C(e).tz("America/Chicago").format("YYYY-MM-DD HH:mm:ss.SSSSSSSSS ZZ");
|
|
829
827
|
}
|
|
830
|
-
function
|
|
828
|
+
function yn(...e) {
|
|
831
829
|
return [...e];
|
|
832
830
|
}
|
|
833
|
-
function
|
|
831
|
+
function bn(...e) {
|
|
834
832
|
let t = (e.length - e.length % 2) / 2, n = {};
|
|
835
833
|
return Array(t).forEach((t) => {
|
|
836
834
|
let r = e[t * 2];
|
|
837
835
|
n[r] = e[t * 2 + 1];
|
|
838
836
|
}), n;
|
|
839
837
|
}
|
|
840
|
-
function
|
|
838
|
+
function xn(...e) {
|
|
841
839
|
return e = e.flat().filter((e) => e !== "" && e != null), e.length === 0 ? "" : e.map((e) => {
|
|
842
|
-
let t =
|
|
840
|
+
let t = En(e, e);
|
|
843
841
|
return t === "" ? new w(0).toNumber() : t;
|
|
844
|
-
}).reduce((e, t) =>
|
|
842
|
+
}).reduce((e, t) => wn(e, t) || w(0).toNumber(), new w(0).toNumber());
|
|
845
843
|
}
|
|
846
|
-
function
|
|
844
|
+
function Sn(e) {
|
|
847
845
|
return Array.isArray(e) ? e.length : "";
|
|
848
846
|
}
|
|
849
|
-
function
|
|
847
|
+
function Cn(...e) {
|
|
850
848
|
let t = e.flat().map((e) => Number(e)).filter((e) => Number.isFinite(e));
|
|
851
849
|
if (t.length < 2) return "";
|
|
852
850
|
let n = t.reduce((e, t) => e + t, 0) / t.length, r = t.reduce((e, t) => {
|
|
@@ -855,19 +853,19 @@ function vn(...e) {
|
|
|
855
853
|
}, 0) / (t.length - 1);
|
|
856
854
|
return Math.sqrt(r);
|
|
857
855
|
}
|
|
858
|
-
function
|
|
856
|
+
function wn(e, t) {
|
|
859
857
|
let n = new w(e).plus(new w(t)).toNumber();
|
|
860
858
|
return isNaN(n) ? "" : n;
|
|
861
859
|
}
|
|
862
|
-
function
|
|
860
|
+
function Tn(e, t) {
|
|
863
861
|
let n = new w(e).minus(new w(t)).toNumber();
|
|
864
862
|
return isNaN(n) ? "" : n;
|
|
865
863
|
}
|
|
866
|
-
function
|
|
864
|
+
function En(e, t) {
|
|
867
865
|
let n = new w(e).multipliedBy(new w(t)).toNumber();
|
|
868
866
|
return isNaN(n) ? "" : n;
|
|
869
867
|
}
|
|
870
|
-
function
|
|
868
|
+
function Dn(e, t) {
|
|
871
869
|
let n = new w(e).div(new w(t)).toNumber();
|
|
872
870
|
return isNaN(n) ? "" : n;
|
|
873
871
|
}
|
|
@@ -877,7 +875,7 @@ var N;
|
|
|
877
875
|
(function(e) {
|
|
878
876
|
e.AssignmentExpression = "AssignmentExpression", e.AssignmentPattern = "AssignmentPattern", e.ArrayExpression = "ArrayExpression", e.ArrayPattern = "ArrayPattern", e.ArrowFunctionExpression = "ArrowFunctionExpression", e.AwaitExpression = "AwaitExpression", e.BlockStatement = "BlockStatement", e.BinaryExpression = "BinaryExpression", e.BreakStatement = "BreakStatement", e.CallExpression = "CallExpression", e.CatchClause = "CatchClause", e.ChainExpression = "ChainExpression", e.ClassBody = "ClassBody", e.ClassDeclaration = "ClassDeclaration", e.ClassExpression = "ClassExpression", e.ConditionalExpression = "ConditionalExpression", e.ContinueStatement = "ContinueStatement", e.Decorator = "Decorator", e.DoWhileStatement = "DoWhileStatement", e.DebuggerStatement = "DebuggerStatement", e.EmptyStatement = "EmptyStatement", e.ExportAllDeclaration = "ExportAllDeclaration", e.ExportDefaultDeclaration = "ExportDefaultDeclaration", e.ExportNamedDeclaration = "ExportNamedDeclaration", e.ExportSpecifier = "ExportSpecifier", e.ExpressionStatement = "ExpressionStatement", e.ForStatement = "ForStatement", e.ForOfStatement = "ForOfStatement", e.ForInStatement = "ForInStatement", e.FunctionDeclaration = "FunctionDeclaration", e.FunctionExpression = "FunctionExpression", e.Identifier = "Identifier", e.IfStatement = "IfStatement", e.ImportAttribute = "ImportAttribute", e.ImportExpression = "ImportExpression", e.ImportDeclaration = "ImportDeclaration", e.ImportDefaultSpecifier = "ImportDefaultSpecifier", e.ImportNamespaceSpecifier = "ImportNamespaceSpecifier", e.ImportSpecifier = "ImportSpecifier", e.Literal = "Literal", e.LabeledStatement = "LabeledStatement", e.LogicalExpression = "LogicalExpression", e.MemberExpression = "MemberExpression", e.MetaProperty = "MetaProperty", e.MethodDefinition = "MethodDefinition", e.NewExpression = "NewExpression", e.ObjectExpression = "ObjectExpression", e.ObjectPattern = "ObjectPattern", e.Program = "Program", e.Property = "Property", e.PrivateIdentifier = "PrivateIdentifier", e.RestElement = "RestElement", e.ReturnStatement = "ReturnStatement", e.SequenceExpression = "SequenceExpression", e.SpreadElement = "SpreadElement", e.StaticBlock = "StaticBlock", e.Super = "Super", e.SwitchCase = "SwitchCase", e.SwitchStatement = "SwitchStatement", e.TaggedTemplateExpression = "TaggedTemplateExpression", e.TemplateElement = "TemplateElement", e.TemplateLiteral = "TemplateLiteral", e.ThisExpression = "ThisExpression", e.ThrowStatement = "ThrowStatement", e.TryStatement = "TryStatement", e.UnaryExpression = "UnaryExpression", e.UpdateExpression = "UpdateExpression", e.VariableDeclaration = "VariableDeclaration", e.VariableDeclarator = "VariableDeclarator", e.WhileStatement = "WhileStatement", e.WithStatement = "WithStatement", e.YieldExpression = "YieldExpression";
|
|
879
877
|
})(N ||= {});
|
|
880
|
-
var
|
|
878
|
+
var On = class {
|
|
881
879
|
constructor() {
|
|
882
880
|
this.attach = !1, this.comments = [], this.stack = [], this.leading = [], this.trailing = [];
|
|
883
881
|
}
|
|
@@ -957,7 +955,7 @@ var Cn = class {
|
|
|
957
955
|
visit(e, t) {
|
|
958
956
|
e.type === "LineComment" || e.type === "BlockComment" ? this.visitComment(e, t) : this.attach && this.visitNode(e, t);
|
|
959
957
|
}
|
|
960
|
-
},
|
|
958
|
+
}, kn = {
|
|
961
959
|
NonAsciiIdentifierStart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7C6\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB67\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDEC0-\uDEEB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,
|
|
962
960
|
NonAsciiIdentifierPart: /[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D3-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7C6\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB67\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDF00-\uDF1C\uDF27\uDF30-\uDF50\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD46\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E\uDC5F\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/
|
|
963
961
|
}, P = {
|
|
@@ -997,10 +995,10 @@ var Cn = class {
|
|
|
997
995
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
998
996
|
},
|
|
999
997
|
isIdentifierStart(e) {
|
|
1000
|
-
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 &&
|
|
998
|
+
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 && kn.NonAsciiIdentifierStart.test(P.fromCodePoint(e));
|
|
1001
999
|
},
|
|
1002
1000
|
isIdentifierPart(e) {
|
|
1003
|
-
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 &&
|
|
1001
|
+
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 && kn.NonAsciiIdentifierPart.test(P.fromCodePoint(e));
|
|
1004
1002
|
},
|
|
1005
1003
|
isDecimalDigit(e) {
|
|
1006
1004
|
return e >= 48 && e <= 57;
|
|
@@ -1024,379 +1022,379 @@ var Cn = class {
|
|
|
1024
1022
|
(function(e) {
|
|
1025
1023
|
e.JSXAttribute = "JSXAttribute", e.JSXClosingElement = "JSXClosingElement", e.JSXClosingFragment = "JSXClosingFragment", e.JSXElement = "JSXElement", e.JSXEmptyExpression = "JSXEmptyExpression", e.JSXExpressionContainer = "JSXExpressionContainer", e.JSXIdentifier = "JSXIdentifier", e.JSXMemberExpression = "JSXMemberExpression", e.JSXNamespacedName = "JSXNamespacedName", e.JSXOpeningElement = "JSXOpeningElement", e.JSXOpeningFragment = "JSXOpeningFragment", e.JSXSpreadAttribute = "JSXSpreadAttribute", e.JSXText = "JSXText";
|
|
1026
1024
|
})(F ||= {});
|
|
1027
|
-
var
|
|
1025
|
+
var An = class {
|
|
1028
1026
|
constructor(e) {
|
|
1029
1027
|
this.type = F.JSXClosingElement, this.name = e;
|
|
1030
1028
|
}
|
|
1031
|
-
},
|
|
1029
|
+
}, jn = class {
|
|
1032
1030
|
constructor() {
|
|
1033
1031
|
this.type = F.JSXClosingFragment;
|
|
1034
1032
|
}
|
|
1035
|
-
},
|
|
1033
|
+
}, Mn = class {
|
|
1036
1034
|
constructor(e, t, n) {
|
|
1037
1035
|
this.type = F.JSXElement, this.openingElement = e, this.children = t, this.closingElement = n;
|
|
1038
1036
|
}
|
|
1039
|
-
},
|
|
1037
|
+
}, Nn = class {
|
|
1040
1038
|
constructor() {
|
|
1041
1039
|
this.type = F.JSXEmptyExpression;
|
|
1042
1040
|
}
|
|
1043
|
-
},
|
|
1041
|
+
}, Pn = class {
|
|
1044
1042
|
constructor(e) {
|
|
1045
1043
|
this.type = F.JSXExpressionContainer, this.expression = e;
|
|
1046
1044
|
}
|
|
1047
|
-
},
|
|
1045
|
+
}, Fn = class {
|
|
1048
1046
|
constructor(e) {
|
|
1049
1047
|
this.type = F.JSXIdentifier, this.name = e;
|
|
1050
1048
|
}
|
|
1051
|
-
},
|
|
1049
|
+
}, In = class {
|
|
1052
1050
|
constructor(e, t) {
|
|
1053
1051
|
this.type = F.JSXMemberExpression, this.object = e, this.property = t;
|
|
1054
1052
|
}
|
|
1055
|
-
},
|
|
1053
|
+
}, Ln = class {
|
|
1056
1054
|
constructor(e, t) {
|
|
1057
1055
|
this.type = F.JSXAttribute, this.name = e, this.value = t;
|
|
1058
1056
|
}
|
|
1059
|
-
},
|
|
1057
|
+
}, Rn = class {
|
|
1060
1058
|
constructor(e, t) {
|
|
1061
1059
|
this.type = F.JSXNamespacedName, this.namespace = e, this.name = t;
|
|
1062
1060
|
}
|
|
1063
|
-
},
|
|
1061
|
+
}, zn = class {
|
|
1064
1062
|
constructor(e, t, n) {
|
|
1065
1063
|
this.type = F.JSXOpeningElement, this.name = e, this.selfClosing = t, this.attributes = n;
|
|
1066
1064
|
}
|
|
1067
|
-
},
|
|
1065
|
+
}, Bn = class {
|
|
1068
1066
|
constructor(e) {
|
|
1069
1067
|
this.type = F.JSXOpeningFragment, this.selfClosing = e;
|
|
1070
1068
|
}
|
|
1071
|
-
},
|
|
1069
|
+
}, Vn = class {
|
|
1072
1070
|
constructor(e) {
|
|
1073
1071
|
this.type = F.JSXSpreadAttribute, this.argument = e;
|
|
1074
1072
|
}
|
|
1075
|
-
},
|
|
1073
|
+
}, Hn = class {
|
|
1076
1074
|
constructor(e, t) {
|
|
1077
1075
|
this.type = F.JSXText, this.value = e, this.raw = t;
|
|
1078
1076
|
}
|
|
1079
|
-
},
|
|
1077
|
+
}, Un = class {
|
|
1080
1078
|
constructor(e) {
|
|
1081
1079
|
this.type = N.ArrayExpression, this.elements = e;
|
|
1082
1080
|
}
|
|
1083
|
-
},
|
|
1081
|
+
}, Wn = class {
|
|
1084
1082
|
constructor(e) {
|
|
1085
1083
|
this.type = N.ArrayPattern, this.elements = e;
|
|
1086
1084
|
}
|
|
1087
|
-
},
|
|
1085
|
+
}, Gn = class {
|
|
1088
1086
|
constructor(e, t, n, r) {
|
|
1089
1087
|
this.type = N.ArrowFunctionExpression, this.id = null, this.params = e, this.body = t, this.generator = !1, this.expression = n, this.async = r;
|
|
1090
1088
|
}
|
|
1091
|
-
},
|
|
1089
|
+
}, Kn = class {
|
|
1092
1090
|
constructor(e, t, n) {
|
|
1093
1091
|
this.type = N.AssignmentExpression, this.operator = e, this.left = t, this.right = n;
|
|
1094
1092
|
}
|
|
1095
|
-
},
|
|
1093
|
+
}, qn = class {
|
|
1096
1094
|
constructor(e, t) {
|
|
1097
1095
|
this.type = N.AssignmentPattern, this.left = e, this.right = t;
|
|
1098
1096
|
}
|
|
1099
|
-
},
|
|
1097
|
+
}, Jn = class {
|
|
1100
1098
|
constructor(e, t, n, r) {
|
|
1101
1099
|
this.type = N.FunctionDeclaration, this.id = e, this.params = t, this.body = n, this.generator = r, this.expression = !1, this.async = !0;
|
|
1102
1100
|
}
|
|
1103
|
-
},
|
|
1101
|
+
}, Yn = class {
|
|
1104
1102
|
constructor(e) {
|
|
1105
1103
|
this.type = N.AwaitExpression, this.argument = e;
|
|
1106
1104
|
}
|
|
1107
|
-
},
|
|
1105
|
+
}, Xn = class {
|
|
1108
1106
|
constructor(e, t, n) {
|
|
1109
1107
|
this.type = N.Literal, this.value = e, this.raw = t, this.bigint = n;
|
|
1110
1108
|
}
|
|
1111
|
-
},
|
|
1109
|
+
}, Zn = class {
|
|
1112
1110
|
constructor(e, t, n) {
|
|
1113
1111
|
this.type = N.BinaryExpression, this.operator = e, this.left = t, this.right = n;
|
|
1114
1112
|
}
|
|
1115
|
-
},
|
|
1113
|
+
}, Qn = class {
|
|
1116
1114
|
constructor(e) {
|
|
1117
1115
|
this.type = N.BlockStatement, this.body = e;
|
|
1118
1116
|
}
|
|
1119
|
-
},
|
|
1117
|
+
}, $n = class {
|
|
1120
1118
|
constructor(e) {
|
|
1121
1119
|
this.type = N.BreakStatement, this.label = e;
|
|
1122
1120
|
}
|
|
1123
|
-
},
|
|
1121
|
+
}, er = class {
|
|
1124
1122
|
constructor(e, t, n) {
|
|
1125
1123
|
this.type = N.CallExpression, this.callee = e, this.arguments = t, this.optional = n;
|
|
1126
1124
|
}
|
|
1127
|
-
},
|
|
1125
|
+
}, tr = class {
|
|
1128
1126
|
constructor(e, t) {
|
|
1129
1127
|
this.type = N.CatchClause, this.param = e, this.body = t;
|
|
1130
1128
|
}
|
|
1131
|
-
},
|
|
1129
|
+
}, nr = class {
|
|
1132
1130
|
constructor(e) {
|
|
1133
1131
|
this.type = N.ChainExpression, this.expression = e;
|
|
1134
1132
|
}
|
|
1135
|
-
},
|
|
1133
|
+
}, rr = class {
|
|
1136
1134
|
constructor(e) {
|
|
1137
1135
|
this.type = N.ClassBody, this.body = e;
|
|
1138
1136
|
}
|
|
1139
|
-
},
|
|
1137
|
+
}, ir = class {
|
|
1140
1138
|
constructor(e, t, n, r) {
|
|
1141
1139
|
this.type = N.ClassDeclaration, this.id = e, this.superClass = t, this.body = n, this.decorators = r;
|
|
1142
1140
|
}
|
|
1143
|
-
},
|
|
1141
|
+
}, ar = class {
|
|
1144
1142
|
constructor(e, t, n, r) {
|
|
1145
1143
|
this.type = N.ClassExpression, this.id = e, this.superClass = t, this.body = n, this.decorators = r;
|
|
1146
1144
|
}
|
|
1147
|
-
},
|
|
1145
|
+
}, or = class {
|
|
1148
1146
|
constructor(e, t, n) {
|
|
1149
1147
|
this.type = N.ConditionalExpression, this.test = e, this.consequent = t, this.alternate = n;
|
|
1150
1148
|
}
|
|
1151
|
-
},
|
|
1149
|
+
}, sr = class {
|
|
1152
1150
|
constructor(e) {
|
|
1153
1151
|
this.type = N.ContinueStatement, this.label = e;
|
|
1154
1152
|
}
|
|
1155
|
-
},
|
|
1153
|
+
}, cr = class {
|
|
1156
1154
|
constructor() {
|
|
1157
1155
|
this.type = N.DebuggerStatement;
|
|
1158
1156
|
}
|
|
1159
|
-
},
|
|
1157
|
+
}, lr = class {
|
|
1160
1158
|
constructor(e) {
|
|
1161
1159
|
this.type = N.Decorator, this.expression = e;
|
|
1162
1160
|
}
|
|
1163
|
-
},
|
|
1161
|
+
}, ur = class {
|
|
1164
1162
|
constructor(e, t) {
|
|
1165
1163
|
this.type = N.ExpressionStatement, this.expression = e, this.directive = t;
|
|
1166
1164
|
}
|
|
1167
|
-
},
|
|
1165
|
+
}, dr = class {
|
|
1168
1166
|
constructor(e, t) {
|
|
1169
1167
|
this.type = N.DoWhileStatement, this.body = e, this.test = t;
|
|
1170
1168
|
}
|
|
1171
|
-
},
|
|
1169
|
+
}, fr = class {
|
|
1172
1170
|
constructor() {
|
|
1173
1171
|
this.type = N.EmptyStatement;
|
|
1174
1172
|
}
|
|
1175
|
-
},
|
|
1173
|
+
}, pr = class {
|
|
1176
1174
|
constructor(e, t, n) {
|
|
1177
1175
|
this.type = N.ExportAllDeclaration, this.source = e, this.exported = t, this.assertions = n;
|
|
1178
1176
|
}
|
|
1179
|
-
},
|
|
1177
|
+
}, mr = class {
|
|
1180
1178
|
constructor(e) {
|
|
1181
1179
|
this.type = N.ExportDefaultDeclaration, this.declaration = e;
|
|
1182
1180
|
}
|
|
1183
|
-
},
|
|
1181
|
+
}, hr = class {
|
|
1184
1182
|
constructor(e, t, n, r) {
|
|
1185
1183
|
this.type = N.ExportNamedDeclaration, this.declaration = e, this.specifiers = t, this.source = n, this.assertions = r;
|
|
1186
1184
|
}
|
|
1187
|
-
},
|
|
1185
|
+
}, gr = class {
|
|
1188
1186
|
constructor(e, t) {
|
|
1189
1187
|
this.type = N.ExportSpecifier, this.exported = t, this.local = e;
|
|
1190
1188
|
}
|
|
1191
|
-
},
|
|
1189
|
+
}, _r = class {
|
|
1192
1190
|
constructor(e) {
|
|
1193
1191
|
this.type = N.ExpressionStatement, this.expression = e;
|
|
1194
1192
|
}
|
|
1195
|
-
},
|
|
1193
|
+
}, vr = class {
|
|
1196
1194
|
constructor(e, t, n) {
|
|
1197
1195
|
this.type = N.ForInStatement, this.left = e, this.right = t, this.body = n, this.each = !1;
|
|
1198
1196
|
}
|
|
1199
|
-
},
|
|
1197
|
+
}, yr = class {
|
|
1200
1198
|
constructor(e, t, n, r) {
|
|
1201
1199
|
this.type = N.ForOfStatement, this.await = r, this.left = e, this.right = t, this.body = n;
|
|
1202
1200
|
}
|
|
1203
|
-
},
|
|
1201
|
+
}, br = class {
|
|
1204
1202
|
constructor(e, t, n, r) {
|
|
1205
1203
|
this.type = N.ForStatement, this.init = e, this.test = t, this.update = n, this.body = r;
|
|
1206
1204
|
}
|
|
1207
|
-
},
|
|
1205
|
+
}, xr = class {
|
|
1208
1206
|
constructor(e, t, n, r) {
|
|
1209
1207
|
this.type = N.FunctionDeclaration, this.id = e, this.params = t, this.body = n, this.generator = r, this.expression = !1, this.async = !1;
|
|
1210
1208
|
}
|
|
1211
|
-
},
|
|
1209
|
+
}, I = class {
|
|
1212
1210
|
constructor(e, t, n, r, i) {
|
|
1213
1211
|
this.type = N.FunctionExpression, this.id = e, this.params = t, this.body = n, this.generator = r, this.expression = !1, this.async = i;
|
|
1214
1212
|
}
|
|
1215
|
-
},
|
|
1213
|
+
}, L = class {
|
|
1216
1214
|
constructor(e) {
|
|
1217
1215
|
this.type = N.Identifier, this.name = e;
|
|
1218
1216
|
}
|
|
1219
|
-
},
|
|
1217
|
+
}, Sr = class {
|
|
1220
1218
|
constructor(e, t, n) {
|
|
1221
1219
|
this.type = N.IfStatement, this.test = e, this.consequent = t, this.alternate = n;
|
|
1222
1220
|
}
|
|
1223
|
-
},
|
|
1221
|
+
}, Cr = class {
|
|
1224
1222
|
constructor(e, t) {
|
|
1225
1223
|
this.type = N.ImportAttribute, this.key = e, this.value = t;
|
|
1226
1224
|
}
|
|
1227
|
-
},
|
|
1225
|
+
}, wr = class {
|
|
1228
1226
|
constructor(e, t) {
|
|
1229
1227
|
this.type = N.ImportExpression, this.source = e, this.attributes = t;
|
|
1230
1228
|
}
|
|
1231
|
-
},
|
|
1229
|
+
}, Tr = class {
|
|
1232
1230
|
constructor(e, t, n) {
|
|
1233
1231
|
this.type = N.ImportDeclaration, this.specifiers = e, this.source = t, this.assertions = n;
|
|
1234
1232
|
}
|
|
1235
|
-
},
|
|
1233
|
+
}, Er = class {
|
|
1236
1234
|
constructor(e) {
|
|
1237
1235
|
this.type = N.ImportDefaultSpecifier, this.local = e;
|
|
1238
1236
|
}
|
|
1239
|
-
},
|
|
1237
|
+
}, Dr = class {
|
|
1240
1238
|
constructor(e) {
|
|
1241
1239
|
this.type = N.ImportNamespaceSpecifier, this.local = e;
|
|
1242
1240
|
}
|
|
1243
|
-
},
|
|
1241
|
+
}, Or = class {
|
|
1244
1242
|
constructor(e, t) {
|
|
1245
1243
|
this.type = N.ImportSpecifier, this.local = e, this.imported = t;
|
|
1246
1244
|
}
|
|
1247
|
-
},
|
|
1245
|
+
}, kr = class {
|
|
1248
1246
|
constructor(e, t) {
|
|
1249
1247
|
this.type = N.LabeledStatement, this.label = e, this.body = t;
|
|
1250
1248
|
}
|
|
1251
|
-
},
|
|
1249
|
+
}, R = class {
|
|
1252
1250
|
constructor(e, t) {
|
|
1253
1251
|
this.type = N.Literal, this.value = e, this.raw = t;
|
|
1254
1252
|
}
|
|
1255
|
-
},
|
|
1253
|
+
}, Ar = class {
|
|
1256
1254
|
constructor(e, t, n) {
|
|
1257
1255
|
this.type = N.LogicalExpression, this.operator = e, this.left = t, this.right = n;
|
|
1258
1256
|
}
|
|
1259
|
-
},
|
|
1257
|
+
}, jr = class {
|
|
1260
1258
|
constructor(e, t, n, r) {
|
|
1261
1259
|
this.type = N.MemberExpression, this.computed = e, this.object = t, this.property = n, this.optional = r;
|
|
1262
1260
|
}
|
|
1263
|
-
},
|
|
1261
|
+
}, Mr = class {
|
|
1264
1262
|
constructor(e, t) {
|
|
1265
1263
|
this.type = N.MetaProperty, this.meta = e, this.property = t;
|
|
1266
1264
|
}
|
|
1267
|
-
},
|
|
1265
|
+
}, Nr = class {
|
|
1268
1266
|
constructor(e, t, n, r, i, a) {
|
|
1269
1267
|
this.type = N.MethodDefinition, this.key = e, this.computed = t, this.value = n, this.kind = r, this.static = i, this.decorators = a;
|
|
1270
1268
|
}
|
|
1271
|
-
},
|
|
1269
|
+
}, Pr = class {
|
|
1272
1270
|
constructor(e) {
|
|
1273
1271
|
this.type = N.Program, this.body = e, this.sourceType = "module";
|
|
1274
1272
|
}
|
|
1275
|
-
},
|
|
1273
|
+
}, Fr = class {
|
|
1276
1274
|
constructor(e, t) {
|
|
1277
1275
|
this.type = N.NewExpression, this.callee = e, this.arguments = t;
|
|
1278
1276
|
}
|
|
1279
|
-
},
|
|
1277
|
+
}, Ir = class {
|
|
1280
1278
|
constructor(e) {
|
|
1281
1279
|
this.type = N.ObjectExpression, this.properties = e;
|
|
1282
1280
|
}
|
|
1283
|
-
},
|
|
1281
|
+
}, Lr = class {
|
|
1284
1282
|
constructor(e) {
|
|
1285
1283
|
this.type = N.ObjectPattern, this.properties = e;
|
|
1286
1284
|
}
|
|
1287
|
-
},
|
|
1285
|
+
}, Rr = class {
|
|
1288
1286
|
constructor(e) {
|
|
1289
1287
|
this.type = N.PrivateIdentifier, this.name = e;
|
|
1290
1288
|
}
|
|
1291
|
-
},
|
|
1289
|
+
}, zr = class {
|
|
1292
1290
|
constructor(e, t, n, r, i, a) {
|
|
1293
1291
|
this.type = N.Property, this.key = t, this.computed = n, this.value = r, this.kind = e, this.method = i, this.shorthand = a;
|
|
1294
1292
|
}
|
|
1295
|
-
},
|
|
1293
|
+
}, Br = class {
|
|
1296
1294
|
constructor(e, t, n, r, i) {
|
|
1297
1295
|
this.type = N.Property, this.key = e, this.computed = t, this.value = n, this.static = r, this.decorators = i;
|
|
1298
1296
|
}
|
|
1299
|
-
},
|
|
1297
|
+
}, Vr = class {
|
|
1300
1298
|
constructor(e, t, n, r) {
|
|
1301
1299
|
this.type = N.Literal, this.value = e, this.raw = t, this.regex = {
|
|
1302
1300
|
pattern: n,
|
|
1303
1301
|
flags: r
|
|
1304
1302
|
};
|
|
1305
1303
|
}
|
|
1306
|
-
},
|
|
1304
|
+
}, Hr = class {
|
|
1307
1305
|
constructor(e) {
|
|
1308
1306
|
this.type = N.RestElement, this.argument = e;
|
|
1309
1307
|
}
|
|
1310
|
-
},
|
|
1308
|
+
}, Ur = class {
|
|
1311
1309
|
constructor(e) {
|
|
1312
1310
|
this.type = N.ReturnStatement, this.argument = e;
|
|
1313
1311
|
}
|
|
1314
|
-
},
|
|
1312
|
+
}, Wr = class {
|
|
1315
1313
|
constructor(e) {
|
|
1316
1314
|
this.type = N.Program, this.body = e, this.sourceType = "script";
|
|
1317
1315
|
}
|
|
1318
|
-
},
|
|
1316
|
+
}, Gr = class {
|
|
1319
1317
|
constructor(e) {
|
|
1320
1318
|
this.type = N.SequenceExpression, this.expressions = e;
|
|
1321
1319
|
}
|
|
1322
|
-
},
|
|
1320
|
+
}, Kr = class {
|
|
1323
1321
|
constructor(e) {
|
|
1324
1322
|
this.type = N.SpreadElement, this.argument = e;
|
|
1325
1323
|
}
|
|
1326
|
-
},
|
|
1324
|
+
}, qr = class {
|
|
1327
1325
|
constructor(e) {
|
|
1328
1326
|
this.type = N.StaticBlock, this.body = e;
|
|
1329
1327
|
}
|
|
1330
|
-
},
|
|
1328
|
+
}, Jr = class {
|
|
1331
1329
|
constructor() {
|
|
1332
1330
|
this.type = N.Super;
|
|
1333
1331
|
}
|
|
1334
|
-
},
|
|
1332
|
+
}, Yr = class {
|
|
1335
1333
|
constructor(e, t) {
|
|
1336
1334
|
this.type = N.SwitchCase, this.test = e, this.consequent = t;
|
|
1337
1335
|
}
|
|
1338
|
-
},
|
|
1336
|
+
}, Xr = class {
|
|
1339
1337
|
constructor(e, t) {
|
|
1340
1338
|
this.type = N.SwitchStatement, this.discriminant = e, this.cases = t;
|
|
1341
1339
|
}
|
|
1342
|
-
},
|
|
1340
|
+
}, Zr = class {
|
|
1343
1341
|
constructor(e, t) {
|
|
1344
1342
|
this.type = N.TaggedTemplateExpression, this.tag = e, this.quasi = t;
|
|
1345
1343
|
}
|
|
1346
|
-
},
|
|
1344
|
+
}, Qr = class {
|
|
1347
1345
|
constructor(e, t) {
|
|
1348
1346
|
this.type = N.TemplateElement, this.value = e, this.tail = t;
|
|
1349
1347
|
}
|
|
1350
|
-
},
|
|
1348
|
+
}, $r = class {
|
|
1351
1349
|
constructor(e, t) {
|
|
1352
1350
|
this.type = N.TemplateLiteral, this.quasis = e, this.expressions = t;
|
|
1353
1351
|
}
|
|
1354
|
-
},
|
|
1352
|
+
}, ei = class {
|
|
1355
1353
|
constructor() {
|
|
1356
1354
|
this.type = N.ThisExpression;
|
|
1357
1355
|
}
|
|
1358
|
-
},
|
|
1356
|
+
}, ti = class {
|
|
1359
1357
|
constructor(e) {
|
|
1360
1358
|
this.type = N.ThrowStatement, this.argument = e;
|
|
1361
1359
|
}
|
|
1362
|
-
},
|
|
1360
|
+
}, ni = class {
|
|
1363
1361
|
constructor(e, t, n) {
|
|
1364
1362
|
this.type = N.TryStatement, this.block = e, this.handler = t, this.finalizer = n;
|
|
1365
1363
|
}
|
|
1366
|
-
},
|
|
1364
|
+
}, ri = class {
|
|
1367
1365
|
constructor(e, t) {
|
|
1368
1366
|
this.type = N.UnaryExpression, this.operator = e, this.argument = t, this.prefix = !0;
|
|
1369
1367
|
}
|
|
1370
|
-
},
|
|
1368
|
+
}, ii = class {
|
|
1371
1369
|
constructor(e, t, n) {
|
|
1372
1370
|
this.type = N.UpdateExpression, this.operator = e, this.argument = t, this.prefix = n;
|
|
1373
1371
|
}
|
|
1374
|
-
},
|
|
1372
|
+
}, z = class {
|
|
1375
1373
|
constructor(e, t) {
|
|
1376
1374
|
this.type = N.VariableDeclaration, this.declarations = e, this.kind = t;
|
|
1377
1375
|
}
|
|
1378
|
-
},
|
|
1376
|
+
}, ai = class {
|
|
1379
1377
|
constructor(e, t) {
|
|
1380
1378
|
this.type = N.VariableDeclarator, this.id = e, this.init = t;
|
|
1381
1379
|
}
|
|
1382
|
-
},
|
|
1380
|
+
}, oi = class {
|
|
1383
1381
|
constructor(e, t) {
|
|
1384
1382
|
this.type = N.WhileStatement, this.test = e, this.body = t;
|
|
1385
1383
|
}
|
|
1386
|
-
},
|
|
1384
|
+
}, si = class {
|
|
1387
1385
|
constructor(e, t) {
|
|
1388
1386
|
this.type = N.WithStatement, this.object = e, this.body = t;
|
|
1389
1387
|
}
|
|
1390
|
-
},
|
|
1388
|
+
}, ci = class {
|
|
1391
1389
|
constructor(e, t) {
|
|
1392
1390
|
this.type = N.YieldExpression, this.argument = e, this.delegate = t;
|
|
1393
1391
|
}
|
|
1394
1392
|
};
|
|
1395
|
-
function
|
|
1393
|
+
function B(e, t) {
|
|
1396
1394
|
/* istanbul ignore if */
|
|
1397
1395
|
if (!e) throw Error("ASSERT: " + t);
|
|
1398
1396
|
}
|
|
1399
|
-
var
|
|
1397
|
+
var li = class {
|
|
1400
1398
|
constructor() {
|
|
1401
1399
|
this.errors = [], this.tolerant = !1;
|
|
1402
1400
|
}
|
|
@@ -1430,7 +1428,7 @@ var ri = class {
|
|
|
1430
1428
|
if (this.tolerant) this.recordError(i);
|
|
1431
1429
|
else throw i;
|
|
1432
1430
|
}
|
|
1433
|
-
},
|
|
1431
|
+
}, V = {
|
|
1434
1432
|
AsyncFunctionInSingleStatementContext: "Async functions can only be declared at the top level or inside a block.",
|
|
1435
1433
|
BadImportCallArity: "Unexpected token",
|
|
1436
1434
|
BadGetterArity: "Getter must not have any formal parameters",
|
|
@@ -1504,13 +1502,13 @@ var ri = class {
|
|
|
1504
1502
|
UnknownLabel: "Undefined label '%0'",
|
|
1505
1503
|
UnterminatedRegExp: "Invalid regular expression: missing /"
|
|
1506
1504
|
};
|
|
1507
|
-
function
|
|
1505
|
+
function ui(e) {
|
|
1508
1506
|
return "0123456789abcdef".indexOf(e.toLowerCase());
|
|
1509
1507
|
}
|
|
1510
|
-
function
|
|
1508
|
+
function di(e) {
|
|
1511
1509
|
return "01234567".indexOf(e);
|
|
1512
1510
|
}
|
|
1513
|
-
var
|
|
1511
|
+
var fi = class {
|
|
1514
1512
|
constructor(e, t) {
|
|
1515
1513
|
this.source = e, this.errorHandler = t, this.trackComment = !1, this.isModule = !1, this.length = e.length, this.index = 0, this.lineNumber = e.length > 0 ? 1 : 0, this.lineStart = 0, this.curlyStack = [];
|
|
1516
1514
|
}
|
|
@@ -1528,10 +1526,10 @@ var oi = class {
|
|
|
1528
1526
|
eof() {
|
|
1529
1527
|
return this.index >= this.length;
|
|
1530
1528
|
}
|
|
1531
|
-
throwUnexpectedToken(e =
|
|
1529
|
+
throwUnexpectedToken(e = V.UnexpectedTokenIllegal) {
|
|
1532
1530
|
return this.errorHandler.throwError(this.index, this.lineNumber, this.index - this.lineStart + 1, e);
|
|
1533
1531
|
}
|
|
1534
|
-
tolerateUnexpectedToken(e =
|
|
1532
|
+
tolerateUnexpectedToken(e = V.UnexpectedTokenIllegal) {
|
|
1535
1533
|
this.errorHandler.tolerateError(this.index, this.lineNumber, this.index - this.lineStart + 1, e);
|
|
1536
1534
|
}
|
|
1537
1535
|
skipSingleLineComment(e) {
|
|
@@ -1702,14 +1700,14 @@ var oi = class {
|
|
|
1702
1700
|
}
|
|
1703
1701
|
scanHexEscape(e) {
|
|
1704
1702
|
let t = e === "u" ? 4 : 2, n = 0;
|
|
1705
|
-
for (let e = 0; e < t; ++e) if (!this.eof() && P.isHexDigit(this.source.charCodeAt(this.index))) n = n * 16 +
|
|
1703
|
+
for (let e = 0; e < t; ++e) if (!this.eof() && P.isHexDigit(this.source.charCodeAt(this.index))) n = n * 16 + ui(this.source[this.index++]);
|
|
1706
1704
|
else return null;
|
|
1707
1705
|
return String.fromCharCode(n);
|
|
1708
1706
|
}
|
|
1709
1707
|
tryToScanUnicodeCodePointEscape() {
|
|
1710
1708
|
let e = this.source[this.index], t = 0;
|
|
1711
1709
|
if (e === "}") return null;
|
|
1712
|
-
for (; !this.eof() && (e = this.source[this.index++], P.isHexDigit(e.charCodeAt(0)));) t = t * 16 +
|
|
1710
|
+
for (; !this.eof() && (e = this.source[this.index++], P.isHexDigit(e.charCodeAt(0)));) t = t * 16 + ui(e);
|
|
1713
1711
|
return t > 1114111 || e !== "}" ? null : P.fromCodePoint(t);
|
|
1714
1712
|
}
|
|
1715
1713
|
scanUnicodeCodePointEscape() {
|
|
@@ -1734,8 +1732,8 @@ var oi = class {
|
|
|
1734
1732
|
return t;
|
|
1735
1733
|
}
|
|
1736
1734
|
octalToDecimal(e) {
|
|
1737
|
-
let t = e !== "0", n =
|
|
1738
|
-
return !this.eof() && P.isOctalDigit(this.source.charCodeAt(this.index)) && (t = !0, n = n * 8 +
|
|
1735
|
+
let t = e !== "0", n = di(e);
|
|
1736
|
+
return !this.eof() && P.isOctalDigit(this.source.charCodeAt(this.index)) && (t = !0, n = n * 8 + di(this.source[this.index++]), "0123".indexOf(e) >= 0 && !this.eof() && P.isOctalDigit(this.source.charCodeAt(this.index)) && (n = n * 8 + di(this.source[this.index++]))), {
|
|
1739
1737
|
code: n,
|
|
1740
1738
|
octal: t
|
|
1741
1739
|
};
|
|
@@ -1744,7 +1742,7 @@ var oi = class {
|
|
|
1744
1742
|
let e, t = this.index, n = this.source.charCodeAt(t) === 92, r = n ? this.getComplexIdentifier() : this.getIdentifier();
|
|
1745
1743
|
if (e = r.length === 1 ? 3 : this.isKeyword(r) ? 4 : r === "null" ? 5 : r === "true" || r === "false" ? 1 : 3, e !== 3 && t + r.length !== this.index) {
|
|
1746
1744
|
let e = this.index;
|
|
1747
|
-
this.index = t, this.tolerateUnexpectedToken(
|
|
1745
|
+
this.index = t, this.tolerateUnexpectedToken(V.InvalidEscapedReservedWord), this.index = e;
|
|
1748
1746
|
}
|
|
1749
1747
|
return {
|
|
1750
1748
|
type: e,
|
|
@@ -1859,12 +1857,12 @@ var oi = class {
|
|
|
1859
1857
|
}
|
|
1860
1858
|
scanLiteralPart(e) {
|
|
1861
1859
|
let t = "";
|
|
1862
|
-
for (this.source[this.index] === "_" && this.throwUnexpectedToken(
|
|
1863
|
-
return this.source[this.index - 1] === "_" && this.throwUnexpectedToken(
|
|
1860
|
+
for (this.source[this.index] === "_" && this.throwUnexpectedToken(V.NumericSeperatorNotAllowedHere); this.source[this.index] && (e(this.source[this.index]) || this.source[this.index] === "_");) this.source[this.index] !== "_" && (t += this.source[this.index]), this.index++, this.source[this.index - 1] === "_" && this.source[this.index] === "_" && this.throwUnexpectedToken(V.NumericSeperatorOneUnderscore);
|
|
1861
|
+
return this.source[this.index - 1] === "_" && this.throwUnexpectedToken(V.NumericSeperatorNotAllowedHere), t;
|
|
1864
1862
|
}
|
|
1865
1863
|
scanNumericLiteral() {
|
|
1866
1864
|
let e = this.index, t = this.source[e];
|
|
1867
|
-
|
|
1865
|
+
B(P.isDecimalDigit(t.charCodeAt(0)) || t === ".", "Numeric literal must start with a decimal digit or a decimal point");
|
|
1868
1866
|
let n = "";
|
|
1869
1867
|
if (t !== ".") {
|
|
1870
1868
|
if (n = this.source[this.index++], t = this.source[this.index], n === "0") {
|
|
@@ -1894,7 +1892,7 @@ var oi = class {
|
|
|
1894
1892
|
}
|
|
1895
1893
|
scanStringLiteral() {
|
|
1896
1894
|
let e = this.index, t = this.source[e];
|
|
1897
|
-
|
|
1895
|
+
B(t === "'" || t === "\"", "String literal must starts with a quote"), ++this.index;
|
|
1898
1896
|
let n = !1, r = "";
|
|
1899
1897
|
for (; !this.eof();) {
|
|
1900
1898
|
let e = this.source[this.index++];
|
|
@@ -1911,7 +1909,7 @@ var oi = class {
|
|
|
1911
1909
|
break;
|
|
1912
1910
|
case "x":
|
|
1913
1911
|
let t = this.scanHexEscape(e);
|
|
1914
|
-
t === null && this.throwUnexpectedToken(
|
|
1912
|
+
t === null && this.throwUnexpectedToken(V.InvalidHexEscapeSequence), r += t;
|
|
1915
1913
|
break;
|
|
1916
1914
|
case "n":
|
|
1917
1915
|
r += "\n";
|
|
@@ -2027,12 +2025,12 @@ var oi = class {
|
|
|
2027
2025
|
let n = e;
|
|
2028
2026
|
t.indexOf("u") >= 0 && (n = n.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g, (e, t, n) => {
|
|
2029
2027
|
let r = parseInt(t || n, 16);
|
|
2030
|
-
return r > 1114111 && this.throwUnexpectedToken(
|
|
2028
|
+
return r > 1114111 && this.throwUnexpectedToken(V.InvalidRegExp), r <= 65535 ? String.fromCharCode(r) : "";
|
|
2031
2029
|
}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, ""));
|
|
2032
2030
|
try {
|
|
2033
2031
|
RegExp(n);
|
|
2034
2032
|
} catch {
|
|
2035
|
-
this.throwUnexpectedToken(
|
|
2033
|
+
this.throwUnexpectedToken(V.InvalidRegExp);
|
|
2036
2034
|
}
|
|
2037
2035
|
try {
|
|
2038
2036
|
return new RegExp(e, t);
|
|
@@ -2043,16 +2041,16 @@ var oi = class {
|
|
|
2043
2041
|
}
|
|
2044
2042
|
scanRegExpBody() {
|
|
2045
2043
|
let e = this.source[this.index];
|
|
2046
|
-
|
|
2044
|
+
B(e === "/", "Regular expression literal must start with a slash");
|
|
2047
2045
|
let t = this.source[this.index++], n = !1, r = !1;
|
|
2048
|
-
for (; !this.eof();) if (e = this.source[this.index++], t += e, e === "\\") e = this.source[this.index++], P.isLineTerminator(e.charCodeAt(0)) && this.throwUnexpectedToken(
|
|
2049
|
-
else if (P.isLineTerminator(e.charCodeAt(0))) this.throwUnexpectedToken(
|
|
2046
|
+
for (; !this.eof();) if (e = this.source[this.index++], t += e, e === "\\") e = this.source[this.index++], P.isLineTerminator(e.charCodeAt(0)) && this.throwUnexpectedToken(V.UnterminatedRegExp), t += e;
|
|
2047
|
+
else if (P.isLineTerminator(e.charCodeAt(0))) this.throwUnexpectedToken(V.UnterminatedRegExp);
|
|
2050
2048
|
else if (n) e === "]" && (n = !1);
|
|
2051
2049
|
else if (e === "/") {
|
|
2052
2050
|
r = !0;
|
|
2053
2051
|
break;
|
|
2054
2052
|
} else e === "[" && (n = !0);
|
|
2055
|
-
return r || this.throwUnexpectedToken(
|
|
2053
|
+
return r || this.throwUnexpectedToken(V.UnterminatedRegExp), t.substr(1, t.length - 2);
|
|
2056
2054
|
}
|
|
2057
2055
|
scanRegExpFlags() {
|
|
2058
2056
|
let e = "", t = "";
|
|
@@ -2096,9 +2094,9 @@ var oi = class {
|
|
|
2096
2094
|
let e = this.source.charCodeAt(this.index);
|
|
2097
2095
|
return P.isIdentifierStart(e) ? this.scanIdentifier() : e === 40 || e === 41 || e === 59 ? this.scanPunctuator() : e === 39 || e === 34 ? this.scanStringLiteral() : e === 46 ? P.isDecimalDigit(this.source.charCodeAt(this.index + 1)) ? this.scanNumericLiteral() : this.scanPunctuator() : P.isDecimalDigit(e) ? this.scanNumericLiteral() : e === 96 || e === 125 && this.curlyStack[this.curlyStack.length - 1] === "${" ? this.scanTemplate() : e >= 55296 && e < 57343 && P.isIdentifierStart(this.codePointAt(this.index)) ? this.scanIdentifier() : this.scanPunctuator();
|
|
2098
2096
|
}
|
|
2099
|
-
},
|
|
2100
|
-
|
|
2101
|
-
var
|
|
2097
|
+
}, H = {};
|
|
2098
|
+
H[1] = "Boolean", H[2] = "<end>", H[3] = "Identifier", H[4] = "Keyword", H[5] = "Null", H[6] = "Numeric", H[7] = "Punctuator", H[8] = "String", H[9] = "RegularExpression", H[10] = "Template";
|
|
2099
|
+
var U = "ArrowParameterPlaceHolder", pi = class {
|
|
2102
2100
|
constructor(e, t = {}, n) {
|
|
2103
2101
|
this.config = {
|
|
2104
2102
|
range: typeof t.range == "boolean" && t.range,
|
|
@@ -2107,7 +2105,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2107
2105
|
tokens: typeof t.tokens == "boolean" && t.tokens,
|
|
2108
2106
|
comment: typeof t.comment == "boolean" && t.comment,
|
|
2109
2107
|
tolerant: typeof t.tolerant == "boolean" && t.tolerant
|
|
2110
|
-
}, this.config.loc && t.source && t.source !== null && (this.config.source = String(t.source)), this.delegate = n, this.errorHandler = new
|
|
2108
|
+
}, this.config.loc && t.source && t.source !== null && (this.config.source = String(t.source)), this.delegate = n, this.errorHandler = new li(), this.errorHandler.tolerant = this.config.tolerant == 1, this.scanner = new fi(e, this.errorHandler), this.scanner.trackComment = this.config.comment == 1, this.operatorPrecedence = {
|
|
2111
2109
|
")": 0,
|
|
2112
2110
|
";": 0,
|
|
2113
2111
|
",": 0,
|
|
@@ -2175,16 +2173,16 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2175
2173
|
};
|
|
2176
2174
|
}
|
|
2177
2175
|
throwError(e, ...t) {
|
|
2178
|
-
let n = t.slice(), r = e.replace(/%(\d)/g, (e, t) => (
|
|
2176
|
+
let n = t.slice(), r = e.replace(/%(\d)/g, (e, t) => (B(t < n.length, "Message reference must be in range"), n[t])), i = this.lastMarker.index, a = this.lastMarker.line, o = this.lastMarker.column + 1;
|
|
2179
2177
|
throw this.errorHandler.createError(i, a, o, r);
|
|
2180
2178
|
}
|
|
2181
2179
|
tolerateError(e, ...t) {
|
|
2182
|
-
let n = t.slice(), r = e.replace(/%(\d)/g, (e, t) => (
|
|
2180
|
+
let n = t.slice(), r = e.replace(/%(\d)/g, (e, t) => (B(t < n.length, "Message reference must be in range"), n[t])), i = this.lastMarker.index, a = this.scanner.lineNumber, o = this.lastMarker.column + 1;
|
|
2183
2181
|
this.errorHandler.tolerateError(i, a, o, r);
|
|
2184
2182
|
}
|
|
2185
2183
|
unexpectedTokenError(e, t) {
|
|
2186
|
-
let n = t ||
|
|
2187
|
-
if (e ? (t || (n = e.type === 2 ?
|
|
2184
|
+
let n = t || V.UnexpectedToken, r;
|
|
2185
|
+
if (e ? (t || (n = e.type === 2 ? V.UnexpectedEOS : e.type === 3 ? V.UnexpectedIdentifier : e.type === 6 ? V.UnexpectedNumber : e.type === 8 ? V.UnexpectedString : e.type === 10 ? V.UnexpectedTemplate : V.UnexpectedToken, e.type === 4 && (this.scanner.isFutureReservedWord(e.value) ? n = V.UnexpectedReserved : this.context.strict && this.scanner.isStrictModeReservedWord(e.value) && (n = V.StrictReservedWord))), r = e.value) : r = "ILLEGAL", n = n.replace("%0", r), e && typeof e.lineNumber == "number") {
|
|
2188
2186
|
let t = e.start, r = e.lineNumber, i = this.lastMarker.index - this.lastMarker.column, a = e.start - i + 1;
|
|
2189
2187
|
return this.errorHandler.createError(t, r, a, n);
|
|
2190
2188
|
} else {
|
|
@@ -2199,7 +2197,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2199
2197
|
this.errorHandler.tolerate(this.unexpectedTokenError(e, t));
|
|
2200
2198
|
}
|
|
2201
2199
|
tolerateInvalidLoopStatement() {
|
|
2202
|
-
(this.matchKeyword("class") || this.matchKeyword("function")) && this.tolerateError(
|
|
2200
|
+
(this.matchKeyword("class") || this.matchKeyword("function")) && this.tolerateError(V.UnexpectedToken, this.lookahead);
|
|
2203
2201
|
}
|
|
2204
2202
|
collectComments() {
|
|
2205
2203
|
if (!this.config.comment) this.scanner.scanComments();
|
|
@@ -2232,7 +2230,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2232
2230
|
}
|
|
2233
2231
|
convertToken(e) {
|
|
2234
2232
|
let t = {
|
|
2235
|
-
type:
|
|
2233
|
+
type: H[e.type],
|
|
2236
2234
|
value: this.getTokenRaw(e)
|
|
2237
2235
|
};
|
|
2238
2236
|
return this.config.range && (t.range = [e.start, e.end]), this.config.loc && (t.loc = {
|
|
@@ -2309,7 +2307,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2309
2307
|
expectCommaSeparator() {
|
|
2310
2308
|
if (this.config.tolerant) {
|
|
2311
2309
|
let e = this.lookahead;
|
|
2312
|
-
e.type === 7 && e.value === "," ? this.nextToken() : e.type === 7 && e.value === ";" ? (this.nextToken(), this.tolerateUnexpectedToken(e)) : this.tolerateUnexpectedToken(e,
|
|
2310
|
+
e.type === 7 && e.value === "," ? this.nextToken() : e.type === 7 && e.value === ";" ? (this.nextToken(), this.tolerateUnexpectedToken(e)) : this.tolerateUnexpectedToken(e, V.UnexpectedToken);
|
|
2313
2311
|
} else this.expect(",");
|
|
2314
2312
|
}
|
|
2315
2313
|
expectKeyword(e) {
|
|
@@ -2349,17 +2347,17 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2349
2347
|
let e = this.createNode(), t, n, r;
|
|
2350
2348
|
switch (this.lookahead.type) {
|
|
2351
2349
|
case 3:
|
|
2352
|
-
(this.context.isModule || this.context.isAsync) && this.lookahead.value === "await" && this.tolerateUnexpectedToken(this.lookahead), t = this.matchAsyncFunction() ? this.parseFunctionExpression() : this.finalize(e, new
|
|
2350
|
+
(this.context.isModule || this.context.isAsync) && this.lookahead.value === "await" && this.tolerateUnexpectedToken(this.lookahead), t = this.matchAsyncFunction() ? this.parseFunctionExpression() : this.finalize(e, new L(this.nextToken().value));
|
|
2353
2351
|
break;
|
|
2354
2352
|
case 6:
|
|
2355
2353
|
case 8:
|
|
2356
|
-
this.context.strict && this.lookahead.octal && this.tolerateUnexpectedToken(this.lookahead,
|
|
2354
|
+
this.context.strict && this.lookahead.octal && this.tolerateUnexpectedToken(this.lookahead, V.StrictOctalLiteral), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, n = this.nextToken(), r = this.getTokenRaw(n), t = typeof n.value == "bigint" ? this.finalize(e, new Xn(n.value, r, n.value.toString())) : this.finalize(e, new R(n.value, r));
|
|
2357
2355
|
break;
|
|
2358
2356
|
case 1:
|
|
2359
|
-
this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, n = this.nextToken(), r = this.getTokenRaw(n), t = this.finalize(e, new
|
|
2357
|
+
this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, n = this.nextToken(), r = this.getTokenRaw(n), t = this.finalize(e, new R(n.value === "true", r));
|
|
2360
2358
|
break;
|
|
2361
2359
|
case 5:
|
|
2362
|
-
this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, n = this.nextToken(), r = this.getTokenRaw(n), t = this.finalize(e, new
|
|
2360
|
+
this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, n = this.nextToken(), r = this.getTokenRaw(n), t = this.finalize(e, new R(null, r));
|
|
2363
2361
|
break;
|
|
2364
2362
|
case 10:
|
|
2365
2363
|
t = this.parseTemplateLiteral({ isTagged: !1 });
|
|
@@ -2377,20 +2375,20 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2377
2375
|
break;
|
|
2378
2376
|
case "/":
|
|
2379
2377
|
case "/=":
|
|
2380
|
-
this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, this.scanner.index = this.startMarker.index, n = this.nextRegexToken(), r = this.getTokenRaw(n), t = this.finalize(e, new
|
|
2378
|
+
this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, this.scanner.index = this.startMarker.index, n = this.nextRegexToken(), r = this.getTokenRaw(n), t = this.finalize(e, new Vr(n.regex, r, n.pattern, n.flags));
|
|
2381
2379
|
break;
|
|
2382
2380
|
case "#":
|
|
2383
|
-
this.nextToken(), t = this.finalize(e, new
|
|
2381
|
+
this.nextToken(), t = this.finalize(e, new Rr(this.nextToken().value));
|
|
2384
2382
|
break;
|
|
2385
2383
|
case "@":
|
|
2386
2384
|
let i = this.parseDecorators();
|
|
2387
|
-
this.context.decorators = i, this.parsePrimaryExpression(), this.context.decorators = null, t = this.finalize(e, new
|
|
2385
|
+
this.context.decorators = i, this.parsePrimaryExpression(), this.context.decorators = null, t = this.finalize(e, new Rr(this.nextToken().value));
|
|
2388
2386
|
break;
|
|
2389
2387
|
default: t = this.throwUnexpectedToken(this.nextToken());
|
|
2390
2388
|
}
|
|
2391
2389
|
break;
|
|
2392
2390
|
case 4:
|
|
2393
|
-
!this.context.strict && this.context.allowYield && this.matchKeyword("yield") ? t = this.parseIdentifierName() : !this.context.strict && this.matchKeyword("let") ? t = this.finalize(e, new
|
|
2391
|
+
!this.context.strict && this.context.allowYield && this.matchKeyword("yield") ? t = this.parseIdentifierName() : !this.context.strict && this.matchKeyword("let") ? t = this.finalize(e, new L(this.nextToken().value)) : (this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, this.matchKeyword("function") ? t = this.parseFunctionExpression() : this.matchKeyword("this") ? (this.nextToken(), t = this.finalize(e, new ei())) : this.matchKeyword("class") ? t = this.parseClassExpression() : this.matchKeyword("new") ? t = this.parseNewExpression() : this.matchImportCall() ? t = this.parseImportCall() : this.matchImportMeta() ? (this.context.isModule || this.tolerateUnexpectedToken(this.lookahead, V.CannotUseImportMetaOutsideAModule), t = this.parseImportMeta()) : t = this.throwUnexpectedToken(this.nextToken()));
|
|
2394
2392
|
break;
|
|
2395
2393
|
default: t = this.throwUnexpectedToken(this.nextToken());
|
|
2396
2394
|
}
|
|
@@ -2400,7 +2398,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2400
2398
|
let e = this.createNode();
|
|
2401
2399
|
this.expect("...");
|
|
2402
2400
|
let t = this.inheritCoverGrammar(this.parseAssignmentExpression);
|
|
2403
|
-
return this.finalize(e, new
|
|
2401
|
+
return this.finalize(e, new Kr(t));
|
|
2404
2402
|
}
|
|
2405
2403
|
parseArrayInitializer() {
|
|
2406
2404
|
let e = this.createNode(), t = [];
|
|
@@ -2409,7 +2407,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2409
2407
|
let e = this.parseSpreadElement();
|
|
2410
2408
|
this.match("]") || (this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1, this.expect(",")), t.push(e);
|
|
2411
2409
|
} else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)), this.match("]") || this.expect(",");
|
|
2412
|
-
return this.expect("]"), this.finalize(e, new
|
|
2410
|
+
return this.expect("]"), this.finalize(e, new Un(t));
|
|
2413
2411
|
}
|
|
2414
2412
|
parsePropertyMethod(e) {
|
|
2415
2413
|
this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1;
|
|
@@ -2422,28 +2420,28 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2422
2420
|
let t = this.createNode(), n = this.context.allowYield;
|
|
2423
2421
|
this.context.allowYield = !0;
|
|
2424
2422
|
let r = this.parseFormalParameters(), i = this.parsePropertyMethod(r);
|
|
2425
|
-
return this.context.allowYield = n, this.finalize(t, new
|
|
2423
|
+
return this.context.allowYield = n, this.finalize(t, new I(null, r.params, i, e, !1));
|
|
2426
2424
|
}
|
|
2427
2425
|
parsePropertyMethodAsyncFunction(e) {
|
|
2428
2426
|
let t = this.createNode(), n = this.context.allowYield, r = this.context.isAsync;
|
|
2429
2427
|
this.context.allowYield = !1, this.context.isAsync = !0;
|
|
2430
2428
|
let i = this.parseFormalParameters(), a = this.parsePropertyMethod(i);
|
|
2431
|
-
return this.context.allowYield = n, this.context.isAsync = r, this.finalize(t, new
|
|
2429
|
+
return this.context.allowYield = n, this.context.isAsync = r, this.finalize(t, new I(null, i.params, a, e, !0));
|
|
2432
2430
|
}
|
|
2433
2431
|
parseObjectPropertyKey(e = !1) {
|
|
2434
2432
|
let t = this.createNode(), n = this.nextToken(), r;
|
|
2435
2433
|
switch (n.type) {
|
|
2436
2434
|
case 8:
|
|
2437
2435
|
case 6:
|
|
2438
|
-
this.context.strict && n.octal && this.tolerateUnexpectedToken(n,
|
|
2436
|
+
this.context.strict && n.octal && this.tolerateUnexpectedToken(n, V.StrictOctalLiteral);
|
|
2439
2437
|
let i = this.getTokenRaw(n);
|
|
2440
|
-
r = typeof n.value == "bigint" ? this.finalize(t, new
|
|
2438
|
+
r = typeof n.value == "bigint" ? this.finalize(t, new Xn(n.value, i, n.value.toString())) : this.finalize(t, new R(n.value, i));
|
|
2441
2439
|
break;
|
|
2442
2440
|
case 3:
|
|
2443
2441
|
case 1:
|
|
2444
2442
|
case 5:
|
|
2445
2443
|
case 4:
|
|
2446
|
-
r = this.finalize(t, e ? new
|
|
2444
|
+
r = this.finalize(t, e ? new Rr(n.value) : new L(n.value));
|
|
2447
2445
|
break;
|
|
2448
2446
|
case 7:
|
|
2449
2447
|
n.value === "[" ? (r = this.isolateCoverGrammar(this.parseAssignmentExpression), this.expect("]")) : r = this.throwUnexpectedToken(n);
|
|
@@ -2459,23 +2457,23 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2459
2457
|
let t = this.createNode(), n = this.lookahead, r, i = null, a = null, o = !1, s = !1, c = !1, l = !1, u = !1;
|
|
2460
2458
|
if (n.type === 3) {
|
|
2461
2459
|
let e = n.value;
|
|
2462
|
-
this.nextToken(), o = this.match("["), l = !this.hasLineTerminator && e === "async" && !this.match(":") && !this.match("(") && !this.match(","), u = this.match("*"), u && this.nextToken(), i = l ? this.parseObjectPropertyKey() : this.finalize(t, new
|
|
2460
|
+
this.nextToken(), o = this.match("["), l = !this.hasLineTerminator && e === "async" && !this.match(":") && !this.match("(") && !this.match(","), u = this.match("*"), u && this.nextToken(), i = l ? this.parseObjectPropertyKey() : this.finalize(t, new L(e));
|
|
2463
2461
|
} else this.match("*") ? this.nextToken() : (o = this.match("["), i = this.parseObjectPropertyKey());
|
|
2464
2462
|
let d = this.qualifiedPropertyName(this.lookahead);
|
|
2465
2463
|
if (n.type === 3 && !l && n.value === "get" && d) r = "get", o = this.match("["), i = this.parseObjectPropertyKey(), this.context.allowYield = !1, a = this.parseGetterMethod();
|
|
2466
2464
|
else if (n.type === 3 && !l && n.value === "set" && d) r = "set", o = this.match("["), i = this.parseObjectPropertyKey(), a = this.parseSetterMethod();
|
|
2467
2465
|
else if (n.type === 7 && n.value === "*" && d) r = "init", o = this.match("["), i = this.parseObjectPropertyKey(), a = this.parseGeneratorMethod(!1), s = !0;
|
|
2468
|
-
else if (i || this.throwUnexpectedToken(this.lookahead), r = "init", this.match(":") && !l) !o && this.isPropertyKey(i, "__proto__") && (e.value && this.tolerateError(
|
|
2466
|
+
else if (i || this.throwUnexpectedToken(this.lookahead), r = "init", this.match(":") && !l) !o && this.isPropertyKey(i, "__proto__") && (e.value && this.tolerateError(V.DuplicateProtoProperty), e.value = !0), this.nextToken(), a = this.inheritCoverGrammar(this.parseAssignmentExpression);
|
|
2469
2467
|
else if (this.match("(")) a = l ? this.parsePropertyMethodAsyncFunction(u) : this.parsePropertyMethodFunction(u), s = !0;
|
|
2470
2468
|
else if (n.type === 3) {
|
|
2471
|
-
let e = this.finalize(t, new
|
|
2469
|
+
let e = this.finalize(t, new L(n.value));
|
|
2472
2470
|
if (this.match("=")) {
|
|
2473
2471
|
this.context.firstCoverInitializedNameError = this.lookahead, this.nextToken(), c = !0;
|
|
2474
2472
|
let n = this.isolateCoverGrammar(this.parseAssignmentExpression);
|
|
2475
|
-
a = this.finalize(t, new
|
|
2473
|
+
a = this.finalize(t, new qn(e, n));
|
|
2476
2474
|
} else c = !0, a = e;
|
|
2477
2475
|
} else this.throwUnexpectedToken(this.nextToken());
|
|
2478
|
-
return this.finalize(t, new
|
|
2476
|
+
return this.finalize(t, new zr(r, i, o, a, s, c));
|
|
2479
2477
|
}
|
|
2480
2478
|
parseObjectInitializer() {
|
|
2481
2479
|
let e = this.createNode();
|
|
@@ -2485,23 +2483,23 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2485
2483
|
let e = this.match("...") ? this.parseSpreadElement() : this.parseObjectProperty(n);
|
|
2486
2484
|
t.push(e), !this.match("}") && (!e.method || this.match(",")) && this.expectCommaSeparator();
|
|
2487
2485
|
}
|
|
2488
|
-
return this.expect("}"), this.finalize(e, new
|
|
2486
|
+
return this.expect("}"), this.finalize(e, new Ir(t));
|
|
2489
2487
|
}
|
|
2490
2488
|
throwTemplateLiteralEarlyErrors(e) {
|
|
2491
2489
|
switch (e.notEscapeSequenceHead) {
|
|
2492
|
-
case "u": return this.throwUnexpectedToken(e,
|
|
2493
|
-
case "x": return this.throwUnexpectedToken(e,
|
|
2490
|
+
case "u": return this.throwUnexpectedToken(e, V.InvalidUnicodeEscapeSequence);
|
|
2491
|
+
case "x": return this.throwUnexpectedToken(e, V.InvalidHexEscapeSequence);
|
|
2494
2492
|
case "8":
|
|
2495
|
-
case "9": return this.throwUnexpectedToken(e,
|
|
2496
|
-
default: return this.throwUnexpectedToken(e,
|
|
2493
|
+
case "9": return this.throwUnexpectedToken(e, V.TemplateEscape89);
|
|
2494
|
+
default: return this.throwUnexpectedToken(e, V.TemplateOctalLiteral);
|
|
2497
2495
|
}
|
|
2498
2496
|
}
|
|
2499
2497
|
parseTemplateHead(e) {
|
|
2500
|
-
|
|
2498
|
+
B(this.lookahead.head, "Template literal must start with a template head");
|
|
2501
2499
|
let t = this.createNode(), n = this.nextToken();
|
|
2502
2500
|
!e.isTagged && n.notEscapeSequenceHead !== null && this.throwTemplateLiteralEarlyErrors(n);
|
|
2503
2501
|
let r = n.value, i = n.cooked;
|
|
2504
|
-
return this.finalize(t, new
|
|
2502
|
+
return this.finalize(t, new Qr({
|
|
2505
2503
|
raw: r,
|
|
2506
2504
|
cooked: i
|
|
2507
2505
|
}, n.tail));
|
|
@@ -2511,7 +2509,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2511
2509
|
let t = this.createNode(), n = this.nextToken();
|
|
2512
2510
|
!e.isTagged && n.notEscapeSequenceHead !== null && this.throwTemplateLiteralEarlyErrors(n);
|
|
2513
2511
|
let r = n.value, i = n.cooked;
|
|
2514
|
-
return this.finalize(t, new
|
|
2512
|
+
return this.finalize(t, new Qr({
|
|
2515
2513
|
raw: r,
|
|
2516
2514
|
cooked: i
|
|
2517
2515
|
}, n.tail));
|
|
@@ -2519,7 +2517,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2519
2517
|
parseTemplateLiteral(e) {
|
|
2520
2518
|
let t = this.createNode(), n = [], r = [], i = this.parseTemplateHead(e);
|
|
2521
2519
|
for (r.push(i); !i.tail;) n.push(this.parseExpression()), i = this.parseTemplateElement(e), r.push(i);
|
|
2522
|
-
return this.finalize(t, new
|
|
2520
|
+
return this.finalize(t, new $r(r, n));
|
|
2523
2521
|
}
|
|
2524
2522
|
reinterpretExpressionAsPattern(e) {
|
|
2525
2523
|
switch (e.type) {
|
|
@@ -2549,14 +2547,14 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2549
2547
|
parseGroupExpression() {
|
|
2550
2548
|
let e;
|
|
2551
2549
|
if (this.expect("("), this.match(")")) this.nextToken(), this.match("=>") || this.expect("=>"), e = {
|
|
2552
|
-
type:
|
|
2550
|
+
type: U,
|
|
2553
2551
|
params: [],
|
|
2554
2552
|
async: !1
|
|
2555
2553
|
};
|
|
2556
2554
|
else {
|
|
2557
2555
|
let t = this.lookahead, n = [];
|
|
2558
2556
|
if (this.match("...")) e = this.parseRestElement(n), this.expect(")"), this.match("=>") || this.expect("=>"), e = {
|
|
2559
|
-
type:
|
|
2557
|
+
type: U,
|
|
2560
2558
|
params: [e],
|
|
2561
2559
|
async: !1
|
|
2562
2560
|
};
|
|
@@ -2569,7 +2567,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2569
2567
|
this.nextToken();
|
|
2570
2568
|
for (let e = 0; e < i.length; e++) this.reinterpretExpressionAsPattern(i[e]);
|
|
2571
2569
|
r = !0, e = {
|
|
2572
|
-
type:
|
|
2570
|
+
type: U,
|
|
2573
2571
|
params: i,
|
|
2574
2572
|
async: !1
|
|
2575
2573
|
};
|
|
@@ -2577,25 +2575,25 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2577
2575
|
this.context.isBindingElement || this.throwUnexpectedToken(this.lookahead), i.push(this.parseRestElement(n)), this.expect(")"), this.match("=>") || this.expect("=>"), this.context.isBindingElement = !1;
|
|
2578
2576
|
for (let e = 0; e < i.length; e++) this.reinterpretExpressionAsPattern(i[e]);
|
|
2579
2577
|
r = !0, e = {
|
|
2580
|
-
type:
|
|
2578
|
+
type: U,
|
|
2581
2579
|
params: i,
|
|
2582
2580
|
async: !1
|
|
2583
2581
|
};
|
|
2584
2582
|
} else i.push(this.inheritCoverGrammar(this.parseAssignmentExpression));
|
|
2585
2583
|
if (r) break;
|
|
2586
2584
|
}
|
|
2587
|
-
r || (e = this.finalize(this.startNode(t), new
|
|
2585
|
+
r || (e = this.finalize(this.startNode(t), new Gr(i)));
|
|
2588
2586
|
}
|
|
2589
2587
|
if (!r) {
|
|
2590
2588
|
if (this.expect(")"), this.match("=>") && (e.type === N.Identifier && e.name === "yield" && (r = !0, e = {
|
|
2591
|
-
type:
|
|
2589
|
+
type: U,
|
|
2592
2590
|
params: [e],
|
|
2593
2591
|
async: !1
|
|
2594
2592
|
}), !r)) {
|
|
2595
2593
|
if (this.context.isBindingElement || this.throwUnexpectedToken(this.lookahead), e.type === N.SequenceExpression) for (let t = 0; t < e.expressions.length; t++) this.reinterpretExpressionAsPattern(e.expressions[t]);
|
|
2596
2594
|
else this.reinterpretExpressionAsPattern(e);
|
|
2597
2595
|
e = {
|
|
2598
|
-
type:
|
|
2596
|
+
type: U,
|
|
2599
2597
|
params: e.type === N.SequenceExpression ? e.expressions : [e],
|
|
2600
2598
|
async: !1
|
|
2601
2599
|
};
|
|
@@ -2620,13 +2618,13 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2620
2618
|
}
|
|
2621
2619
|
parseIdentifierName(e = !1) {
|
|
2622
2620
|
let t = !1, n = this.createNode(), r = this.nextToken();
|
|
2623
|
-
return r.value === "#" && e && (r = this.nextToken(), t = !0), this.isIdentifierName(r) || this.throwUnexpectedToken(r), this.finalize(n, t ? new
|
|
2621
|
+
return r.value === "#" && e && (r = this.nextToken(), t = !0), this.isIdentifierName(r) || this.throwUnexpectedToken(r), this.finalize(n, t ? new Rr(r.value) : new L(r.value));
|
|
2624
2622
|
}
|
|
2625
2623
|
parseNewExpression() {
|
|
2626
2624
|
let e = this.createNode(), t = this.parseIdentifierName();
|
|
2627
|
-
|
|
2625
|
+
B(t.name === "new", "New expression must start with `new`");
|
|
2628
2626
|
let n;
|
|
2629
|
-
return this.match(".") ? (this.nextToken(), this.lookahead.type === 3 && this.context.inFunctionBody && this.lookahead.value === "target" ? n = new
|
|
2627
|
+
return this.match(".") ? (this.nextToken(), this.lookahead.type === 3 && this.context.inFunctionBody && this.lookahead.value === "target" ? n = new Mr(t, this.parseIdentifierName()) : this.throwUnexpectedToken(this.lookahead)) : this.matchKeyword("import") ? this.throwUnexpectedToken(this.lookahead) : (n = new Fr(this.isolateCoverGrammar(this.parseLeftHandSideExpression), this.match("(") ? this.parseArguments() : []), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1), this.finalize(e, n);
|
|
2630
2628
|
}
|
|
2631
2629
|
parseAsyncArgument() {
|
|
2632
2630
|
let e = this.parseAssignmentExpression();
|
|
@@ -2655,7 +2653,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2655
2653
|
let e = this.createNode();
|
|
2656
2654
|
this.expectKeyword("import"), this.expect("(");
|
|
2657
2655
|
let t = this.parseAssignmentExpression(), n = null;
|
|
2658
|
-
return this.match(",") && (this.nextToken(), n = this.parseObjectInitializer()), !this.match(")") && this.config.tolerant ? this.tolerateUnexpectedToken(this.nextToken()) : (this.expect(")"), this.match(";") && this.nextToken()), this.finalize(e, new
|
|
2656
|
+
return this.match(",") && (this.nextToken(), n = this.parseObjectInitializer()), !this.match(")") && this.config.tolerant ? this.tolerateUnexpectedToken(this.nextToken()) : (this.expect(")"), this.match(";") && this.nextToken()), this.finalize(e, new wr(t, n));
|
|
2659
2657
|
}
|
|
2660
2658
|
matchImportMeta() {
|
|
2661
2659
|
let e = this.matchKeyword("import");
|
|
@@ -2666,7 +2664,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2666
2664
|
if (n.type === 7 && n.value === ".") {
|
|
2667
2665
|
this.scanner.scanComments();
|
|
2668
2666
|
let t = this.scanner.lex();
|
|
2669
|
-
e = t.type === 3 && t.value === "meta", e && t.end - t.start !== 4 && this.tolerateUnexpectedToken(t,
|
|
2667
|
+
e = t.type === 3 && t.value === "meta", e && t.end - t.start !== 4 && this.tolerateUnexpectedToken(t, V.InvalidEscapedReservedWord);
|
|
2670
2668
|
} else e = !1;
|
|
2671
2669
|
this.scanner.restoreState(t);
|
|
2672
2670
|
}
|
|
@@ -2676,13 +2674,13 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2676
2674
|
let e = this.createNode(), t = this.parseIdentifierName();
|
|
2677
2675
|
this.expect(".");
|
|
2678
2676
|
let n = this.parseIdentifierName();
|
|
2679
|
-
return this.context.isAssignmentTarget = !1, this.finalize(e, new
|
|
2677
|
+
return this.context.isAssignmentTarget = !1, this.finalize(e, new Mr(t, n));
|
|
2680
2678
|
}
|
|
2681
2679
|
parseLeftHandSideExpressionAllowCall() {
|
|
2682
2680
|
let e = this.lookahead, t = this.matchContextualKeyword("async"), n = this.context.allowIn;
|
|
2683
2681
|
this.context.allowIn = !0;
|
|
2684
2682
|
let r, i = this.matchKeyword("super");
|
|
2685
|
-
i && this.context.inFunctionBody ? (r = this.createNode(), this.nextToken(), r = this.finalize(r, new
|
|
2683
|
+
i && this.context.inFunctionBody ? (r = this.createNode(), this.nextToken(), r = this.finalize(r, new Jr()), !this.match("(") && !this.match(".") && !this.match("[") && this.throwUnexpectedToken(this.lookahead)) : r = this.inheritCoverGrammar(this.matchKeyword("new") ? this.parseNewExpression : this.parsePrimaryExpression), i && this.match("(") && (!this.context.inClassConstructor || !this.context.allowSuper) && this.tolerateError(V.UnexpectedSuper);
|
|
2686
2684
|
let a = !1;
|
|
2687
2685
|
for (;;) {
|
|
2688
2686
|
let n = !1;
|
|
@@ -2690,10 +2688,10 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2690
2688
|
let i = t && e.lineNumber === this.lookahead.lineNumber;
|
|
2691
2689
|
this.context.isBindingElement = !1, this.context.isAssignmentTarget = !1;
|
|
2692
2690
|
let a = i ? this.parseAsyncArguments() : this.parseArguments();
|
|
2693
|
-
if (r.type === N.ImportExpression && a.length !== 1 && this.tolerateError(
|
|
2691
|
+
if (r.type === N.ImportExpression && a.length !== 1 && this.tolerateError(V.BadImportCallArity), r = this.finalize(this.startNode(e), new er(r, a, n)), i && this.match("=>")) {
|
|
2694
2692
|
for (let e = 0; e < a.length; ++e) this.reinterpretExpressionAsPattern(a[e]);
|
|
2695
2693
|
r = {
|
|
2696
|
-
type:
|
|
2694
|
+
type: U,
|
|
2697
2695
|
params: a,
|
|
2698
2696
|
async: !0
|
|
2699
2697
|
};
|
|
@@ -2701,53 +2699,53 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2701
2699
|
} else if (this.match("[")) {
|
|
2702
2700
|
this.context.isBindingElement = !1, this.context.isAssignmentTarget = !n, this.expect("[");
|
|
2703
2701
|
let t = this.isolateCoverGrammar(this.parseExpression);
|
|
2704
|
-
this.expect("]"), r = this.finalize(this.startNode(e), new
|
|
2702
|
+
this.expect("]"), r = this.finalize(this.startNode(e), new jr(!0, r, t, n));
|
|
2705
2703
|
} else if (this.lookahead.type === 10 && this.lookahead.head) {
|
|
2706
|
-
n && this.throwUnexpectedToken(this.lookahead), a && this.throwError(
|
|
2704
|
+
n && this.throwUnexpectedToken(this.lookahead), a && this.throwError(V.InvalidTaggedTemplateOnOptionalChain);
|
|
2707
2705
|
let t = this.parseTemplateLiteral({ isTagged: !0 });
|
|
2708
|
-
r = this.finalize(this.startNode(e), new
|
|
2706
|
+
r = this.finalize(this.startNode(e), new Zr(r, t));
|
|
2709
2707
|
} else if (this.match(".") || n) {
|
|
2710
2708
|
this.context.isBindingElement = !1, this.context.isAssignmentTarget = !n, n || this.expect(".");
|
|
2711
2709
|
let t = this.parseIdentifierName(!0);
|
|
2712
|
-
r = this.finalize(this.startNode(e), new
|
|
2710
|
+
r = this.finalize(this.startNode(e), new jr(!1, r, t, n));
|
|
2713
2711
|
} else break;
|
|
2714
2712
|
}
|
|
2715
|
-
return this.context.allowIn = n, a ? new
|
|
2713
|
+
return this.context.allowIn = n, a ? new nr(r) : r;
|
|
2716
2714
|
}
|
|
2717
2715
|
parseSuper() {
|
|
2718
2716
|
let e = this.createNode();
|
|
2719
|
-
return this.expectKeyword("super"), !this.match("[") && !this.match(".") && this.throwUnexpectedToken(this.lookahead), this.finalize(e, new
|
|
2717
|
+
return this.expectKeyword("super"), !this.match("[") && !this.match(".") && this.throwUnexpectedToken(this.lookahead), this.finalize(e, new Jr());
|
|
2720
2718
|
}
|
|
2721
2719
|
parseLeftHandSideExpression() {
|
|
2722
|
-
|
|
2720
|
+
B(this.context.allowIn, "callee of new expression always allow in keyword.");
|
|
2723
2721
|
let e = this.startNode(this.lookahead), t = this.matchKeyword("super") && this.context.inFunctionBody ? this.parseSuper() : this.inheritCoverGrammar(this.matchKeyword("new") ? this.parseNewExpression : this.parsePrimaryExpression), n = !1;
|
|
2724
2722
|
for (;;) {
|
|
2725
2723
|
let r = !1;
|
|
2726
2724
|
if (this.match("?.") && (r = !0, n = !0, this.expect("?.")), this.match("[")) {
|
|
2727
2725
|
this.context.isBindingElement = !1, this.context.isAssignmentTarget = !r, this.expect("[");
|
|
2728
2726
|
let n = this.isolateCoverGrammar(this.parseExpression);
|
|
2729
|
-
this.expect("]"), t = this.finalize(e, new
|
|
2727
|
+
this.expect("]"), t = this.finalize(e, new jr(!0, t, n, r));
|
|
2730
2728
|
} else if (this.lookahead.type === 10 && this.lookahead.head) {
|
|
2731
|
-
r && this.throwUnexpectedToken(this.lookahead), n && this.throwError(
|
|
2729
|
+
r && this.throwUnexpectedToken(this.lookahead), n && this.throwError(V.InvalidTaggedTemplateOnOptionalChain);
|
|
2732
2730
|
let i = this.parseTemplateLiteral({ isTagged: !0 });
|
|
2733
|
-
t = this.finalize(e, new
|
|
2731
|
+
t = this.finalize(e, new Zr(t, i));
|
|
2734
2732
|
} else if (this.match(".") || r) {
|
|
2735
2733
|
this.context.isBindingElement = !1, this.context.isAssignmentTarget = !r, r || this.expect(".");
|
|
2736
2734
|
let n = this.parseIdentifierName();
|
|
2737
|
-
t = this.finalize(e, new
|
|
2735
|
+
t = this.finalize(e, new jr(!1, t, n, r));
|
|
2738
2736
|
} else break;
|
|
2739
2737
|
}
|
|
2740
|
-
return n ? new
|
|
2738
|
+
return n ? new nr(t) : t;
|
|
2741
2739
|
}
|
|
2742
2740
|
parseUpdateExpression() {
|
|
2743
2741
|
let e, t = this.lookahead;
|
|
2744
2742
|
if (this.match("++") || this.match("--")) {
|
|
2745
2743
|
let n = this.startNode(t), r = this.nextToken();
|
|
2746
|
-
e = this.inheritCoverGrammar(this.parseUnaryExpression), this.context.strict && e.type === N.Identifier && this.scanner.isRestrictedWord(e.name) && this.tolerateError(
|
|
2744
|
+
e = this.inheritCoverGrammar(this.parseUnaryExpression), this.context.strict && e.type === N.Identifier && this.scanner.isRestrictedWord(e.name) && this.tolerateError(V.StrictLHSPrefix), this.context.isAssignmentTarget || this.tolerateError(V.InvalidLHSInAssignment), e = this.finalize(n, new ii(r.value, e, !0)), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1;
|
|
2747
2745
|
} else if (e = this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall), !this.hasLineTerminator && this.lookahead.type === 7 && (this.match("++") || this.match("--"))) {
|
|
2748
|
-
this.context.strict && e.type === N.Identifier && this.scanner.isRestrictedWord(e.name) && this.tolerateError(
|
|
2746
|
+
this.context.strict && e.type === N.Identifier && this.scanner.isRestrictedWord(e.name) && this.tolerateError(V.StrictLHSPostfix), this.context.isAssignmentTarget || this.tolerateError(V.InvalidLHSInAssignment), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1;
|
|
2749
2747
|
let n = this.nextToken().value;
|
|
2750
|
-
e = this.finalize(this.startNode(t), new
|
|
2748
|
+
e = this.finalize(this.startNode(t), new ii(n, e, !1));
|
|
2751
2749
|
}
|
|
2752
2750
|
return e;
|
|
2753
2751
|
}
|
|
@@ -2755,13 +2753,13 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2755
2753
|
let e = this.createNode();
|
|
2756
2754
|
this.nextToken();
|
|
2757
2755
|
let t = this.parseUnaryExpression();
|
|
2758
|
-
return this.finalize(e, new
|
|
2756
|
+
return this.finalize(e, new Yn(t));
|
|
2759
2757
|
}
|
|
2760
2758
|
parseUnaryExpression() {
|
|
2761
2759
|
let e;
|
|
2762
2760
|
if (this.match("+") || this.match("-") || this.match("~") || this.match("!") || this.matchKeyword("delete") || this.matchKeyword("void") || this.matchKeyword("typeof")) {
|
|
2763
2761
|
let t = this.startNode(this.lookahead), n = this.nextToken();
|
|
2764
|
-
e = this.inheritCoverGrammar(this.parseUnaryExpression), e = this.finalize(t, new
|
|
2762
|
+
e = this.inheritCoverGrammar(this.parseUnaryExpression), e = this.finalize(t, new ri(n.value, e)), this.context.strict && e.operator === "delete" && e.argument.type === N.Identifier && this.tolerateError(V.StrictDelete), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1;
|
|
2765
2763
|
} else e = (this.context.isModule && !this.context.inFunctionBody || this.context.isAsync) && this.matchContextualKeyword("await") ? this.parseAwaitExpression() : this.parseUpdateExpression();
|
|
2766
2764
|
return e;
|
|
2767
2765
|
}
|
|
@@ -2770,7 +2768,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2770
2768
|
if ((n.type !== N.UnaryExpression || t) && this.match("**")) {
|
|
2771
2769
|
this.nextToken(), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1;
|
|
2772
2770
|
let t = n, r = this.isolateCoverGrammar(this.parseExponentiationExpression);
|
|
2773
|
-
n = this.finalize(this.startNode(e), new
|
|
2771
|
+
n = this.finalize(this.startNode(e), new Zn("**", t, r));
|
|
2774
2772
|
}
|
|
2775
2773
|
return n;
|
|
2776
2774
|
}
|
|
@@ -2795,7 +2793,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2795
2793
|
let e = u.pop();
|
|
2796
2794
|
d.pop(), c = u.pop(), s.pop();
|
|
2797
2795
|
let t = s[s.length - 1], n = this.startNode(t, t.lineStart), r = e === "||" || e === "&&" || e === "??";
|
|
2798
|
-
u.push(this.finalize(n, r ? new
|
|
2796
|
+
u.push(this.finalize(n, r ? new Ar(e, c, l) : new Zn(e, c, l)));
|
|
2799
2797
|
}
|
|
2800
2798
|
u.push(this.nextToken().value), d.push(o), s.push(this.lookahead), u.push(this.isolateCoverGrammar(this.parseExponentiationExpression));
|
|
2801
2799
|
}
|
|
@@ -2804,7 +2802,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2804
2802
|
let p = s.pop();
|
|
2805
2803
|
for (; f > 1;) {
|
|
2806
2804
|
let e = s.pop(), n = p && p.lineStart, r = this.startNode(e, n), i = u[f - 1], a = i === "||" || i === "&&" || i === "??";
|
|
2807
|
-
t = this.finalize(r, a ? new
|
|
2805
|
+
t = this.finalize(r, a ? new Ar(i, u[f - 2], t) : new Zn(i, u[f - 2], t)), f -= 2, p = e;
|
|
2808
2806
|
}
|
|
2809
2807
|
}
|
|
2810
2808
|
return t;
|
|
@@ -2818,7 +2816,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2818
2816
|
let r = this.isolateCoverGrammar(this.parseAssignmentExpression);
|
|
2819
2817
|
this.context.allowIn = n, this.expect(":");
|
|
2820
2818
|
let i = this.isolateCoverGrammar(this.parseAssignmentExpression);
|
|
2821
|
-
t = this.finalize(this.startNode(e), new
|
|
2819
|
+
t = this.finalize(this.startNode(e), new or(t, r, i)), this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1;
|
|
2822
2820
|
}
|
|
2823
2821
|
return t;
|
|
2824
2822
|
}
|
|
@@ -2843,7 +2841,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2843
2841
|
}
|
|
2844
2842
|
break;
|
|
2845
2843
|
}
|
|
2846
|
-
e.simple = e.simple && t instanceof
|
|
2844
|
+
e.simple = e.simple && t instanceof L;
|
|
2847
2845
|
}
|
|
2848
2846
|
reinterpretAsCoverFormalsList(e) {
|
|
2849
2847
|
let t = [e], n = {
|
|
@@ -2852,7 +2850,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2852
2850
|
}, r = !1;
|
|
2853
2851
|
switch (e.type) {
|
|
2854
2852
|
case N.Identifier: break;
|
|
2855
|
-
case
|
|
2853
|
+
case U:
|
|
2856
2854
|
t = e.params, r = e.async;
|
|
2857
2855
|
break;
|
|
2858
2856
|
default: return null;
|
|
@@ -2864,7 +2862,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2864
2862
|
if (this.context.strict || !this.context.allowYield) for (let e = 0; e < t.length; ++e) t[e].type === N.YieldExpression && this.throwUnexpectedToken(this.lookahead);
|
|
2865
2863
|
if (n.hasDuplicateParameterNames) {
|
|
2866
2864
|
let e = this.context.strict ? n.stricted : n.firstRestricted;
|
|
2867
|
-
this.throwUnexpectedToken(e,
|
|
2865
|
+
this.throwUnexpectedToken(e, V.DuplicateParameter);
|
|
2868
2866
|
}
|
|
2869
2867
|
return {
|
|
2870
2868
|
simple: n.simple,
|
|
@@ -2882,12 +2880,12 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2882
2880
|
if (e = this.parseConditionalExpression(), n.type === 3 && n.lineNumber === this.lookahead.lineNumber && n.value === "async" && (this.lookahead.type === 3 || this.matchKeyword("yield"))) {
|
|
2883
2881
|
let t = this.parsePrimaryExpression();
|
|
2884
2882
|
this.reinterpretExpressionAsPattern(t), e = {
|
|
2885
|
-
type:
|
|
2883
|
+
type: U,
|
|
2886
2884
|
params: [t],
|
|
2887
2885
|
async: !0
|
|
2888
2886
|
};
|
|
2889
2887
|
}
|
|
2890
|
-
if (e.type ===
|
|
2888
|
+
if (e.type === U || this.match("=>")) {
|
|
2891
2889
|
this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1;
|
|
2892
2890
|
let n = e.async, r = this.reinterpretAsCoverFormalsList(e);
|
|
2893
2891
|
if (r) {
|
|
@@ -2904,16 +2902,16 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2904
2902
|
this.context.allowIn = !0, l = this.parseFunctionSourceElements(), this.context.allowIn = e;
|
|
2905
2903
|
} else l = this.isolateCoverGrammar(this.parseAssignmentExpression);
|
|
2906
2904
|
let u = l.type !== N.BlockStatement;
|
|
2907
|
-
this.context.strict && r.firstRestricted && this.throwUnexpectedToken(r.firstRestricted, r.message), this.context.strict && r.stricted && this.tolerateUnexpectedToken(r.stricted, r.message), e = this.finalize(c, new
|
|
2905
|
+
this.context.strict && r.firstRestricted && this.throwUnexpectedToken(r.firstRestricted, r.message), this.context.strict && r.stricted && this.tolerateUnexpectedToken(r.stricted, r.message), e = this.finalize(c, new Gn(r.params, l, u, n)), this.context.strict = i, this.context.allowStrictDirective = a, this.context.allowYield = o, this.context.isAsync = s;
|
|
2908
2906
|
}
|
|
2909
2907
|
} else if (this.matchAssign()) {
|
|
2910
|
-
if (this.context.isAssignmentTarget || this.tolerateError(
|
|
2908
|
+
if (this.context.isAssignmentTarget || this.tolerateError(V.InvalidLHSInAssignment), this.context.strict && e.type === N.Identifier) {
|
|
2911
2909
|
let t = e;
|
|
2912
|
-
this.scanner.isRestrictedWord(t.name) && this.tolerateUnexpectedToken(n,
|
|
2910
|
+
this.scanner.isRestrictedWord(t.name) && this.tolerateUnexpectedToken(n, V.StrictLHSAssignment), this.scanner.isStrictModeReservedWord(t.name) && this.tolerateUnexpectedToken(n, V.StrictReservedWord);
|
|
2913
2911
|
}
|
|
2914
2912
|
this.match("=") ? this.reinterpretExpressionAsPattern(e) : (this.context.isAssignmentTarget = !1, this.context.isBindingElement = !1), n = this.nextToken();
|
|
2915
2913
|
let r = n.value, i = this.isolateCoverGrammar(this.parseAssignmentExpression);
|
|
2916
|
-
e = this.finalize(this.startNode(t), new
|
|
2914
|
+
e = this.finalize(this.startNode(t), new Kn(r, e, i)), this.context.firstCoverInitializedNameError = null;
|
|
2917
2915
|
}
|
|
2918
2916
|
}
|
|
2919
2917
|
return e;
|
|
@@ -2923,7 +2921,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2923
2921
|
if (this.match(",")) {
|
|
2924
2922
|
let n = [];
|
|
2925
2923
|
for (n.push(t); this.lookahead.type !== 2 && this.match(",");) this.nextToken(), n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));
|
|
2926
|
-
t = this.finalize(this.startNode(e), new
|
|
2924
|
+
t = this.finalize(this.startNode(e), new Gr(n));
|
|
2927
2925
|
}
|
|
2928
2926
|
return t;
|
|
2929
2927
|
}
|
|
@@ -2931,10 +2929,10 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2931
2929
|
let e;
|
|
2932
2930
|
if (this.context.isAssignmentTarget = !0, this.context.isBindingElement = !0, this.lookahead.type === 4) switch (this.lookahead.value) {
|
|
2933
2931
|
case "export":
|
|
2934
|
-
this.context.isModule || this.tolerateUnexpectedToken(this.lookahead,
|
|
2932
|
+
this.context.isModule || this.tolerateUnexpectedToken(this.lookahead, V.IllegalExportDeclaration), e = this.parseExportDeclaration();
|
|
2935
2933
|
break;
|
|
2936
2934
|
case "import":
|
|
2937
|
-
this.matchImportCall() ? e = this.parseExpressionStatement() : this.matchImportMeta() ? e = this.parseStatement() : (this.context.isModule || this.tolerateUnexpectedToken(this.lookahead,
|
|
2935
|
+
this.matchImportCall() ? e = this.parseExpressionStatement() : this.matchImportMeta() ? e = this.parseStatement() : (this.context.isModule || this.tolerateUnexpectedToken(this.lookahead, V.IllegalImportDeclaration), e = this.parseImportDeclaration());
|
|
2938
2936
|
break;
|
|
2939
2937
|
case "const":
|
|
2940
2938
|
e = this.parseLexicalDeclaration({ inFor: !1 });
|
|
@@ -2960,13 +2958,13 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2960
2958
|
this.expect("{");
|
|
2961
2959
|
let t = [];
|
|
2962
2960
|
for (; !this.match("}");) t.push(this.parseStatementListItem());
|
|
2963
|
-
return this.expect("}"), this.finalize(e, new
|
|
2961
|
+
return this.expect("}"), this.finalize(e, new Qn(t));
|
|
2964
2962
|
}
|
|
2965
2963
|
parseLexicalBinding(e, t) {
|
|
2966
2964
|
let n = this.createNode(), r = this.parsePattern([], e);
|
|
2967
|
-
this.context.strict && r.type === N.Identifier && this.scanner.isRestrictedWord(r.name) && this.tolerateError(
|
|
2965
|
+
this.context.strict && r.type === N.Identifier && this.scanner.isRestrictedWord(r.name) && this.tolerateError(V.StrictVarName);
|
|
2968
2966
|
let i = null;
|
|
2969
|
-
return e === "const" ? !this.matchKeyword("in") && !this.matchContextualKeyword("of") && (this.match("=") ? (this.nextToken(), i = this.isolateCoverGrammar(this.parseAssignmentExpression)) : this.throwError(
|
|
2967
|
+
return e === "const" ? !this.matchKeyword("in") && !this.matchContextualKeyword("of") && (this.match("=") ? (this.nextToken(), i = this.isolateCoverGrammar(this.parseAssignmentExpression)) : this.throwError(V.DeclarationMissingInitializer, "const")) : (!t.inFor && r.type !== N.Identifier || this.match("=")) && (this.expect("="), i = this.isolateCoverGrammar(this.parseAssignmentExpression)), this.finalize(n, new ai(r, i));
|
|
2970
2968
|
}
|
|
2971
2969
|
parseBindingList(e, t) {
|
|
2972
2970
|
let n = [this.parseLexicalBinding(e, t)];
|
|
@@ -2981,9 +2979,9 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
2981
2979
|
}
|
|
2982
2980
|
parseLexicalDeclaration(e) {
|
|
2983
2981
|
let t = this.createNode(), n = this.nextToken().value;
|
|
2984
|
-
|
|
2982
|
+
B(n === "let" || n === "const", "Lexical declaration must be either let or const");
|
|
2985
2983
|
let r = this.parseBindingList(n, e);
|
|
2986
|
-
return this.consumeSemicolon(), this.finalize(t, new
|
|
2984
|
+
return this.consumeSemicolon(), this.finalize(t, new z(r, n));
|
|
2987
2985
|
}
|
|
2988
2986
|
isInitializedProperty() {
|
|
2989
2987
|
let e = this.scanner.saveState();
|
|
@@ -3001,7 +2999,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3001
2999
|
let n = this.createNode();
|
|
3002
3000
|
this.expect("...");
|
|
3003
3001
|
let r = this.parsePattern(e, t);
|
|
3004
|
-
return this.finalize(n, new
|
|
3002
|
+
return this.finalize(n, new Hr(r));
|
|
3005
3003
|
}
|
|
3006
3004
|
parseArrayPattern(e, t) {
|
|
3007
3005
|
let n = this.createNode();
|
|
@@ -3015,36 +3013,36 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3015
3013
|
} else r.push(this.parsePatternWithDefault(e, t));
|
|
3016
3014
|
this.match("]") || this.expect(",");
|
|
3017
3015
|
}
|
|
3018
|
-
return this.expect("]"), this.finalize(n, new
|
|
3016
|
+
return this.expect("]"), this.finalize(n, new Wn(r));
|
|
3019
3017
|
}
|
|
3020
3018
|
parsePropertyPattern(e, t) {
|
|
3021
3019
|
let n = this.createNode(), r = !1, i = !1, a, o;
|
|
3022
3020
|
if (this.lookahead.type === 3) {
|
|
3023
3021
|
let r = this.lookahead;
|
|
3024
3022
|
a = this.parseVariableIdentifier();
|
|
3025
|
-
let s = this.finalize(n, new
|
|
3023
|
+
let s = this.finalize(n, new L(r.value));
|
|
3026
3024
|
if (this.match("=")) {
|
|
3027
3025
|
e.push(r), i = !0, this.nextToken();
|
|
3028
3026
|
let t = this.parseAssignmentExpression();
|
|
3029
|
-
o = this.finalize(this.startNode(r), new
|
|
3027
|
+
o = this.finalize(this.startNode(r), new qn(s, t));
|
|
3030
3028
|
} else this.match(":") ? (this.expect(":"), o = this.parsePatternWithDefault(e, t)) : (e.push(r), i = !0, o = s);
|
|
3031
3029
|
} else r = this.match("["), a = this.parseObjectPropertyKey(), this.expect(":"), o = this.parsePatternWithDefault(e, t);
|
|
3032
|
-
return this.finalize(n, new
|
|
3030
|
+
return this.finalize(n, new zr("init", a, r, o, !1, i));
|
|
3033
3031
|
}
|
|
3034
3032
|
parseRestProperty(e) {
|
|
3035
3033
|
let t = this.createNode();
|
|
3036
3034
|
this.expect("...");
|
|
3037
3035
|
let n = this.parsePattern(e);
|
|
3038
|
-
return this.match("=") && this.throwError(
|
|
3036
|
+
return this.match("=") && this.throwError(V.DefaultRestProperty), this.match("}") || this.throwError(V.PropertyAfterRestProperty), this.finalize(t, new Hr(n));
|
|
3039
3037
|
}
|
|
3040
3038
|
parseObjectPattern(e, t) {
|
|
3041
3039
|
let n = this.createNode(), r = [];
|
|
3042
3040
|
for (this.expect("{"); !this.match("}");) r.push(this.match("...") ? this.parseRestProperty(e) : this.parsePropertyPattern(e, t)), this.match("}") || this.expect(",");
|
|
3043
|
-
return this.expect("}"), this.finalize(n, new
|
|
3041
|
+
return this.expect("}"), this.finalize(n, new Lr(r));
|
|
3044
3042
|
}
|
|
3045
3043
|
parsePattern(e, t) {
|
|
3046
3044
|
let n;
|
|
3047
|
-
return this.match("[") ? n = this.parseArrayPattern(e, t) : this.match("{") ? n = this.parseObjectPattern(e, t) : (this.matchKeyword("let") && (t === "const" || t === "let") && this.tolerateUnexpectedToken(this.lookahead,
|
|
3045
|
+
return this.match("[") ? n = this.parseArrayPattern(e, t) : this.match("{") ? n = this.parseObjectPattern(e, t) : (this.matchKeyword("let") && (t === "const" || t === "let") && this.tolerateUnexpectedToken(this.lookahead, V.LetInLexicalBinding), e.push(this.lookahead), n = this.parseVariableIdentifier(t)), n;
|
|
3048
3046
|
}
|
|
3049
3047
|
parsePatternWithDefault(e, t) {
|
|
3050
3048
|
let n = this.lookahead, r = this.parsePattern(e, t);
|
|
@@ -3053,19 +3051,19 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3053
3051
|
let e = this.context.allowYield;
|
|
3054
3052
|
this.context.allowYield = !0;
|
|
3055
3053
|
let t = this.isolateCoverGrammar(this.parseAssignmentExpression);
|
|
3056
|
-
this.context.allowYield = e, r = this.finalize(this.startNode(n), new
|
|
3054
|
+
this.context.allowYield = e, r = this.finalize(this.startNode(n), new qn(r, t));
|
|
3057
3055
|
}
|
|
3058
3056
|
return r;
|
|
3059
3057
|
}
|
|
3060
3058
|
parseVariableIdentifier(e) {
|
|
3061
3059
|
let t = this.createNode(), n = this.nextToken();
|
|
3062
|
-
return n.type === 4 && n.value === "yield" ? this.context.strict ? this.tolerateUnexpectedToken(n,
|
|
3060
|
+
return n.type === 4 && n.value === "yield" ? this.context.strict ? this.tolerateUnexpectedToken(n, V.StrictReservedWord) : this.context.allowYield || this.throwUnexpectedToken(n) : n.type === 3 ? (this.context.isModule || this.context.isAsync) && n.type === 3 && n.value === "await" && this.tolerateUnexpectedToken(n) : this.context.strict && n.type === 4 && this.scanner.isStrictModeReservedWord(n.value) ? this.tolerateUnexpectedToken(n, V.StrictReservedWord) : (this.context.strict || n.value !== "let" || e !== "var") && this.throwUnexpectedToken(n), this.finalize(t, new L(n.value));
|
|
3063
3061
|
}
|
|
3064
3062
|
parseVariableDeclaration(e) {
|
|
3065
3063
|
let t = this.createNode(), n = this.parsePattern([], "var");
|
|
3066
|
-
this.context.strict && n.type === N.Identifier && this.scanner.isRestrictedWord(n.name) && this.tolerateError(
|
|
3064
|
+
this.context.strict && n.type === N.Identifier && this.scanner.isRestrictedWord(n.name) && this.tolerateError(V.StrictVarName);
|
|
3067
3065
|
let r = null;
|
|
3068
|
-
return this.match("=") ? (this.nextToken(), r = this.isolateCoverGrammar(this.parseAssignmentExpression)) : n.type !== N.Identifier && !e.inFor && this.expect("="), this.finalize(t, new
|
|
3066
|
+
return this.match("=") ? (this.nextToken(), r = this.isolateCoverGrammar(this.parseAssignmentExpression)) : n.type !== N.Identifier && !e.inFor && this.expect("="), this.finalize(t, new ai(n, r));
|
|
3069
3067
|
}
|
|
3070
3068
|
parseVariableDeclarationList(e) {
|
|
3071
3069
|
let t = { inFor: e.inFor }, n = [];
|
|
@@ -3076,24 +3074,24 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3076
3074
|
let e = this.createNode();
|
|
3077
3075
|
this.expectKeyword("var");
|
|
3078
3076
|
let t = this.parseVariableDeclarationList({ inFor: !1 });
|
|
3079
|
-
return this.consumeSemicolon(), this.finalize(e, new
|
|
3077
|
+
return this.consumeSemicolon(), this.finalize(e, new z(t, "var"));
|
|
3080
3078
|
}
|
|
3081
3079
|
parseEmptyStatement() {
|
|
3082
3080
|
let e = this.createNode();
|
|
3083
|
-
return this.expect(";"), this.finalize(e, new
|
|
3081
|
+
return this.expect(";"), this.finalize(e, new fr());
|
|
3084
3082
|
}
|
|
3085
3083
|
parseExpressionStatement() {
|
|
3086
3084
|
let e = this.createNode(), t = this.parseExpression();
|
|
3087
|
-
return this.consumeSemicolon(), this.finalize(e, new
|
|
3085
|
+
return this.consumeSemicolon(), this.finalize(e, new _r(t));
|
|
3088
3086
|
}
|
|
3089
3087
|
parseIfClause() {
|
|
3090
|
-
return this.context.strict && this.matchKeyword("function") && this.tolerateError(
|
|
3088
|
+
return this.context.strict && this.matchKeyword("function") && this.tolerateError(V.StrictFunction), this.parseStatement();
|
|
3091
3089
|
}
|
|
3092
3090
|
parseIfStatement() {
|
|
3093
3091
|
let e = this.createNode(), t, n = null;
|
|
3094
3092
|
this.expectKeyword("if"), this.expect("(");
|
|
3095
3093
|
let r = this.parseExpression();
|
|
3096
|
-
return !this.match(")") && this.config.tolerant ? (this.tolerateUnexpectedToken(this.nextToken()), t = this.finalize(this.createNode(), new
|
|
3094
|
+
return !this.match(")") && this.config.tolerant ? (this.tolerateUnexpectedToken(this.nextToken()), t = this.finalize(this.createNode(), new fr())) : (this.expect(")"), t = this.parseIfClause(), this.matchKeyword("else") && (this.nextToken(), n = this.parseIfClause())), this.finalize(e, new Sr(r, t, n));
|
|
3097
3095
|
}
|
|
3098
3096
|
parseDoWhileStatement() {
|
|
3099
3097
|
let e = this.createNode();
|
|
@@ -3103,19 +3101,19 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3103
3101
|
let n = this.parseStatement();
|
|
3104
3102
|
this.context.inIteration = t, this.expectKeyword("while"), this.expect("(");
|
|
3105
3103
|
let r = this.parseExpression();
|
|
3106
|
-
return !this.match(")") && this.config.tolerant ? this.tolerateUnexpectedToken(this.nextToken()) : (this.expect(")"), this.match(";") && this.nextToken()), this.finalize(e, new
|
|
3104
|
+
return !this.match(")") && this.config.tolerant ? this.tolerateUnexpectedToken(this.nextToken()) : (this.expect(")"), this.match(";") && this.nextToken()), this.finalize(e, new dr(n, r));
|
|
3107
3105
|
}
|
|
3108
3106
|
parseWhileStatement() {
|
|
3109
3107
|
let e = this.createNode(), t;
|
|
3110
3108
|
this.expectKeyword("while"), this.expect("(");
|
|
3111
3109
|
let n = this.parseExpression();
|
|
3112
|
-
if (!this.match(")") && this.config.tolerant) this.tolerateUnexpectedToken(this.nextToken()), t = this.finalize(this.createNode(), new
|
|
3110
|
+
if (!this.match(")") && this.config.tolerant) this.tolerateUnexpectedToken(this.nextToken()), t = this.finalize(this.createNode(), new fr());
|
|
3113
3111
|
else {
|
|
3114
3112
|
this.expect(")");
|
|
3115
3113
|
let e = this.context.inIteration;
|
|
3116
3114
|
this.context.inIteration = !0, t = this.parseStatement(), this.context.inIteration = e;
|
|
3117
3115
|
}
|
|
3118
|
-
return this.finalize(e, new
|
|
3116
|
+
return this.finalize(e, new oi(n, t));
|
|
3119
3117
|
}
|
|
3120
3118
|
parseForStatement() {
|
|
3121
3119
|
let e = null, t = null, n = null, r = !0, i, a, o = !1, s = this.createNode();
|
|
@@ -3127,40 +3125,40 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3127
3125
|
let n = this.parseVariableDeclarationList({ inFor: !0 });
|
|
3128
3126
|
if (this.context.allowIn = t, !o && n.length === 1 && this.matchKeyword("in")) {
|
|
3129
3127
|
let t = n[0];
|
|
3130
|
-
t.init && (t.id.type === N.ArrayPattern || t.id.type === N.ObjectPattern || this.context.strict) && this.tolerateError(
|
|
3131
|
-
} else n.length === 1 && n[0].init === null && this.matchContextualKeyword("of") ? (e = this.finalize(e, new
|
|
3128
|
+
t.init && (t.id.type === N.ArrayPattern || t.id.type === N.ObjectPattern || this.context.strict) && this.tolerateError(V.ForInOfLoopInitializer, "for-in"), e = this.finalize(e, new z(n, "var")), this.nextToken(), i = e, a = this.parseExpression(), e = null;
|
|
3129
|
+
} else n.length === 1 && n[0].init === null && this.matchContextualKeyword("of") ? (e = this.finalize(e, new z(n, "var")), this.nextToken(), i = e, a = this.parseAssignmentExpression(), e = null, r = !1) : (e = this.finalize(e, new z(n, "var")), this.expect(";"));
|
|
3132
3130
|
} else if (this.matchKeyword("const") || this.matchKeyword("let")) {
|
|
3133
3131
|
e = this.createNode();
|
|
3134
3132
|
let t = this.nextToken().value;
|
|
3135
|
-
if (!this.context.strict && this.lookahead.value === "in") e = this.finalize(e, new
|
|
3133
|
+
if (!this.context.strict && this.lookahead.value === "in") e = this.finalize(e, new L(t)), this.nextToken(), i = e, a = this.parseExpression(), e = null;
|
|
3136
3134
|
else {
|
|
3137
3135
|
let n = this.context.allowIn;
|
|
3138
3136
|
this.context.allowIn = !1;
|
|
3139
3137
|
let o = this.parseBindingList(t, { inFor: !0 });
|
|
3140
|
-
this.context.allowIn = n, o.length === 1 && o[0].init === null && this.matchKeyword("in") ? (e = this.finalize(e, new
|
|
3138
|
+
this.context.allowIn = n, o.length === 1 && o[0].init === null && this.matchKeyword("in") ? (e = this.finalize(e, new z(o, t)), this.nextToken(), i = e, a = this.parseExpression(), e = null) : o.length === 1 && o[0].init === null && this.matchContextualKeyword("of") ? (e = this.finalize(e, new z(o, t)), this.nextToken(), i = e, a = this.parseAssignmentExpression(), e = null, r = !1) : (this.consumeSemicolon(), e = this.finalize(e, new z(o, t)));
|
|
3141
3139
|
}
|
|
3142
3140
|
} else {
|
|
3143
3141
|
let t = this.lookahead, n = this.context.isBindingElement, o = this.context.isAssignmentTarget, s = this.context.firstCoverInitializedNameError, c = this.context.allowIn;
|
|
3144
|
-
if (this.context.allowIn = !1, e = this.inheritCoverGrammar(this.parseAssignmentExpression), this.context.allowIn = c, this.matchKeyword("in")) (!this.context.isAssignmentTarget || e.type === N.AssignmentExpression) && this.tolerateError(
|
|
3145
|
-
else if (this.matchContextualKeyword("of")) (!this.context.isAssignmentTarget || e.type === N.AssignmentExpression) && this.tolerateError(
|
|
3142
|
+
if (this.context.allowIn = !1, e = this.inheritCoverGrammar(this.parseAssignmentExpression), this.context.allowIn = c, this.matchKeyword("in")) (!this.context.isAssignmentTarget || e.type === N.AssignmentExpression) && this.tolerateError(V.InvalidLHSInForIn), this.nextToken(), this.reinterpretExpressionAsPattern(e), i = e, a = this.parseExpression(), e = null;
|
|
3143
|
+
else if (this.matchContextualKeyword("of")) (!this.context.isAssignmentTarget || e.type === N.AssignmentExpression) && this.tolerateError(V.InvalidLHSInForLoop), this.nextToken(), this.reinterpretExpressionAsPattern(e), i = e, a = this.parseAssignmentExpression(), e = null, r = !1;
|
|
3146
3144
|
else {
|
|
3147
3145
|
if (this.context.isBindingElement = n, this.context.isAssignmentTarget = o, this.context.firstCoverInitializedNameError = s, this.match(",")) {
|
|
3148
3146
|
let n = [e];
|
|
3149
3147
|
for (; this.match(",");) this.nextToken(), n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));
|
|
3150
|
-
e = this.finalize(this.startNode(t), new
|
|
3148
|
+
e = this.finalize(this.startNode(t), new Gr(n));
|
|
3151
3149
|
}
|
|
3152
3150
|
this.expect(";");
|
|
3153
3151
|
}
|
|
3154
3152
|
}
|
|
3155
3153
|
i === void 0 && (this.match(";") || (t = this.isolateCoverGrammar(this.parseExpression)), this.expect(";"), this.match(")") || (n = this.isolateCoverGrammar(this.parseExpression)));
|
|
3156
3154
|
let c;
|
|
3157
|
-
if (!this.match(")") && this.config.tolerant) this.tolerateUnexpectedToken(this.nextToken()), c = this.finalize(this.createNode(), new
|
|
3155
|
+
if (!this.match(")") && this.config.tolerant) this.tolerateUnexpectedToken(this.nextToken()), c = this.finalize(this.createNode(), new fr());
|
|
3158
3156
|
else {
|
|
3159
3157
|
this.expect(")"), this.tolerateInvalidLoopStatement();
|
|
3160
3158
|
let e = this.context.inIteration;
|
|
3161
3159
|
this.context.inIteration = !0, c = this.isolateCoverGrammar(this.parseStatement), this.context.inIteration = e;
|
|
3162
3160
|
}
|
|
3163
|
-
return i === void 0 ? this.finalize(s, new
|
|
3161
|
+
return i === void 0 ? this.finalize(s, new br(e, t, n, c)) : r ? this.finalize(s, new vr(i, a, c)) : this.finalize(s, new yr(i, a, c, o));
|
|
3164
3162
|
}
|
|
3165
3163
|
parseContinueStatement() {
|
|
3166
3164
|
let e = this.createNode();
|
|
@@ -3170,9 +3168,9 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3170
3168
|
let e = this.parseVariableIdentifier();
|
|
3171
3169
|
t = e;
|
|
3172
3170
|
let n = "$" + e.name;
|
|
3173
|
-
Object.prototype.hasOwnProperty.call(this.context.labelSet, n) || this.throwError(
|
|
3171
|
+
Object.prototype.hasOwnProperty.call(this.context.labelSet, n) || this.throwError(V.UnknownLabel, e.name);
|
|
3174
3172
|
}
|
|
3175
|
-
return this.consumeSemicolon(), t === null && !this.context.inIteration && this.throwError(
|
|
3173
|
+
return this.consumeSemicolon(), t === null && !this.context.inIteration && this.throwError(V.IllegalContinue), this.finalize(e, new sr(t));
|
|
3176
3174
|
}
|
|
3177
3175
|
parseBreakStatement() {
|
|
3178
3176
|
let e = this.createNode();
|
|
@@ -3180,30 +3178,30 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3180
3178
|
let t = null;
|
|
3181
3179
|
if (this.lookahead.type === 3 && !this.hasLineTerminator) {
|
|
3182
3180
|
let e = this.parseVariableIdentifier(), n = "$" + e.name;
|
|
3183
|
-
Object.prototype.hasOwnProperty.call(this.context.labelSet, n) || this.throwError(
|
|
3181
|
+
Object.prototype.hasOwnProperty.call(this.context.labelSet, n) || this.throwError(V.UnknownLabel, e.name), t = e;
|
|
3184
3182
|
}
|
|
3185
|
-
return this.consumeSemicolon(), t === null && !this.context.inIteration && !this.context.inSwitch && this.throwError(
|
|
3183
|
+
return this.consumeSemicolon(), t === null && !this.context.inIteration && !this.context.inSwitch && this.throwError(V.IllegalBreak), this.finalize(e, new $n(t));
|
|
3186
3184
|
}
|
|
3187
3185
|
parseReturnStatement() {
|
|
3188
|
-
this.context.inFunctionBody || this.tolerateError(
|
|
3186
|
+
this.context.inFunctionBody || this.tolerateError(V.IllegalReturn);
|
|
3189
3187
|
let e = this.createNode();
|
|
3190
3188
|
this.expectKeyword("return");
|
|
3191
3189
|
let t = !this.match(";") && !this.match("}") && !this.hasLineTerminator && this.lookahead.type !== 2 || this.lookahead.type === 8 || this.lookahead.type === 10 ? this.parseExpression() : null;
|
|
3192
|
-
return this.consumeSemicolon(), this.finalize(e, new
|
|
3190
|
+
return this.consumeSemicolon(), this.finalize(e, new Ur(t));
|
|
3193
3191
|
}
|
|
3194
3192
|
parseWithStatement() {
|
|
3195
|
-
this.context.strict && this.tolerateError(
|
|
3193
|
+
this.context.strict && this.tolerateError(V.StrictModeWith);
|
|
3196
3194
|
let e = this.createNode(), t;
|
|
3197
3195
|
this.expectKeyword("with"), this.expect("(");
|
|
3198
3196
|
let n = this.parseExpression();
|
|
3199
|
-
return !this.match(")") && this.config.tolerant ? (this.tolerateUnexpectedToken(this.nextToken()), t = this.finalize(this.createNode(), new
|
|
3197
|
+
return !this.match(")") && this.config.tolerant ? (this.tolerateUnexpectedToken(this.nextToken()), t = this.finalize(this.createNode(), new fr())) : (this.expect(")"), t = this.parseStatement()), this.finalize(e, new si(n, t));
|
|
3200
3198
|
}
|
|
3201
3199
|
parseSwitchCase() {
|
|
3202
3200
|
let e = this.createNode(), t;
|
|
3203
3201
|
this.matchKeyword("default") ? (this.nextToken(), t = null) : (this.expectKeyword("case"), t = this.parseExpression()), this.expect(":");
|
|
3204
3202
|
let n = [];
|
|
3205
3203
|
for (; !(this.match("}") || this.matchKeyword("default") || this.matchKeyword("case"));) n.push(this.parseStatementListItem());
|
|
3206
|
-
return this.finalize(e, new
|
|
3204
|
+
return this.finalize(e, new Yr(t, n));
|
|
3207
3205
|
}
|
|
3208
3206
|
parseSwitchStatement() {
|
|
3209
3207
|
let e = this.createNode();
|
|
@@ -3215,31 +3213,31 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3215
3213
|
let r = [], i = !1;
|
|
3216
3214
|
for (this.expect("{"); !this.match("}");) {
|
|
3217
3215
|
let e = this.parseSwitchCase();
|
|
3218
|
-
e.test === null && (i && this.throwError(
|
|
3216
|
+
e.test === null && (i && this.throwError(V.MultipleDefaultsInSwitch), i = !0), r.push(e);
|
|
3219
3217
|
}
|
|
3220
|
-
return this.expect("}"), this.context.inSwitch = n, this.finalize(e, new
|
|
3218
|
+
return this.expect("}"), this.context.inSwitch = n, this.finalize(e, new Xr(t, r));
|
|
3221
3219
|
}
|
|
3222
3220
|
parseLabelledStatement() {
|
|
3223
3221
|
let e = this.createNode(), t = this.parseExpression(), n;
|
|
3224
3222
|
if (t.type === N.Identifier && this.match(":")) {
|
|
3225
3223
|
this.nextToken();
|
|
3226
3224
|
let e = t, r = "$" + e.name;
|
|
3227
|
-
Object.prototype.hasOwnProperty.call(this.context.labelSet, r) && this.throwError(
|
|
3225
|
+
Object.prototype.hasOwnProperty.call(this.context.labelSet, r) && this.throwError(V.Redeclaration, "Label", e.name), this.context.labelSet[r] = !0;
|
|
3228
3226
|
let i;
|
|
3229
3227
|
if (this.matchKeyword("class")) this.tolerateUnexpectedToken(this.lookahead), i = this.parseClassDeclaration();
|
|
3230
3228
|
else if (this.matchKeyword("function")) {
|
|
3231
3229
|
let e = this.lookahead, t = this.parseFunctionDeclaration();
|
|
3232
|
-
this.context.strict ? this.tolerateUnexpectedToken(e,
|
|
3230
|
+
this.context.strict ? this.tolerateUnexpectedToken(e, V.StrictFunction) : t.generator && this.tolerateUnexpectedToken(e, V.GeneratorInLegacyContext), i = t;
|
|
3233
3231
|
} else i = this.parseStatement();
|
|
3234
|
-
delete this.context.labelSet[r], n = new
|
|
3235
|
-
} else this.consumeSemicolon(), n = new
|
|
3232
|
+
delete this.context.labelSet[r], n = new kr(e, i);
|
|
3233
|
+
} else this.consumeSemicolon(), n = new _r(t);
|
|
3236
3234
|
return this.finalize(e, n);
|
|
3237
3235
|
}
|
|
3238
3236
|
parseThrowStatement() {
|
|
3239
3237
|
let e = this.createNode();
|
|
3240
|
-
this.expectKeyword("throw"), this.hasLineTerminator && this.throwError(
|
|
3238
|
+
this.expectKeyword("throw"), this.hasLineTerminator && this.throwError(V.NewlineAfterThrow);
|
|
3241
3239
|
let t = this.parseExpression();
|
|
3242
|
-
return this.consumeSemicolon(), this.finalize(e, new
|
|
3240
|
+
return this.consumeSemicolon(), this.finalize(e, new ti(t));
|
|
3243
3241
|
}
|
|
3244
3242
|
parseCatchClause() {
|
|
3245
3243
|
let e = this.createNode();
|
|
@@ -3252,12 +3250,12 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3252
3250
|
let n = {};
|
|
3253
3251
|
for (let t = 0; t < e.length; t++) {
|
|
3254
3252
|
let r = "$" + e[t].value;
|
|
3255
|
-
Object.prototype.hasOwnProperty.call(n, r) && this.tolerateError(
|
|
3253
|
+
Object.prototype.hasOwnProperty.call(n, r) && this.tolerateError(V.DuplicateBinding, e[t].value), n[r] = !0;
|
|
3256
3254
|
}
|
|
3257
|
-
this.context.strict && t.type === N.Identifier && this.scanner.isRestrictedWord(t.name) && this.tolerateError(
|
|
3255
|
+
this.context.strict && t.type === N.Identifier && this.scanner.isRestrictedWord(t.name) && this.tolerateError(V.StrictCatchVariable), this.expect(")");
|
|
3258
3256
|
}
|
|
3259
3257
|
let n = this.parseBlock();
|
|
3260
|
-
return this.finalize(e, new
|
|
3258
|
+
return this.finalize(e, new tr(t, n));
|
|
3261
3259
|
}
|
|
3262
3260
|
parseFinallyClause() {
|
|
3263
3261
|
return this.expectKeyword("finally"), this.parseBlock();
|
|
@@ -3266,11 +3264,11 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3266
3264
|
let e = this.createNode();
|
|
3267
3265
|
this.expectKeyword("try");
|
|
3268
3266
|
let t = this.parseBlock(), n = this.matchKeyword("catch") ? this.parseCatchClause() : null, r = this.matchKeyword("finally") ? this.parseFinallyClause() : null;
|
|
3269
|
-
return !n && !r && this.throwError(
|
|
3267
|
+
return !n && !r && this.throwError(V.NoCatchOrFinally), this.finalize(e, new ni(t, n, r));
|
|
3270
3268
|
}
|
|
3271
3269
|
parseDebuggerStatement() {
|
|
3272
3270
|
let e = this.createNode();
|
|
3273
|
-
return this.expectKeyword("debugger"), this.consumeSemicolon(), this.finalize(e, new
|
|
3271
|
+
return this.expectKeyword("debugger"), this.consumeSemicolon(), this.finalize(e, new cr());
|
|
3274
3272
|
}
|
|
3275
3273
|
parseStatement() {
|
|
3276
3274
|
let e;
|
|
@@ -3348,12 +3346,12 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3348
3346
|
this.expect("{");
|
|
3349
3347
|
let t = this.parseDirectivePrologues(), n = this.context.labelSet, r = this.context.inIteration, i = this.context.inSwitch, a = this.context.inFunctionBody;
|
|
3350
3348
|
for (this.context.labelSet = {}, this.context.inIteration = !1, this.context.inSwitch = !1, this.context.inFunctionBody = !0; this.lookahead.type !== 2 && !this.match("}");) t.push(this.parseStatementListItem());
|
|
3351
|
-
return this.expect("}"), this.context.labelSet = n, this.context.inIteration = r, this.context.inSwitch = i, this.context.inFunctionBody = a, this.finalize(e, new
|
|
3349
|
+
return this.expect("}"), this.context.labelSet = n, this.context.inIteration = r, this.context.inSwitch = i, this.context.inFunctionBody = a, this.finalize(e, new Qn(t));
|
|
3352
3350
|
}
|
|
3353
3351
|
validateParam(e, t, n) {
|
|
3354
3352
|
let r = "$" + n;
|
|
3355
3353
|
/* istanbul ignore next */
|
|
3356
|
-
this.context.strict ? (this.scanner.isRestrictedWord(n) && (e.stricted = t, e.message =
|
|
3354
|
+
this.context.strict ? (this.scanner.isRestrictedWord(n) && (e.stricted = t, e.message = V.StrictParamName), Object.prototype.hasOwnProperty.call(e.paramSet, r) && (e.stricted = t, e.hasDuplicateParameterNames = !0)) : e.firstRestricted || (this.scanner.isRestrictedWord(n) ? (e.firstRestricted = t, e.message = V.StrictParamName) : this.scanner.isStrictModeReservedWord(n) ? (e.firstRestricted = t, e.message = V.StrictReservedWord) : Object.prototype.hasOwnProperty.call(e.paramSet, r) && (e.stricted = t, e.hasDuplicateParameterNames = !0)), typeof Object.defineProperty == "function" ? Object.defineProperty(e.paramSet, r, {
|
|
3357
3355
|
value: !0,
|
|
3358
3356
|
enumerable: !0,
|
|
3359
3357
|
writable: !0,
|
|
@@ -3364,12 +3362,12 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3364
3362
|
let t = this.createNode();
|
|
3365
3363
|
this.expect("...");
|
|
3366
3364
|
let n = this.parsePattern(e);
|
|
3367
|
-
return this.match("=") && this.throwError(
|
|
3365
|
+
return this.match("=") && this.throwError(V.DefaultRestParameter), this.match(")") || this.throwError(V.ParameterAfterRestParameter), this.finalize(t, new Hr(n));
|
|
3368
3366
|
}
|
|
3369
3367
|
parseFormalParameter(e) {
|
|
3370
3368
|
let t = [], n = this.match("...") ? this.parseRestElement(t) : this.parsePatternWithDefault(t);
|
|
3371
3369
|
for (let n = 0; n < t.length; n++) this.validateParam(e, t[n], t[n].value);
|
|
3372
|
-
e.simple = e.simple && n instanceof
|
|
3370
|
+
e.simple = e.simple && n instanceof L, e.params.push(n);
|
|
3373
3371
|
}
|
|
3374
3372
|
parseFormalParameters(e) {
|
|
3375
3373
|
let t = {
|
|
@@ -3379,7 +3377,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3379
3377
|
firstRestricted: e
|
|
3380
3378
|
};
|
|
3381
3379
|
if (this.expect("("), !this.match(")")) for (t.paramSet = {}; this.lookahead.type !== 2 && (this.parseFormalParameter(t), !(this.match(")") || (this.expect(","), this.match(")")))););
|
|
3382
|
-
return this.expect(")"), t.hasDuplicateParameterNames && (this.context.strict || this.context.isAsync || !t.simple) && this.throwError(
|
|
3380
|
+
return this.expect(")"), t.hasDuplicateParameterNames && (this.context.strict || this.context.isAsync || !t.simple) && this.throwError(V.DuplicateParameter), {
|
|
3383
3381
|
simple: t.simple,
|
|
3384
3382
|
params: t.params,
|
|
3385
3383
|
stricted: t.stricted,
|
|
@@ -3399,13 +3397,13 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3399
3397
|
}
|
|
3400
3398
|
parseFunctionDeclaration(e) {
|
|
3401
3399
|
let t = this.createNode(), n = this.matchContextualKeyword("async");
|
|
3402
|
-
n && (this.context.inIteration && this.tolerateError(
|
|
3400
|
+
n && (this.context.inIteration && this.tolerateError(V.AsyncFunctionInSingleStatementContext), this.nextToken()), this.expectKeyword("function");
|
|
3403
3401
|
let r = this.match("*");
|
|
3404
3402
|
r && this.nextToken();
|
|
3405
3403
|
let i, a = null, o = null;
|
|
3406
3404
|
if (!e || !this.match("(")) {
|
|
3407
3405
|
let e = this.lookahead;
|
|
3408
|
-
a = this.parseVariableIdentifier(), this.context.strict ? this.scanner.isRestrictedWord(e.value) && this.tolerateUnexpectedToken(e,
|
|
3406
|
+
a = this.parseVariableIdentifier(), this.context.strict ? this.scanner.isRestrictedWord(e.value) && this.tolerateUnexpectedToken(e, V.StrictFunctionName) : this.scanner.isRestrictedWord(e.value) ? (o = e, i = V.StrictFunctionName) : this.scanner.isStrictModeReservedWord(e.value) && (o = e, i = V.StrictReservedWord);
|
|
3409
3407
|
}
|
|
3410
3408
|
let s = this.context.isAsync, c = this.context.allowYield;
|
|
3411
3409
|
this.context.isAsync = n, this.context.allowYield = !r;
|
|
@@ -3414,7 +3412,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3414
3412
|
let f = this.context.strict, p = this.context.allowStrictDirective;
|
|
3415
3413
|
this.context.allowStrictDirective = l.simple;
|
|
3416
3414
|
let m = this.parseFunctionSourceElements();
|
|
3417
|
-
return this.context.strict && o && this.throwUnexpectedToken(o, i), this.context.strict && d && this.tolerateUnexpectedToken(d, i), this.context.strict = f, this.context.allowStrictDirective = p, this.context.isAsync = s, this.context.allowYield = c, n ? this.finalize(t, new
|
|
3415
|
+
return this.context.strict && o && this.throwUnexpectedToken(o, i), this.context.strict && d && this.tolerateUnexpectedToken(d, i), this.context.strict = f, this.context.allowStrictDirective = p, this.context.isAsync = s, this.context.allowYield = c, n ? this.finalize(t, new Jn(a, u, m, r)) : this.finalize(t, new xr(a, u, m, r));
|
|
3418
3416
|
}
|
|
3419
3417
|
parseFunctionExpression() {
|
|
3420
3418
|
let e = this.createNode(), t = this.matchContextualKeyword("async");
|
|
@@ -3424,18 +3422,18 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3424
3422
|
let r, i = null, a, o = this.context.isAsync, s = this.context.allowYield;
|
|
3425
3423
|
if (this.context.isAsync = t, this.context.allowYield = !n, !this.match("(")) {
|
|
3426
3424
|
let e = this.lookahead;
|
|
3427
|
-
i = !this.context.strict && !n && this.matchKeyword("yield") ? this.parseIdentifierName() : this.parseVariableIdentifier(), this.context.strict ? this.scanner.isRestrictedWord(e.value) && this.tolerateUnexpectedToken(e,
|
|
3425
|
+
i = !this.context.strict && !n && this.matchKeyword("yield") ? this.parseIdentifierName() : this.parseVariableIdentifier(), this.context.strict ? this.scanner.isRestrictedWord(e.value) && this.tolerateUnexpectedToken(e, V.StrictFunctionName) : this.scanner.isRestrictedWord(e.value) ? (a = e, r = V.StrictFunctionName) : this.scanner.isStrictModeReservedWord(e.value) && (a = e, r = V.StrictReservedWord);
|
|
3428
3426
|
}
|
|
3429
3427
|
let c = this.parseFormalParameters(a), l = c.params, u = c.stricted;
|
|
3430
3428
|
a = c.firstRestricted, c.message && (r = c.message);
|
|
3431
3429
|
let d = this.context.strict, f = this.context.allowStrictDirective;
|
|
3432
3430
|
this.context.allowStrictDirective = c.simple;
|
|
3433
3431
|
let p = this.parseFunctionSourceElements();
|
|
3434
|
-
return this.context.strict && a && this.throwUnexpectedToken(a, r), this.context.strict && u && this.tolerateUnexpectedToken(u, r), this.context.strict = d, this.context.allowStrictDirective = f, this.context.isAsync = o, this.context.allowYield = s, this.finalize(e, new
|
|
3432
|
+
return this.context.strict && a && this.throwUnexpectedToken(a, r), this.context.strict && u && this.tolerateUnexpectedToken(u, r), this.context.strict = d, this.context.allowStrictDirective = f, this.context.isAsync = o, this.context.allowYield = s, this.finalize(e, new I(i, l, p, n, t));
|
|
3435
3433
|
}
|
|
3436
3434
|
parseDirective() {
|
|
3437
3435
|
let e = this.lookahead, t = this.createNode(), n = this.parseExpression(), r = n.type === N.Literal ? this.getTokenRaw(e).slice(1, -1) : null;
|
|
3438
|
-
return this.consumeSemicolon(), this.finalize(t, r ? new
|
|
3436
|
+
return this.consumeSemicolon(), this.finalize(t, r ? new ur(n, r) : new _r(n));
|
|
3439
3437
|
}
|
|
3440
3438
|
parseDirectivePrologues() {
|
|
3441
3439
|
let e = null, t = [];
|
|
@@ -3446,7 +3444,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3446
3444
|
t.push(r);
|
|
3447
3445
|
let i = r.directive;
|
|
3448
3446
|
if (typeof i != "string") break;
|
|
3449
|
-
i === "use strict" ? (this.context.strict = !0, e && this.tolerateUnexpectedToken(e,
|
|
3447
|
+
i === "use strict" ? (this.context.strict = !0, e && this.tolerateUnexpectedToken(e, V.StrictOctalLiteral), this.context.allowStrictDirective || this.tolerateUnexpectedToken(n, V.IllegalLanguageModeDirective)) : !e && n.octal && (e = n);
|
|
3450
3448
|
}
|
|
3451
3449
|
return t;
|
|
3452
3450
|
}
|
|
@@ -3466,17 +3464,17 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3466
3464
|
let e = this.createNode(), t = this.context.allowYield;
|
|
3467
3465
|
this.context.allowYield = !0;
|
|
3468
3466
|
let n = this.parseFormalParameters();
|
|
3469
|
-
n.params.length > 0 && this.tolerateError(
|
|
3467
|
+
n.params.length > 0 && this.tolerateError(V.BadGetterArity);
|
|
3470
3468
|
let r = this.parsePropertyMethod(n);
|
|
3471
|
-
return this.context.allowYield = t, this.finalize(e, new
|
|
3469
|
+
return this.context.allowYield = t, this.finalize(e, new I(null, n.params, r, !1, !1));
|
|
3472
3470
|
}
|
|
3473
3471
|
parseSetterMethod() {
|
|
3474
3472
|
let e = this.createNode(), t = this.context.allowYield;
|
|
3475
3473
|
this.context.allowYield = !0;
|
|
3476
3474
|
let n = this.parseFormalParameters();
|
|
3477
|
-
n.params.length === 1 ? n.params[0] instanceof
|
|
3475
|
+
n.params.length === 1 ? n.params[0] instanceof Hr && this.tolerateError(V.BadSetterRestParameter) : this.tolerateError(V.BadSetterArity);
|
|
3478
3476
|
let r = this.parsePropertyMethod(n);
|
|
3479
|
-
return this.context.allowYield = t, this.finalize(e, new
|
|
3477
|
+
return this.context.allowYield = t, this.finalize(e, new I(null, n.params, r, !1, !1));
|
|
3480
3478
|
}
|
|
3481
3479
|
parseGeneratorMethod(e) {
|
|
3482
3480
|
let t = this.createNode(), n = this.context.allowYield;
|
|
@@ -3484,7 +3482,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3484
3482
|
let r = this.parseFormalParameters();
|
|
3485
3483
|
this.context.allowYield = !1;
|
|
3486
3484
|
let i = this.parsePropertyMethod(r);
|
|
3487
|
-
return this.context.allowYield = n, this.finalize(t, new
|
|
3485
|
+
return this.context.allowYield = n, this.finalize(t, new I(null, r.params, i, !0, e));
|
|
3488
3486
|
}
|
|
3489
3487
|
isStartOfExpression() {
|
|
3490
3488
|
let e = !0, t = this.lookahead.value;
|
|
@@ -3506,14 +3504,14 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3506
3504
|
let e = this.context.allowYield;
|
|
3507
3505
|
this.context.allowYield = !1, n = this.match("*"), n ? (this.nextToken(), t = this.parseAssignmentExpression()) : this.isStartOfExpression() && (t = this.parseAssignmentExpression()), this.context.allowYield = e;
|
|
3508
3506
|
}
|
|
3509
|
-
return this.finalize(e, new
|
|
3507
|
+
return this.finalize(e, new ci(t, n));
|
|
3510
3508
|
}
|
|
3511
3509
|
parseStaticBlock() {
|
|
3512
3510
|
let e = this.createNode();
|
|
3513
3511
|
this.expect("{");
|
|
3514
3512
|
let t = [];
|
|
3515
3513
|
for (; !this.match("}");) t.push(this.parseStatementListItem());
|
|
3516
|
-
return this.expect("}"), this.finalize(e, new
|
|
3514
|
+
return this.expect("}"), this.finalize(e, new qr(t));
|
|
3517
3515
|
}
|
|
3518
3516
|
parseDecorator() {
|
|
3519
3517
|
let e = this.createNode();
|
|
@@ -3521,7 +3519,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3521
3519
|
let t = this.context.strict, n = this.context.allowYield, r = this.context.isAsync;
|
|
3522
3520
|
this.context.strict = !1, this.context.allowYield = !0, this.context.isAsync = !1;
|
|
3523
3521
|
let i = this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall);
|
|
3524
|
-
return this.context.strict = t, this.context.allowYield = n, this.context.isAsync = r, this.match(";") && this.throwError(
|
|
3522
|
+
return this.context.strict = t, this.context.allowYield = n, this.context.isAsync = r, this.match(";") && this.throwError(V.NoSemicolonAfterDecorator), this.finalize(e, new lr(i));
|
|
3525
3523
|
}
|
|
3526
3524
|
parseDecorators() {
|
|
3527
3525
|
let e = null;
|
|
@@ -3537,16 +3535,16 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3537
3535
|
if (this.context.inConstructor = t.type === 3 && t.value === "constructor", e.name === "static" && (this.qualifiedPropertyName(this.lookahead) || this.match("*")) && (t = this.lookahead, l = !0, s = this.match("["), this.match("*") ? (this.nextToken(), this.match("#") && (f = !0, this.nextToken(), t = this.lookahead)) : (this.match("#") && (f = !0, this.nextToken(), t = this.lookahead), a = this.parseObjectPropertyKey(f))), e.name === "static" && this.match("{")) return this.parseStaticBlock();
|
|
3538
3536
|
if (t.type === 3 && !this.hasLineTerminator && t.value === "async") {
|
|
3539
3537
|
let e = this.lookahead.value;
|
|
3540
|
-
e !== ":" && e !== "(" && (u = !0, d = this.match("*"), d && this.nextToken(), t = this.lookahead, s = this.match("["), this.match("*") ? (this.nextToken(), this.match("#") && (f = !0, this.nextToken())) : (this.match("#") && (f = !0, this.nextToken(), t = this.lookahead), a = this.parseObjectPropertyKey(f)), t.type === 3 && t.value === "constructor" && !l && this.tolerateUnexpectedToken(t,
|
|
3538
|
+
e !== ":" && e !== "(" && (u = !0, d = this.match("*"), d && this.nextToken(), t = this.lookahead, s = this.match("["), this.match("*") ? (this.nextToken(), this.match("#") && (f = !0, this.nextToken())) : (this.match("#") && (f = !0, this.nextToken(), t = this.lookahead), a = this.parseObjectPropertyKey(f)), t.type === 3 && t.value === "constructor" && !l && this.tolerateUnexpectedToken(t, V.ConstructorIsAsync));
|
|
3541
3539
|
}
|
|
3542
3540
|
}
|
|
3543
|
-
t.type === 3 && t.value === "constructor" && f && this.tolerateUnexpectedToken(t,
|
|
3541
|
+
t.type === 3 && t.value === "constructor" && f && this.tolerateUnexpectedToken(t, V.ConstructorIsPrivate);
|
|
3544
3542
|
let m = this.qualifiedPropertyName(this.lookahead);
|
|
3545
3543
|
if (t.type === 3 || t.type === 8 ? t.value === "get" && m ? (i = "get", this.match("#") && (f = !0, this.nextToken(), t = this.lookahead), s = this.match("["), a = this.parseObjectPropertyKey(f), this.context.allowYield = !1, o = this.parseGetterMethod()) : t.value === "set" && m ? (i = "set", this.match("#") && (f = !0, this.nextToken(), t = this.lookahead), s = this.match("["), a = this.parseObjectPropertyKey(f), o = this.parseSetterMethod()) : this.match("(") || (i = "property", s = !1, this.match("=") && (this.nextToken(), o = this.isolateCoverGrammar(this.parseAssignmentExpression))) : t.type === 7 && t.value === "*" && m ? (i = "init", s = this.match("["), a = this.parseObjectPropertyKey(f), o = this.parseGeneratorMethod(u), c = !0) : t.type === 7 && t.value === "[" && !this.match("(") && (i = "property", s = !0, this.match("=") && (this.nextToken(), o = this.isolateCoverGrammar(this.parseAssignmentExpression))), !i && a && this.match("(")) {
|
|
3546
3544
|
let e = this.context.inClassConstructor;
|
|
3547
3545
|
this.context.inClassConstructor = t.value === "constructor", i = "init", o = u ? this.parsePropertyMethodAsyncFunction(d) : this.parsePropertyMethodFunction(d), this.context.inClassConstructor = e, c = !0;
|
|
3548
3546
|
}
|
|
3549
|
-
return i || this.throwUnexpectedToken(this.lookahead), i === "init" && (i = "method"), s || (l && this.isPropertyKey(a, "prototype") && this.throwUnexpectedToken(t,
|
|
3547
|
+
return i || this.throwUnexpectedToken(this.lookahead), i === "init" && (i = "method"), s || (l && this.isPropertyKey(a, "prototype") && this.throwUnexpectedToken(t, V.StaticPrototype), !l && this.isPropertyKey(a, "constructor") && ((i !== "method" || !c || o && o.generator) && this.throwUnexpectedToken(t, V.ConstructorSpecialMethod), e.value ? this.throwUnexpectedToken(t, V.DuplicateConstructor) : e.value = !0, i = "constructor")), this.context.inConstructor = r, i === "property" ? (this.consumeSemicolon(), this.finalize(n, new Br(a, s, o, l, p))) : this.finalize(n, new Nr(a, s, o, i, l, p));
|
|
3550
3548
|
}
|
|
3551
3549
|
parseClassElementList() {
|
|
3552
3550
|
let e = [], t = { value: !1 };
|
|
@@ -3555,7 +3553,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3555
3553
|
}
|
|
3556
3554
|
parseClassBody() {
|
|
3557
3555
|
let e = this.createNode(), t = this.parseClassElementList();
|
|
3558
|
-
return this.finalize(e, new
|
|
3556
|
+
return this.finalize(e, new rr(t));
|
|
3559
3557
|
}
|
|
3560
3558
|
parseClassDeclaration(e) {
|
|
3561
3559
|
let t = this.createNode(), n = this.context.strict, r = this.context.allowSuper;
|
|
@@ -3563,7 +3561,7 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3563
3561
|
let i = e && this.lookahead.type !== 3 ? null : this.parseVariableIdentifier(), a = null;
|
|
3564
3562
|
this.matchKeyword("extends") && (this.nextToken(), a = this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall), this.context.allowSuper = !0);
|
|
3565
3563
|
let o = this.parseClassBody();
|
|
3566
|
-
return this.context.allowSuper = r, this.context.strict = n, this.finalize(t, new
|
|
3564
|
+
return this.context.allowSuper = r, this.context.strict = n, this.finalize(t, new ir(i, a, o, this.context.decorators));
|
|
3567
3565
|
}
|
|
3568
3566
|
parseClassExpression() {
|
|
3569
3567
|
let e = this.createNode(), t = this.context.strict;
|
|
@@ -3571,18 +3569,18 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3571
3569
|
let n = this.lookahead.type === 3 ? this.parseVariableIdentifier() : null, r = null;
|
|
3572
3570
|
this.matchKeyword("extends") && (this.nextToken(), r = this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall), this.context.allowSuper = !0);
|
|
3573
3571
|
let i = this.parseClassBody();
|
|
3574
|
-
return this.context.strict = t, this.finalize(e, new
|
|
3572
|
+
return this.context.strict = t, this.finalize(e, new ar(n, r, i, this.context.decorators));
|
|
3575
3573
|
}
|
|
3576
3574
|
parseModule() {
|
|
3577
3575
|
this.context.strict = !0, this.context.isModule = !0, this.scanner.isModule = !0;
|
|
3578
3576
|
let e = this.createNode(), t = this.parseDirectivePrologues();
|
|
3579
3577
|
for (; this.lookahead.type !== 2;) t.push(this.parseStatementListItem());
|
|
3580
|
-
return this.finalize(e, new
|
|
3578
|
+
return this.finalize(e, new Pr(t));
|
|
3581
3579
|
}
|
|
3582
3580
|
parseScript() {
|
|
3583
3581
|
let e = this.createNode(), t = this.parseDirectivePrologues();
|
|
3584
3582
|
for (; this.lookahead.type !== 2;) t.push(this.parseStatementListItem());
|
|
3585
|
-
return this.finalize(e, new
|
|
3583
|
+
return this.finalize(e, new Wr(t));
|
|
3586
3584
|
}
|
|
3587
3585
|
parseImportAttributes() {
|
|
3588
3586
|
if (this.lookahead.value === "assert") {
|
|
@@ -3598,18 +3596,18 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3598
3596
|
this.lookahead.type !== 3 && this.throwUnexpectedToken(this.nextToken());
|
|
3599
3597
|
let t = this.parseIdentifierName();
|
|
3600
3598
|
this.match(":") || this.throwUnexpectedToken(this.nextToken()), this.nextToken();
|
|
3601
|
-
let n = this.nextToken(), r = this.getTokenRaw(n), i = this.finalize(e, new
|
|
3602
|
-
return this.finalize(e, new
|
|
3599
|
+
let n = this.nextToken(), r = this.getTokenRaw(n), i = this.finalize(e, new R(n.value, r));
|
|
3600
|
+
return this.finalize(e, new Cr(t, i));
|
|
3603
3601
|
}
|
|
3604
3602
|
parseModuleSpecifier() {
|
|
3605
3603
|
let e = this.createNode();
|
|
3606
|
-
this.lookahead.type !== 8 && this.throwError(
|
|
3604
|
+
this.lookahead.type !== 8 && this.throwError(V.InvalidModuleSpecifier);
|
|
3607
3605
|
let t = this.nextToken(), n = this.getTokenRaw(t);
|
|
3608
|
-
return P.isStringWellFormedUnicode(t.value) || this.throwError(
|
|
3606
|
+
return P.isStringWellFormedUnicode(t.value) || this.throwError(V.InvalidModuleSpecifier), this.finalize(e, new R(t.value, n));
|
|
3609
3607
|
}
|
|
3610
3608
|
parseImportSpecifier() {
|
|
3611
3609
|
let e = this.createNode(), t, n;
|
|
3612
|
-
return this.lookahead.type === 3 ? (t = this.parseVariableIdentifier(), n = t, this.matchContextualKeyword("as") && (this.nextToken(), n = this.parseVariableIdentifier())) : (t = this.lookahead.type == 8 ? this.parseModuleSpecifier() : this.parseIdentifierName(), n = t, this.matchContextualKeyword("as") ? (this.nextToken(), n = this.parseVariableIdentifier()) : this.throwUnexpectedToken(this.nextToken())), this.finalize(e, new
|
|
3610
|
+
return this.lookahead.type === 3 ? (t = this.parseVariableIdentifier(), n = t, this.matchContextualKeyword("as") && (this.nextToken(), n = this.parseVariableIdentifier())) : (t = this.lookahead.type == 8 ? this.parseModuleSpecifier() : this.parseIdentifierName(), n = t, this.matchContextualKeyword("as") ? (this.nextToken(), n = this.parseVariableIdentifier()) : this.throwUnexpectedToken(this.nextToken())), this.finalize(e, new Or(n, t));
|
|
3613
3611
|
}
|
|
3614
3612
|
parseNamedImports() {
|
|
3615
3613
|
this.expect("{");
|
|
@@ -3619,63 +3617,63 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3619
3617
|
}
|
|
3620
3618
|
parseImportDefaultSpecifier() {
|
|
3621
3619
|
let e = this.createNode(), t = this.parseIdentifierName();
|
|
3622
|
-
return this.finalize(e, new
|
|
3620
|
+
return this.finalize(e, new Er(t));
|
|
3623
3621
|
}
|
|
3624
3622
|
parseImportNamespaceSpecifier() {
|
|
3625
3623
|
let e = this.createNode();
|
|
3626
|
-
this.expect("*"), this.matchContextualKeyword("as") || this.throwError(
|
|
3624
|
+
this.expect("*"), this.matchContextualKeyword("as") || this.throwError(V.NoAsAfterImportNamespace), this.lookahead.escaped && this.throwError(V.NoAsAndFromEscapeSequences), this.nextToken();
|
|
3627
3625
|
let t = this.parseIdentifierName();
|
|
3628
|
-
return this.finalize(e, new
|
|
3626
|
+
return this.finalize(e, new Dr(t));
|
|
3629
3627
|
}
|
|
3630
3628
|
parseImportDeclaration() {
|
|
3631
|
-
this.context.inFunctionBody && this.throwError(
|
|
3629
|
+
this.context.inFunctionBody && this.throwError(V.IllegalImportDeclaration);
|
|
3632
3630
|
let e = this.createNode();
|
|
3633
3631
|
this.expectKeyword("import");
|
|
3634
3632
|
let t, n = [];
|
|
3635
3633
|
if (this.lookahead.type === 8) t = this.parseModuleSpecifier();
|
|
3636
3634
|
else {
|
|
3637
3635
|
if (this.match("{") ? n = n.concat(this.parseNamedImports()) : this.match("*") ? n.push(this.parseImportNamespaceSpecifier()) : this.isIdentifierName(this.lookahead) && !this.matchKeyword("default") ? (n.push(this.parseImportDefaultSpecifier()), this.match(",") && (this.nextToken(), this.match("*") ? n.push(this.parseImportNamespaceSpecifier()) : this.match("{") ? n = n.concat(this.parseNamedImports()) : this.throwUnexpectedToken(this.lookahead))) : this.throwUnexpectedToken(this.nextToken()), !this.matchContextualKeyword("from")) {
|
|
3638
|
-
let e = this.lookahead.value ?
|
|
3636
|
+
let e = this.lookahead.value ? V.UnexpectedToken : V.MissingFromClause;
|
|
3639
3637
|
this.throwError(e, this.lookahead.value);
|
|
3640
3638
|
}
|
|
3641
3639
|
this.nextToken(), t = this.parseModuleSpecifier();
|
|
3642
3640
|
}
|
|
3643
3641
|
let r = this.parseImportAttributes();
|
|
3644
|
-
return this.consumeSemicolon(), this.finalize(e, new
|
|
3642
|
+
return this.consumeSemicolon(), this.finalize(e, new Tr(n, t, r));
|
|
3645
3643
|
}
|
|
3646
3644
|
parseExportSpecifier() {
|
|
3647
3645
|
let e = this.createNode(), t = this.lookahead.type == 8 ? this.parseModuleSpecifier() : this.parseIdentifierName(), n = t;
|
|
3648
|
-
return this.matchContextualKeyword("as") && (this.lookahead.escaped && this.throwError(
|
|
3646
|
+
return this.matchContextualKeyword("as") && (this.lookahead.escaped && this.throwError(V.NoAsAndFromEscapeSequences), this.nextToken(), n = this.lookahead.type == 8 ? this.parseModuleSpecifier() : this.parseIdentifierName()), this.finalize(e, new gr(t, n));
|
|
3649
3647
|
}
|
|
3650
3648
|
parseExportDeclaration() {
|
|
3651
|
-
this.context.inFunctionBody && this.throwError(
|
|
3649
|
+
this.context.inFunctionBody && this.throwError(V.IllegalExportDeclaration);
|
|
3652
3650
|
let e = this.createNode();
|
|
3653
3651
|
this.expectKeyword("export");
|
|
3654
3652
|
let t;
|
|
3655
3653
|
if (this.matchKeyword("default")) if (this.nextToken(), this.matchKeyword("function")) {
|
|
3656
3654
|
let n = this.parseFunctionDeclaration(!0);
|
|
3657
|
-
t = this.finalize(e, new
|
|
3655
|
+
t = this.finalize(e, new mr(n));
|
|
3658
3656
|
} else if (this.matchKeyword("class")) {
|
|
3659
3657
|
let n = this.parseClassDeclaration(!0);
|
|
3660
|
-
t = this.finalize(e, new
|
|
3658
|
+
t = this.finalize(e, new mr(n));
|
|
3661
3659
|
} else if (this.matchContextualKeyword("async")) {
|
|
3662
3660
|
let n = this.matchAsyncFunction() ? this.parseFunctionDeclaration(!0) : this.parseAssignmentExpression();
|
|
3663
|
-
t = this.finalize(e, new
|
|
3661
|
+
t = this.finalize(e, new mr(n));
|
|
3664
3662
|
} else {
|
|
3665
|
-
this.matchContextualKeyword("from") && this.throwError(
|
|
3663
|
+
this.matchContextualKeyword("from") && this.throwError(V.UnexpectedToken, this.lookahead.value);
|
|
3666
3664
|
let n = this.match("{") ? this.parseObjectInitializer() : this.match("[") ? this.parseArrayInitializer() : this.parseAssignmentExpression();
|
|
3667
|
-
this.consumeSemicolon(), t = this.finalize(e, new
|
|
3665
|
+
this.consumeSemicolon(), t = this.finalize(e, new mr(n));
|
|
3668
3666
|
}
|
|
3669
3667
|
else if (this.match("*")) {
|
|
3670
3668
|
this.nextToken();
|
|
3671
3669
|
let n = null;
|
|
3672
|
-
if (this.matchContextualKeyword("as") && (this.lookahead.escaped && this.throwError(
|
|
3673
|
-
let e = this.lookahead.value ?
|
|
3670
|
+
if (this.matchContextualKeyword("as") && (this.lookahead.escaped && this.throwError(V.NoAsAndFromEscapeSequences), this.nextToken(), n = this.lookahead.type == 8 ? this.parseModuleSpecifier() : this.parseIdentifierName()), !this.matchContextualKeyword("from")) {
|
|
3671
|
+
let e = this.lookahead.value ? V.UnexpectedToken : V.MissingFromClause;
|
|
3674
3672
|
this.throwError(e, this.lookahead.value);
|
|
3675
3673
|
}
|
|
3676
|
-
this.lookahead.escaped && this.throwError(
|
|
3674
|
+
this.lookahead.escaped && this.throwError(V.NoAsAndFromEscapeSequences), this.nextToken();
|
|
3677
3675
|
let r = this.parseModuleSpecifier(), i = this.parseImportAttributes();
|
|
3678
|
-
this.consumeSemicolon(), t = this.finalize(e, new
|
|
3676
|
+
this.consumeSemicolon(), t = this.finalize(e, new pr(r, n, i));
|
|
3679
3677
|
} else if (this.lookahead.type === 4) {
|
|
3680
3678
|
let n;
|
|
3681
3679
|
switch (this.lookahead.value) {
|
|
@@ -3690,23 +3688,23 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3690
3688
|
break;
|
|
3691
3689
|
default: this.throwUnexpectedToken(this.lookahead);
|
|
3692
3690
|
}
|
|
3693
|
-
t = this.finalize(e, new
|
|
3691
|
+
t = this.finalize(e, new hr(n, [], null, null));
|
|
3694
3692
|
} else if (this.matchAsyncFunction()) {
|
|
3695
3693
|
let n = this.parseFunctionDeclaration();
|
|
3696
|
-
t = this.finalize(e, new
|
|
3694
|
+
t = this.finalize(e, new hr(n, [], null, null));
|
|
3697
3695
|
} else {
|
|
3698
3696
|
let n = [], r = null, i = !1, a = null;
|
|
3699
3697
|
for (this.expect("{"); !this.match("}");) i ||= this.matchKeyword("default"), n.push(this.parseExportSpecifier()), this.match("}") || this.expect(",");
|
|
3700
|
-
if (this.expect("}"), this.matchContextualKeyword("from")) this.lookahead.escaped && this.throwError(
|
|
3698
|
+
if (this.expect("}"), this.matchContextualKeyword("from")) this.lookahead.escaped && this.throwError(V.NoAsAndFromEscapeSequences), this.nextToken(), r = this.parseModuleSpecifier(), a = this.parseImportAttributes(), this.consumeSemicolon();
|
|
3701
3699
|
else if (i) {
|
|
3702
|
-
let e = this.lookahead.value ?
|
|
3700
|
+
let e = this.lookahead.value ? V.UnexpectedToken : V.MissingFromClause;
|
|
3703
3701
|
this.throwError(e, this.lookahead.value);
|
|
3704
3702
|
} else a = this.parseImportAttributes(), this.consumeSemicolon();
|
|
3705
|
-
t = this.finalize(e, new
|
|
3703
|
+
t = this.finalize(e, new hr(null, n, r, a));
|
|
3706
3704
|
}
|
|
3707
3705
|
return t;
|
|
3708
3706
|
}
|
|
3709
|
-
},
|
|
3707
|
+
}, mi = {
|
|
3710
3708
|
quot: "\"",
|
|
3711
3709
|
amp: "&",
|
|
3712
3710
|
apos: "'",
|
|
@@ -3960,8 +3958,8 @@ var W = "ArrowParameterPlaceHolder", si = class {
|
|
|
3960
3958
|
lang: "⟨",
|
|
3961
3959
|
rang: "⟩"
|
|
3962
3960
|
};
|
|
3963
|
-
|
|
3964
|
-
function
|
|
3961
|
+
H[100] = "JSXIdentifier", H[101] = "JSXText";
|
|
3962
|
+
function W(e) {
|
|
3965
3963
|
let t;
|
|
3966
3964
|
switch (e.type) {
|
|
3967
3965
|
case F.JSXIdentifier:
|
|
@@ -3969,16 +3967,16 @@ function G(e) {
|
|
|
3969
3967
|
break;
|
|
3970
3968
|
case F.JSXNamespacedName:
|
|
3971
3969
|
let n = e;
|
|
3972
|
-
t =
|
|
3970
|
+
t = W(n.namespace) + ":" + W(n.name);
|
|
3973
3971
|
break;
|
|
3974
3972
|
case F.JSXMemberExpression:
|
|
3975
3973
|
let r = e;
|
|
3976
|
-
t =
|
|
3974
|
+
t = W(r.object) + "." + W(r.property);
|
|
3977
3975
|
break;
|
|
3978
3976
|
}
|
|
3979
3977
|
return t;
|
|
3980
3978
|
}
|
|
3981
|
-
var
|
|
3979
|
+
var hi = class extends pi {
|
|
3982
3980
|
constructor(e, t, n) {
|
|
3983
3981
|
super(e, t, n);
|
|
3984
3982
|
}
|
|
@@ -4027,7 +4025,7 @@ var li = class extends si {
|
|
|
4027
4025
|
}
|
|
4028
4026
|
if (n && r && t.length > 2) {
|
|
4029
4027
|
let e = t.substr(1, t.length - 2);
|
|
4030
|
-
i && e.length > 1 ? t = String.fromCharCode(parseInt(e.substr(1), 10)) : a && e.length > 2 ? t = String.fromCharCode(parseInt("0" + e.substr(1), 16)) : !i && !a &&
|
|
4028
|
+
i && e.length > 1 ? t = String.fromCharCode(parseInt(e.substr(1), 10)) : a && e.length > 2 ? t = String.fromCharCode(parseInt("0" + e.substr(1), 16)) : !i && !a && mi[e] && (t = mi[e]);
|
|
4031
4029
|
}
|
|
4032
4030
|
return t;
|
|
4033
4031
|
}
|
|
@@ -4135,7 +4133,7 @@ var li = class extends si {
|
|
|
4135
4133
|
}
|
|
4136
4134
|
parseJSXIdentifier() {
|
|
4137
4135
|
let e = this.createJSXNode(), t = this.nextJSXToken();
|
|
4138
|
-
return t.type !== 100 && this.throwUnexpectedToken(t), this.finalize(e, new
|
|
4136
|
+
return t.type !== 100 && this.throwUnexpectedToken(t), this.finalize(e, new Fn(t.value));
|
|
4139
4137
|
}
|
|
4140
4138
|
parseJSXElementName() {
|
|
4141
4139
|
let e = this.createJSXNode(), t = this.parseJSXIdentifier();
|
|
@@ -4143,12 +4141,12 @@ var li = class extends si {
|
|
|
4143
4141
|
let n = t;
|
|
4144
4142
|
this.expectJSX(":");
|
|
4145
4143
|
let r = this.parseJSXIdentifier();
|
|
4146
|
-
t = this.finalize(e, new
|
|
4144
|
+
t = this.finalize(e, new Rn(n, r));
|
|
4147
4145
|
} else if (this.matchJSX(".")) for (; this.matchJSX(".");) {
|
|
4148
4146
|
let n = t;
|
|
4149
4147
|
this.expectJSX(".");
|
|
4150
4148
|
let r = this.parseJSXIdentifier();
|
|
4151
|
-
t = this.finalize(e, new
|
|
4149
|
+
t = this.finalize(e, new In(n, r));
|
|
4152
4150
|
}
|
|
4153
4151
|
return t;
|
|
4154
4152
|
}
|
|
@@ -4158,7 +4156,7 @@ var li = class extends si {
|
|
|
4158
4156
|
let r = n;
|
|
4159
4157
|
this.expectJSX(":");
|
|
4160
4158
|
let i = this.parseJSXIdentifier();
|
|
4161
|
-
t = this.finalize(e, new
|
|
4159
|
+
t = this.finalize(e, new Rn(r, i));
|
|
4162
4160
|
} else t = n;
|
|
4163
4161
|
return t;
|
|
4164
4162
|
}
|
|
@@ -4166,26 +4164,26 @@ var li = class extends si {
|
|
|
4166
4164
|
let e = this.createJSXNode(), t = this.nextJSXToken();
|
|
4167
4165
|
t.type !== 8 && this.throwUnexpectedToken(t);
|
|
4168
4166
|
let n = this.getTokenRaw(t);
|
|
4169
|
-
return this.finalize(e, new
|
|
4167
|
+
return this.finalize(e, new R(t.value, n));
|
|
4170
4168
|
}
|
|
4171
4169
|
parseJSXExpressionAttribute() {
|
|
4172
4170
|
let e = this.createJSXNode();
|
|
4173
4171
|
this.expectJSX("{"), this.finishJSX(), this.match("}") && this.tolerateError("JSX attributes must only be assigned a non-empty expression");
|
|
4174
4172
|
let t = this.parseAssignmentExpression();
|
|
4175
|
-
return this.reenterJSX(), this.finalize(e, new
|
|
4173
|
+
return this.reenterJSX(), this.finalize(e, new Pn(t));
|
|
4176
4174
|
}
|
|
4177
4175
|
parseJSXAttributeValue() {
|
|
4178
4176
|
return this.matchJSX("{") ? this.parseJSXExpressionAttribute() : this.matchJSX("<") ? this.parseJSXElement() : this.parseJSXStringLiteralAttribute();
|
|
4179
4177
|
}
|
|
4180
4178
|
parseJSXNameValueAttribute() {
|
|
4181
4179
|
let e = this.createJSXNode(), t = this.parseJSXAttributeName(), n = null;
|
|
4182
|
-
return this.matchJSX("=") && (this.expectJSX("="), n = this.parseJSXAttributeValue()), this.finalize(e, new
|
|
4180
|
+
return this.matchJSX("=") && (this.expectJSX("="), n = this.parseJSXAttributeValue()), this.finalize(e, new Ln(t, n));
|
|
4183
4181
|
}
|
|
4184
4182
|
parseJSXSpreadAttribute() {
|
|
4185
4183
|
let e = this.createJSXNode();
|
|
4186
4184
|
this.expectJSX("{"), this.expectJSX("..."), this.finishJSX();
|
|
4187
4185
|
let t = this.parseAssignmentExpression();
|
|
4188
|
-
return this.reenterJSX(), this.finalize(e, new
|
|
4186
|
+
return this.reenterJSX(), this.finalize(e, new Vn(t));
|
|
4189
4187
|
}
|
|
4190
4188
|
parseJSXAttributes() {
|
|
4191
4189
|
let e = [];
|
|
@@ -4197,36 +4195,36 @@ var li = class extends si {
|
|
|
4197
4195
|
}
|
|
4198
4196
|
parseJSXOpeningElement() {
|
|
4199
4197
|
let e = this.createJSXNode();
|
|
4200
|
-
if (this.expectJSX("<"), this.matchJSX(">")) return this.expectJSX(">"), this.finalize(e, new
|
|
4198
|
+
if (this.expectJSX("<"), this.matchJSX(">")) return this.expectJSX(">"), this.finalize(e, new Bn(!1));
|
|
4201
4199
|
let t = this.parseJSXElementName(), n = this.parseJSXAttributes(), r = this.matchJSX("/");
|
|
4202
|
-
return r && this.expectJSX("/"), this.expectJSX(">"), this.finalize(e, new
|
|
4200
|
+
return r && this.expectJSX("/"), this.expectJSX(">"), this.finalize(e, new zn(t, r, n));
|
|
4203
4201
|
}
|
|
4204
4202
|
parseJSXBoundaryElement() {
|
|
4205
4203
|
let e = this.createJSXNode();
|
|
4206
4204
|
if (this.expectJSX("<"), this.matchJSX("/")) {
|
|
4207
|
-
if (this.expectJSX("/"), this.matchJSX(">")) return this.expectJSX(">"), this.finalize(e, new
|
|
4205
|
+
if (this.expectJSX("/"), this.matchJSX(">")) return this.expectJSX(">"), this.finalize(e, new jn());
|
|
4208
4206
|
let t = this.parseJSXElementName();
|
|
4209
|
-
return this.expectJSX(">"), this.finalize(e, new
|
|
4207
|
+
return this.expectJSX(">"), this.finalize(e, new An(t));
|
|
4210
4208
|
}
|
|
4211
4209
|
let t = this.parseJSXElementName(), n = this.parseJSXAttributes(), r = this.matchJSX("/");
|
|
4212
|
-
return r && this.expectJSX("/"), this.expectJSX(">"), this.finalize(e, new
|
|
4210
|
+
return r && this.expectJSX("/"), this.expectJSX(">"), this.finalize(e, new zn(t, r, n));
|
|
4213
4211
|
}
|
|
4214
4212
|
parseJSXEmptyExpression() {
|
|
4215
4213
|
let e = this.createJSXChildNode();
|
|
4216
|
-
return this.collectComments(), this.lastMarker.index = this.scanner.index, this.lastMarker.line = this.scanner.lineNumber, this.lastMarker.column = this.scanner.index - this.scanner.lineStart, this.finalize(e, new
|
|
4214
|
+
return this.collectComments(), this.lastMarker.index = this.scanner.index, this.lastMarker.line = this.scanner.lineNumber, this.lastMarker.column = this.scanner.index - this.scanner.lineStart, this.finalize(e, new Nn());
|
|
4217
4215
|
}
|
|
4218
4216
|
parseJSXExpressionContainer() {
|
|
4219
4217
|
let e = this.createJSXNode();
|
|
4220
4218
|
this.expectJSX("{");
|
|
4221
4219
|
let t;
|
|
4222
|
-
return this.matchJSX("}") ? (t = this.parseJSXEmptyExpression(), this.expectJSX("}")) : (this.finishJSX(), t = this.parseAssignmentExpression(), this.reenterJSX()), this.finalize(e, new
|
|
4220
|
+
return this.matchJSX("}") ? (t = this.parseJSXEmptyExpression(), this.expectJSX("}")) : (this.finishJSX(), t = this.parseAssignmentExpression(), this.reenterJSX()), this.finalize(e, new Pn(t));
|
|
4223
4221
|
}
|
|
4224
4222
|
parseJSXChildren() {
|
|
4225
4223
|
let e = [];
|
|
4226
4224
|
for (; !this.scanner.eof();) {
|
|
4227
4225
|
let t = this.createJSXChildNode(), n = this.nextJSXText();
|
|
4228
4226
|
if (n.start < n.end) {
|
|
4229
|
-
let r = this.getTokenRaw(n), i = this.finalize(t, new
|
|
4227
|
+
let r = this.getTokenRaw(n), i = this.finalize(t, new Hn(n.value, r));
|
|
4230
4228
|
e.push(i);
|
|
4231
4229
|
}
|
|
4232
4230
|
if (this.scanner.source[this.scanner.index] === "{") {
|
|
@@ -4244,7 +4242,7 @@ var li = class extends si {
|
|
|
4244
4242
|
if (r.type === F.JSXOpeningElement) {
|
|
4245
4243
|
let i = r;
|
|
4246
4244
|
if (i.selfClosing) {
|
|
4247
|
-
let t = this.finalize(n, new
|
|
4245
|
+
let t = this.finalize(n, new Mn(i, [], null));
|
|
4248
4246
|
e.children.push(t);
|
|
4249
4247
|
} else t.push(e), e = {
|
|
4250
4248
|
node: n,
|
|
@@ -4255,9 +4253,9 @@ var li = class extends si {
|
|
|
4255
4253
|
}
|
|
4256
4254
|
if (r.type === F.JSXClosingElement) {
|
|
4257
4255
|
e.closing = r;
|
|
4258
|
-
let n =
|
|
4259
|
-
if (n !==
|
|
4260
|
-
let n = this.finalize(e.node, new
|
|
4256
|
+
let n = W(e.opening.name);
|
|
4257
|
+
if (n !== W(e.closing.name) && this.tolerateError("Expected corresponding JSX closing tag for %0", n), t.length > 0) {
|
|
4258
|
+
let n = this.finalize(e.node, new Mn(e.opening, e.children, e.closing));
|
|
4261
4259
|
e = t[t.length - 1], e.children.push(n), t.pop();
|
|
4262
4260
|
} else break;
|
|
4263
4261
|
}
|
|
@@ -4277,7 +4275,7 @@ var li = class extends si {
|
|
|
4277
4275
|
});
|
|
4278
4276
|
n = i.children, r = i.closing;
|
|
4279
4277
|
}
|
|
4280
|
-
return this.finalize(e, new
|
|
4278
|
+
return this.finalize(e, new Mn(t, n, r));
|
|
4281
4279
|
}
|
|
4282
4280
|
parseJSXRoot() {
|
|
4283
4281
|
this.config.tokens && this.tokens.pop(), this.startJSX();
|
|
@@ -4288,25 +4286,25 @@ var li = class extends si {
|
|
|
4288
4286
|
return super.isStartOfExpression() || this.match("<");
|
|
4289
4287
|
}
|
|
4290
4288
|
};
|
|
4291
|
-
function
|
|
4289
|
+
function gi(e, t, n) {
|
|
4292
4290
|
let r = null, i = (e, t) => {
|
|
4293
4291
|
n && n(e, t), r && r.visit(e, t);
|
|
4294
4292
|
}, a = typeof n == "function" ? i : null, o = !1;
|
|
4295
4293
|
if (t) {
|
|
4296
4294
|
o = typeof t.comment == "boolean" && t.comment;
|
|
4297
4295
|
let e = typeof t.attachComment == "boolean" && t.attachComment;
|
|
4298
|
-
(o || e) && (r = new
|
|
4296
|
+
(o || e) && (r = new On(), r.attach = e, t.comment = !0, a = i);
|
|
4299
4297
|
}
|
|
4300
4298
|
let s = !1;
|
|
4301
4299
|
t && typeof t.sourceType == "string" && (s = t.sourceType === "module");
|
|
4302
4300
|
let c;
|
|
4303
|
-
c = t && typeof t.jsx == "boolean" && t.jsx ? new
|
|
4301
|
+
c = t && typeof t.jsx == "boolean" && t.jsx ? new hi(e, t, a) : new pi(e, t, a);
|
|
4304
4302
|
let l = s ? c.parseModule() : c.parseScript();
|
|
4305
4303
|
return o && r && (l.comments = r.comments), c.config.tokens && (l.tokens = c.tokens), c.config.tolerant && (l.errors = c.errorHandler.errors), l;
|
|
4306
4304
|
}
|
|
4307
4305
|
//#endregion
|
|
4308
|
-
//#region ../../node_modules/.pnpm/@vueuse+shared@14.2.1_vue@3.5.
|
|
4309
|
-
var
|
|
4306
|
+
//#region ../../node_modules/.pnpm/@vueuse+shared@14.2.1_vue@3.5.30_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js
|
|
4307
|
+
var _i = /* @__PURE__ */ A((/* @__PURE__ */ k(((e) => {
|
|
4310
4308
|
(function e(t) {
|
|
4311
4309
|
var n, r, i, a, o, s;
|
|
4312
4310
|
function c(e) {
|
|
@@ -4678,21 +4676,21 @@ var di = /* @__PURE__ */ A((/* @__PURE__ */ k(((e) => {
|
|
|
4678
4676
|
}, t;
|
|
4679
4677
|
})(e);
|
|
4680
4678
|
})))(), 1);
|
|
4681
|
-
function
|
|
4682
|
-
return
|
|
4679
|
+
function vi(e, t) {
|
|
4680
|
+
return de() ? (_e(e, t), !0) : !1;
|
|
4683
4681
|
}
|
|
4684
|
-
var
|
|
4682
|
+
var yi = typeof window < "u" && typeof document < "u";
|
|
4685
4683
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
4686
|
-
var
|
|
4687
|
-
function
|
|
4684
|
+
var bi = Object.prototype.toString, xi = (e) => bi.call(e) === "[object Object]", Si = () => {};
|
|
4685
|
+
function Ci(...e) {
|
|
4688
4686
|
if (e.length !== 1) return D(...e);
|
|
4689
4687
|
let t = e[0];
|
|
4690
|
-
return typeof t == "function" ?
|
|
4688
|
+
return typeof t == "function" ? ye(ce(() => ({
|
|
4691
4689
|
get: t,
|
|
4692
|
-
set:
|
|
4690
|
+
set: Si
|
|
4693
4691
|
}))) : E(t);
|
|
4694
4692
|
}
|
|
4695
|
-
function
|
|
4693
|
+
function wi(e, t) {
|
|
4696
4694
|
function n(...n) {
|
|
4697
4695
|
return new Promise((r, i) => {
|
|
4698
4696
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -4704,10 +4702,10 @@ function vi(e, t) {
|
|
|
4704
4702
|
}
|
|
4705
4703
|
return n;
|
|
4706
4704
|
}
|
|
4707
|
-
var
|
|
4708
|
-
function
|
|
4709
|
-
let n, r, i =
|
|
4710
|
-
clearTimeout(e), i(), i =
|
|
4705
|
+
var Ti = (e) => e();
|
|
4706
|
+
function Ei(e, t = {}) {
|
|
4707
|
+
let n, r, i = Si, a = (e) => {
|
|
4708
|
+
clearTimeout(e), i(), i = Si;
|
|
4711
4709
|
}, o;
|
|
4712
4710
|
return (s) => {
|
|
4713
4711
|
let c = O(e), l = O(t.maxWait);
|
|
@@ -4720,8 +4718,8 @@ function bi(e, t = {}) {
|
|
|
4720
4718
|
});
|
|
4721
4719
|
};
|
|
4722
4720
|
}
|
|
4723
|
-
function
|
|
4724
|
-
let { initialState: n = "active" } = t, r =
|
|
4721
|
+
function Di(e = Ti, t = {}) {
|
|
4722
|
+
let { initialState: n = "active" } = t, r = Ci(n === "active");
|
|
4725
4723
|
function i() {
|
|
4726
4724
|
r.value = !1;
|
|
4727
4725
|
}
|
|
@@ -4729,7 +4727,7 @@ function xi(e = yi, t = {}) {
|
|
|
4729
4727
|
r.value = !0;
|
|
4730
4728
|
}
|
|
4731
4729
|
return {
|
|
4732
|
-
isActive:
|
|
4730
|
+
isActive: ye(r),
|
|
4733
4731
|
pause: i,
|
|
4734
4732
|
resume: a,
|
|
4735
4733
|
eventFilter: (...t) => {
|
|
@@ -4737,20 +4735,20 @@ function xi(e = yi, t = {}) {
|
|
|
4737
4735
|
}
|
|
4738
4736
|
};
|
|
4739
4737
|
}
|
|
4740
|
-
function
|
|
4738
|
+
function Oi(e) {
|
|
4741
4739
|
return Array.isArray(e) ? e : [e];
|
|
4742
4740
|
}
|
|
4743
|
-
function
|
|
4744
|
-
return e ||
|
|
4741
|
+
function ki(e) {
|
|
4742
|
+
return e || ue();
|
|
4745
4743
|
}
|
|
4746
|
-
function
|
|
4747
|
-
let { eventFilter: r =
|
|
4748
|
-
return
|
|
4744
|
+
function Ai(e, t, n = {}) {
|
|
4745
|
+
let { eventFilter: r = Ti, ...i } = n;
|
|
4746
|
+
return we(e, wi(r, t), i);
|
|
4749
4747
|
}
|
|
4750
|
-
function
|
|
4751
|
-
let { eventFilter: r, initialState: i = "active", ...a } = n, { eventFilter: o, pause: s, resume: c, isActive: l } =
|
|
4748
|
+
function ji(e, t, n = {}) {
|
|
4749
|
+
let { eventFilter: r, initialState: i = "active", ...a } = n, { eventFilter: o, pause: s, resume: c, isActive: l } = Di(r, { initialState: i });
|
|
4752
4750
|
return {
|
|
4753
|
-
stop:
|
|
4751
|
+
stop: Ai(e, t, {
|
|
4754
4752
|
...a,
|
|
4755
4753
|
eventFilter: o
|
|
4756
4754
|
}),
|
|
@@ -4759,59 +4757,59 @@ function Ti(e, t, n = {}) {
|
|
|
4759
4757
|
isActive: l
|
|
4760
4758
|
};
|
|
4761
4759
|
}
|
|
4762
|
-
function
|
|
4763
|
-
|
|
4760
|
+
function Mi(e, t = !0, n) {
|
|
4761
|
+
ki(n) ? ge(e, n) : t ? e() : pe(e);
|
|
4764
4762
|
}
|
|
4765
|
-
function
|
|
4763
|
+
function Ni(e, t, n = {}) {
|
|
4766
4764
|
let { debounce: r = 0, maxWait: i = void 0, ...a } = n;
|
|
4767
|
-
return
|
|
4765
|
+
return Ai(e, t, {
|
|
4768
4766
|
...a,
|
|
4769
|
-
eventFilter:
|
|
4767
|
+
eventFilter: Ei(r, { maxWait: i })
|
|
4770
4768
|
});
|
|
4771
4769
|
}
|
|
4772
|
-
function
|
|
4773
|
-
return
|
|
4770
|
+
function Pi(e, t, n) {
|
|
4771
|
+
return we(e, t, {
|
|
4774
4772
|
...n,
|
|
4775
4773
|
immediate: !0
|
|
4776
4774
|
});
|
|
4777
4775
|
}
|
|
4778
4776
|
//#endregion
|
|
4779
|
-
//#region ../../node_modules/.pnpm/@vueuse+core@14.2.1_vue@3.5.
|
|
4780
|
-
var
|
|
4781
|
-
|
|
4782
|
-
function
|
|
4777
|
+
//#region ../../node_modules/.pnpm/@vueuse+core@14.2.1_vue@3.5.30_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js
|
|
4778
|
+
var Fi = yi ? window : void 0, Ii = yi ? window.document : void 0;
|
|
4779
|
+
yi && window.navigator, yi && window.location;
|
|
4780
|
+
function Li(e) {
|
|
4783
4781
|
let t = O(e);
|
|
4784
4782
|
return t?.$el ?? t;
|
|
4785
4783
|
}
|
|
4786
|
-
function
|
|
4784
|
+
function Ri(...e) {
|
|
4787
4785
|
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = T(() => {
|
|
4788
|
-
let t =
|
|
4786
|
+
let t = Oi(O(e[0])).filter((e) => e != null);
|
|
4789
4787
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
4790
4788
|
});
|
|
4791
|
-
return
|
|
4792
|
-
n.value?.map((e) =>
|
|
4793
|
-
|
|
4794
|
-
|
|
4789
|
+
return Pi(() => [
|
|
4790
|
+
n.value?.map((e) => Li(e)) ?? [Fi].filter((e) => e != null),
|
|
4791
|
+
Oi(O(n.value ? e[1] : e[0])),
|
|
4792
|
+
Oi(Ce(n.value ? e[2] : e[1])),
|
|
4795
4793
|
O(n.value ? e[3] : e[2])
|
|
4796
4794
|
], ([e, n, r, i], a, o) => {
|
|
4797
4795
|
if (!e?.length || !n?.length || !r?.length) return;
|
|
4798
|
-
let s =
|
|
4796
|
+
let s = xi(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
|
|
4799
4797
|
o(() => {
|
|
4800
4798
|
c.forEach((e) => e());
|
|
4801
4799
|
});
|
|
4802
4800
|
}, { flush: "post" });
|
|
4803
4801
|
}
|
|
4804
|
-
var
|
|
4805
|
-
function
|
|
4806
|
-
return
|
|
4802
|
+
var zi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Bi = "__vueuse_ssr_handlers__", Vi = /* @__PURE__ */ Hi();
|
|
4803
|
+
function Hi() {
|
|
4804
|
+
return Bi in zi || (zi[Bi] = zi[Bi] || {}), zi[Bi];
|
|
4807
4805
|
}
|
|
4808
|
-
function
|
|
4809
|
-
return
|
|
4806
|
+
function Ui(e, t) {
|
|
4807
|
+
return Vi[e] || t;
|
|
4810
4808
|
}
|
|
4811
|
-
function
|
|
4809
|
+
function Wi(e) {
|
|
4812
4810
|
return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
|
|
4813
4811
|
}
|
|
4814
|
-
var
|
|
4812
|
+
var Gi = {
|
|
4815
4813
|
boolean: {
|
|
4816
4814
|
read: (e) => e === "true",
|
|
4817
4815
|
write: (e) => String(e)
|
|
@@ -4844,29 +4842,29 @@ var zi = {
|
|
|
4844
4842
|
read: (e) => new Date(e),
|
|
4845
4843
|
write: (e) => e.toISOString()
|
|
4846
4844
|
}
|
|
4847
|
-
},
|
|
4848
|
-
function
|
|
4849
|
-
let { flush: i = "pre", deep: a = !0, listenToStorageChanges: o = !0, writeDefaults: s = !0, mergeDefaults: c = !1, shallow: l, window: u =
|
|
4845
|
+
}, Ki = "vueuse-storage";
|
|
4846
|
+
function qi(e, t, n, r = {}) {
|
|
4847
|
+
let { flush: i = "pre", deep: a = !0, listenToStorageChanges: o = !0, writeDefaults: s = !0, mergeDefaults: c = !1, shallow: l, window: u = Fi, eventFilter: d, onError: f = (e) => {
|
|
4850
4848
|
console.error(e);
|
|
4851
|
-
}, initOnMounted: p } = r, m = (l ?
|
|
4849
|
+
}, initOnMounted: p } = r, m = (l ? xe : E)(typeof t == "function" ? t() : t), h = T(() => O(e));
|
|
4852
4850
|
if (!n) try {
|
|
4853
|
-
n =
|
|
4851
|
+
n = Ui("getDefaultStorage", () => Fi?.localStorage)();
|
|
4854
4852
|
} catch (e) {
|
|
4855
4853
|
f(e);
|
|
4856
4854
|
}
|
|
4857
4855
|
if (!n) return m;
|
|
4858
|
-
let g = O(t), _ =
|
|
4856
|
+
let g = O(t), _ = Wi(g), v = r.serializer ?? Gi[_], { pause: y, resume: b } = ji(m, (e) => te(e), {
|
|
4859
4857
|
flush: i,
|
|
4860
4858
|
deep: a,
|
|
4861
4859
|
eventFilter: d
|
|
4862
4860
|
});
|
|
4863
|
-
|
|
4861
|
+
we(h, () => S(), { flush: i });
|
|
4864
4862
|
let x = !1;
|
|
4865
|
-
u && o && (n instanceof Storage ?
|
|
4863
|
+
u && o && (n instanceof Storage ? Ri(u, "storage", (e) => {
|
|
4866
4864
|
p && !x || S(e);
|
|
4867
|
-
}, { passive: !0 }) :
|
|
4865
|
+
}, { passive: !0 }) : Ri(u, Ki, (e) => {
|
|
4868
4866
|
p && !x || re(e);
|
|
4869
|
-
})), p ?
|
|
4867
|
+
})), p ? Mi(() => {
|
|
4870
4868
|
x = !0, S();
|
|
4871
4869
|
}) : S();
|
|
4872
4870
|
function ee(e, t) {
|
|
@@ -4877,7 +4875,7 @@ function Vi(e, t, n, r = {}) {
|
|
|
4877
4875
|
newValue: t,
|
|
4878
4876
|
storageArea: n
|
|
4879
4877
|
};
|
|
4880
|
-
u.dispatchEvent(n instanceof Storage ? new StorageEvent("storage", r) : new CustomEvent(
|
|
4878
|
+
u.dispatchEvent(n instanceof Storage ? new StorageEvent("storage", r) : new CustomEvent(Ki, { detail: r }));
|
|
4881
4879
|
}
|
|
4882
4880
|
}
|
|
4883
4881
|
function te(e) {
|
|
@@ -4918,7 +4916,7 @@ function Vi(e, t, n, r = {}) {
|
|
|
4918
4916
|
} catch (e) {
|
|
4919
4917
|
f(e);
|
|
4920
4918
|
} finally {
|
|
4921
|
-
e ?
|
|
4919
|
+
e ? pe(b) : b();
|
|
4922
4920
|
}
|
|
4923
4921
|
}
|
|
4924
4922
|
}
|
|
@@ -4928,12 +4926,12 @@ function Vi(e, t, n, r = {}) {
|
|
|
4928
4926
|
}
|
|
4929
4927
|
return m;
|
|
4930
4928
|
}
|
|
4931
|
-
function
|
|
4932
|
-
let { window: r =
|
|
4933
|
-
return
|
|
4929
|
+
function Ji(e, t, n = {}) {
|
|
4930
|
+
let { window: r = Fi } = n;
|
|
4931
|
+
return qi(e, t, r?.localStorage, n);
|
|
4934
4932
|
}
|
|
4935
|
-
function
|
|
4936
|
-
let n = t?.cache ?
|
|
4933
|
+
function Yi(e, t) {
|
|
4934
|
+
let n = t?.cache ? be(t.cache) : be(/* @__PURE__ */ new Map()), r = (...e) => t?.getKey ? t.getKey(...e) : JSON.stringify(e), i = (t, ...r) => (n.set(t, e(...r)), n.get(t)), a = (...e) => i(r(...e), ...e), o = (...e) => {
|
|
4937
4935
|
n.delete(r(...e));
|
|
4938
4936
|
}, s = () => {
|
|
4939
4937
|
n.clear();
|
|
@@ -4943,41 +4941,41 @@ function Ui(e, t) {
|
|
|
4943
4941
|
};
|
|
4944
4942
|
return c.load = a, c.delete = o, c.clear = s, c.generateKey = r, c.cache = n, c;
|
|
4945
4943
|
}
|
|
4946
|
-
var
|
|
4947
|
-
function
|
|
4948
|
-
let n =
|
|
4944
|
+
var Xi = 0;
|
|
4945
|
+
function Zi(e, t = {}) {
|
|
4946
|
+
let n = xe(!1), { document: r = Ii, immediate: i = !0, manual: a = !1, id: o = `vueuse_styletag_${++Xi}` } = t, s = xe(e), c = () => {}, l = () => {
|
|
4949
4947
|
if (!r) return;
|
|
4950
4948
|
let e = r.getElementById(o) || r.createElement("style");
|
|
4951
|
-
e.isConnected || (e.id = o, t.nonce && (e.nonce = t.nonce), t.media && (e.media = t.media), r.head.appendChild(e)), !n.value && (c =
|
|
4949
|
+
e.isConnected || (e.id = o, t.nonce && (e.nonce = t.nonce), t.media && (e.media = t.media), r.head.appendChild(e)), !n.value && (c = we(s, (t) => {
|
|
4952
4950
|
e.textContent = t;
|
|
4953
4951
|
}, { immediate: !0 }), n.value = !0);
|
|
4954
4952
|
}, u = () => {
|
|
4955
4953
|
!r || !n.value || (c(), r.head.removeChild(r.getElementById(o)), n.value = !1);
|
|
4956
4954
|
};
|
|
4957
|
-
return i && !a &&
|
|
4955
|
+
return i && !a && Mi(l), a || vi(u), {
|
|
4958
4956
|
id: o,
|
|
4959
4957
|
css: s,
|
|
4960
4958
|
unload: u,
|
|
4961
4959
|
load: l,
|
|
4962
|
-
isLoaded:
|
|
4960
|
+
isLoaded: ye(n)
|
|
4963
4961
|
};
|
|
4964
4962
|
}
|
|
4965
4963
|
//#endregion
|
|
4966
4964
|
//#region src/utils/expression/index.ts
|
|
4967
|
-
window._METHOD_DEBUG_ =
|
|
4968
|
-
var
|
|
4969
|
-
function
|
|
4970
|
-
return e.type === N.MemberExpression ? `${e.object.type === N.MemberExpression ?
|
|
4965
|
+
window._METHOD_DEBUG_ = Ze;
|
|
4966
|
+
var G = Yi(ra), K = Yi(na);
|
|
4967
|
+
function Qi(e) {
|
|
4968
|
+
return e.type === N.MemberExpression ? `${e.object.type === N.MemberExpression ? Qi(e.object) : e.object.name}.${e.property.name}` : e.type === N.Identifier ? e.name : "";
|
|
4971
4969
|
}
|
|
4972
|
-
var
|
|
4973
|
-
async function
|
|
4970
|
+
var $i = Object.getPrototypeOf(async function() {}).constructor;
|
|
4971
|
+
async function ea(e) {
|
|
4974
4972
|
let t = [];
|
|
4975
4973
|
return e.length > 0 && (t = await _gct.api.apaas.systemVar.getGetVarByKeys({ keys: e.join(",") })), t;
|
|
4976
4974
|
}
|
|
4977
|
-
var
|
|
4978
|
-
async function
|
|
4979
|
-
let n =
|
|
4980
|
-
|
|
4975
|
+
var ta = Yi(ea);
|
|
4976
|
+
async function na(e, t) {
|
|
4977
|
+
let n = G(e, !0), r = n.filter((e) => m.includes(e)).sort(), i = n.filter((e) => e.startsWith(f)).sort(), a = await ta([...r, ...i]), o = gi(e);
|
|
4978
|
+
_i.default.replace(o, { enter(e) {
|
|
4981
4979
|
if (e.type === N.BinaryExpression) {
|
|
4982
4980
|
let { operator: t } = e, n = h[t];
|
|
4983
4981
|
return n ? {
|
|
@@ -4991,7 +4989,7 @@ async function Xi(e, t) {
|
|
|
4991
4989
|
} : e;
|
|
4992
4990
|
}
|
|
4993
4991
|
return e;
|
|
4994
|
-
} }),
|
|
4992
|
+
} }), _i.default.traverse(o, { enter: function(e) {
|
|
4995
4993
|
e.type === N.CallExpression && e.callee.type === N.Identifier && (e.callee.name = `await Methods.${e.callee.name}`);
|
|
4996
4994
|
} });
|
|
4997
4995
|
let s = {}, c = [];
|
|
@@ -5003,20 +5001,20 @@ async function Xi(e, t) {
|
|
|
5003
5001
|
s[n] || (c.push(`const ${n} = {};`), s[n] = !0), c.push(`${n}.${r} = ${JSON.stringify(t[e])};`);
|
|
5004
5002
|
} else c.push(`const ${e} = ${JSON.stringify(t[e])};`);
|
|
5005
5003
|
});
|
|
5006
|
-
let l = new
|
|
5004
|
+
let l = new $i("Methods", [
|
|
5007
5005
|
...c,
|
|
5008
5006
|
"return new Promise(async(resolve)=>{",
|
|
5009
5007
|
"const res = ;",
|
|
5010
5008
|
"resolve(res);",
|
|
5011
5009
|
"})"
|
|
5012
|
-
].join("\n")), u = await l(
|
|
5010
|
+
].join("\n")), u = await l(Ze);
|
|
5013
5011
|
return console.info("【表达式】", e), console.info("【参数】", t), console.info("【执行语句】", l.toString()), console.info("【执行结果】", u), u;
|
|
5014
5012
|
}
|
|
5015
|
-
function
|
|
5016
|
-
let n =
|
|
5017
|
-
return
|
|
5013
|
+
function ra(e, t = !1) {
|
|
5014
|
+
let n = gi(e), r = [];
|
|
5015
|
+
return _i.default.traverse(n, { enter: function(e) {
|
|
5018
5016
|
if (e.type === N.MemberExpression) {
|
|
5019
|
-
let t =
|
|
5017
|
+
let t = Qi(e);
|
|
5020
5018
|
r.push(t), Object.assign(e, {
|
|
5021
5019
|
name: t,
|
|
5022
5020
|
type: N.Identifier
|
|
@@ -5026,26 +5024,26 @@ function Zi(e, t = !1) {
|
|
|
5026
5024
|
} }), [...new Set(r)];
|
|
5027
5025
|
}
|
|
5028
5026
|
window.gct_expression = {
|
|
5029
|
-
execute:
|
|
5030
|
-
identify:
|
|
5027
|
+
execute: K,
|
|
5028
|
+
identify: G
|
|
5031
5029
|
};
|
|
5032
5030
|
//#endregion
|
|
5033
5031
|
//#region src/utils/cacheAdapter.ts
|
|
5034
|
-
function
|
|
5032
|
+
function ia(e, t, n = !1) {
|
|
5035
5033
|
if (n || e?.customApi?.value) return t(e);
|
|
5036
|
-
let r = typeof e == "object" ?
|
|
5034
|
+
let r = typeof e == "object" ? Te.stringify({
|
|
5037
5035
|
...e,
|
|
5038
5036
|
customApi: null
|
|
5039
|
-
}) : e, i =
|
|
5037
|
+
}) : e, i = aa.get(r);
|
|
5040
5038
|
return i || (i = (async () => {
|
|
5041
5039
|
try {
|
|
5042
5040
|
return await t(e);
|
|
5043
5041
|
} catch (e) {
|
|
5044
|
-
throw
|
|
5042
|
+
throw aa.delete(r), e;
|
|
5045
5043
|
}
|
|
5046
|
-
})(),
|
|
5044
|
+
})(), aa.set(r, i, 5e3), i);
|
|
5047
5045
|
}
|
|
5048
|
-
var
|
|
5046
|
+
var aa = class {
|
|
5049
5047
|
static cachedata = {};
|
|
5050
5048
|
static set(e, t, n) {
|
|
5051
5049
|
this.cachedata[e] = {
|
|
@@ -5074,17 +5072,17 @@ var $i = class {
|
|
|
5074
5072
|
};
|
|
5075
5073
|
//#endregion
|
|
5076
5074
|
//#region src/utils/get-ref-data.ts
|
|
5077
|
-
async function
|
|
5075
|
+
async function oa({ ids: e, refOriginField: t, refOriginFieldType: n, model: r, foreignFields: i }) {
|
|
5078
5076
|
if (!e) return Promise.reject();
|
|
5079
|
-
let a = await
|
|
5077
|
+
let a = await sa({
|
|
5080
5078
|
refOriginFieldType: n,
|
|
5081
5079
|
modelKey: r,
|
|
5082
5080
|
foreignFields: i,
|
|
5083
5081
|
ids: e
|
|
5084
5082
|
});
|
|
5085
|
-
if (a?.data) return
|
|
5083
|
+
if (a?.data) return We(t, a.data, a.dict);
|
|
5086
5084
|
}
|
|
5087
|
-
async function
|
|
5085
|
+
async function sa({ refOriginFieldType: e, modelKey: t, foreignFields: n, ids: r }) {
|
|
5088
5086
|
if (e === s.RDO_REF) {
|
|
5089
5087
|
let { data: e = {}, dict: i = {} } = await _gct.api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
|
|
5090
5088
|
modelKey: t,
|
|
@@ -5110,40 +5108,113 @@ async function ta({ refOriginFieldType: e, modelKey: t, foreignFields: n, ids: r
|
|
|
5110
5108
|
};
|
|
5111
5109
|
}
|
|
5112
5110
|
}
|
|
5113
|
-
var
|
|
5111
|
+
var ca = (e) => ia(e, oa), la = { class: "handwriting-pad" }, ua = ["width", "height"], da = /* @__PURE__ */ ((e, t) => {
|
|
5112
|
+
let n = e.__vccOpts || e;
|
|
5113
|
+
for (let [e, r] of t) n[e] = r;
|
|
5114
|
+
return n;
|
|
5115
|
+
})(/* @__PURE__ */ le({
|
|
5116
|
+
__name: "HandwritingPad",
|
|
5117
|
+
props: {
|
|
5118
|
+
width: { default: 300 },
|
|
5119
|
+
height: { default: 150 },
|
|
5120
|
+
backgroundColor: { default: "transparent" },
|
|
5121
|
+
lineWidth: { default: 2 },
|
|
5122
|
+
strokeStyle: { default: "#000" }
|
|
5123
|
+
},
|
|
5124
|
+
setup(e, { expose: t }) {
|
|
5125
|
+
let n = e, r = E(null), i = null, a = !1, o = 0, s = 0;
|
|
5126
|
+
ge(() => {
|
|
5127
|
+
i = r.value.getContext("2d"), n.backgroundColor !== "transparent" && (i.fillStyle = n.backgroundColor, i.fillRect(0, 0, n.width, n.height)), i.lineWidth = n.lineWidth, i.strokeStyle = n.strokeStyle;
|
|
5128
|
+
});
|
|
5129
|
+
function c(e) {
|
|
5130
|
+
let t = r.value.getBoundingClientRect();
|
|
5131
|
+
return "touches" in e ? {
|
|
5132
|
+
x: e.touches[0].clientX - t.left,
|
|
5133
|
+
y: e.touches[0].clientY - t.top
|
|
5134
|
+
} : {
|
|
5135
|
+
x: e.offsetX,
|
|
5136
|
+
y: e.offsetY
|
|
5137
|
+
};
|
|
5138
|
+
}
|
|
5139
|
+
function l(e) {
|
|
5140
|
+
e.preventDefault(), a = !0;
|
|
5141
|
+
let { x: t, y: n } = c(e);
|
|
5142
|
+
o = t, s = n;
|
|
5143
|
+
}
|
|
5144
|
+
function u(e) {
|
|
5145
|
+
if (!a || !i) return;
|
|
5146
|
+
e.preventDefault();
|
|
5147
|
+
let { x: t, y: n } = c(e);
|
|
5148
|
+
i.beginPath(), i.moveTo(o, s), i.lineTo(t, n), i.stroke(), i.closePath(), o = t, s = n;
|
|
5149
|
+
}
|
|
5150
|
+
function d(e) {
|
|
5151
|
+
e.preventDefault(), a = !1;
|
|
5152
|
+
}
|
|
5153
|
+
function f() {
|
|
5154
|
+
i?.clearRect(0, 0, n.width, n.height), n.backgroundColor !== "transparent" && (i.fillStyle = n.backgroundColor, i.fillRect(0, 0, n.width, n.height));
|
|
5155
|
+
}
|
|
5156
|
+
function p() {
|
|
5157
|
+
return r.value?.toDataURL();
|
|
5158
|
+
}
|
|
5159
|
+
function m(e) {
|
|
5160
|
+
let t = new Image();
|
|
5161
|
+
t.src = e, t.onload = () => {
|
|
5162
|
+
i?.drawImage(t, 0, 0);
|
|
5163
|
+
};
|
|
5164
|
+
}
|
|
5165
|
+
return t({
|
|
5166
|
+
getValue: p,
|
|
5167
|
+
setValue: m,
|
|
5168
|
+
clear: f
|
|
5169
|
+
}), (t, n) => (ve(), oe("div", la, [se("canvas", {
|
|
5170
|
+
ref_key: "canvasRef",
|
|
5171
|
+
ref: r,
|
|
5172
|
+
width: e.width,
|
|
5173
|
+
height: e.height,
|
|
5174
|
+
class: "canvas",
|
|
5175
|
+
onMousedown: l,
|
|
5176
|
+
onMousemove: u,
|
|
5177
|
+
onMouseup: d,
|
|
5178
|
+
onMouseleave: d,
|
|
5179
|
+
onTouchstart: l,
|
|
5180
|
+
onTouchmove: u,
|
|
5181
|
+
onTouchend: d
|
|
5182
|
+
}, null, 40, ua)]));
|
|
5183
|
+
}
|
|
5184
|
+
}), [["__scopeId", "data-v-d5b980b7"]]), fa = /* @__PURE__ */ function(e) {
|
|
5114
5185
|
return e.SELECT_ID = "$VAR_GCT_SELECT_ID", e;
|
|
5115
|
-
}({}),
|
|
5186
|
+
}({}), pa = Ji("GCT_APP_GlobalCache", {}), ma = (e) => {
|
|
5116
5187
|
let t = T({
|
|
5117
5188
|
get() {
|
|
5118
|
-
return
|
|
5189
|
+
return pa.value[e] || {};
|
|
5119
5190
|
},
|
|
5120
5191
|
set(t) {
|
|
5121
|
-
|
|
5192
|
+
pa.value[e] = t;
|
|
5122
5193
|
}
|
|
5123
5194
|
});
|
|
5124
5195
|
return {
|
|
5125
5196
|
selectID: T({
|
|
5126
5197
|
get() {
|
|
5127
|
-
return t.value[
|
|
5198
|
+
return t.value[fa.SELECT_ID];
|
|
5128
5199
|
},
|
|
5129
5200
|
set(e) {
|
|
5130
|
-
t.value[
|
|
5201
|
+
t.value[fa.SELECT_ID] ? t.value[fa.SELECT_ID] = e : t.value = {
|
|
5131
5202
|
...t.value,
|
|
5132
|
-
[
|
|
5203
|
+
[fa.SELECT_ID]: e
|
|
5133
5204
|
};
|
|
5134
5205
|
}
|
|
5135
5206
|
}),
|
|
5136
5207
|
cacheMap: t
|
|
5137
5208
|
};
|
|
5138
|
-
},
|
|
5209
|
+
}, ha = class {
|
|
5139
5210
|
static ENV;
|
|
5140
5211
|
static AID;
|
|
5141
5212
|
static userInfo;
|
|
5142
5213
|
static runApp({ userInfo: e, env: t, aid: n }) {
|
|
5143
5214
|
this.ENV = t, this.AID = n, this.userInfo = e;
|
|
5144
5215
|
}
|
|
5145
|
-
},
|
|
5146
|
-
let i =
|
|
5216
|
+
}, ga = ({ value: e, appredis: t, key: n, type: r }) => {
|
|
5217
|
+
let i = ha.ENV === "dev" ? !1 : t, { cacheMap: a } = ma(`${ha.AID}_${ha.userInfo?.userId}`);
|
|
5147
5218
|
return new Proxy({
|
|
5148
5219
|
value: e,
|
|
5149
5220
|
type: r
|
|
@@ -5158,7 +5229,7 @@ var na = (e) => Qi(e, ea), ra = /* @__PURE__ */ function(e) {
|
|
|
5158
5229
|
}), Reflect.set(e, t, r, o);
|
|
5159
5230
|
}
|
|
5160
5231
|
});
|
|
5161
|
-
},
|
|
5232
|
+
}, _a = {
|
|
5162
5233
|
[l.DATE]: {
|
|
5163
5234
|
callback(e) {
|
|
5164
5235
|
return C(e, ["YYYY-MM-DD", "YYYY/MM/DD"], !0).isValid();
|
|
@@ -5178,9 +5249,9 @@ var na = (e) => Qi(e, ea), ra = /* @__PURE__ */ function(e) {
|
|
|
5178
5249
|
message: "日期时间变量格式为YYYY-MM-DD HH:mm:ss,YYYY/MM/DD HH:mm:ss"
|
|
5179
5250
|
}
|
|
5180
5251
|
};
|
|
5181
|
-
function
|
|
5252
|
+
function va(e, t) {
|
|
5182
5253
|
if (t === l.NULL) return !0;
|
|
5183
|
-
let { callback: n, message: r } =
|
|
5254
|
+
let { callback: n, message: r } = _a[t] || {
|
|
5184
5255
|
callback(e) {
|
|
5185
5256
|
return Object.prototype.toString.call(e).slice(8, -1).toLowerCase() === t;
|
|
5186
5257
|
},
|
|
@@ -5190,21 +5261,21 @@ function la(e, t) {
|
|
|
5190
5261
|
}
|
|
5191
5262
|
//#endregion
|
|
5192
5263
|
//#region src/Event/utils/runGlobalByPage.ts
|
|
5193
|
-
var
|
|
5264
|
+
var q = /* @__PURE__ */ function(e) {
|
|
5194
5265
|
return e.WEB = "web_module", e.MOBILE = "mobile_module", e.PAD = "pad_module", e;
|
|
5195
|
-
}({}),
|
|
5196
|
-
[
|
|
5197
|
-
[
|
|
5198
|
-
[
|
|
5266
|
+
}({}), ya = {
|
|
5267
|
+
[q.WEB]: { getPageInfo: _gct.api.apaas.webpage.getInfo },
|
|
5268
|
+
[q.MOBILE]: { getPageInfo: _gct.api.apaas.mobilePage.getInfo },
|
|
5269
|
+
[q.PAD]: { getPageInfo: _gct.api.apaas.padPage.getInfo }
|
|
5199
5270
|
}, J = E({}), Y = E({}), X = E({});
|
|
5200
|
-
function
|
|
5271
|
+
function ba(e, t) {
|
|
5201
5272
|
X.value[e] = t;
|
|
5202
5273
|
}
|
|
5203
5274
|
var Z = E({
|
|
5204
5275
|
pageStyle: {},
|
|
5205
5276
|
pageConfig: {},
|
|
5206
5277
|
pageName: ""
|
|
5207
|
-
}),
|
|
5278
|
+
}), xa = D(() => {
|
|
5208
5279
|
let { title: e } = Z.value.pageConfig || {};
|
|
5209
5280
|
return e;
|
|
5210
5281
|
}), Q = class e {
|
|
@@ -5258,7 +5329,7 @@ var Z = E({
|
|
|
5258
5329
|
}) || []).forEach((e) => {
|
|
5259
5330
|
if (e.configJson) try {
|
|
5260
5331
|
let t = JSON.parse(e.configJson);
|
|
5261
|
-
Y.value[t.key] =
|
|
5332
|
+
Y.value[t.key] = ga({
|
|
5262
5333
|
value: t.defaultValue,
|
|
5263
5334
|
appredis: t.appredis,
|
|
5264
5335
|
key: t.key,
|
|
@@ -5316,7 +5387,7 @@ var Z = E({
|
|
|
5316
5387
|
static async setPageVar(e, t) {
|
|
5317
5388
|
let n = J.value[e];
|
|
5318
5389
|
if (!n) return console.warn("变量key不存在");
|
|
5319
|
-
await
|
|
5390
|
+
await va(t, n.type), J.value[e] && (J.value[e].value = t);
|
|
5320
5391
|
}
|
|
5321
5392
|
static getPageGlobalVar(e) {
|
|
5322
5393
|
return J.value[e]?.value;
|
|
@@ -5327,9 +5398,9 @@ var Z = E({
|
|
|
5327
5398
|
type: "string"
|
|
5328
5399
|
};
|
|
5329
5400
|
}
|
|
5330
|
-
static async initPageByid(e, t =
|
|
5401
|
+
static async initPageByid(e, t = q.WEB) {
|
|
5331
5402
|
this.pageID = e;
|
|
5332
|
-
let n =
|
|
5403
|
+
let n = ya[t].getPageInfo, r = await n({ id: e }), { runtimeJson: i, name: a } = r || {};
|
|
5333
5404
|
if (Z.value.pageName = a, !i) return Promise.reject();
|
|
5334
5405
|
let o = JSON.parse(i);
|
|
5335
5406
|
return o.widgets.filter((e) => e.type !== "bottom-button-container").length ? (await this.initGlobalS(o), Z.value.pageConfig = o.pageConfig || {}, Z.value.pageStyle = o.pageStyle || {}, {
|
|
@@ -5352,43 +5423,43 @@ var Z = E({
|
|
|
5352
5423
|
}
|
|
5353
5424
|
static usePageHooks(t, n, r, i) {
|
|
5354
5425
|
let a = E(!1);
|
|
5355
|
-
return
|
|
5356
|
-
await
|
|
5426
|
+
return ge(async () => {
|
|
5427
|
+
await pe();
|
|
5357
5428
|
let e = n?.pageBeforeMount;
|
|
5358
5429
|
if (e?.name && await t.runExportByName(e.name, e.extraParams), i && await i(t), a.value = !0, r.pageMounted) for (let e of this.globalHookCaches.pageMounted) await e();
|
|
5359
5430
|
let { extraParams: o, name: s } = n?.pageMounted || {};
|
|
5360
5431
|
s && t.runAsyncExportByName(s, o);
|
|
5361
|
-
}),
|
|
5432
|
+
}), he(async () => {
|
|
5362
5433
|
Z.value = {};
|
|
5363
5434
|
let { extraParams: e, name: i } = n?.pageDestroyed || {};
|
|
5364
5435
|
if (i && t.runExportByName(i, e), r.pageDestroyed) for (let e of this.globalHookCaches.pageDestroyed) await e();
|
|
5365
|
-
}),
|
|
5436
|
+
}), me(async () => {
|
|
5366
5437
|
if (e.setContextByKey(t.context), r.pageActivated) for (let e of this.globalHookCaches.pageActivated) await e();
|
|
5367
5438
|
let { extraParams: i, name: a } = n?.pageActivated || {};
|
|
5368
5439
|
a && t.runAsyncExportByName(a, i);
|
|
5369
5440
|
}), { pageload: a };
|
|
5370
5441
|
}
|
|
5371
|
-
},
|
|
5442
|
+
}, Sa = Q.getPremission.bind(Q), Ca = (e) => (t, n = {}, r = {}, i = {}) => e({
|
|
5372
5443
|
modelKey: t.key,
|
|
5373
5444
|
bsKey: t.action,
|
|
5374
5445
|
modelCategory: t.modelCategory ?? a.ENTITY
|
|
5375
|
-
}, n, r, i),
|
|
5376
|
-
post:
|
|
5377
|
-
get:
|
|
5378
|
-
put:
|
|
5379
|
-
delete:
|
|
5446
|
+
}, n, r, i), wa = {
|
|
5447
|
+
post: Ca(_gct.api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey),
|
|
5448
|
+
get: Ca(_gct.api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey),
|
|
5449
|
+
put: Ca(_gct.api.apaas.modelComprehensive.putBizServiceModelCategoryModelKeyBsKey),
|
|
5450
|
+
delete: Ca(_gct.api.apaas.modelComprehensive.deleteBizServiceModelCategoryModelKeyBsKey)
|
|
5380
5451
|
};
|
|
5381
|
-
async function
|
|
5382
|
-
return
|
|
5452
|
+
async function Ta(e, n, r = {}) {
|
|
5453
|
+
return wa[t[e.action]](e, n, r);
|
|
5383
5454
|
}
|
|
5384
|
-
async function
|
|
5455
|
+
async function Ea(e, t, { body: n = {}, query: r = {} } = {}, i = {}) {
|
|
5385
5456
|
return await _gct.api.apaas.modelComprehensive.postBizServiceGeneralModelCategoryModelKeyBsKey({
|
|
5386
5457
|
bsKey: t,
|
|
5387
5458
|
modelKey: e,
|
|
5388
5459
|
modelCategory: a.ENTITY
|
|
5389
5460
|
}, r, n, i);
|
|
5390
5461
|
}
|
|
5391
|
-
var
|
|
5462
|
+
var Da = new class e {
|
|
5392
5463
|
static instance;
|
|
5393
5464
|
mask;
|
|
5394
5465
|
container;
|
|
@@ -5464,7 +5535,7 @@ var ya = new class e {
|
|
|
5464
5535
|
hide() {
|
|
5465
5536
|
this.mask.style.display = "none", document.body.style.overflow = "";
|
|
5466
5537
|
}
|
|
5467
|
-
}(),
|
|
5538
|
+
}(), Oa = class {
|
|
5468
5539
|
isHandle = !1;
|
|
5469
5540
|
buttonConfig = {};
|
|
5470
5541
|
fieldConfig = {};
|
|
@@ -5566,7 +5637,7 @@ var ya = new class e {
|
|
|
5566
5637
|
signature: !!e.signature,
|
|
5567
5638
|
opinion: {
|
|
5568
5639
|
show: o.enabled,
|
|
5569
|
-
required:
|
|
5640
|
+
required: ka(o.opinionType, e.type)
|
|
5570
5641
|
},
|
|
5571
5642
|
user: {
|
|
5572
5643
|
show: [n.Reassign, n.Countersign].includes(e.type),
|
|
@@ -5598,13 +5669,13 @@ var ya = new class e {
|
|
|
5598
5669
|
if (n && n[t]) {
|
|
5599
5670
|
let { permission: r } = n[t];
|
|
5600
5671
|
switch (r) {
|
|
5601
|
-
case
|
|
5672
|
+
case Aa.disabled:
|
|
5602
5673
|
e.props.disabled = !0, e.props.readonly = !1;
|
|
5603
5674
|
break;
|
|
5604
|
-
case
|
|
5675
|
+
case Aa.editable:
|
|
5605
5676
|
e.props.disabled = !1, e.props.readonly = !1;
|
|
5606
5677
|
break;
|
|
5607
|
-
case
|
|
5678
|
+
case Aa.readonly:
|
|
5608
5679
|
e.props.readonly = !0;
|
|
5609
5680
|
break;
|
|
5610
5681
|
default: break;
|
|
@@ -5616,11 +5687,11 @@ var ya = new class e {
|
|
|
5616
5687
|
let t = e.props.field, { fieldConfig: n } = this;
|
|
5617
5688
|
if (n && n[t]) {
|
|
5618
5689
|
let { permission: r } = n[t];
|
|
5619
|
-
r ===
|
|
5690
|
+
r === Aa.hidden && (e.props.hidden = !0);
|
|
5620
5691
|
}
|
|
5621
5692
|
}
|
|
5622
5693
|
};
|
|
5623
|
-
function
|
|
5694
|
+
function ka(e, t) {
|
|
5624
5695
|
if (e.includes(d.Required)) return !0;
|
|
5625
5696
|
if (e.includes(d.Optional)) return !1;
|
|
5626
5697
|
if (e.includes(d.ApproveRequired) || e.includes(d.ApproveRequired)) return t === n.Approve;
|
|
@@ -5629,9 +5700,9 @@ function xa(e, t) {
|
|
|
5629
5700
|
if (e.includes(d.RejectRequired)) return t === n.Reject;
|
|
5630
5701
|
if (e.includes(d.RefuseRequired)) return t === n.Refuse;
|
|
5631
5702
|
}
|
|
5632
|
-
var
|
|
5703
|
+
var Aa = /* @__PURE__ */ function(e) {
|
|
5633
5704
|
return e.hidden = "hidden", e.readonly = "readonly", e.disabled = "disabled", e.editable = "editable", e;
|
|
5634
|
-
}({}),
|
|
5705
|
+
}({}), ja = class {
|
|
5635
5706
|
context;
|
|
5636
5707
|
searchVNodes;
|
|
5637
5708
|
cssData;
|
|
@@ -5641,14 +5712,14 @@ var Sa = /* @__PURE__ */ function(e) {
|
|
|
5641
5712
|
#t;
|
|
5642
5713
|
ProcessAppRoved;
|
|
5643
5714
|
pageLayoutMode;
|
|
5644
|
-
constructor({ js: e, css: t, pageKey: n,
|
|
5715
|
+
constructor({ js: e, css: t, pageKey: n, ContextVm: r }) {
|
|
5645
5716
|
this.cssData = this.#n(t), this.searchVNodes = {}, this.exports = {}, this.#t = {}, this.#e = {}, this.context = new r({
|
|
5646
5717
|
$ref: this.getComponent.bind(this),
|
|
5647
5718
|
$asyncRef: this.getSyncComponent.bind(this)
|
|
5648
5719
|
}), this.#r(e), Q.setContextByKey(this.context, n), this.pageKey = n;
|
|
5649
5720
|
}
|
|
5650
5721
|
async runProcessBySaskId({ taskId: e, processInstanceId: t, examineAndApproveState: n, refFormId: r }) {
|
|
5651
|
-
this.ProcessAppRoved = new
|
|
5722
|
+
this.ProcessAppRoved = new Oa({
|
|
5652
5723
|
taskId: e,
|
|
5653
5724
|
processInstanceId: t,
|
|
5654
5725
|
examineAndApproveState: n,
|
|
@@ -5657,7 +5728,7 @@ var Sa = /* @__PURE__ */ function(e) {
|
|
|
5657
5728
|
}
|
|
5658
5729
|
#n(e, t = {}) {
|
|
5659
5730
|
if (!e) return;
|
|
5660
|
-
let { css: n, load: r, unload: i } =
|
|
5731
|
+
let { css: n, load: r, unload: i } = Zi(e, t);
|
|
5661
5732
|
return {
|
|
5662
5733
|
css: n,
|
|
5663
5734
|
load: r,
|
|
@@ -5670,11 +5741,11 @@ var Sa = /* @__PURE__ */ function(e) {
|
|
|
5670
5741
|
async runEventByName(e, t = {}, ...n) {
|
|
5671
5742
|
let r = t[e], i;
|
|
5672
5743
|
if (r) {
|
|
5673
|
-
if (Array.isArray(r)) i = await
|
|
5744
|
+
if (Array.isArray(r)) i = await Pa(r, this.context, n);
|
|
5674
5745
|
else {
|
|
5675
5746
|
let e = this.exports[r.name];
|
|
5676
5747
|
if (!e) throw `函数${r.name}不存在`;
|
|
5677
|
-
i = await e(...n,
|
|
5748
|
+
i = await e(...n, Se(r.extraParams));
|
|
5678
5749
|
}
|
|
5679
5750
|
return i;
|
|
5680
5751
|
}
|
|
@@ -5739,18 +5810,18 @@ var Sa = /* @__PURE__ */ function(e) {
|
|
|
5739
5810
|
}
|
|
5740
5811
|
getComponent(e) {
|
|
5741
5812
|
let t = this.#t[e];
|
|
5742
|
-
if (t) return new
|
|
5813
|
+
if (t) return new Na(e, t);
|
|
5743
5814
|
console.error(e + "组件不存在或者未初始化");
|
|
5744
5815
|
}
|
|
5745
5816
|
getSyncComponent(e) {
|
|
5746
5817
|
if (!e) return Promise.reject("标识不能为空");
|
|
5747
5818
|
let t = this.#t[e];
|
|
5748
|
-
return t ? Promise.resolve(new
|
|
5819
|
+
return t ? Promise.resolve(new Na(e, t)) : new Promise((t, n) => {
|
|
5749
5820
|
let r = setTimeout(() => {
|
|
5750
5821
|
n(e + "不存在或者被隐藏");
|
|
5751
5822
|
}, 3e4);
|
|
5752
5823
|
this.#i(e, (n) => {
|
|
5753
|
-
clearTimeout(r), t(new
|
|
5824
|
+
clearTimeout(r), t(new Na(e, n));
|
|
5754
5825
|
});
|
|
5755
5826
|
});
|
|
5756
5827
|
}
|
|
@@ -5780,12 +5851,12 @@ var Sa = /* @__PURE__ */ function(e) {
|
|
|
5780
5851
|
if (!t) return Promise.reject(g("sys.process.pleaseInitiateTheProcessFirst"));
|
|
5781
5852
|
if (e !== t) return Promise.reject(g("sys.process.processInstanceMismatch"));
|
|
5782
5853
|
}
|
|
5783
|
-
},
|
|
5854
|
+
}, Ma = class {
|
|
5784
5855
|
$ref;
|
|
5785
5856
|
$asyncRef;
|
|
5786
5857
|
$getModal;
|
|
5787
5858
|
$closeModal;
|
|
5788
|
-
$customBizService =
|
|
5859
|
+
$customBizService = wa;
|
|
5789
5860
|
gctWidgets = {};
|
|
5790
5861
|
constructor({ $ref: e, $asyncRef: t }) {
|
|
5791
5862
|
this.$asyncRef = t, this.$ref = e;
|
|
@@ -5808,12 +5879,12 @@ var Sa = /* @__PURE__ */ function(e) {
|
|
|
5808
5879
|
div(e, t) {
|
|
5809
5880
|
return new w(e).div(new w(t)).toNumber();
|
|
5810
5881
|
},
|
|
5811
|
-
transformSourceData:
|
|
5882
|
+
transformSourceData: Ve,
|
|
5812
5883
|
transformData: j
|
|
5813
5884
|
};
|
|
5814
|
-
$httpBizService =
|
|
5815
|
-
$request =
|
|
5816
|
-
$loading =
|
|
5885
|
+
$httpBizService = Ta;
|
|
5886
|
+
$request = Ea;
|
|
5887
|
+
$loading = Da;
|
|
5817
5888
|
$getPremission(e) {
|
|
5818
5889
|
return Q.getPremission(e);
|
|
5819
5890
|
}
|
|
@@ -5851,7 +5922,7 @@ var Sa = /* @__PURE__ */ function(e) {
|
|
|
5851
5922
|
let i = n || !r.props ? r : r.props;
|
|
5852
5923
|
return typeof t == "string" && (t = [t]), t.reduce((e, t) => (e[t] = i[t], e), {});
|
|
5853
5924
|
}
|
|
5854
|
-
},
|
|
5925
|
+
}, Na = class {
|
|
5855
5926
|
modelKey;
|
|
5856
5927
|
getValue;
|
|
5857
5928
|
setValue;
|
|
@@ -5866,21 +5937,21 @@ var Sa = /* @__PURE__ */ function(e) {
|
|
|
5866
5937
|
});
|
|
5867
5938
|
}
|
|
5868
5939
|
};
|
|
5869
|
-
async function
|
|
5870
|
-
let r = e.map(
|
|
5940
|
+
async function Pa(e, t, n) {
|
|
5941
|
+
let r = e.map(Fa.bind(t, n));
|
|
5871
5942
|
await Promise.all(r);
|
|
5872
5943
|
}
|
|
5873
|
-
async function
|
|
5944
|
+
async function Fa(e, t) {
|
|
5874
5945
|
let { name: n, refId: r, scopeId: i, modalTitle: a } = t, o = a?.split(".") || [], s;
|
|
5875
5946
|
if (o.length > 1) {
|
|
5876
5947
|
let e = this.gctWidgets?.[o[0]] || {}, t = [];
|
|
5877
|
-
|
|
5948
|
+
Ia(t, e), s = t.find((e) => e.id === o[1]) || {};
|
|
5878
5949
|
} else o.length && (s = this.gctWidgets?.[o[0]]);
|
|
5879
5950
|
n === u.OPEN_MODAL && await this.$getModal(r).open({ title: s?.props?.title }), n === u.CLOSE_MODAL && (r ? await this.$getModal(r).close() : await this.$closeModal()), n === u.REFRESH_TABLE && await (await this.$getCtxById(i).$asyncRef(r)).reload(e ? e[0] : null);
|
|
5880
5951
|
}
|
|
5881
|
-
function
|
|
5952
|
+
function Ia(e, t) {
|
|
5882
5953
|
let n = t.children || [];
|
|
5883
|
-
for (let t of n) t.type && t.type == c.CustomButton ? e.push(t) : t.children?.length &&
|
|
5954
|
+
for (let t of n) t.type && t.type == c.CustomButton ? e.push(t) : t.children?.length && Ia(e, t);
|
|
5884
5955
|
}
|
|
5885
5956
|
//#endregion
|
|
5886
5957
|
//#region src/Event/Dependency/controller.ts
|
|
@@ -5889,7 +5960,7 @@ function $({ expression: e = "", rowData: t = null }, n) {
|
|
|
5889
5960
|
n(!0);
|
|
5890
5961
|
return;
|
|
5891
5962
|
}
|
|
5892
|
-
let r =
|
|
5963
|
+
let r = G(e), i = r.reduce((e, t) => {
|
|
5893
5964
|
let n = t.split(".");
|
|
5894
5965
|
return e[t] = {
|
|
5895
5966
|
formKey: n[0],
|
|
@@ -5908,18 +5979,18 @@ function $({ expression: e = "", rowData: t = null }, n) {
|
|
|
5908
5979
|
Object.keys(i).forEach((e) => {
|
|
5909
5980
|
let { formKey: n, itemKey: a } = i[e];
|
|
5910
5981
|
r[e] = a ? t[n]?.[a] : t[n];
|
|
5911
|
-
}),
|
|
5982
|
+
}), K(e, r).then(n);
|
|
5912
5983
|
}
|
|
5913
|
-
t && o(a.value),
|
|
5984
|
+
t && o(a.value), Ni(a, () => {
|
|
5914
5985
|
o(a.value);
|
|
5915
5986
|
}, {
|
|
5916
5987
|
debounce: 200,
|
|
5917
5988
|
immediate: !t
|
|
5918
5989
|
});
|
|
5919
5990
|
}
|
|
5920
|
-
async function
|
|
5991
|
+
async function La({ expression: e = "", rowData: t = null }) {
|
|
5921
5992
|
if (!e || e === "true") return !0;
|
|
5922
|
-
let n =
|
|
5993
|
+
let n = G(e).reduce((e, t) => {
|
|
5923
5994
|
let n = t.split(".");
|
|
5924
5995
|
return e[t] = {
|
|
5925
5996
|
formKey: n[0],
|
|
@@ -5929,23 +6000,23 @@ async function ka({ expression: e = "", rowData: t = null }) {
|
|
|
5929
6000
|
return Object.keys(n).forEach((e) => {
|
|
5930
6001
|
let { formKey: i, itemKey: a } = n[e], o = "";
|
|
5931
6002
|
o = i.startsWith("$VAR_") ? Y.value[i]?.value ?? "" : i.startsWith("$PAGERVAR_") ? J.value[i]?.value ?? "" : a ? (t ? t[a] : X.value[i]?.[a]) ?? "" : (t ? t[i] : X.value[i]) ?? "", r[e] = o;
|
|
5932
|
-
}),
|
|
6003
|
+
}), K(e, r);
|
|
5933
6004
|
}
|
|
5934
6005
|
//#endregion
|
|
5935
6006
|
//#region src/Event/Dependency/displayRule.ts
|
|
5936
|
-
function
|
|
5937
|
-
return
|
|
6007
|
+
function Ra(e, t) {
|
|
6008
|
+
return Sa(t) ? e.displayType === i.CONFIG ? D(() => !e.hidden) : za(e) : !1;
|
|
5938
6009
|
}
|
|
5939
|
-
function
|
|
6010
|
+
function za(e) {
|
|
5940
6011
|
let t = E(!1);
|
|
5941
|
-
return
|
|
6012
|
+
return Ba(e, (e) => {
|
|
5942
6013
|
t.value = !!e;
|
|
5943
6014
|
}), t;
|
|
5944
6015
|
}
|
|
5945
|
-
function
|
|
6016
|
+
function Ba({ displayRule: e, tableForm: t }, n) {
|
|
5946
6017
|
if (!e) n(!0);
|
|
5947
6018
|
else {
|
|
5948
|
-
let r =
|
|
6019
|
+
let r = G(e), i = r.reduce((e, t) => {
|
|
5949
6020
|
let n = t.split(".");
|
|
5950
6021
|
return e[t] = {
|
|
5951
6022
|
formKey: n[0],
|
|
@@ -5958,8 +6029,8 @@ function Ma({ displayRule: e, tableForm: t }, n) {
|
|
|
5958
6029
|
}[i]?.[a];
|
|
5959
6030
|
return e[i] ? e[i][a] = o : e[i] = { [a]: o }, e;
|
|
5960
6031
|
}, {}));
|
|
5961
|
-
|
|
5962
|
-
|
|
6032
|
+
Ni(a, () => {
|
|
6033
|
+
Va(a.value, i, e, (e) => {
|
|
5963
6034
|
n(e);
|
|
5964
6035
|
});
|
|
5965
6036
|
}, {
|
|
@@ -5968,22 +6039,22 @@ function Ma({ displayRule: e, tableForm: t }, n) {
|
|
|
5968
6039
|
});
|
|
5969
6040
|
}
|
|
5970
6041
|
}
|
|
5971
|
-
function
|
|
6042
|
+
function Va(e, t, n, r) {
|
|
5972
6043
|
let i = {};
|
|
5973
6044
|
Object.keys(t).forEach((n) => {
|
|
5974
6045
|
let { formKey: r, itemKey: a } = t[n];
|
|
5975
6046
|
i[n] = e?.[r]?.[a];
|
|
5976
|
-
}),
|
|
6047
|
+
}), K(n, i).then(r);
|
|
5977
6048
|
}
|
|
5978
6049
|
//#endregion
|
|
5979
6050
|
//#region src/Event/Dependency/useDependencyToShow.ts
|
|
5980
|
-
function
|
|
5981
|
-
return e.props?.displayRule && e.props?.displayType === i.RULE ?
|
|
6051
|
+
function Ha(e) {
|
|
6052
|
+
return e.props?.displayRule && e.props?.displayType === i.RULE ? Ra(e.props, e.id) : Ua(e);
|
|
5982
6053
|
}
|
|
5983
|
-
function
|
|
6054
|
+
function Ua(e, t) {
|
|
5984
6055
|
if (!e.id) return !1;
|
|
5985
|
-
if (!
|
|
5986
|
-
let n =
|
|
6056
|
+
if (!Sa(e.id)) return e.props.hidden = !0, !1;
|
|
6057
|
+
let n = fe("useProcessFieldEvent", void 0);
|
|
5987
6058
|
if (n) return n.useFieldToShow(e), !e.props.hidden;
|
|
5988
6059
|
let { displayType: a, displayRule: o } = e.props || {}, { value: s, expression: c } = (e.props.componentDependency?.configDependency || {})[r.HIDDEN] || {};
|
|
5989
6060
|
return s && c ? (e.props.hidden = !0, $({
|
|
@@ -5998,32 +6069,32 @@ function Fa(e, t) {
|
|
|
5998
6069
|
e.props.hidden = !t;
|
|
5999
6070
|
})), D(() => !e.props.hidden);
|
|
6000
6071
|
}
|
|
6001
|
-
async function
|
|
6072
|
+
async function Wa(e, t) {
|
|
6002
6073
|
if (!e.id) return !1;
|
|
6003
|
-
if (!
|
|
6004
|
-
let n =
|
|
6074
|
+
if (!Sa(e.id)) return e.props.hidden = !0, !1;
|
|
6075
|
+
let n = fe("useProcessFieldEvent", void 0);
|
|
6005
6076
|
if (n) return n.useFieldToShow(e), !e.props.hidden;
|
|
6006
6077
|
let { displayType: a, displayRule: o } = e.props || {}, { value: s, expression: c } = (e.props.componentDependency?.configDependency || {})[r.HIDDEN] || {};
|
|
6007
|
-
return s && c ? (e.props.hidden = !0, e.props.hidden = !!await
|
|
6078
|
+
return s && c ? (e.props.hidden = !0, e.props.hidden = !!await La({
|
|
6008
6079
|
expression: c,
|
|
6009
6080
|
rowData: t
|
|
6010
|
-
})) : s ? e.props.hidden = !0 : a === i.RULE && o && (e.props.hidden = !0, e.props.hidden = !!await
|
|
6081
|
+
})) : s ? e.props.hidden = !0 : a === i.RULE && o && (e.props.hidden = !0, e.props.hidden = !!await La({
|
|
6011
6082
|
expression: o,
|
|
6012
6083
|
rowData: t
|
|
6013
6084
|
})), !e.props.hidden;
|
|
6014
6085
|
}
|
|
6015
|
-
function
|
|
6086
|
+
function Ga(e, t) {
|
|
6016
6087
|
return e.forEach((e) => {
|
|
6017
|
-
|
|
6088
|
+
Ua(e, t);
|
|
6018
6089
|
}), D(() => e.filter((e) => !e.props.hidden));
|
|
6019
6090
|
}
|
|
6020
|
-
function
|
|
6091
|
+
function Ka(e, t) {
|
|
6021
6092
|
let { value: n, expression: i } = (e.props.componentDependency?.configDependency || {})[r.HIDDEN] || {};
|
|
6022
6093
|
n && i && $({ expression: i }, (e) => {
|
|
6023
6094
|
t(e);
|
|
6024
6095
|
}), t(e.props.hidden);
|
|
6025
6096
|
}
|
|
6026
|
-
function
|
|
6097
|
+
function qa(e) {
|
|
6027
6098
|
let t = e.props.componentDependency?.configDependency || {}, { value: n, expression: i } = t[r.HIDDEN] || {};
|
|
6028
6099
|
n && i && $({ expression: i }, (t) => {
|
|
6029
6100
|
e.props.hidden = !!t;
|
|
@@ -6035,8 +6106,8 @@ function za(e) {
|
|
|
6035
6106
|
}
|
|
6036
6107
|
//#endregion
|
|
6037
6108
|
//#region src/Event/Dependency/useDependency.ts
|
|
6038
|
-
function
|
|
6039
|
-
let { readonly: a, field: o, isFieldModel: s, bindFieldLink: c, refOriginField: l, refOriginModelKey: u, refOriginFieldType: d } = t.props, f = t.props.componentDependency?.configDependency || {}, p =
|
|
6109
|
+
function Ja(t, n = {}, i = !1) {
|
|
6110
|
+
let { readonly: a, field: o, isFieldModel: s, bindFieldLink: c, refOriginField: l, refOriginModelKey: u, refOriginFieldType: d } = t.props, f = t.props.componentDependency?.configDependency || {}, p = fe("formReadonly", void 0), m = fe("useProcessFieldEvent", void 0);
|
|
6040
6111
|
if (m && m.useFieldWidget(t), !m && t.formItem && p?.value !== void 0 && (t.props.readonly = p?.value || t.props.readonly), !m && !p?.value) {
|
|
6041
6112
|
let e = f[r.READONLY]?.expression, o = f[r.READONLY]?.fieldValue, s = f[r.READONLY]?.value;
|
|
6042
6113
|
!o && s && e && $({
|
|
@@ -6079,9 +6150,9 @@ function Ba(t, n = {}, i = !1) {
|
|
|
6079
6150
|
});
|
|
6080
6151
|
if (s && l) {
|
|
6081
6152
|
let e = D(() => n[c[0]]), t = c.length > 2 ? [c[1] + ".*"] : void 0;
|
|
6082
|
-
|
|
6153
|
+
Ni(e, async () => {
|
|
6083
6154
|
try {
|
|
6084
|
-
let n = await
|
|
6155
|
+
let n = await ca({
|
|
6085
6156
|
ids: e.value,
|
|
6086
6157
|
refOriginField: c[0],
|
|
6087
6158
|
refOriginFieldType: d,
|
|
@@ -6103,7 +6174,7 @@ function Ba(t, n = {}, i = !1) {
|
|
|
6103
6174
|
fieldKey: _
|
|
6104
6175
|
};
|
|
6105
6176
|
}
|
|
6106
|
-
function
|
|
6177
|
+
function Ya(e) {
|
|
6107
6178
|
let { readonly: t } = e.props, n = e.props.componentDependency?.configDependency || {}, i = n[r.REQUIRED]?.expression, a = n[r.REQUIRED]?.value;
|
|
6108
6179
|
!n[r.REQUIRED]?.fieldValue && a && i && $({ expression: i }, (n) => {
|
|
6109
6180
|
e.props.required = !!n, n ? e.props.readonly = !1 : e.props.readonly = t;
|
|
@@ -6111,8 +6182,8 @@ function Va(e) {
|
|
|
6111
6182
|
}
|
|
6112
6183
|
//#endregion
|
|
6113
6184
|
//#region src/index.ts
|
|
6114
|
-
function
|
|
6115
|
-
_gct.register.render ? console.warn("渲染注册已存在,可能存在重复注册问题,请检查是否有重复引入渲染包的情况") : _gct.register.render = new
|
|
6185
|
+
function Xa() {
|
|
6186
|
+
_gct.register.render ? console.warn("渲染注册已存在,可能存在重复注册问题,请检查是否有重复引入渲染包的情况") : _gct.register.render = new Pe();
|
|
6116
6187
|
}
|
|
6117
6188
|
//#endregion
|
|
6118
|
-
export {
|
|
6189
|
+
export { Ma as Context, ja as Events, ze as FieldSchema, Na as GctComponent, Q as Globals, da as HandwritingPad, q as PageTypeEnum, He as addDataByForm, K as calculate, Ua as dependencyToShow, Wa as dependencyToShowSync, X as formMap, xa as getPageTitle, Sa as getPremission, ca as getRefInfoId, Y as globalVarCaches, G as identify, Be as initFieldWidgetRuntime, Xa as onInit, Z as pageDataforJson, J as pageGlobaVariables, Re as schemaToStyle, Ue as setDataByForm, ba as setFormData, qa as tableWidgetByDept, Ka as tableWidgetToShow, We as transSelectData, j as transformData, Ge as transformDataToDict, Ie as transformPropsField, Ve as transformSourceData, Ja as useDependency, Ya as useDependencyByRequired, Ha as useDependencyToShow, Ga as useDependencyToShowList, Le as useStyle };
|