@airalogy/aimd-recorder 1.16.0 → 1.17.0
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/{AimdDnaSequenceField-CPyMqIVh.js → AimdDnaSequenceField-D6ZgCDpp.js} +1 -1
- package/dist/{AimdEditor.vue_vue_type_style_index_0_lang-lyHIpch9.js → AimdEditor.vue_vue_type_style_index_0_lang-B5Tq4zPV.js} +3 -3
- package/dist/{AimdMarkdownField-CX71bOdX.js → AimdMarkdownField-BJ20QtO8.js} +2 -2
- package/dist/{AimdMarkdownNoteField--ssNIQfG.js → AimdMarkdownNoteField-DwAQhoyk.js} +2 -2
- package/dist/aimd-recorder.css +1 -1
- package/dist/components.js +2150 -2064
- package/dist/composables.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{useFieldRendering-Dh6Kib_0.js → useFieldRendering-xLajJhyA.js} +350 -345
- package/package.json +4 -4
- package/src/__tests__/quiz-recorder.test.ts +47 -0
- package/src/__tests__/recorder-check-field.test.ts +103 -0
- package/src/__tests__/step-field.test.ts +40 -3
- package/src/components/AimdQuizOptionFollowups.vue +121 -0
- package/src/components/AimdQuizRecorder.vue +79 -148
- package/src/components/AimdRecorder.vue +124 -28
- package/src/components/AimdStepCheckField.vue +125 -35
- package/src/composables/__tests__/useRecordState.test.ts +28 -0
- package/src/composables/useRecordState.ts +18 -11
- package/src/locales.ts +2 -2
- package/src/styles/aimd.css +20 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
function
|
|
1
|
+
import { defineAsyncComponent as Si, h as ri, reactive as Ar } from "vue";
|
|
2
|
+
function Er() {
|
|
3
3
|
return {
|
|
4
4
|
var: {},
|
|
5
5
|
step: {},
|
|
@@ -7,15 +7,15 @@ function Ar() {
|
|
|
7
7
|
quiz: {}
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function jt() {
|
|
11
11
|
return {
|
|
12
12
|
checked: !1,
|
|
13
13
|
annotation: ""
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function wi() {
|
|
17
17
|
return {
|
|
18
|
-
...
|
|
18
|
+
...jt(),
|
|
19
19
|
elapsed_ms: 0,
|
|
20
20
|
timer_started_at_ms: null,
|
|
21
21
|
started_at_ms: null,
|
|
@@ -41,7 +41,7 @@ function at(e, t = Date.now()) {
|
|
|
41
41
|
function ta(e, t = Date.now()) {
|
|
42
42
|
return nt(e) ? !1 : (e.started_at_ms == null && (e.started_at_ms = t), e.timer_started_at_ms = t, e.ended_at_ms = null, !0);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ir(e, t = Date.now()) {
|
|
45
45
|
return nt(e) ? (e.elapsed_ms = at(e, t), e.timer_started_at_ms = null, e.started_at_ms == null && (e.started_at_ms = t), e.ended_at_ms = t, !0) : !1;
|
|
46
46
|
}
|
|
47
47
|
function ia(e) {
|
|
@@ -49,7 +49,7 @@ function ia(e) {
|
|
|
49
49
|
return e.elapsed_ms = 0, e.timer_started_at_ms = null, e.started_at_ms = null, e.ended_at_ms = null, t;
|
|
50
50
|
}
|
|
51
51
|
function ra(e, t, i = Date.now()) {
|
|
52
|
-
t && nt(e) &&
|
|
52
|
+
t && nt(e) && Ir(e, i);
|
|
53
53
|
const r = e.checked !== t;
|
|
54
54
|
return e.checked = t, r;
|
|
55
55
|
}
|
|
@@ -99,7 +99,7 @@ function la(e, t = Date.now()) {
|
|
|
99
99
|
function ca(e) {
|
|
100
100
|
return at(e) > 0 || e.started_at_ms != null || e.ended_at_ms != null;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Nr(e) {
|
|
103
103
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
104
104
|
return {
|
|
105
105
|
elapsed_ms: 0,
|
|
@@ -118,41 +118,41 @@ function Ir(e) {
|
|
|
118
118
|
function fa(e) {
|
|
119
119
|
return JSON.parse(JSON.stringify(e));
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
return e == null || typeof e != "object" ? JSON.stringify(e) : Array.isArray(e) ? `[${e.map((i) =>
|
|
121
|
+
function At(e) {
|
|
122
|
+
return e == null || typeof e != "object" ? JSON.stringify(e) : Array.isArray(e) ? `[${e.map((i) => At(i)).join(",")}]` : `{${Object.entries(e).sort(([i], [r]) => i.localeCompare(r)).map(([i, r]) => `${JSON.stringify(i)}:${At(r)}`).join(",")}}`;
|
|
123
123
|
}
|
|
124
124
|
function ha(e) {
|
|
125
|
-
return
|
|
125
|
+
return At(_i(e));
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Tr(e) {
|
|
128
128
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
129
|
-
return
|
|
129
|
+
return jt();
|
|
130
130
|
const t = e;
|
|
131
131
|
return {
|
|
132
132
|
checked: !!t.checked,
|
|
133
133
|
annotation: typeof t.annotation == "string" ? t.annotation : ""
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Pr(e) {
|
|
137
137
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
138
|
-
return
|
|
138
|
+
return wi();
|
|
139
139
|
const t = e;
|
|
140
140
|
return {
|
|
141
141
|
checked: !!t.checked,
|
|
142
142
|
annotation: typeof t.annotation == "string" ? t.annotation : "",
|
|
143
|
-
...
|
|
143
|
+
...Nr(t)
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
const t =
|
|
146
|
+
function _i(e) {
|
|
147
|
+
const t = Er();
|
|
148
148
|
if (!e || typeof e != "object")
|
|
149
149
|
return t;
|
|
150
150
|
if (e.var && typeof e.var == "object" && (t.var = { ...e.var }), e.quiz && typeof e.quiz == "object" && (t.quiz = { ...e.quiz }), e.step && typeof e.step == "object")
|
|
151
151
|
for (const [i, r] of Object.entries(e.step))
|
|
152
|
-
t.step[i] =
|
|
152
|
+
t.step[i] = Pr(r);
|
|
153
153
|
if (e.check && typeof e.check == "object")
|
|
154
154
|
for (const [i, r] of Object.entries(e.check))
|
|
155
|
-
t.check[i] =
|
|
155
|
+
t.check[i] = Tr(r);
|
|
156
156
|
return t;
|
|
157
157
|
}
|
|
158
158
|
function qe(e, t) {
|
|
@@ -160,16 +160,16 @@ function qe(e, t) {
|
|
|
160
160
|
delete e[i];
|
|
161
161
|
Object.assign(e, t);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Vr(e, t) {
|
|
164
164
|
qe(e.var, t.var), qe(e.step, t.step), qe(e.check, t.check), qe(e.quiz, t.quiz);
|
|
165
165
|
}
|
|
166
166
|
function pa(e, t) {
|
|
167
|
-
|
|
167
|
+
Vr(e, _i(t));
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Or(e) {
|
|
170
170
|
return Array.isArray(e) ? e.map((t) => typeof t == "string" && t.trim() ? { name: t.trim() } : t && typeof t == "object" && typeof t.name == "string" ? { name: t.name } : null).filter((t) => t !== null) : [];
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Lr(e) {
|
|
173
173
|
if (!Array.isArray(e))
|
|
174
174
|
return [];
|
|
175
175
|
const t = [];
|
|
@@ -189,16 +189,16 @@ function Or(e) {
|
|
|
189
189
|
}
|
|
190
190
|
return t;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Dr(e) {
|
|
193
193
|
return Array.isArray(e) ? e.filter((t) => !!t && typeof t == "object" && typeof t.id == "string" && typeof t.type == "string" && typeof t.stem == "string") : [];
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function Rr(e) {
|
|
196
196
|
return Array.isArray(e) ? e.filter((t) => !!t && typeof t == "object" && typeof t.id == "string" && Array.isArray(t.subvars)) : [];
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
return e.type === "choice" && Array.isArray(e.options) && e.options.some((t) => Array.isArray(t.followups) && t.followups.length > 0);
|
|
198
|
+
function si(e) {
|
|
199
|
+
return (e.type === "choice" || e.type === "true_false") && Array.isArray(e.options) && e.options.some((t) => Array.isArray(t.followups) && t.followups.length > 0);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function bt(e, t) {
|
|
202
202
|
const i = new Set(t), r = {};
|
|
203
203
|
for (const s of e.options || []) {
|
|
204
204
|
if (!i.has(s.key) || !Array.isArray(s.followups))
|
|
@@ -212,22 +212,27 @@ function ri(e, t) {
|
|
|
212
212
|
}
|
|
213
213
|
function Mr(e) {
|
|
214
214
|
if (e.type === "choice") {
|
|
215
|
-
const t = new Set((e.options || []).map((s) => s.key)), i =
|
|
215
|
+
const t = new Set((e.options || []).map((s) => s.key)), i = si(e);
|
|
216
216
|
if (e.mode === "multiple") {
|
|
217
217
|
let s = [];
|
|
218
218
|
return Array.isArray(e.default) && (s = e.default.filter((n) => typeof n == "string" && t.has(n))), i ? {
|
|
219
219
|
selected: s,
|
|
220
|
-
followups:
|
|
220
|
+
followups: bt(e, s)
|
|
221
221
|
} : s;
|
|
222
222
|
}
|
|
223
223
|
let r = "";
|
|
224
224
|
return typeof e.default == "string" && t.has(e.default) && (r = e.default), i ? {
|
|
225
225
|
selected: r,
|
|
226
|
-
followups:
|
|
226
|
+
followups: bt(e, r ? [r] : [])
|
|
227
227
|
} : r;
|
|
228
228
|
}
|
|
229
|
-
if (e.type === "true_false")
|
|
230
|
-
|
|
229
|
+
if (e.type === "true_false") {
|
|
230
|
+
const t = typeof e.default == "boolean" ? e.default : null;
|
|
231
|
+
return t !== null && si(e) ? {
|
|
232
|
+
selected: t,
|
|
233
|
+
followups: bt(e, [String(t)])
|
|
234
|
+
} : t;
|
|
235
|
+
}
|
|
231
236
|
if (e.type === "blank") {
|
|
232
237
|
const t = (e.blanks || []).map((r) => r.key);
|
|
233
238
|
if (e.default && typeof e.default == "object" && !Array.isArray(e.default)) {
|
|
@@ -261,7 +266,7 @@ function Oe(e) {
|
|
|
261
266
|
t[i] = "";
|
|
262
267
|
return t;
|
|
263
268
|
}
|
|
264
|
-
function
|
|
269
|
+
function Ci(e, t) {
|
|
265
270
|
if (!Array.isArray(e))
|
|
266
271
|
return [Oe(t)];
|
|
267
272
|
const i = e.map((r) => {
|
|
@@ -312,15 +317,15 @@ function ma(e, t, i, r, s, n) {
|
|
|
312
317
|
}
|
|
313
318
|
function ga(e, t) {
|
|
314
319
|
let i = !1;
|
|
315
|
-
for (const r of
|
|
316
|
-
const s = r.subvars.map((u) => u.id), n = e.var[r.id], a =
|
|
320
|
+
for (const r of Rr(t.var_table)) {
|
|
321
|
+
const s = r.subvars.map((u) => u.id), n = e.var[r.id], a = Ci(n, s);
|
|
317
322
|
JSON.stringify(a) !== JSON.stringify(n) && (e.var[r.id] = a, i = !0);
|
|
318
323
|
}
|
|
319
|
-
for (const r of
|
|
320
|
-
r.name in e.step || (e.step[r.name] =
|
|
321
|
-
for (const r of
|
|
322
|
-
r.name in e.check || (e.check[r.name] =
|
|
323
|
-
for (const r of
|
|
324
|
+
for (const r of Or(t.step))
|
|
325
|
+
r.name in e.step || (e.step[r.name] = wi(), i = !0);
|
|
326
|
+
for (const r of Lr(t.check))
|
|
327
|
+
r.name in e.check || (e.check[r.name] = jt(), i = !0);
|
|
328
|
+
for (const r of Dr(t.quiz))
|
|
324
329
|
r.id in e.quiz || (e.quiz[r.id] = Mr(r), i = !0);
|
|
325
330
|
return i;
|
|
326
331
|
}
|
|
@@ -368,40 +373,40 @@ const Fr = {
|
|
|
368
373
|
"TomlStr",
|
|
369
374
|
"YamlStr"
|
|
370
375
|
];
|
|
371
|
-
function
|
|
376
|
+
function Et(e) {
|
|
372
377
|
if (typeof e != "string" || !e.trim())
|
|
373
378
|
return null;
|
|
374
379
|
const t = ge(e);
|
|
375
380
|
return Fr[t] ?? Br[t] ?? null;
|
|
376
381
|
}
|
|
377
382
|
function $r(e) {
|
|
378
|
-
return typeof e != "string" || !e.trim() ? null : ge(e) === "text" ? "plaintext" :
|
|
383
|
+
return typeof e != "string" || !e.trim() ? null : ge(e) === "text" ? "plaintext" : Et(e) ?? e.trim().toLowerCase();
|
|
379
384
|
}
|
|
380
385
|
function Ur(e, t) {
|
|
381
386
|
const i = $r(t?.codeLanguage);
|
|
382
387
|
if (i)
|
|
383
388
|
return i;
|
|
384
|
-
const r =
|
|
385
|
-
return r ||
|
|
389
|
+
const r = Et(t?.inputType);
|
|
390
|
+
return r || Et(e);
|
|
386
391
|
}
|
|
387
|
-
function
|
|
392
|
+
function ki(e, t) {
|
|
388
393
|
return Ur(e, t) !== null;
|
|
389
394
|
}
|
|
390
|
-
const
|
|
391
|
-
function
|
|
395
|
+
const xt = "airalogy_dna_v1", zr = new Set("ACGTRYSWKMBDHVN".split("")), qr = ["JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"];
|
|
396
|
+
function ni(e, t) {
|
|
392
397
|
const i = typeof e == "string" ? e.trim() : String(e ?? ""), r = Number.parseInt(i, 10);
|
|
393
398
|
return Number.isFinite(r) && r > 0 ? r : t;
|
|
394
399
|
}
|
|
395
|
-
function
|
|
400
|
+
function ai(e) {
|
|
396
401
|
return e === !0 || e === "true" || e === 1 || e === "1";
|
|
397
402
|
}
|
|
398
403
|
function Wr(e) {
|
|
399
404
|
return e === -1 || e === "-1" ? -1 : 1;
|
|
400
405
|
}
|
|
401
|
-
function
|
|
406
|
+
function It(e) {
|
|
402
407
|
return typeof e != "string" ? "" : e.toUpperCase().replace(/\s+/g, "");
|
|
403
408
|
}
|
|
404
|
-
function
|
|
409
|
+
function Nt(e) {
|
|
405
410
|
return typeof e != "string" ? "" : e.replace(/\s+/g, " ").trim();
|
|
406
411
|
}
|
|
407
412
|
function ya(e) {
|
|
@@ -410,7 +415,7 @@ function ya(e) {
|
|
|
410
415
|
zr.has(i) || t.add(i);
|
|
411
416
|
return [...t];
|
|
412
417
|
}
|
|
413
|
-
function
|
|
418
|
+
function Ai() {
|
|
414
419
|
return {
|
|
415
420
|
start: 1,
|
|
416
421
|
end: 1,
|
|
@@ -431,7 +436,7 @@ function Gr(e = "ann_1") {
|
|
|
431
436
|
type: "misc_feature",
|
|
432
437
|
strand: 1,
|
|
433
438
|
color: "#2563eb",
|
|
434
|
-
segments: [
|
|
439
|
+
segments: [Ai()],
|
|
435
440
|
qualifiers: []
|
|
436
441
|
};
|
|
437
442
|
}
|
|
@@ -442,16 +447,16 @@ function ba(e) {
|
|
|
442
447
|
i += 1;
|
|
443
448
|
return `ann_${i}`;
|
|
444
449
|
}
|
|
445
|
-
function
|
|
446
|
-
const t =
|
|
450
|
+
function oi(e) {
|
|
451
|
+
const t = Ai();
|
|
447
452
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
448
453
|
return t;
|
|
449
|
-
const i = e, r =
|
|
454
|
+
const i = e, r = ni(i.start, t.start), s = ni(i.end, Math.max(r, t.end));
|
|
450
455
|
return {
|
|
451
456
|
start: r,
|
|
452
457
|
end: s,
|
|
453
|
-
partial_start:
|
|
454
|
-
partial_end:
|
|
458
|
+
partial_start: ai(i.partial_start),
|
|
459
|
+
partial_end: ai(i.partial_end)
|
|
455
460
|
};
|
|
456
461
|
}
|
|
457
462
|
function Hr(e, t = 0) {
|
|
@@ -491,7 +496,7 @@ function Yr(e, t = 0) {
|
|
|
491
496
|
const i = Gr(`ann_${t + 1}`);
|
|
492
497
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
493
498
|
return i;
|
|
494
|
-
const r = e, s = Array.isArray(r.segments) && r.segments.length > 0 ? r.segments.map((n) =>
|
|
499
|
+
const r = e, s = Array.isArray(r.segments) && r.segments.length > 0 ? r.segments.map((n) => oi(n)) : "start" in r || "end" in r ? [oi({
|
|
495
500
|
start: r.start,
|
|
496
501
|
end: r.end,
|
|
497
502
|
partial_start: r.partial_start,
|
|
@@ -510,15 +515,15 @@ function Yr(e, t = 0) {
|
|
|
510
515
|
function Le(e) {
|
|
511
516
|
if (typeof e == "string")
|
|
512
517
|
return {
|
|
513
|
-
format:
|
|
518
|
+
format: xt,
|
|
514
519
|
name: "",
|
|
515
|
-
sequence:
|
|
520
|
+
sequence: It(e),
|
|
516
521
|
topology: "linear",
|
|
517
522
|
annotations: []
|
|
518
523
|
};
|
|
519
524
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
520
525
|
return {
|
|
521
|
-
format:
|
|
526
|
+
format: xt,
|
|
522
527
|
name: "",
|
|
523
528
|
sequence: "",
|
|
524
529
|
topology: "linear",
|
|
@@ -526,9 +531,9 @@ function Le(e) {
|
|
|
526
531
|
};
|
|
527
532
|
const t = e;
|
|
528
533
|
return {
|
|
529
|
-
format:
|
|
530
|
-
name:
|
|
531
|
-
sequence:
|
|
534
|
+
format: xt,
|
|
535
|
+
name: Nt(t.name),
|
|
536
|
+
sequence: It(t.sequence),
|
|
532
537
|
topology: t.topology === "circular" ? "circular" : "linear",
|
|
533
538
|
annotations: Array.isArray(t.annotations) ? t.annotations.map((i, r) => Yr(i, r)) : []
|
|
534
539
|
};
|
|
@@ -549,7 +554,7 @@ function Zr(e = /* @__PURE__ */ new Date()) {
|
|
|
549
554
|
const t = String(e.getDate()).padStart(2, "0"), i = qr[e.getMonth()] ?? "JAN", r = String(e.getFullYear());
|
|
550
555
|
return `${t}-${i}-${r}`;
|
|
551
556
|
}
|
|
552
|
-
function
|
|
557
|
+
function Ei(e, t, i = e, r = 79) {
|
|
553
558
|
const s = t.replace(/\s+/g, " ").trim();
|
|
554
559
|
if (!s)
|
|
555
560
|
return [e.trimEnd()];
|
|
@@ -576,7 +581,7 @@ function ts(e) {
|
|
|
576
581
|
}
|
|
577
582
|
function is(e, t) {
|
|
578
583
|
const i = e.trim() || "note", r = t.replace(/"/g, "'").trim();
|
|
579
|
-
return r ?
|
|
584
|
+
return r ? Ei(
|
|
580
585
|
" ",
|
|
581
586
|
`/${i}="${r}"`,
|
|
582
587
|
" "
|
|
@@ -590,7 +595,7 @@ function rs(e) {
|
|
|
590
595
|
}), t;
|
|
591
596
|
}
|
|
592
597
|
function Sa(e, t) {
|
|
593
|
-
const i =
|
|
598
|
+
const i = It(e.sequence), r = Nt(e.name) || Nt(t?.name) || "DNA_SEQUENCE", s = Xr(r), n = s.slice(0, 16) || "DNA_SEQUENCE", a = e.topology === "circular" ? "circular" : "linear", u = t?.definition?.trim() || r || `${s} exported from Airalogy AIMD recorder.`, c = [
|
|
594
599
|
[
|
|
595
600
|
"LOCUS".padEnd(12, " "),
|
|
596
601
|
n.padEnd(16, " "),
|
|
@@ -600,7 +605,7 @@ function Sa(e, t) {
|
|
|
600
605
|
a.padEnd(9, " "),
|
|
601
606
|
Zr(t?.date)
|
|
602
607
|
].join(""),
|
|
603
|
-
...
|
|
608
|
+
...Ei("DEFINITION ", u, " "),
|
|
604
609
|
`ACCESSION ${n}`,
|
|
605
610
|
`VERSION ${n}.1`,
|
|
606
611
|
"KEYWORDS .",
|
|
@@ -623,7 +628,7 @@ function Sa(e, t) {
|
|
|
623
628
|
`)}
|
|
624
629
|
`;
|
|
625
630
|
}
|
|
626
|
-
const ss =
|
|
631
|
+
const ss = Si(() => import("./AimdDnaSequenceField-D6ZgCDpp.js")), ns = Si(() => import("./AimdMarkdownField-BJ20QtO8.js")), as = jr.map((e) => ({
|
|
627
632
|
type: e,
|
|
628
633
|
inputKind: "code"
|
|
629
634
|
}));
|
|
@@ -671,7 +676,7 @@ const cs = [
|
|
|
671
676
|
extraClasses: n,
|
|
672
677
|
emitChange: a,
|
|
673
678
|
emitBlur: u
|
|
674
|
-
}) =>
|
|
679
|
+
}) => ri(ns, {
|
|
675
680
|
class: n,
|
|
676
681
|
varId: e.id,
|
|
677
682
|
modelValue: t,
|
|
@@ -696,7 +701,7 @@ const cs = [
|
|
|
696
701
|
extraClasses: n,
|
|
697
702
|
emitChange: a,
|
|
698
703
|
emitBlur: u
|
|
699
|
-
}) =>
|
|
704
|
+
}) => ri(ss, {
|
|
700
705
|
class: n,
|
|
701
706
|
varId: e.id,
|
|
702
707
|
modelValue: t,
|
|
@@ -708,7 +713,7 @@ const cs = [
|
|
|
708
713
|
})
|
|
709
714
|
}
|
|
710
715
|
];
|
|
711
|
-
function
|
|
716
|
+
function $t(e, t) {
|
|
712
717
|
if (!t?.length)
|
|
713
718
|
return;
|
|
714
719
|
const i = ge(e);
|
|
@@ -718,7 +723,7 @@ function wa(e) {
|
|
|
718
723
|
return [...e ?? [], ...cs];
|
|
719
724
|
}
|
|
720
725
|
function fs(e, t) {
|
|
721
|
-
if (
|
|
726
|
+
if (ki(void 0, { inputType: e, codeLanguage: t }))
|
|
722
727
|
return "code";
|
|
723
728
|
const i = ge(e);
|
|
724
729
|
if (i) {
|
|
@@ -743,19 +748,19 @@ function fs(e, t) {
|
|
|
743
748
|
function ae(e) {
|
|
744
749
|
return ge(e);
|
|
745
750
|
}
|
|
746
|
-
function
|
|
751
|
+
function Ii(e) {
|
|
747
752
|
const t = ae(e);
|
|
748
753
|
return t === "float" || t === "int" || t === "integer" || t === "number";
|
|
749
754
|
}
|
|
750
|
-
function
|
|
755
|
+
function ui(e, t = {}) {
|
|
751
756
|
const i = fs(t.inputType, t.codeLanguage);
|
|
752
757
|
if (i)
|
|
753
758
|
return i;
|
|
754
|
-
const r = t.typePlugin ??
|
|
759
|
+
const r = t.typePlugin ?? $t(e, t.typePlugins);
|
|
755
760
|
if (r?.inputKind)
|
|
756
761
|
return r.inputKind;
|
|
757
762
|
const s = ae(e);
|
|
758
|
-
return s === "float" || s === "int" || s === "integer" || s === "number" ? "number" : s === "bool" || s === "boolean" || s === "checkbox" ? "checkbox" : s === "date" ? "date" : s === "datetime" || s === "currenttime" ? "datetime" : s === "time" || s === "duration" ? "time" : s === "dnasequence" ? "dna" : s === "md" || s === "markdown" || s === "airalogymarkdown" ? "textarea" :
|
|
763
|
+
return s === "float" || s === "int" || s === "integer" || s === "number" ? "number" : s === "bool" || s === "boolean" || s === "checkbox" ? "checkbox" : s === "date" ? "date" : s === "datetime" || s === "currenttime" ? "datetime" : s === "time" || s === "duration" ? "time" : s === "dnasequence" ? "dna" : s === "md" || s === "markdown" || s === "airalogymarkdown" ? "textarea" : ki(e, { codeLanguage: t.codeLanguage }) ? "code" : "text";
|
|
759
764
|
}
|
|
760
765
|
function Se(e) {
|
|
761
766
|
if (typeof e == "number")
|
|
@@ -765,14 +770,14 @@ function Se(e) {
|
|
|
765
770
|
return Number.isFinite(t) ? t : void 0;
|
|
766
771
|
}
|
|
767
772
|
}
|
|
768
|
-
function
|
|
769
|
-
if (!
|
|
773
|
+
function Ni(e, t) {
|
|
774
|
+
if (!Ii(e) || !t)
|
|
770
775
|
return {};
|
|
771
776
|
const i = {}, r = Se(t.gt), s = Se(t.ge), n = Se(t.lt), a = Se(t.le), u = Se(t.multiple_of);
|
|
772
777
|
return r !== void 0 && (i.gt = r), s !== void 0 && (i.ge = s), n !== void 0 && (i.lt = n), a !== void 0 && (i.le = a), u !== void 0 && u > 0 && (i.multiple_of = u), i;
|
|
773
778
|
}
|
|
774
779
|
function _a(e, t) {
|
|
775
|
-
const i =
|
|
780
|
+
const i = Ni(e, t), r = [i.gt, i.ge].filter((n) => n !== void 0), s = [i.lt, i.le].filter((n) => n !== void 0);
|
|
776
781
|
return {
|
|
777
782
|
min: r.length ? Math.max(...r) : void 0,
|
|
778
783
|
max: s.length ? Math.min(...s) : void 0,
|
|
@@ -780,7 +785,7 @@ function _a(e, t) {
|
|
|
780
785
|
};
|
|
781
786
|
}
|
|
782
787
|
function hs(e, t, i) {
|
|
783
|
-
const r =
|
|
788
|
+
const r = Ni(t, i);
|
|
784
789
|
if (Object.keys(r).length === 0 || e === null || typeof e > "u" || typeof e == "string" && e.trim() === "")
|
|
785
790
|
return null;
|
|
786
791
|
const s = Se(e);
|
|
@@ -819,7 +824,7 @@ function Ca(e) {
|
|
|
819
824
|
}
|
|
820
825
|
return !!t;
|
|
821
826
|
}
|
|
822
|
-
function
|
|
827
|
+
function Ti(e) {
|
|
823
828
|
const t = Ee(e);
|
|
824
829
|
if (t instanceof Date)
|
|
825
830
|
return Number.isNaN(t.getTime()) ? null : t;
|
|
@@ -840,7 +845,7 @@ function ps(e) {
|
|
|
840
845
|
const t = -e.getTimezoneOffset(), i = t >= 0 ? "+" : "-", r = Math.abs(t), s = Math.floor(r / 60), n = r % 60;
|
|
841
846
|
return `${i}${X(s)}:${X(n)}`;
|
|
842
847
|
}
|
|
843
|
-
function
|
|
848
|
+
function Tt(e) {
|
|
844
849
|
const t = e.getFullYear(), i = X(e.getMonth() + 1), r = X(e.getDate()), s = X(e.getHours()), n = X(e.getMinutes());
|
|
845
850
|
return `${t}-${i}-${r}T${s}:${n}${ps(e)}`;
|
|
846
851
|
}
|
|
@@ -854,12 +859,12 @@ function ds(e) {
|
|
|
854
859
|
if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/.test(s))
|
|
855
860
|
return s;
|
|
856
861
|
const n = new Date(s);
|
|
857
|
-
return Number.isNaN(n.getTime()) ? e :
|
|
862
|
+
return Number.isNaN(n.getTime()) ? e : Tt(n);
|
|
858
863
|
}
|
|
859
864
|
if (t === null || typeof t > "u")
|
|
860
865
|
return "";
|
|
861
|
-
const i =
|
|
862
|
-
return i ?
|
|
866
|
+
const i = Ti(t);
|
|
867
|
+
return i ? Tt(i) : e;
|
|
863
868
|
}
|
|
864
869
|
function ms(e, t) {
|
|
865
870
|
const i = Ee(e);
|
|
@@ -875,7 +880,7 @@ function ms(e, t) {
|
|
|
875
880
|
if (t === "time" && /^\d{2}:\d{2}/.test(h))
|
|
876
881
|
return h.slice(0, 8);
|
|
877
882
|
}
|
|
878
|
-
const r =
|
|
883
|
+
const r = Ti(i);
|
|
879
884
|
if (!r)
|
|
880
885
|
return "";
|
|
881
886
|
const s = r.getFullYear(), n = X(r.getMonth() + 1), a = X(r.getDate()), u = X(r.getHours()), l = X(r.getMinutes()), c = X(r.getSeconds());
|
|
@@ -899,7 +904,7 @@ function gs(e, t, i = {}) {
|
|
|
899
904
|
return t === "date" || t === "datetime" || t === "time" ? ms(s, t) : t === "number" ? typeof s == "number" || typeof s == "string" ? s : "" : t === "dna" ? typeof s == "string" ? s : JSON.stringify(s) : typeof s == "string" ? s : s === null || typeof s > "u" ? "" : String(s);
|
|
900
905
|
}
|
|
901
906
|
function ka(e, t, i, r = {}) {
|
|
902
|
-
const s = r.typePlugin ??
|
|
907
|
+
const s = r.typePlugin ?? $t(t, r.typePlugins);
|
|
903
908
|
if (s?.parseInputValue) {
|
|
904
909
|
const a = {
|
|
905
910
|
type: t || "str",
|
|
@@ -924,7 +929,7 @@ function ka(e, t, i, r = {}) {
|
|
|
924
929
|
}
|
|
925
930
|
return e;
|
|
926
931
|
}
|
|
927
|
-
function
|
|
932
|
+
function Pi(e) {
|
|
928
933
|
switch (e) {
|
|
929
934
|
case "textarea":
|
|
930
935
|
case "dna":
|
|
@@ -947,25 +952,25 @@ function ys(e) {
|
|
|
947
952
|
}
|
|
948
953
|
}
|
|
949
954
|
function Aa(e, t) {
|
|
950
|
-
const i = Math.max(e.length + 7, 10), n = Math.round(i * 8 + 16), a =
|
|
955
|
+
const i = Math.max(e.length + 7, 10), n = Math.round(i * 8 + 16), a = Pi(t);
|
|
951
956
|
return `${Math.max(a, n)}px`;
|
|
952
957
|
}
|
|
953
958
|
function q(e) {
|
|
954
959
|
const t = Number.parseFloat(e);
|
|
955
960
|
return Number.isFinite(t) ? t : 0;
|
|
956
961
|
}
|
|
957
|
-
let
|
|
958
|
-
function
|
|
959
|
-
return typeof window > "u" ? null : (
|
|
962
|
+
let vt = null;
|
|
963
|
+
function Vi() {
|
|
964
|
+
return typeof window > "u" ? null : (vt || (vt = document.createElement("canvas")), vt.getContext("2d"));
|
|
960
965
|
}
|
|
961
966
|
function bs(e, t) {
|
|
962
|
-
const i =
|
|
967
|
+
const i = Vi();
|
|
963
968
|
if (!i)
|
|
964
969
|
return 0;
|
|
965
970
|
const r = t.fontSize || "16px", s = t.fontFamily || "sans-serif", n = t.fontWeight || "400", a = t.fontStyle || "normal";
|
|
966
971
|
return i.font = `${a} ${n} ${r} ${s}`, i.measureText(e).width;
|
|
967
972
|
}
|
|
968
|
-
function
|
|
973
|
+
function li(e) {
|
|
969
974
|
if (typeof window > "u")
|
|
970
975
|
return e.scrollWidth;
|
|
971
976
|
const t = window.getComputedStyle(e), i = (e.textContent || "").trim(), r = bs(i, t), s = q(t.paddingLeft) + q(t.paddingRight) + q(t.borderLeftWidth) + q(t.borderRightWidth) + q(t.marginLeft) + q(t.marginRight);
|
|
@@ -974,14 +979,14 @@ function ui(e) {
|
|
|
974
979
|
function xs(e) {
|
|
975
980
|
const t = e.querySelector(".aimd-field__scope--var"), i = e.querySelector(".aimd-field__id");
|
|
976
981
|
if (t && i)
|
|
977
|
-
return
|
|
982
|
+
return li(t) + li(i) + 4;
|
|
978
983
|
const r = e.querySelector(".aimd-field__label");
|
|
979
984
|
return r ? r.scrollWidth + 2 : 0;
|
|
980
985
|
}
|
|
981
986
|
function vs(e) {
|
|
982
987
|
if (typeof window > "u")
|
|
983
988
|
return e.scrollWidth;
|
|
984
|
-
const t =
|
|
989
|
+
const t = Vi();
|
|
985
990
|
if (!t)
|
|
986
991
|
return e.scrollWidth;
|
|
987
992
|
const i = window.getComputedStyle(e), r = i.fontSize || "16px", s = i.fontFamily || "sans-serif", n = i.fontWeight || "400", a = i.fontStyle || "normal";
|
|
@@ -1006,7 +1011,7 @@ function Ia(e, t) {
|
|
|
1006
1011
|
const i = e.closest(".aimd-rec-inline--var-stacked");
|
|
1007
1012
|
if (!i || typeof window > "u")
|
|
1008
1013
|
return;
|
|
1009
|
-
const r = xs(i), s =
|
|
1014
|
+
const r = xs(i), s = Pi(t);
|
|
1010
1015
|
let n = 0;
|
|
1011
1016
|
const a = i.querySelector(".aimd-rec-inline__input--stacked, .aimd-rec-inline__textarea--stacked-text");
|
|
1012
1017
|
a && (n = vs(a) + ys(t));
|
|
@@ -1073,18 +1078,18 @@ function Ta(e, t) {
|
|
|
1073
1078
|
typeof window < "u" && window.scrollTo(t.windowScrollX ?? window.scrollX, t.windowScrollY ?? window.scrollY);
|
|
1074
1079
|
}
|
|
1075
1080
|
}
|
|
1076
|
-
var _s = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239],
|
|
1081
|
+
var _s = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], Oi = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], Cs = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Li = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", St = {
|
|
1077
1082
|
3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
|
|
1078
1083
|
5: "class enum extends super const export import",
|
|
1079
1084
|
6: "enum",
|
|
1080
1085
|
strict: "implements interface let package private protected public static yield",
|
|
1081
1086
|
strictBind: "eval arguments"
|
|
1082
|
-
},
|
|
1083
|
-
5:
|
|
1084
|
-
"5module":
|
|
1085
|
-
6:
|
|
1086
|
-
}, As = /^in(stanceof)?$/, Es = new RegExp("[" +
|
|
1087
|
-
function
|
|
1087
|
+
}, wt = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", ks = {
|
|
1088
|
+
5: wt,
|
|
1089
|
+
"5module": wt + " export import",
|
|
1090
|
+
6: wt + " const class extends export import super"
|
|
1091
|
+
}, As = /^in(stanceof)?$/, Es = new RegExp("[" + Li + "]"), Is = new RegExp("[" + Li + Cs + "]");
|
|
1092
|
+
function Pt(e, t) {
|
|
1088
1093
|
for (var i = 65536, r = 0; r < t.length; r += 2) {
|
|
1089
1094
|
if (i += t[r], i > e)
|
|
1090
1095
|
return !1;
|
|
@@ -1094,10 +1099,10 @@ function Tt(e, t) {
|
|
|
1094
1099
|
return !1;
|
|
1095
1100
|
}
|
|
1096
1101
|
function ee(e, t) {
|
|
1097
|
-
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Es.test(String.fromCharCode(e)) : t === !1 ? !1 :
|
|
1102
|
+
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Es.test(String.fromCharCode(e)) : t === !1 ? !1 : Pt(e, Oi);
|
|
1098
1103
|
}
|
|
1099
1104
|
function he(e, t) {
|
|
1100
|
-
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Is.test(String.fromCharCode(e)) : t === !1 ? !1 :
|
|
1105
|
+
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Is.test(String.fromCharCode(e)) : t === !1 ? !1 : Pt(e, Oi) || Pt(e, _s);
|
|
1101
1106
|
}
|
|
1102
1107
|
var I = function(t, i) {
|
|
1103
1108
|
i === void 0 && (i = {}), this.label = t, this.keyword = i.keyword, this.beforeExpr = !!i.beforeExpr, this.startsExpr = !!i.startsExpr, this.isLoop = !!i.isLoop, this.isAssign = !!i.isAssign, this.prefix = !!i.prefix, this.postfix = !!i.postfix, this.binop = i.binop || null, this.updateContext = null;
|
|
@@ -1105,9 +1110,9 @@ var I = function(t, i) {
|
|
|
1105
1110
|
function G(e, t) {
|
|
1106
1111
|
return new I(e, { beforeExpr: !0, binop: t });
|
|
1107
1112
|
}
|
|
1108
|
-
var H = { beforeExpr: !0 }, z = { startsExpr: !0 },
|
|
1113
|
+
var H = { beforeExpr: !0 }, z = { startsExpr: !0 }, Ut = {};
|
|
1109
1114
|
function E(e, t) {
|
|
1110
|
-
return t === void 0 && (t = {}), t.keyword = e,
|
|
1115
|
+
return t === void 0 && (t = {}), t.keyword = e, Ut[e] = new I(e, t);
|
|
1111
1116
|
}
|
|
1112
1117
|
var o = {
|
|
1113
1118
|
num: new I("num", z),
|
|
@@ -1206,7 +1211,7 @@ var o = {
|
|
|
1206
1211
|
function Ie(e) {
|
|
1207
1212
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
1208
1213
|
}
|
|
1209
|
-
function
|
|
1214
|
+
function Di(e, t, i) {
|
|
1210
1215
|
i === void 0 && (i = e.length);
|
|
1211
1216
|
for (var r = t; r < i; r++) {
|
|
1212
1217
|
var s = e.charCodeAt(r);
|
|
@@ -1215,13 +1220,13 @@ function Li(e, t, i) {
|
|
|
1215
1220
|
}
|
|
1216
1221
|
return -1;
|
|
1217
1222
|
}
|
|
1218
|
-
var
|
|
1223
|
+
var Ri = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, B = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Mi = Object.prototype, Ts = Mi.hasOwnProperty, Ps = Mi.toString, Ne = Object.hasOwn || (function(e, t) {
|
|
1219
1224
|
return Ts.call(e, t);
|
|
1220
|
-
}),
|
|
1225
|
+
}), ci = Array.isArray || (function(e) {
|
|
1221
1226
|
return Ps.call(e) === "[object Array]";
|
|
1222
|
-
}),
|
|
1227
|
+
}), fi = /* @__PURE__ */ Object.create(null);
|
|
1223
1228
|
function fe(e) {
|
|
1224
|
-
return
|
|
1229
|
+
return fi[e] || (fi[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
1225
1230
|
}
|
|
1226
1231
|
function ue(e) {
|
|
1227
1232
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
@@ -1235,15 +1240,15 @@ Fe.prototype.offset = function(t) {
|
|
|
1235
1240
|
var ot = function(t, i, r) {
|
|
1236
1241
|
this.start = i, this.end = r, t.sourceFile !== null && (this.source = t.sourceFile);
|
|
1237
1242
|
};
|
|
1238
|
-
function
|
|
1243
|
+
function Fi(e, t) {
|
|
1239
1244
|
for (var i = 1, r = 0; ; ) {
|
|
1240
|
-
var s =
|
|
1245
|
+
var s = Di(e, r, t);
|
|
1241
1246
|
if (s < 0)
|
|
1242
1247
|
return new Fe(i, t - r);
|
|
1243
1248
|
++i, r = s;
|
|
1244
1249
|
}
|
|
1245
1250
|
}
|
|
1246
|
-
var
|
|
1251
|
+
var Vt = {
|
|
1247
1252
|
// `ecmaVersion` indicates the ECMAScript version to parse. Must be
|
|
1248
1253
|
// either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
|
|
1249
1254
|
// (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"`
|
|
@@ -1339,19 +1344,19 @@ var Pt = {
|
|
|
1339
1344
|
// When enabled, parenthesized expressions are represented by
|
|
1340
1345
|
// (non-standard) ParenthesizedExpression nodes
|
|
1341
1346
|
preserveParens: !1
|
|
1342
|
-
},
|
|
1347
|
+
}, hi = !1;
|
|
1343
1348
|
function Os(e) {
|
|
1344
1349
|
var t = {};
|
|
1345
|
-
for (var i in
|
|
1346
|
-
t[i] = e && Ne(e, i) ? e[i] :
|
|
1347
|
-
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!
|
|
1348
|
-
Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14),
|
|
1350
|
+
for (var i in Vt)
|
|
1351
|
+
t[i] = e && Ne(e, i) ? e[i] : Vt[i];
|
|
1352
|
+
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!hi && typeof console == "object" && console.warn && (hi = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
1353
|
+
Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14), ci(t.onToken)) {
|
|
1349
1354
|
var r = t.onToken;
|
|
1350
1355
|
t.onToken = function(s) {
|
|
1351
1356
|
return r.push(s);
|
|
1352
1357
|
};
|
|
1353
1358
|
}
|
|
1354
|
-
return
|
|
1359
|
+
return ci(t.onComment) && (t.onComment = Ls(t, t.onComment)), t;
|
|
1355
1360
|
}
|
|
1356
1361
|
function Ls(e, t) {
|
|
1357
1362
|
return function(i, r, s, n, a, u) {
|
|
@@ -1364,16 +1369,16 @@ function Ls(e, t) {
|
|
|
1364
1369
|
e.locations && (l.loc = new ot(this, a, u)), e.ranges && (l.range = [s, n]), t.push(l);
|
|
1365
1370
|
};
|
|
1366
1371
|
}
|
|
1367
|
-
var Be = 1, Te = 2,
|
|
1368
|
-
function
|
|
1369
|
-
return Te | (e ?
|
|
1372
|
+
var Be = 1, Te = 2, zt = 4, Bi = 8, qt = 16, ji = 32, ut = 64, $i = 128, be = 256, $e = 512, lt = Be | Te | be;
|
|
1373
|
+
function Wt(e, t) {
|
|
1374
|
+
return Te | (e ? zt : 0) | (t ? Bi : 0);
|
|
1370
1375
|
}
|
|
1371
|
-
var Je = 0,
|
|
1376
|
+
var Je = 0, Kt = 1, ce = 2, Ui = 3, zi = 4, qi = 5, D = function(t, i, r) {
|
|
1372
1377
|
this.options = t = Os(t), this.sourceFile = t.sourceFile, this.keywords = fe(ks[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
|
|
1373
1378
|
var s = "";
|
|
1374
|
-
t.allowReserved !== !0 && (s =
|
|
1375
|
-
var n = (s ? s + " " : "") +
|
|
1376
|
-
this.reservedWordsStrict = fe(n), this.reservedWordsStrictBind = fe(n + " " +
|
|
1379
|
+
t.allowReserved !== !0 && (s = St[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (s += " await")), this.reservedWords = fe(s);
|
|
1380
|
+
var n = (s ? s + " " : "") + St.strict;
|
|
1381
|
+
this.reservedWordsStrict = fe(n), this.reservedWordsStrictBind = fe(n + " " + St.strictBind), this.input = String(i), this.containsEsc = !1, r ? (this.pos = r, this.lineStart = this.input.lastIndexOf(`
|
|
1377
1382
|
`, r - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(W).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = o.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(Be), this.regexpState = null, this.privateNameStack = [];
|
|
1378
1383
|
}, te = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
|
|
1379
1384
|
D.prototype.parse = function() {
|
|
@@ -1384,10 +1389,10 @@ te.inFunction.get = function() {
|
|
|
1384
1389
|
return (this.currentVarScope().flags & Te) > 0;
|
|
1385
1390
|
};
|
|
1386
1391
|
te.inGenerator.get = function() {
|
|
1387
|
-
return (this.currentVarScope().flags &
|
|
1392
|
+
return (this.currentVarScope().flags & Bi) > 0;
|
|
1388
1393
|
};
|
|
1389
1394
|
te.inAsync.get = function() {
|
|
1390
|
-
return (this.currentVarScope().flags &
|
|
1395
|
+
return (this.currentVarScope().flags & zt) > 0;
|
|
1391
1396
|
};
|
|
1392
1397
|
te.canAwait.get = function() {
|
|
1393
1398
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
@@ -1395,7 +1400,7 @@ te.canAwait.get = function() {
|
|
|
1395
1400
|
if (i & (be | $e))
|
|
1396
1401
|
return !1;
|
|
1397
1402
|
if (i & Te)
|
|
1398
|
-
return (i &
|
|
1403
|
+
return (i & zt) > 0;
|
|
1399
1404
|
}
|
|
1400
1405
|
return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
|
|
1401
1406
|
};
|
|
@@ -1404,7 +1409,7 @@ te.allowSuper.get = function() {
|
|
|
1404
1409
|
return (t & ut) > 0 || this.options.allowSuperOutsideMethod;
|
|
1405
1410
|
};
|
|
1406
1411
|
te.allowDirectSuper.get = function() {
|
|
1407
|
-
return (this.currentThisScope().flags &
|
|
1412
|
+
return (this.currentThisScope().flags & $i) > 0;
|
|
1408
1413
|
};
|
|
1409
1414
|
te.treatFunctionsAsVar.get = function() {
|
|
1410
1415
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
@@ -1412,7 +1417,7 @@ te.treatFunctionsAsVar.get = function() {
|
|
|
1412
1417
|
te.allowNewDotTarget.get = function() {
|
|
1413
1418
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
1414
1419
|
var t = this.scopeStack[e], i = t.flags;
|
|
1415
|
-
if (i & (be | $e) || i & Te && !(i &
|
|
1420
|
+
if (i & (be | $e) || i & Te && !(i & qt))
|
|
1416
1421
|
return !0;
|
|
1417
1422
|
}
|
|
1418
1423
|
return !1;
|
|
@@ -1524,7 +1529,7 @@ v.parseTopLevel = function(e) {
|
|
|
1524
1529
|
}
|
|
1525
1530
|
return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
|
|
1526
1531
|
};
|
|
1527
|
-
var
|
|
1532
|
+
var Gt = { kind: "loop" }, Rs = { kind: "switch" };
|
|
1528
1533
|
v.isLet = function(e) {
|
|
1529
1534
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
|
|
1530
1535
|
return !1;
|
|
@@ -1659,12 +1664,12 @@ v.parseDebuggerStatement = function(e) {
|
|
|
1659
1664
|
return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
|
|
1660
1665
|
};
|
|
1661
1666
|
v.parseDoStatement = function(e) {
|
|
1662
|
-
return this.next(), this.labels.push(
|
|
1667
|
+
return this.next(), this.labels.push(Gt), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(o._while), e.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(o.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
|
|
1663
1668
|
};
|
|
1664
1669
|
v.parseForStatement = function(e) {
|
|
1665
1670
|
this.next();
|
|
1666
1671
|
var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
|
|
1667
|
-
if (this.labels.push(
|
|
1672
|
+
if (this.labels.push(Gt), this.enterScope(0), this.expect(o.parenL), this.type === o.semi)
|
|
1668
1673
|
return t > -1 && this.unexpected(t), this.parseFor(e, null);
|
|
1669
1674
|
var i = this.isLet();
|
|
1670
1675
|
if (this.type === o._var || this.type === o._const || i) {
|
|
@@ -1683,7 +1688,7 @@ v.parseForAfterInit = function(e, t, i) {
|
|
|
1683
1688
|
return (this.type === o._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === o._in ? i > -1 && this.unexpected(i) : e.await = i > -1), this.parseForIn(e, t)) : (i > -1 && this.unexpected(i), this.parseFor(e, t));
|
|
1684
1689
|
};
|
|
1685
1690
|
v.parseFunctionStatement = function(e, t, i) {
|
|
1686
|
-
return this.next(), this.parseFunction(e, De | (i ? 0 :
|
|
1691
|
+
return this.next(), this.parseFunction(e, De | (i ? 0 : Ot), !1, t);
|
|
1687
1692
|
};
|
|
1688
1693
|
v.parseIfStatement = function(e) {
|
|
1689
1694
|
return this.next(), e.test = this.parseParenExpression(), e.consequent = this.parseStatement("if"), e.alternate = this.eat(o._else) ? this.parseStatement("if") : null, this.finishNode(e, "IfStatement");
|
|
@@ -1707,7 +1712,7 @@ v.parseThrowStatement = function(e) {
|
|
|
1707
1712
|
var Ms = [];
|
|
1708
1713
|
v.parseCatchClauseParam = function() {
|
|
1709
1714
|
var e = this.parseBindingAtom(), t = e.type === "Identifier";
|
|
1710
|
-
return this.enterScope(t ?
|
|
1715
|
+
return this.enterScope(t ? ji : 0), this.checkLValPattern(e, t ? zi : ce), this.expect(o.parenR), e;
|
|
1711
1716
|
};
|
|
1712
1717
|
v.parseTryStatement = function(e) {
|
|
1713
1718
|
if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === o._catch) {
|
|
@@ -1720,7 +1725,7 @@ v.parseVarStatement = function(e, t, i) {
|
|
|
1720
1725
|
return this.next(), this.parseVar(e, !1, t, i), this.semicolon(), this.finishNode(e, "VariableDeclaration");
|
|
1721
1726
|
};
|
|
1722
1727
|
v.parseWhileStatement = function(e) {
|
|
1723
|
-
return this.next(), e.test = this.parseParenExpression(), this.labels.push(
|
|
1728
|
+
return this.next(), e.test = this.parseParenExpression(), this.labels.push(Gt), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
|
|
1724
1729
|
};
|
|
1725
1730
|
v.parseWithStatement = function(e) {
|
|
1726
1731
|
return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), e.object = this.parseParenExpression(), e.body = this.parseStatement("with"), this.finishNode(e, "WithStatement");
|
|
@@ -1771,13 +1776,13 @@ v.parseVar = function(e, t, i, r) {
|
|
|
1771
1776
|
return e;
|
|
1772
1777
|
};
|
|
1773
1778
|
v.parseVarId = function(e, t) {
|
|
1774
|
-
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ?
|
|
1779
|
+
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Kt : ce, !1);
|
|
1775
1780
|
};
|
|
1776
|
-
var De = 1,
|
|
1781
|
+
var De = 1, Ot = 2, Wi = 4;
|
|
1777
1782
|
v.parseFunction = function(e, t, i, r, s) {
|
|
1778
|
-
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === o.star && t &
|
|
1783
|
+
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === o.star && t & Ot && this.unexpected(), e.generator = this.eat(o.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & De && (e.id = t & Wi && this.type !== o.name ? null : this.parseIdent(), e.id && !(t & Ot) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Kt : ce : Ui));
|
|
1779
1784
|
var n = this.yieldPos, a = this.awaitPos, u = this.awaitIdentPos;
|
|
1780
|
-
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(
|
|
1785
|
+
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Wt(e.async, e.generator)), t & De || (e.id = this.type === o.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, !1, s), this.yieldPos = n, this.awaitPos = a, this.awaitIdentPos = u, this.finishNode(e, t & De ? "FunctionDeclaration" : "FunctionExpression");
|
|
1781
1786
|
};
|
|
1782
1787
|
v.parseFunctionParams = function(e) {
|
|
1783
1788
|
this.expect(o.parenL), e.params = this.parseBindingList(o.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
|
|
@@ -1894,7 +1899,7 @@ v.parseExportDefaultDeclaration = function() {
|
|
|
1894
1899
|
var e;
|
|
1895
1900
|
if (this.type === o._function || (e = this.isAsyncFunction())) {
|
|
1896
1901
|
var t = this.startNode();
|
|
1897
|
-
return this.next(), e && this.next(), this.parseFunction(t, De |
|
|
1902
|
+
return this.next(), e && this.next(), this.parseFunction(t, De | Wi, !1, e);
|
|
1898
1903
|
} else if (this.type === o._class) {
|
|
1899
1904
|
var i = this.startNode();
|
|
1900
1905
|
return this.parseClass(i, "nullableID");
|
|
@@ -2125,7 +2130,7 @@ J.checkLValSimple = function(e, t, i) {
|
|
|
2125
2130
|
var r = t !== Je;
|
|
2126
2131
|
switch (e.type) {
|
|
2127
2132
|
case "Identifier":
|
|
2128
|
-
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (r ? "Binding " : "Assigning to ") + e.name + " in strict mode"), r && (t === ce && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && (Ne(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !==
|
|
2133
|
+
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (r ? "Binding " : "Assigning to ") + e.name + " in strict mode"), r && (t === ce && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && (Ne(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !== qi && this.declareName(e.name, t, e.start));
|
|
2129
2134
|
break;
|
|
2130
2135
|
case "ChainExpression":
|
|
2131
2136
|
this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
|
|
@@ -2351,7 +2356,7 @@ C.parseMaybeUnary = function(e, t, i, r) {
|
|
|
2351
2356
|
a = this.parseAwait(r), t = !0;
|
|
2352
2357
|
else if (this.type.prefix) {
|
|
2353
2358
|
var u = this.startNode(), l = this.type === o.incDec;
|
|
2354
|
-
u.operator = this.value, u.prefix = !0, this.next(), u.argument = this.parseMaybeUnary(null, !0, l, r), this.checkExpressionErrors(e, !0), l ? this.checkLValSimple(u.argument) : this.strict && u.operator === "delete" &&
|
|
2359
|
+
u.operator = this.value, u.prefix = !0, this.next(), u.argument = this.parseMaybeUnary(null, !0, l, r), this.checkExpressionErrors(e, !0), l ? this.checkLValSimple(u.argument) : this.strict && u.operator === "delete" && Ki(u.argument) ? this.raiseRecoverable(u.start, "Deleting local variable in strict mode") : u.operator === "delete" && Lt(u.argument) ? this.raiseRecoverable(u.start, "Private fields can not be deleted") : t = !0, a = this.finishNode(u, l ? "UpdateExpression" : "UnaryExpression");
|
|
2355
2360
|
} else if (!t && this.type === o.privateId)
|
|
2356
2361
|
(r || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), a = this.parsePrivateIdent(), this.type !== o._in && this.unexpected();
|
|
2357
2362
|
else {
|
|
@@ -2370,11 +2375,11 @@ C.parseMaybeUnary = function(e, t, i, r) {
|
|
|
2370
2375
|
else
|
|
2371
2376
|
return a;
|
|
2372
2377
|
};
|
|
2373
|
-
function
|
|
2374
|
-
return e.type === "Identifier" || e.type === "ParenthesizedExpression" &&
|
|
2378
|
+
function Ki(e) {
|
|
2379
|
+
return e.type === "Identifier" || e.type === "ParenthesizedExpression" && Ki(e.expression);
|
|
2375
2380
|
}
|
|
2376
|
-
function
|
|
2377
|
-
return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" &&
|
|
2381
|
+
function Lt(e) {
|
|
2382
|
+
return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && Lt(e.expression) || e.type === "ParenthesizedExpression" && Lt(e.expression);
|
|
2378
2383
|
}
|
|
2379
2384
|
C.parseExprSubscripts = function(e, t) {
|
|
2380
2385
|
var i = this.start, r = this.startLoc, s = this.parseExprAtom(e, t);
|
|
@@ -2634,11 +2639,11 @@ C.initFunction = function(e) {
|
|
|
2634
2639
|
};
|
|
2635
2640
|
C.parseMethod = function(e, t, i) {
|
|
2636
2641
|
var r = this.startNode(), s = this.yieldPos, n = this.awaitPos, a = this.awaitIdentPos;
|
|
2637
|
-
return this.initFunction(r), this.options.ecmaVersion >= 6 && (r.generator = e), this.options.ecmaVersion >= 8 && (r.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(
|
|
2642
|
+
return this.initFunction(r), this.options.ecmaVersion >= 6 && (r.generator = e), this.options.ecmaVersion >= 8 && (r.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Wt(t, r.generator) | ut | (i ? $i : 0)), this.expect(o.parenL), r.params = this.parseBindingList(o.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(r, !1, !0, !1), this.yieldPos = s, this.awaitPos = n, this.awaitIdentPos = a, this.finishNode(r, "FunctionExpression");
|
|
2638
2643
|
};
|
|
2639
2644
|
C.parseArrowExpression = function(e, t, i, r) {
|
|
2640
2645
|
var s = this.yieldPos, n = this.awaitPos, a = this.awaitIdentPos;
|
|
2641
|
-
return this.enterScope(
|
|
2646
|
+
return this.enterScope(Wt(i, !1) | qt), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!i), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, !0), this.parseFunctionBody(e, !0, !1, r), this.yieldPos = s, this.awaitPos = n, this.awaitIdentPos = a, this.finishNode(e, "ArrowFunctionExpression");
|
|
2642
2647
|
};
|
|
2643
2648
|
C.parseFunctionBody = function(e, t, i, r) {
|
|
2644
2649
|
var s = t && this.type !== o.braceL, n = this.strict, a = !1;
|
|
@@ -2648,7 +2653,7 @@ C.parseFunctionBody = function(e, t, i, r) {
|
|
|
2648
2653
|
var u = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
|
|
2649
2654
|
(!n || u) && (a = this.strictDirective(this.end), a && u && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
|
|
2650
2655
|
var l = this.labels;
|
|
2651
|
-
this.labels = [], a && (this.strict = !0), this.checkParams(e, !n && !a && !t && !i && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id,
|
|
2656
|
+
this.labels = [], a && (this.strict = !0), this.checkParams(e, !n && !a && !t && !i && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, qi), e.body = this.parseBlock(!1, void 0, a && !n), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = l;
|
|
2652
2657
|
}
|
|
2653
2658
|
this.exitScope();
|
|
2654
2659
|
};
|
|
@@ -2663,7 +2668,7 @@ C.isSimpleParamList = function(e) {
|
|
|
2663
2668
|
C.checkParams = function(e, t) {
|
|
2664
2669
|
for (var i = /* @__PURE__ */ Object.create(null), r = 0, s = e.params; r < s.length; r += 1) {
|
|
2665
2670
|
var n = s[r];
|
|
2666
|
-
this.checkLValInnerPattern(n,
|
|
2671
|
+
this.checkLValInnerPattern(n, Kt, t ? null : i);
|
|
2667
2672
|
}
|
|
2668
2673
|
};
|
|
2669
2674
|
C.parseExprList = function(e, t, i, r) {
|
|
@@ -2708,7 +2713,7 @@ C.parseAwait = function(e) {
|
|
|
2708
2713
|
};
|
|
2709
2714
|
var Xe = D.prototype;
|
|
2710
2715
|
Xe.raise = function(e, t) {
|
|
2711
|
-
var i =
|
|
2716
|
+
var i = Fi(this.input, e);
|
|
2712
2717
|
t += " (" + i.line + ":" + i.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
|
|
2713
2718
|
var r = new SyntaxError(t);
|
|
2714
2719
|
throw r.pos = e, r.loc = i, r.raisedAt = this.pos, r;
|
|
@@ -2735,16 +2740,16 @@ pe.declareName = function(e, t, i) {
|
|
|
2735
2740
|
if (t === ce) {
|
|
2736
2741
|
var s = this.currentScope();
|
|
2737
2742
|
r = s.lexical.indexOf(e) > -1 || s.functions.indexOf(e) > -1 || s.var.indexOf(e) > -1, s.lexical.push(e), this.inModule && s.flags & Be && delete this.undefinedExports[e];
|
|
2738
|
-
} else if (t ===
|
|
2743
|
+
} else if (t === zi) {
|
|
2739
2744
|
var n = this.currentScope();
|
|
2740
2745
|
n.lexical.push(e);
|
|
2741
|
-
} else if (t ===
|
|
2746
|
+
} else if (t === Ui) {
|
|
2742
2747
|
var a = this.currentScope();
|
|
2743
2748
|
this.treatFunctionsAsVar ? r = a.lexical.indexOf(e) > -1 : r = a.lexical.indexOf(e) > -1 || a.var.indexOf(e) > -1, a.functions.push(e);
|
|
2744
2749
|
} else
|
|
2745
2750
|
for (var u = this.scopeStack.length - 1; u >= 0; --u) {
|
|
2746
2751
|
var l = this.scopeStack[u];
|
|
2747
|
-
if (l.lexical.indexOf(e) > -1 && !(l.flags &
|
|
2752
|
+
if (l.lexical.indexOf(e) > -1 && !(l.flags & ji && l.lexical[0] === e) || !this.treatFunctionsAsVarInScope(l) && l.functions.indexOf(e) > -1) {
|
|
2748
2753
|
r = !0;
|
|
2749
2754
|
break;
|
|
2750
2755
|
}
|
|
@@ -2769,7 +2774,7 @@ pe.currentVarScope = function() {
|
|
|
2769
2774
|
pe.currentThisScope = function() {
|
|
2770
2775
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
2771
2776
|
var t = this.scopeStack[e];
|
|
2772
|
-
if (t.flags & (lt | $e | be) && !(t.flags &
|
|
2777
|
+
if (t.flags & (lt | $e | be) && !(t.flags & qt))
|
|
2773
2778
|
return t;
|
|
2774
2779
|
}
|
|
2775
2780
|
};
|
|
@@ -2782,14 +2787,14 @@ Ue.startNode = function() {
|
|
|
2782
2787
|
Ue.startNodeAt = function(e, t) {
|
|
2783
2788
|
return new ft(this, e, t);
|
|
2784
2789
|
};
|
|
2785
|
-
function
|
|
2790
|
+
function Gi(e, t, i, r) {
|
|
2786
2791
|
return e.type = t, e.end = i, this.options.locations && (e.loc.end = r), this.options.ranges && (e.range[1] = i), e;
|
|
2787
2792
|
}
|
|
2788
2793
|
Ue.finishNode = function(e, t) {
|
|
2789
|
-
return
|
|
2794
|
+
return Gi.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
|
|
2790
2795
|
};
|
|
2791
2796
|
Ue.finishNodeAt = function(e, t, i, r) {
|
|
2792
|
-
return
|
|
2797
|
+
return Gi.call(this, e, t, i, r);
|
|
2793
2798
|
};
|
|
2794
2799
|
Ue.copyNode = function(e) {
|
|
2795
2800
|
var t = new ft(this, e.start, this.startLoc);
|
|
@@ -2797,12 +2802,12 @@ Ue.copyNode = function(e) {
|
|
|
2797
2802
|
t[i] = e[i];
|
|
2798
2803
|
return t;
|
|
2799
2804
|
};
|
|
2800
|
-
var $s = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",
|
|
2801
|
-
9:
|
|
2802
|
-
10:
|
|
2803
|
-
11:
|
|
2804
|
-
12:
|
|
2805
|
-
13:
|
|
2805
|
+
var $s = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz", Hi = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", Qi = Hi + " Extended_Pictographic", Ji = Qi, Yi = Ji + " EBase EComp EMod EPres ExtPict", Xi = Yi, Us = Xi, zs = {
|
|
2806
|
+
9: Hi,
|
|
2807
|
+
10: Qi,
|
|
2808
|
+
11: Ji,
|
|
2809
|
+
12: Yi,
|
|
2810
|
+
13: Xi,
|
|
2806
2811
|
14: Us
|
|
2807
2812
|
}, qs = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", Ws = {
|
|
2808
2813
|
9: "",
|
|
@@ -2811,27 +2816,27 @@ var $s = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai
|
|
|
2811
2816
|
12: "",
|
|
2812
2817
|
13: "",
|
|
2813
2818
|
14: qs
|
|
2814
|
-
},
|
|
2815
|
-
9:
|
|
2816
|
-
10:
|
|
2817
|
-
11:
|
|
2818
|
-
12:
|
|
2819
|
-
13:
|
|
2819
|
+
}, pi = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", Zi = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", er = Zi + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", tr = er + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", ir = tr + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", rr = ir + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", Ks = rr + " " + $s, Gs = {
|
|
2820
|
+
9: Zi,
|
|
2821
|
+
10: er,
|
|
2822
|
+
11: tr,
|
|
2823
|
+
12: ir,
|
|
2824
|
+
13: rr,
|
|
2820
2825
|
14: Ks
|
|
2821
|
-
},
|
|
2826
|
+
}, sr = {};
|
|
2822
2827
|
function Hs(e) {
|
|
2823
|
-
var t =
|
|
2824
|
-
binary: fe(zs[e] + " " +
|
|
2828
|
+
var t = sr[e] = {
|
|
2829
|
+
binary: fe(zs[e] + " " + pi),
|
|
2825
2830
|
binaryOfStrings: fe(Ws[e]),
|
|
2826
2831
|
nonBinary: {
|
|
2827
|
-
General_Category: fe(
|
|
2832
|
+
General_Category: fe(pi),
|
|
2828
2833
|
Script: fe(Gs[e])
|
|
2829
2834
|
}
|
|
2830
2835
|
};
|
|
2831
2836
|
t.nonBinary.Script_Extensions = t.nonBinary.Script, t.nonBinary.gc = t.nonBinary.General_Category, t.nonBinary.sc = t.nonBinary.Script, t.nonBinary.scx = t.nonBinary.Script_Extensions;
|
|
2832
2837
|
}
|
|
2833
|
-
for (var
|
|
2834
|
-
var Qs =
|
|
2838
|
+
for (var _t = 0, di = [9, 10, 11, 12, 13, 14]; _t < di.length; _t += 1) {
|
|
2839
|
+
var Qs = di[_t];
|
|
2835
2840
|
Hs(Qs);
|
|
2836
2841
|
}
|
|
2837
2842
|
var b = D.prototype, Ze = function(t, i) {
|
|
@@ -2848,7 +2853,7 @@ Ze.prototype.sibling = function() {
|
|
|
2848
2853
|
return new Ze(this.parent, this.base);
|
|
2849
2854
|
};
|
|
2850
2855
|
var ie = function(t) {
|
|
2851
|
-
this.parser = t, this.validFlags = "gim" + (t.options.ecmaVersion >= 6 ? "uy" : "") + (t.options.ecmaVersion >= 9 ? "s" : "") + (t.options.ecmaVersion >= 13 ? "d" : "") + (t.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties =
|
|
2856
|
+
this.parser = t, this.validFlags = "gim" + (t.options.ecmaVersion >= 6 ? "uy" : "") + (t.options.ecmaVersion >= 9 ? "s" : "") + (t.options.ecmaVersion >= 13 ? "d" : "") + (t.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = sr[t.options.ecmaVersion >= 14 ? 14 : t.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
|
|
2852
2857
|
};
|
|
2853
2858
|
ie.prototype.reset = function(t, i, r) {
|
|
2854
2859
|
var s = r.indexOf("v") !== -1, n = r.indexOf("u") !== -1;
|
|
@@ -3131,13 +3136,13 @@ b.regexp_eatInvalidBracedQuantifier = function(e) {
|
|
|
3131
3136
|
};
|
|
3132
3137
|
b.regexp_eatSyntaxCharacter = function(e) {
|
|
3133
3138
|
var t = e.current();
|
|
3134
|
-
return
|
|
3139
|
+
return nr(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
3135
3140
|
};
|
|
3136
|
-
function
|
|
3141
|
+
function nr(e) {
|
|
3137
3142
|
return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
|
|
3138
3143
|
}
|
|
3139
3144
|
b.regexp_eatPatternCharacters = function(e) {
|
|
3140
|
-
for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !
|
|
3145
|
+
for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !nr(i); )
|
|
3141
3146
|
e.advance();
|
|
3142
3147
|
return e.pos !== t;
|
|
3143
3148
|
};
|
|
@@ -3249,9 +3254,9 @@ b.regexp_eatControlEscape = function(e) {
|
|
|
3249
3254
|
};
|
|
3250
3255
|
b.regexp_eatControlLetter = function(e) {
|
|
3251
3256
|
var t = e.current();
|
|
3252
|
-
return
|
|
3257
|
+
return ar(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
|
|
3253
3258
|
};
|
|
3254
|
-
function
|
|
3259
|
+
function ar(e) {
|
|
3255
3260
|
return e >= 65 && e <= 90 || e >= 97 && e <= 122;
|
|
3256
3261
|
}
|
|
3257
3262
|
b.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
@@ -3315,7 +3320,7 @@ b.regexp_eatDecimalEscape = function(e) {
|
|
|
3315
3320
|
}
|
|
3316
3321
|
return !1;
|
|
3317
3322
|
};
|
|
3318
|
-
var
|
|
3323
|
+
var or = 0, le = 1, Q = 2;
|
|
3319
3324
|
b.regexp_eatCharacterClassEscape = function(e) {
|
|
3320
3325
|
var t = e.current();
|
|
3321
3326
|
if (tn(t))
|
|
@@ -3334,7 +3339,7 @@ b.regexp_eatCharacterClassEscape = function(e) {
|
|
|
3334
3339
|
return i && r === Q && e.raise("Invalid property name"), r;
|
|
3335
3340
|
e.raise("Invalid property name");
|
|
3336
3341
|
}
|
|
3337
|
-
return
|
|
3342
|
+
return or;
|
|
3338
3343
|
};
|
|
3339
3344
|
function tn(e) {
|
|
3340
3345
|
return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
|
|
@@ -3355,7 +3360,7 @@ b.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
|
3355
3360
|
var s = e.lastStringValue;
|
|
3356
3361
|
return this.regexp_validateUnicodePropertyNameOrValue(e, s);
|
|
3357
3362
|
}
|
|
3358
|
-
return
|
|
3363
|
+
return or;
|
|
3359
3364
|
};
|
|
3360
3365
|
b.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
|
|
3361
3366
|
Ne(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(i) || e.raise("Invalid property value");
|
|
@@ -3369,12 +3374,12 @@ b.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
|
3369
3374
|
};
|
|
3370
3375
|
b.regexp_eatUnicodePropertyName = function(e) {
|
|
3371
3376
|
var t = 0;
|
|
3372
|
-
for (e.lastStringValue = "";
|
|
3377
|
+
for (e.lastStringValue = ""; ur(t = e.current()); )
|
|
3373
3378
|
e.lastStringValue += ue(t), e.advance();
|
|
3374
3379
|
return e.lastStringValue !== "";
|
|
3375
3380
|
};
|
|
3376
|
-
function
|
|
3377
|
-
return
|
|
3381
|
+
function ur(e) {
|
|
3382
|
+
return ar(e) || e === 95;
|
|
3378
3383
|
}
|
|
3379
3384
|
b.regexp_eatUnicodePropertyValue = function(e) {
|
|
3380
3385
|
var t = 0;
|
|
@@ -3383,7 +3388,7 @@ b.regexp_eatUnicodePropertyValue = function(e) {
|
|
|
3383
3388
|
return e.lastStringValue !== "";
|
|
3384
3389
|
};
|
|
3385
3390
|
function rn(e) {
|
|
3386
|
-
return
|
|
3391
|
+
return ur(e) || ht(e);
|
|
3387
3392
|
}
|
|
3388
3393
|
b.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
|
|
3389
3394
|
return this.regexp_eatUnicodePropertyValue(e);
|
|
@@ -3429,7 +3434,7 @@ b.regexp_eatClassAtom = function(e) {
|
|
|
3429
3434
|
return !0;
|
|
3430
3435
|
if (e.switchU) {
|
|
3431
3436
|
var i = e.current();
|
|
3432
|
-
(i === 99 ||
|
|
3437
|
+
(i === 99 || fr(i)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
|
|
3433
3438
|
}
|
|
3434
3439
|
e.pos = t;
|
|
3435
3440
|
}
|
|
@@ -3624,14 +3629,14 @@ function ht(e) {
|
|
|
3624
3629
|
}
|
|
3625
3630
|
b.regexp_eatHexDigits = function(e) {
|
|
3626
3631
|
var t = e.pos, i = 0;
|
|
3627
|
-
for (e.lastIntValue = 0;
|
|
3628
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
3632
|
+
for (e.lastIntValue = 0; lr(i = e.current()); )
|
|
3633
|
+
e.lastIntValue = 16 * e.lastIntValue + cr(i), e.advance();
|
|
3629
3634
|
return e.pos !== t;
|
|
3630
3635
|
};
|
|
3631
|
-
function
|
|
3636
|
+
function lr(e) {
|
|
3632
3637
|
return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
|
|
3633
3638
|
}
|
|
3634
|
-
function
|
|
3639
|
+
function cr(e) {
|
|
3635
3640
|
return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
|
|
3636
3641
|
}
|
|
3637
3642
|
b.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
@@ -3648,9 +3653,9 @@ b.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
|
3648
3653
|
};
|
|
3649
3654
|
b.regexp_eatOctalDigit = function(e) {
|
|
3650
3655
|
var t = e.current();
|
|
3651
|
-
return
|
|
3656
|
+
return fr(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
|
|
3652
3657
|
};
|
|
3653
|
-
function
|
|
3658
|
+
function fr(e) {
|
|
3654
3659
|
return e >= 48 && e <= 55;
|
|
3655
3660
|
}
|
|
3656
3661
|
b.regexp_eatFixedHexDigits = function(e, t) {
|
|
@@ -3658,20 +3663,20 @@ b.regexp_eatFixedHexDigits = function(e, t) {
|
|
|
3658
3663
|
e.lastIntValue = 0;
|
|
3659
3664
|
for (var r = 0; r < t; ++r) {
|
|
3660
3665
|
var s = e.current();
|
|
3661
|
-
if (!
|
|
3666
|
+
if (!lr(s))
|
|
3662
3667
|
return e.pos = i, !1;
|
|
3663
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
3668
|
+
e.lastIntValue = 16 * e.lastIntValue + cr(s), e.advance();
|
|
3664
3669
|
}
|
|
3665
3670
|
return !0;
|
|
3666
3671
|
};
|
|
3667
|
-
var
|
|
3672
|
+
var Ht = function(t) {
|
|
3668
3673
|
this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new ot(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
|
|
3669
3674
|
}, A = D.prototype;
|
|
3670
3675
|
A.next = function(e) {
|
|
3671
|
-
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new
|
|
3676
|
+
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Ht(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
|
|
3672
3677
|
};
|
|
3673
3678
|
A.getToken = function() {
|
|
3674
|
-
return this.next(), new
|
|
3679
|
+
return this.next(), new Ht(this);
|
|
3675
3680
|
};
|
|
3676
3681
|
typeof Symbol < "u" && (A[Symbol.iterator] = function() {
|
|
3677
3682
|
var e = this;
|
|
@@ -3706,7 +3711,7 @@ A.fullCharCodeAtPos = function() {
|
|
|
3706
3711
|
A.skipBlockComment = function() {
|
|
3707
3712
|
var e = this.options.onComment && this.curPosition(), t = this.pos, i = this.input.indexOf("*/", this.pos += 2);
|
|
3708
3713
|
if (i === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = i + 2, this.options.locations)
|
|
3709
|
-
for (var r = void 0, s = t; (r =
|
|
3714
|
+
for (var r = void 0, s = t; (r = Di(this.input, s, this.pos)) > -1; )
|
|
3710
3715
|
++this.curLine, s = this.lineStart = r;
|
|
3711
3716
|
this.options.onComment && this.options.onComment(
|
|
3712
3717
|
!0,
|
|
@@ -3757,7 +3762,7 @@ A.skipSpace = function() {
|
|
|
3757
3762
|
}
|
|
3758
3763
|
break;
|
|
3759
3764
|
default:
|
|
3760
|
-
if (e > 8 && e < 14 || e >= 5760 &&
|
|
3765
|
+
if (e > 8 && e < 14 || e >= 5760 && Ri.test(String.fromCharCode(e)))
|
|
3761
3766
|
++this.pos;
|
|
3762
3767
|
else
|
|
3763
3768
|
break e;
|
|
@@ -3975,14 +3980,14 @@ A.readInt = function(e, t, i) {
|
|
|
3975
3980
|
function on(e, t) {
|
|
3976
3981
|
return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
|
|
3977
3982
|
}
|
|
3978
|
-
function
|
|
3983
|
+
function hr(e) {
|
|
3979
3984
|
return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
|
|
3980
3985
|
}
|
|
3981
3986
|
A.readRadixNumber = function(e) {
|
|
3982
3987
|
var t = this.pos;
|
|
3983
3988
|
this.pos += 2;
|
|
3984
3989
|
var i = this.readInt(e);
|
|
3985
|
-
return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i =
|
|
3990
|
+
return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = hr(this.input.slice(t, this.pos)), ++this.pos) : ee(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(o.num, i);
|
|
3986
3991
|
};
|
|
3987
3992
|
A.readNumber = function(e) {
|
|
3988
3993
|
var t = this.pos;
|
|
@@ -3991,7 +3996,7 @@ A.readNumber = function(e) {
|
|
|
3991
3996
|
i && this.strict && this.raise(t, "Invalid number");
|
|
3992
3997
|
var r = this.input.charCodeAt(this.pos);
|
|
3993
3998
|
if (!i && !e && this.options.ecmaVersion >= 11 && r === 110) {
|
|
3994
|
-
var s =
|
|
3999
|
+
var s = hr(this.input.slice(t, this.pos));
|
|
3995
4000
|
return ++this.pos, ee(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(o.num, s);
|
|
3996
4001
|
}
|
|
3997
4002
|
i && /[89]/.test(this.input.slice(t, this.pos)) && (i = !1), r === 46 && !i && (++this.pos, this.readInt(10), r = this.input.charCodeAt(this.pos)), (r === 69 || r === 101) && !i && (r = this.input.charCodeAt(++this.pos), (r === 43 || r === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), ee(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
@@ -4018,13 +4023,13 @@ A.readString = function(e) {
|
|
|
4018
4023
|
}
|
|
4019
4024
|
return t += this.input.slice(i, this.pos++), this.finishToken(o.string, t);
|
|
4020
4025
|
};
|
|
4021
|
-
var
|
|
4026
|
+
var pr = {};
|
|
4022
4027
|
A.tryReadTemplateToken = function() {
|
|
4023
4028
|
this.inTemplateElement = !0;
|
|
4024
4029
|
try {
|
|
4025
4030
|
this.readTmplToken();
|
|
4026
4031
|
} catch (e) {
|
|
4027
|
-
if (e ===
|
|
4032
|
+
if (e === pr)
|
|
4028
4033
|
this.readInvalidTemplateToken();
|
|
4029
4034
|
else
|
|
4030
4035
|
throw e;
|
|
@@ -4033,7 +4038,7 @@ A.tryReadTemplateToken = function() {
|
|
|
4033
4038
|
};
|
|
4034
4039
|
A.invalidStringToken = function(e, t) {
|
|
4035
4040
|
if (this.inTemplateElement && this.options.ecmaVersion >= 9)
|
|
4036
|
-
throw
|
|
4041
|
+
throw pr;
|
|
4037
4042
|
this.raise(e, t);
|
|
4038
4043
|
};
|
|
4039
4044
|
A.readTmplToken = function() {
|
|
@@ -4166,29 +4171,29 @@ A.readWord1 = function() {
|
|
|
4166
4171
|
};
|
|
4167
4172
|
A.readWord = function() {
|
|
4168
4173
|
var e = this.readWord1(), t = o.name;
|
|
4169
|
-
return this.keywords.test(e) && (t =
|
|
4174
|
+
return this.keywords.test(e) && (t = Ut[e]), this.finishToken(t, e);
|
|
4170
4175
|
};
|
|
4171
4176
|
var un = "8.15.0";
|
|
4172
4177
|
D.acorn = {
|
|
4173
4178
|
Parser: D,
|
|
4174
4179
|
version: un,
|
|
4175
|
-
defaultOptions:
|
|
4180
|
+
defaultOptions: Vt,
|
|
4176
4181
|
Position: Fe,
|
|
4177
4182
|
SourceLocation: ot,
|
|
4178
|
-
getLineInfo:
|
|
4183
|
+
getLineInfo: Fi,
|
|
4179
4184
|
Node: ft,
|
|
4180
4185
|
TokenType: I,
|
|
4181
4186
|
tokTypes: o,
|
|
4182
|
-
keywordTypes:
|
|
4187
|
+
keywordTypes: Ut,
|
|
4183
4188
|
TokContext: Y,
|
|
4184
4189
|
tokContexts: V,
|
|
4185
4190
|
isIdentifierChar: he,
|
|
4186
4191
|
isIdentifierStart: ee,
|
|
4187
|
-
Token:
|
|
4192
|
+
Token: Ht,
|
|
4188
4193
|
isNewLine: Ie,
|
|
4189
4194
|
lineBreak: W,
|
|
4190
4195
|
lineBreakG: Ns,
|
|
4191
|
-
nonASCIIwhitespace:
|
|
4196
|
+
nonASCIIwhitespace: Ri
|
|
4192
4197
|
};
|
|
4193
4198
|
function ln(e, t) {
|
|
4194
4199
|
return D.parse(e, t);
|
|
@@ -4255,7 +4260,7 @@ const cn = [
|
|
|
4255
4260
|
"prototype",
|
|
4256
4261
|
"constructor"
|
|
4257
4262
|
]);
|
|
4258
|
-
function
|
|
4263
|
+
function Dt(e, t) {
|
|
4259
4264
|
if (!(!e || typeof e != "object")) {
|
|
4260
4265
|
t(e);
|
|
4261
4266
|
for (const i of Object.keys(e)) {
|
|
@@ -4263,12 +4268,12 @@ function Lt(e, t) {
|
|
|
4263
4268
|
const r = e[i];
|
|
4264
4269
|
if (Array.isArray(r))
|
|
4265
4270
|
for (const s of r)
|
|
4266
|
-
s && typeof s.type == "string" &&
|
|
4267
|
-
else r && typeof r == "object" && typeof r.type == "string" &&
|
|
4271
|
+
s && typeof s.type == "string" && Dt(s, t);
|
|
4272
|
+
else r && typeof r == "object" && typeof r.type == "string" && Dt(r, t);
|
|
4268
4273
|
}
|
|
4269
4274
|
}
|
|
4270
4275
|
}
|
|
4271
|
-
function
|
|
4276
|
+
function mi(e, t) {
|
|
4272
4277
|
if (hn.has(e))
|
|
4273
4278
|
throw new Error(`client assigner "${t}" uses blocked runtime globals`);
|
|
4274
4279
|
if (pn.has(e))
|
|
@@ -4287,7 +4292,7 @@ function dn(e, t) {
|
|
|
4287
4292
|
throw new Error(`client assigner "${t}" contains invalid JavaScript syntax`);
|
|
4288
4293
|
}
|
|
4289
4294
|
let r = 0, s = !1;
|
|
4290
|
-
if (
|
|
4295
|
+
if (Dt(i, (n) => {
|
|
4291
4296
|
const a = fn[n.type];
|
|
4292
4297
|
if (a)
|
|
4293
4298
|
throw new Error(`client assigner "${t}" ${a}`);
|
|
@@ -4299,7 +4304,7 @@ function dn(e, t) {
|
|
|
4299
4304
|
}
|
|
4300
4305
|
if (n.type === "ReturnStatement" && (s = !0), n.type === "ThisExpression")
|
|
4301
4306
|
throw new Error(`client assigner "${t}" uses blocked object metaprogramming features`);
|
|
4302
|
-
if (n.type === "Identifier" &&
|
|
4307
|
+
if (n.type === "Identifier" && mi(n.name, t), n.type === "MemberExpression" && n.computed && n.property?.type === "Literal" && typeof n.property.value == "string" && mi(n.property.value, t), n.type === "MemberExpression" && !n.computed && n.object?.type === "Identifier" && n.object.name === "Math" && n.property?.type === "Identifier" && n.property.name === "random")
|
|
4303
4308
|
throw new Error(`client assigner "${t}" must not use randomness`);
|
|
4304
4309
|
}), r !== 1)
|
|
4305
4310
|
throw new Error(`client assigner "${t}" must contain exactly one function definition`);
|
|
@@ -4318,7 +4323,7 @@ function mn(e, t) {
|
|
|
4318
4323
|
}
|
|
4319
4324
|
new TextEncoder();
|
|
4320
4325
|
new TextDecoder();
|
|
4321
|
-
const
|
|
4326
|
+
const Qt = /* @__PURE__ */ Symbol.for("yaml.alias"), gn = /* @__PURE__ */ Symbol.for("yaml.document"), ye = /* @__PURE__ */ Symbol.for("yaml.map"), dr = /* @__PURE__ */ Symbol.for("yaml.pair"), Jt = /* @__PURE__ */ Symbol.for("yaml.scalar"), ze = /* @__PURE__ */ Symbol.for("yaml.seq"), re = /* @__PURE__ */ Symbol.for("yaml.node.type"), xe = (e) => !!e && typeof e == "object" && e[re] === Qt, pt = (e) => !!e && typeof e == "object" && e[re] === gn, mr = (e) => !!e && typeof e == "object" && e[re] === ye, F = (e) => !!e && typeof e == "object" && e[re] === dr, R = (e) => !!e && typeof e == "object" && e[re] === Jt, Yt = (e) => !!e && typeof e == "object" && e[re] === ze;
|
|
4322
4327
|
function K(e) {
|
|
4323
4328
|
if (e && typeof e == "object")
|
|
4324
4329
|
switch (e[re]) {
|
|
@@ -4331,15 +4336,15 @@ function K(e) {
|
|
|
4331
4336
|
function j(e) {
|
|
4332
4337
|
if (e && typeof e == "object")
|
|
4333
4338
|
switch (e[re]) {
|
|
4334
|
-
case Ht:
|
|
4335
|
-
case ye:
|
|
4336
4339
|
case Qt:
|
|
4340
|
+
case ye:
|
|
4341
|
+
case Jt:
|
|
4337
4342
|
case ze:
|
|
4338
4343
|
return !0;
|
|
4339
4344
|
}
|
|
4340
4345
|
return !1;
|
|
4341
4346
|
}
|
|
4342
|
-
const
|
|
4347
|
+
const gr = (e) => (R(e) || K(e)) && !!e.anchor, de = /* @__PURE__ */ Symbol("break visit"), yn = /* @__PURE__ */ Symbol("skip children"), Re = /* @__PURE__ */ Symbol("remove node");
|
|
4343
4348
|
function dt(e, t) {
|
|
4344
4349
|
const i = bn(t);
|
|
4345
4350
|
pt(e) ? Ce(null, e.contents, i, Object.freeze([e])) === Re && (e.contents = null) : Ce(null, e, i, Object.freeze([]));
|
|
@@ -4396,9 +4401,9 @@ function bn(e) {
|
|
|
4396
4401
|
function xn(e, t, i, r) {
|
|
4397
4402
|
if (typeof i == "function")
|
|
4398
4403
|
return i(e, t, r);
|
|
4399
|
-
if (
|
|
4404
|
+
if (mr(t))
|
|
4400
4405
|
return i.Map?.(e, t, r);
|
|
4401
|
-
if (
|
|
4406
|
+
if (Yt(t))
|
|
4402
4407
|
return i.Seq?.(e, t, r);
|
|
4403
4408
|
if (F(t))
|
|
4404
4409
|
return i.Pair?.(e, t, r);
|
|
@@ -4420,7 +4425,7 @@ function vn(e, t, i) {
|
|
|
4420
4425
|
throw new Error(`Cannot replace node with ${s} parent`);
|
|
4421
4426
|
}
|
|
4422
4427
|
}
|
|
4423
|
-
function
|
|
4428
|
+
function yr(e) {
|
|
4424
4429
|
if (/[\x00-\x19\s,[\]{}]/.test(e)) {
|
|
4425
4430
|
const i = `Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;
|
|
4426
4431
|
throw new Error(i);
|
|
@@ -4455,7 +4460,7 @@ function Z(e, t, i) {
|
|
|
4455
4460
|
if (Array.isArray(e))
|
|
4456
4461
|
return e.map((r, s) => Z(r, String(s), i));
|
|
4457
4462
|
if (e && typeof e.toJSON == "function") {
|
|
4458
|
-
if (!i || !
|
|
4463
|
+
if (!i || !gr(e))
|
|
4459
4464
|
return e.toJSON(t, i);
|
|
4460
4465
|
const r = { aliasCount: 0, count: 1, res: void 0 };
|
|
4461
4466
|
i.anchors.set(e, r), i.onCreate = (n) => {
|
|
@@ -4466,7 +4471,7 @@ function Z(e, t, i) {
|
|
|
4466
4471
|
}
|
|
4467
4472
|
return typeof e == "bigint" && !i?.keep ? Number(e) : e;
|
|
4468
4473
|
}
|
|
4469
|
-
class
|
|
4474
|
+
class Xt {
|
|
4470
4475
|
constructor(t) {
|
|
4471
4476
|
Object.defineProperty(this, re, { value: t });
|
|
4472
4477
|
}
|
|
@@ -4493,9 +4498,9 @@ class Yt {
|
|
|
4493
4498
|
return typeof n == "function" ? Ve(n, { "": u }, "", u) : u;
|
|
4494
4499
|
}
|
|
4495
4500
|
}
|
|
4496
|
-
class Sn extends
|
|
4501
|
+
class Sn extends Xt {
|
|
4497
4502
|
constructor(t) {
|
|
4498
|
-
super(
|
|
4503
|
+
super(Qt), this.source = t, Object.defineProperty(this, "tag", {
|
|
4499
4504
|
set() {
|
|
4500
4505
|
throw new Error("Alias nodes cannot have tags");
|
|
4501
4506
|
}
|
|
@@ -4509,7 +4514,7 @@ class Sn extends Yt {
|
|
|
4509
4514
|
let r;
|
|
4510
4515
|
i?.aliasResolveCache ? r = i.aliasResolveCache : (r = [], dt(t, {
|
|
4511
4516
|
Node: (n, a) => {
|
|
4512
|
-
(xe(a) ||
|
|
4517
|
+
(xe(a) || gr(a)) && r.push(a);
|
|
4513
4518
|
}
|
|
4514
4519
|
}), i && (i.aliasResolveCache = r));
|
|
4515
4520
|
let s;
|
|
@@ -4542,7 +4547,7 @@ class Sn extends Yt {
|
|
|
4542
4547
|
toString(t, i, r) {
|
|
4543
4548
|
const s = `*${this.source}`;
|
|
4544
4549
|
if (t) {
|
|
4545
|
-
if (
|
|
4550
|
+
if (yr(this.source), t.options.verifyAliasOrder && !t.anchors.has(this.source)) {
|
|
4546
4551
|
const n = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
|
|
4547
4552
|
throw new Error(n);
|
|
4548
4553
|
}
|
|
@@ -4569,10 +4574,10 @@ function Ge(e, t, i) {
|
|
|
4569
4574
|
}
|
|
4570
4575
|
return 1;
|
|
4571
4576
|
}
|
|
4572
|
-
const
|
|
4573
|
-
class L extends
|
|
4577
|
+
const br = (e) => !e || typeof e != "function" && typeof e != "object";
|
|
4578
|
+
class L extends Xt {
|
|
4574
4579
|
constructor(t) {
|
|
4575
|
-
super(
|
|
4580
|
+
super(Jt), this.value = t;
|
|
4576
4581
|
}
|
|
4577
4582
|
toJSON(t, i) {
|
|
4578
4583
|
return i?.keep ? this.value : Z(this.value, t, i);
|
|
@@ -4616,7 +4621,7 @@ function et(e, t, i) {
|
|
|
4616
4621
|
const h = c?.createNode ? c.createNode(i.schema, e, i) : typeof c?.nodeClass?.from == "function" ? c.nodeClass.from(i.schema, e, i) : new L(e);
|
|
4617
4622
|
return c.default || (h.tag = c.tag), l && (l.node = h), h;
|
|
4618
4623
|
}
|
|
4619
|
-
function
|
|
4624
|
+
function gi(e, t, i) {
|
|
4620
4625
|
let r = i;
|
|
4621
4626
|
for (let s = t.length - 1; s >= 0; --s) {
|
|
4622
4627
|
const n = t[s];
|
|
@@ -4637,7 +4642,7 @@ function mi(e, t, i) {
|
|
|
4637
4642
|
});
|
|
4638
4643
|
}
|
|
4639
4644
|
const _n = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next().done;
|
|
4640
|
-
class
|
|
4645
|
+
class xr extends Xt {
|
|
4641
4646
|
constructor(t, i) {
|
|
4642
4647
|
super(t), Object.defineProperty(this, "schema", {
|
|
4643
4648
|
value: i,
|
|
@@ -4668,7 +4673,7 @@ class br extends Yt {
|
|
|
4668
4673
|
if (K(n))
|
|
4669
4674
|
n.addIn(s, i);
|
|
4670
4675
|
else if (n === void 0 && this.schema)
|
|
4671
|
-
this.set(r,
|
|
4676
|
+
this.set(r, gi(this.schema, s, i));
|
|
4672
4677
|
else
|
|
4673
4678
|
throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`);
|
|
4674
4679
|
}
|
|
@@ -4726,7 +4731,7 @@ class br extends Yt {
|
|
|
4726
4731
|
if (K(n))
|
|
4727
4732
|
n.setIn(s, i);
|
|
4728
4733
|
else if (n === void 0 && this.schema)
|
|
4729
|
-
this.set(r,
|
|
4734
|
+
this.set(r, gi(this.schema, s, i));
|
|
4730
4735
|
else
|
|
4731
4736
|
throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`);
|
|
4732
4737
|
}
|
|
@@ -4739,7 +4744,7 @@ function je(e, t) {
|
|
|
4739
4744
|
const ke = (e, t, i) => e.endsWith(`
|
|
4740
4745
|
`) ? je(i, t) : i.includes(`
|
|
4741
4746
|
`) ? `
|
|
4742
|
-
` + je(i, t) : (e.endsWith(" ") ? "" : " ") + i,
|
|
4747
|
+
` + je(i, t) : (e.endsWith(" ") ? "" : " ") + i, vr = "flow", Rt = "block", He = "quoted";
|
|
4743
4748
|
function mt(e, t, i = "flow", { indentAtStart: r, lineWidth: s = 80, minContentWidth: n = 20, onFold: a, onOverflow: u } = {}) {
|
|
4744
4749
|
if (!s || s < 0)
|
|
4745
4750
|
return e;
|
|
@@ -4751,7 +4756,7 @@ function mt(e, t, i = "flow", { indentAtStart: r, lineWidth: s = 80, minContentW
|
|
|
4751
4756
|
let f = s - t.length;
|
|
4752
4757
|
typeof r == "number" && (r > s - Math.max(2, n) ? c.push(0) : f = s - r);
|
|
4753
4758
|
let d, y, x = !1, p = -1, S = -1, m = -1;
|
|
4754
|
-
i ===
|
|
4759
|
+
i === Rt && (p = yi(e, p, t.length), p !== -1 && (f = p + l));
|
|
4755
4760
|
for (let w; w = e[p += 1]; ) {
|
|
4756
4761
|
if (i === He && w === "\\") {
|
|
4757
4762
|
switch (S = p, e[p + 1]) {
|
|
@@ -4771,7 +4776,7 @@ function mt(e, t, i = "flow", { indentAtStart: r, lineWidth: s = 80, minContentW
|
|
|
4771
4776
|
}
|
|
4772
4777
|
if (w === `
|
|
4773
4778
|
`)
|
|
4774
|
-
i ===
|
|
4779
|
+
i === Rt && (p = yi(e, p, t.length)), f = p + t.length + l, d = void 0;
|
|
4775
4780
|
else {
|
|
4776
4781
|
if (w === " " && y && y !== " " && y !== `
|
|
4777
4782
|
` && y !== " ") {
|
|
@@ -4806,7 +4811,7 @@ ${t}${e.slice(_ + 1, k)}`);
|
|
|
4806
4811
|
}
|
|
4807
4812
|
return g;
|
|
4808
4813
|
}
|
|
4809
|
-
function
|
|
4814
|
+
function yi(e, t, i) {
|
|
4810
4815
|
let r = t, s = t + 1, n = e[s];
|
|
4811
4816
|
for (; n === " " || n === " "; )
|
|
4812
4817
|
if (t < s + i)
|
|
@@ -4902,13 +4907,13 @@ function Me(e, t) {
|
|
|
4902
4907
|
}
|
|
4903
4908
|
return a = u ? a + i.slice(u) : i, r ? a : mt(a, n, He, gt(t, !1));
|
|
4904
4909
|
}
|
|
4905
|
-
function
|
|
4910
|
+
function Mt(e, t) {
|
|
4906
4911
|
if (t.options.singleQuote === !1 || t.implicitKey && e.includes(`
|
|
4907
4912
|
`) || /[ \t]\n|\n[ \t]/.test(e))
|
|
4908
4913
|
return Me(e, t);
|
|
4909
4914
|
const i = t.indent || (yt(e) ? " " : ""), r = "'" + e.replace(/'/g, "''").replace(/\n+/g, `$&
|
|
4910
4915
|
${i}`) + "'";
|
|
4911
|
-
return t.implicitKey ? r : mt(r, i,
|
|
4916
|
+
return t.implicitKey ? r : mt(r, i, vr, gt(t, !1));
|
|
4912
4917
|
}
|
|
4913
4918
|
function Ae(e, t) {
|
|
4914
4919
|
const { singleQuote: i } = t.options;
|
|
@@ -4917,18 +4922,18 @@ function Ae(e, t) {
|
|
|
4917
4922
|
r = Me;
|
|
4918
4923
|
else {
|
|
4919
4924
|
const s = e.includes('"'), n = e.includes("'");
|
|
4920
|
-
s && !n ? r =
|
|
4925
|
+
s && !n ? r = Mt : n && !s ? r = Me : r = i ? Mt : Me;
|
|
4921
4926
|
}
|
|
4922
4927
|
return r(e, t);
|
|
4923
4928
|
}
|
|
4924
|
-
let
|
|
4929
|
+
let Ft;
|
|
4925
4930
|
try {
|
|
4926
|
-
|
|
4931
|
+
Ft = new RegExp(`(^|(?<!
|
|
4927
4932
|
))
|
|
4928
4933
|
+(?!
|
|
4929
4934
|
|$)`, "g");
|
|
4930
4935
|
} catch {
|
|
4931
|
-
|
|
4936
|
+
Ft = /\n+(?!\n|$)/g;
|
|
4932
4937
|
}
|
|
4933
4938
|
function Qe({ comment: e, type: t, value: i }, r, s, n) {
|
|
4934
4939
|
const { blockQuote: a, commentString: u, lineWidth: l } = r.options;
|
|
@@ -4950,7 +4955,7 @@ function Qe({ comment: e, type: t, value: i }, r, s, n) {
|
|
|
4950
4955
|
const x = y.indexOf(`
|
|
4951
4956
|
`);
|
|
4952
4957
|
x === -1 ? f = "-" : i === y || x !== y.length - 1 ? (f = "+", n && n()) : f = "", y && (i = i.slice(0, -y.length), y[y.length - 1] === `
|
|
4953
|
-
` && (y = y.slice(0, -1)), y = y.replace(
|
|
4958
|
+
` && (y = y.slice(0, -1)), y = y.replace(Ft, `$&${c}`));
|
|
4954
4959
|
let p = !1, S, m = -1;
|
|
4955
4960
|
for (S = 0; S < i.length; ++S) {
|
|
4956
4961
|
const k = i[S];
|
|
@@ -4973,7 +4978,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/
|
|
|
4973
4978
|
a !== "folded" && t !== L.BLOCK_FOLDED && (M.onOverflow = () => {
|
|
4974
4979
|
O = !0;
|
|
4975
4980
|
});
|
|
4976
|
-
const se = mt(`${g}${k}${y}`, c,
|
|
4981
|
+
const se = mt(`${g}${k}${y}`, c, Rt, M);
|
|
4977
4982
|
if (!O)
|
|
4978
4983
|
return `>${_}
|
|
4979
4984
|
${c}${se}`;
|
|
@@ -5005,7 +5010,7 @@ ${l}`);
|
|
|
5005
5010
|
if (x.some(d) || y?.some(d))
|
|
5006
5011
|
return Ae(n, t);
|
|
5007
5012
|
}
|
|
5008
|
-
return u ? f : mt(f, l,
|
|
5013
|
+
return u ? f : mt(f, l, vr, gt(t, !1));
|
|
5009
5014
|
}
|
|
5010
5015
|
function En(e, t, i, r) {
|
|
5011
5016
|
const { implicitKey: s, inFlow: n } = t, a = typeof e.value == "string" ? e : Object.assign({}, e, { value: String(e.value) });
|
|
@@ -5019,7 +5024,7 @@ function En(e, t, i, r) {
|
|
|
5019
5024
|
case L.QUOTE_DOUBLE:
|
|
5020
5025
|
return Me(a.value, t);
|
|
5021
5026
|
case L.QUOTE_SINGLE:
|
|
5022
|
-
return
|
|
5027
|
+
return Mt(a.value, t);
|
|
5023
5028
|
case L.PLAIN:
|
|
5024
5029
|
return An(a, t, i, r);
|
|
5025
5030
|
default:
|
|
@@ -5102,7 +5107,7 @@ function Tn(e, t, { anchors: i, doc: r }) {
|
|
|
5102
5107
|
if (!r.directives)
|
|
5103
5108
|
return "";
|
|
5104
5109
|
const s = [], n = (R(e) || K(e)) && e.anchor;
|
|
5105
|
-
n &&
|
|
5110
|
+
n && yr(n) && (i.add(n), s.push(`&${n}`));
|
|
5106
5111
|
const a = e.tag ?? (t.default ? null : t.tag);
|
|
5107
5112
|
return a && s.push(r.directives.tagString(a)), s.join(" ");
|
|
5108
5113
|
}
|
|
@@ -5156,7 +5161,7 @@ function Pn({ key: e, value: t }, i, r, s) {
|
|
|
5156
5161
|
x && (d = null), y ? (d && (S += ke(S, i.indent, c(d))), S = `? ${S}
|
|
5157
5162
|
${u}:`) : (S = `${S}:`, d && (S += ke(S, i.indent, c(d))));
|
|
5158
5163
|
let m, g, w;
|
|
5159
|
-
j(t) ? (m = !!t.spaceBefore, g = t.commentBefore, w = t.comment) : (m = !1, g = null, w = null, t && typeof t == "object" && (t = a.createNode(t))), i.implicitKey = !1, !y && !d && R(t) && (i.indentAtStart = S.length + 1), p = !1, !h && l.length >= 2 && !i.inFlow && !y &&
|
|
5164
|
+
j(t) ? (m = !!t.spaceBefore, g = t.commentBefore, w = t.comment) : (m = !1, g = null, w = null, t && typeof t == "object" && (t = a.createNode(t))), i.implicitKey = !1, !y && !d && R(t) && (i.indentAtStart = S.length + 1), p = !1, !h && l.length >= 2 && !i.inFlow && !y && Yt(t) && !t.flow && !t.tag && !t.anchor && (i.indent = i.indent.substring(2));
|
|
5160
5165
|
let _ = !1;
|
|
5161
5166
|
const k = tt(t, i, () => _ = !0, () => p = !0);
|
|
5162
5167
|
let O = " ";
|
|
@@ -5191,29 +5196,29 @@ ${i.indent}`);
|
|
|
5191
5196
|
function Vn(e, t) {
|
|
5192
5197
|
(e === "debug" || e === "warn") && console.warn(t);
|
|
5193
5198
|
}
|
|
5194
|
-
const We = "<<",
|
|
5199
|
+
const We = "<<", Ct = {
|
|
5195
5200
|
identify: (e) => e === We || typeof e == "symbol" && e.description === We,
|
|
5196
5201
|
default: "key",
|
|
5197
5202
|
tag: "tag:yaml.org,2002:merge",
|
|
5198
5203
|
test: /^<<$/,
|
|
5199
5204
|
resolve: () => Object.assign(new L(Symbol(We)), {
|
|
5200
|
-
addToJSMap:
|
|
5205
|
+
addToJSMap: Sr
|
|
5201
5206
|
}),
|
|
5202
5207
|
stringify: () => We
|
|
5203
|
-
}, On = (e, t) => (
|
|
5204
|
-
function
|
|
5205
|
-
if (i = e && xe(i) ? i.resolve(e.doc) : i,
|
|
5208
|
+
}, On = (e, t) => (Ct.identify(t) || R(t) && (!t.type || t.type === L.PLAIN) && Ct.identify(t.value)) && e?.doc.schema.tags.some((i) => i.tag === Ct.tag && i.default);
|
|
5209
|
+
function Sr(e, t, i) {
|
|
5210
|
+
if (i = e && xe(i) ? i.resolve(e.doc) : i, Yt(i))
|
|
5206
5211
|
for (const r of i.items)
|
|
5207
|
-
|
|
5212
|
+
kt(e, t, r);
|
|
5208
5213
|
else if (Array.isArray(i))
|
|
5209
5214
|
for (const r of i)
|
|
5210
|
-
|
|
5215
|
+
kt(e, t, r);
|
|
5211
5216
|
else
|
|
5212
|
-
|
|
5217
|
+
kt(e, t, i);
|
|
5213
5218
|
}
|
|
5214
|
-
function
|
|
5219
|
+
function kt(e, t, i) {
|
|
5215
5220
|
const r = e && xe(i) ? i.resolve(e.doc) : i;
|
|
5216
|
-
if (!
|
|
5221
|
+
if (!mr(r))
|
|
5217
5222
|
throw new Error("Merge sources must be maps or map aliases");
|
|
5218
5223
|
const s = r.toJSON(null, e, Map);
|
|
5219
5224
|
for (const [n, a] of s)
|
|
@@ -5225,11 +5230,11 @@ function Ct(e, t, i) {
|
|
|
5225
5230
|
});
|
|
5226
5231
|
return t;
|
|
5227
5232
|
}
|
|
5228
|
-
function
|
|
5233
|
+
function wr(e, t, { key: i, value: r }) {
|
|
5229
5234
|
if (j(i) && i.addToJSMap)
|
|
5230
5235
|
i.addToJSMap(e, t, r);
|
|
5231
5236
|
else if (On(e, i))
|
|
5232
|
-
|
|
5237
|
+
Sr(e, t, r);
|
|
5233
5238
|
else {
|
|
5234
5239
|
const s = Z(i, "", e);
|
|
5235
5240
|
if (t instanceof Map)
|
|
@@ -5268,13 +5273,13 @@ function Ln(e, t, i) {
|
|
|
5268
5273
|
}
|
|
5269
5274
|
return JSON.stringify(t);
|
|
5270
5275
|
}
|
|
5271
|
-
function
|
|
5276
|
+
function Zt(e, t, i) {
|
|
5272
5277
|
const r = et(e, void 0, i), s = et(t, void 0, i);
|
|
5273
5278
|
return new oe(r, s);
|
|
5274
5279
|
}
|
|
5275
5280
|
class oe {
|
|
5276
5281
|
constructor(t, i = null) {
|
|
5277
|
-
Object.defineProperty(this, re, { value:
|
|
5282
|
+
Object.defineProperty(this, re, { value: dr }), this.key = t, this.value = i;
|
|
5278
5283
|
}
|
|
5279
5284
|
clone(t) {
|
|
5280
5285
|
let { key: i, value: r } = this;
|
|
@@ -5282,13 +5287,13 @@ class oe {
|
|
|
5282
5287
|
}
|
|
5283
5288
|
toJSON(t, i) {
|
|
5284
5289
|
const r = i?.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
5285
|
-
return
|
|
5290
|
+
return wr(i, r, this);
|
|
5286
5291
|
}
|
|
5287
5292
|
toString(t, i, r) {
|
|
5288
5293
|
return t?.doc ? Pn(this, t, i, r) : JSON.stringify(this);
|
|
5289
5294
|
}
|
|
5290
5295
|
}
|
|
5291
|
-
function
|
|
5296
|
+
function _r(e, t, i) {
|
|
5292
5297
|
return (t.inFlow ?? e.flow ? Rn : Dn)(e, t, i);
|
|
5293
5298
|
}
|
|
5294
5299
|
function Dn({ comment: e, items: t }, i, { blockItemPrefix: r, flowChars: s, itemIndent: n, onChompKeep: a, onComment: u }) {
|
|
@@ -5379,7 +5384,7 @@ function me(e, t) {
|
|
|
5379
5384
|
if (F(r) && (r.key === t || r.key === i || R(r.key) && r.key.value === i))
|
|
5380
5385
|
return r;
|
|
5381
5386
|
}
|
|
5382
|
-
class we extends
|
|
5387
|
+
class we extends xr {
|
|
5383
5388
|
static get tagName() {
|
|
5384
5389
|
return "tag:yaml.org,2002:map";
|
|
5385
5390
|
}
|
|
@@ -5396,7 +5401,7 @@ class we extends br {
|
|
|
5396
5401
|
c = n.call(i, l, c);
|
|
5397
5402
|
else if (Array.isArray(n) && !n.includes(l))
|
|
5398
5403
|
return;
|
|
5399
|
-
(c !== void 0 || s) && a.items.push(
|
|
5404
|
+
(c !== void 0 || s) && a.items.push(Zt(l, c, r));
|
|
5400
5405
|
};
|
|
5401
5406
|
if (i instanceof Map)
|
|
5402
5407
|
for (const [l, c] of i)
|
|
@@ -5419,7 +5424,7 @@ class we extends br {
|
|
|
5419
5424
|
if (s) {
|
|
5420
5425
|
if (!i)
|
|
5421
5426
|
throw new Error(`Key ${r.key} already set`);
|
|
5422
|
-
R(s.value) &&
|
|
5427
|
+
R(s.value) && br(r.value) ? s.value.value = r.value : s.value = r.value;
|
|
5423
5428
|
} else if (n) {
|
|
5424
5429
|
const a = this.items.findIndex((u) => n(r, u) < 0);
|
|
5425
5430
|
a === -1 ? this.items.push(r) : this.items.splice(a, 0, r);
|
|
@@ -5449,7 +5454,7 @@ class we extends br {
|
|
|
5449
5454
|
const s = r ? new r() : i?.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
5450
5455
|
i?.onCreate && i.onCreate(s);
|
|
5451
5456
|
for (const n of this.items)
|
|
5452
|
-
|
|
5457
|
+
wr(i, s, n);
|
|
5453
5458
|
return s;
|
|
5454
5459
|
}
|
|
5455
5460
|
toString(t, i, r) {
|
|
@@ -5458,7 +5463,7 @@ class we extends br {
|
|
|
5458
5463
|
for (const s of this.items)
|
|
5459
5464
|
if (!F(s))
|
|
5460
5465
|
throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);
|
|
5461
|
-
return !t.allNullValues && this.hasAllNullValues(!1) && (t = Object.assign({}, t, { allNullValues: !0 })),
|
|
5466
|
+
return !t.allNullValues && this.hasAllNullValues(!1) && (t = Object.assign({}, t, { allNullValues: !0 })), _r(this, t, {
|
|
5462
5467
|
blockItemPrefix: "",
|
|
5463
5468
|
flowChars: { start: "{", end: "}" },
|
|
5464
5469
|
itemIndent: t.indent || "",
|
|
@@ -5467,7 +5472,7 @@ class we extends br {
|
|
|
5467
5472
|
});
|
|
5468
5473
|
}
|
|
5469
5474
|
}
|
|
5470
|
-
class
|
|
5475
|
+
class Cr extends xr {
|
|
5471
5476
|
static get tagName() {
|
|
5472
5477
|
return "tag:yaml.org,2002:seq";
|
|
5473
5478
|
}
|
|
@@ -5518,7 +5523,7 @@ class _r extends br {
|
|
|
5518
5523
|
if (typeof r != "number")
|
|
5519
5524
|
throw new Error(`Expected a valid index, not ${t}.`);
|
|
5520
5525
|
const s = this.items[r];
|
|
5521
|
-
R(s) &&
|
|
5526
|
+
R(s) && br(i) ? s.value = i : this.items[r] = i;
|
|
5522
5527
|
}
|
|
5523
5528
|
toJSON(t, i) {
|
|
5524
5529
|
const r = [];
|
|
@@ -5529,7 +5534,7 @@ class _r extends br {
|
|
|
5529
5534
|
return r;
|
|
5530
5535
|
}
|
|
5531
5536
|
toString(t, i, r) {
|
|
5532
|
-
return t ?
|
|
5537
|
+
return t ? _r(this, t, {
|
|
5533
5538
|
blockItemPrefix: "- ",
|
|
5534
5539
|
flowChars: { start: "[", end: "]" },
|
|
5535
5540
|
itemIndent: (t.indent || "") + " ",
|
|
@@ -5557,7 +5562,7 @@ function Ke(e) {
|
|
|
5557
5562
|
return t && typeof t == "string" && (t = Number(t)), typeof t == "number" && Number.isInteger(t) && t >= 0 ? t : null;
|
|
5558
5563
|
}
|
|
5559
5564
|
function Mn(e, t, i) {
|
|
5560
|
-
const { replacer: r } = i, s = new
|
|
5565
|
+
const { replacer: r } = i, s = new Cr(e);
|
|
5561
5566
|
s.tag = "tag:yaml.org,2002:pairs";
|
|
5562
5567
|
let n = 0;
|
|
5563
5568
|
if (t && Symbol.iterator in Object(t))
|
|
@@ -5577,13 +5582,13 @@ function Mn(e, t, i) {
|
|
|
5577
5582
|
throw new TypeError(`Expected tuple with one key, not ${c.length} keys`);
|
|
5578
5583
|
} else
|
|
5579
5584
|
u = a;
|
|
5580
|
-
s.items.push(
|
|
5585
|
+
s.items.push(Zt(u, l, i));
|
|
5581
5586
|
}
|
|
5582
5587
|
return s;
|
|
5583
5588
|
}
|
|
5584
|
-
class
|
|
5589
|
+
class ei extends Cr {
|
|
5585
5590
|
constructor() {
|
|
5586
|
-
super(), this.add = we.prototype.add.bind(this), this.delete = we.prototype.delete.bind(this), this.get = we.prototype.get.bind(this), this.has = we.prototype.has.bind(this), this.set = we.prototype.set.bind(this), this.tag =
|
|
5591
|
+
super(), this.add = we.prototype.add.bind(this), this.delete = we.prototype.delete.bind(this), this.get = we.prototype.get.bind(this), this.has = we.prototype.has.bind(this), this.set = we.prototype.set.bind(this), this.tag = ei.tag;
|
|
5587
5592
|
}
|
|
5588
5593
|
/**
|
|
5589
5594
|
* If `ctx` is given, the return type is actually `Map<unknown, unknown>`,
|
|
@@ -5607,10 +5612,10 @@ class Zt extends _r {
|
|
|
5607
5612
|
return n.items = s.items, n;
|
|
5608
5613
|
}
|
|
5609
5614
|
}
|
|
5610
|
-
|
|
5611
|
-
class
|
|
5615
|
+
ei.tag = "tag:yaml.org,2002:omap";
|
|
5616
|
+
class ti extends we {
|
|
5612
5617
|
constructor(t) {
|
|
5613
|
-
super(t), this.tag =
|
|
5618
|
+
super(t), this.tag = ti.tag;
|
|
5614
5619
|
}
|
|
5615
5620
|
add(t) {
|
|
5616
5621
|
let i;
|
|
@@ -5644,17 +5649,17 @@ class ei extends we {
|
|
|
5644
5649
|
const { replacer: s } = r, n = new this(t);
|
|
5645
5650
|
if (i && Symbol.iterator in Object(i))
|
|
5646
5651
|
for (let a of i)
|
|
5647
|
-
typeof s == "function" && (a = s.call(i, a, a)), n.items.push(
|
|
5652
|
+
typeof s == "function" && (a = s.call(i, a, a)), n.items.push(Zt(a, null, r));
|
|
5648
5653
|
return n;
|
|
5649
5654
|
}
|
|
5650
5655
|
}
|
|
5651
|
-
|
|
5656
|
+
ti.tag = "tag:yaml.org,2002:set";
|
|
5652
5657
|
new Set("0123456789ABCDEFabcdef");
|
|
5653
5658
|
new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");
|
|
5654
5659
|
new Set(",[]{}");
|
|
5655
5660
|
new Set(` ,[]{}
|
|
5656
5661
|
\r `);
|
|
5657
|
-
const
|
|
5662
|
+
const bi = /* @__PURE__ */ new Map(), Fn = Object.freeze({
|
|
5658
5663
|
abs: Math.abs,
|
|
5659
5664
|
ceil: Math.ceil,
|
|
5660
5665
|
floor: Math.floor,
|
|
@@ -5682,18 +5687,18 @@ function st(e) {
|
|
|
5682
5687
|
Object.entries(e).map(([t, i]) => [t, st(i)])
|
|
5683
5688
|
) : e;
|
|
5684
5689
|
}
|
|
5685
|
-
function
|
|
5690
|
+
function Bt(e, t) {
|
|
5686
5691
|
if (Object.is(e, t))
|
|
5687
5692
|
return !0;
|
|
5688
5693
|
if (Array.isArray(e) && Array.isArray(t))
|
|
5689
|
-
return e.length !== t.length ? !1 : e.every((i, r) =>
|
|
5694
|
+
return e.length !== t.length ? !1 : e.every((i, r) => Bt(i, t[r]));
|
|
5690
5695
|
if (rt(e) && rt(t)) {
|
|
5691
5696
|
const i = Object.keys(e), r = Object.keys(t);
|
|
5692
|
-
return i.length !== r.length ? !1 : i.every((s) => s in t &&
|
|
5697
|
+
return i.length !== r.length ? !1 : i.every((s) => s in t && Bt(e[s], t[s]));
|
|
5693
5698
|
}
|
|
5694
5699
|
return !1;
|
|
5695
5700
|
}
|
|
5696
|
-
function
|
|
5701
|
+
function kr(e) {
|
|
5697
5702
|
return e === null || typeof e > "u" ? !1 : typeof e == "string" ? e.trim().length > 0 : !0;
|
|
5698
5703
|
}
|
|
5699
5704
|
function Un(e) {
|
|
@@ -5705,10 +5710,10 @@ function Un(e) {
|
|
|
5705
5710
|
}
|
|
5706
5711
|
}
|
|
5707
5712
|
function zn(e, t) {
|
|
5708
|
-
return t ?
|
|
5713
|
+
return t ? Ii(t.type) && Un(e) === void 0 ? !1 : hs(e, t.type, t.kwargs) === null : !0;
|
|
5709
5714
|
}
|
|
5710
5715
|
function qn(e, t, i) {
|
|
5711
|
-
return
|
|
5716
|
+
return kr(t) && zn(t, i?.[e]);
|
|
5712
5717
|
}
|
|
5713
5718
|
function Wn(e, t) {
|
|
5714
5719
|
const i = /* @__PURE__ */ new Set();
|
|
@@ -5739,13 +5744,13 @@ function Kn(e) {
|
|
|
5739
5744
|
return s;
|
|
5740
5745
|
}
|
|
5741
5746
|
function Gn(e, t) {
|
|
5742
|
-
return e.assigned_fields.every((i) => !
|
|
5747
|
+
return e.assigned_fields.every((i) => !kr(t[i]));
|
|
5743
5748
|
}
|
|
5744
5749
|
function Hn(e, t, i) {
|
|
5745
5750
|
return e.dependent_fields.every((r) => qn(r, t[r], i?.fieldDefinitions));
|
|
5746
5751
|
}
|
|
5747
5752
|
function Qn(e) {
|
|
5748
|
-
const t =
|
|
5753
|
+
const t = bi.get(e.function_source);
|
|
5749
5754
|
if (t)
|
|
5750
5755
|
return t;
|
|
5751
5756
|
mn(e.function_source, e.id);
|
|
@@ -5780,7 +5785,7 @@ return (${e.function_source});
|
|
|
5780
5785
|
);
|
|
5781
5786
|
if (typeof r != "function")
|
|
5782
5787
|
throw new Error(`client assigner "${e.id}" did not compile to a callable function`);
|
|
5783
|
-
return
|
|
5788
|
+
return bi.set(e.function_source, r), r;
|
|
5784
5789
|
}
|
|
5785
5790
|
function Jn(e, t) {
|
|
5786
5791
|
const i = Qn(e), r = Object.fromEntries(
|
|
@@ -5807,7 +5812,7 @@ function Yn(e, t, i) {
|
|
|
5807
5812
|
continue;
|
|
5808
5813
|
const u = Jn(n, t);
|
|
5809
5814
|
for (const [l, c] of Object.entries(u))
|
|
5810
|
-
|
|
5815
|
+
Bt(t[l], c) || (t[l] = c, s.add(l));
|
|
5811
5816
|
}
|
|
5812
5817
|
return {
|
|
5813
5818
|
changed: s.size > 0,
|
|
@@ -5877,14 +5882,14 @@ function Va(e, t, i, r, s, n) {
|
|
|
5877
5882
|
const a = Xn(e, t, i, r, s, n), u = n.fieldAdapters?.[e], c = (u ? u(a) : void 0) ?? s;
|
|
5878
5883
|
return n.wrapField ? n.wrapField(t, e, c) : c;
|
|
5879
5884
|
}
|
|
5880
|
-
const
|
|
5881
|
-
let
|
|
5885
|
+
const xi = /* @__PURE__ */ new WeakMap();
|
|
5886
|
+
let vi = 0;
|
|
5882
5887
|
function Zn(e) {
|
|
5883
|
-
const t =
|
|
5888
|
+
const t = xi.get(e);
|
|
5884
5889
|
if (t)
|
|
5885
5890
|
return t;
|
|
5886
|
-
const i = `vt-row-${
|
|
5887
|
-
return
|
|
5891
|
+
const i = `vt-row-${vi}`;
|
|
5892
|
+
return vi += 1, xi.set(e, i), i;
|
|
5888
5893
|
}
|
|
5889
5894
|
function Oa(e) {
|
|
5890
5895
|
if (Array.isArray(e.columns) && e.columns.length > 0) return e.columns;
|
|
@@ -5902,7 +5907,7 @@ function La(e) {
|
|
|
5902
5907
|
} = e;
|
|
5903
5908
|
let u = null, l = null, c = null, h = null, f = null, d = null, y = null;
|
|
5904
5909
|
function x(N, P) {
|
|
5905
|
-
const T =
|
|
5910
|
+
const T = Ci(i.var[N], P);
|
|
5906
5911
|
return i.var[N] = T, T;
|
|
5907
5912
|
}
|
|
5908
5913
|
function p(N, P) {
|
|
@@ -5912,8 +5917,8 @@ function La(e) {
|
|
|
5912
5917
|
const ve = x(N, U);
|
|
5913
5918
|
if (P === T || P < 0 || T < 0 || P >= ve.length || T >= ve.length)
|
|
5914
5919
|
return;
|
|
5915
|
-
const
|
|
5916
|
-
ve.splice(T, 0,
|
|
5920
|
+
const ii = ve.splice(P, 1)[0];
|
|
5921
|
+
ve.splice(T, 0, ii), d = Zn(ii), y && clearTimeout(y), y = setTimeout(() => {
|
|
5917
5922
|
d = null, y = null, s();
|
|
5918
5923
|
}, 520), r({ rebuild: !0, runClientAssigners: !0 });
|
|
5919
5924
|
}
|
|
@@ -5968,7 +5973,7 @@ function La(e) {
|
|
|
5968
5973
|
};
|
|
5969
5974
|
}
|
|
5970
5975
|
function Da(e) {
|
|
5971
|
-
const t =
|
|
5976
|
+
const t = Ar({});
|
|
5972
5977
|
function i(m, g, w) {
|
|
5973
5978
|
const _ = e.wrapField();
|
|
5974
5979
|
return _ ? _(m, g, w) : w;
|
|
@@ -5992,7 +5997,7 @@ function Da(e) {
|
|
|
5992
5997
|
return /* @__PURE__ */ new Date();
|
|
5993
5998
|
}
|
|
5994
5999
|
function a(m, g) {
|
|
5995
|
-
return
|
|
6000
|
+
return $t(g, e.typePlugins());
|
|
5996
6001
|
}
|
|
5997
6002
|
function u(m, g, w) {
|
|
5998
6003
|
return {
|
|
@@ -6017,7 +6022,7 @@ function Da(e) {
|
|
|
6017
6022
|
if (!_)
|
|
6018
6023
|
return null;
|
|
6019
6024
|
const k = ae(g);
|
|
6020
|
-
return k === "int" || k === "integer" ||
|
|
6025
|
+
return k === "int" || k === "integer" || ui(g, {
|
|
6021
6026
|
inputType: e.fieldMeta()?.[w]?.inputType,
|
|
6022
6027
|
codeLanguage: e.fieldMeta()?.[w]?.codeLanguage,
|
|
6023
6028
|
typePlugin: a(w, g)
|
|
@@ -6050,12 +6055,12 @@ function Da(e) {
|
|
|
6050
6055
|
const k = ae(g);
|
|
6051
6056
|
if (m.definition && Object.prototype.hasOwnProperty.call(m.definition, "default"))
|
|
6052
6057
|
return k === "dnasequence" ? Le(m.definition.default) : m.definition.default;
|
|
6053
|
-
const O =
|
|
6058
|
+
const O = ui(g, {
|
|
6054
6059
|
inputType: e.fieldMeta()?.[w]?.inputType,
|
|
6055
6060
|
codeLanguage: e.fieldMeta()?.[w]?.codeLanguage,
|
|
6056
6061
|
typePlugin: _
|
|
6057
6062
|
});
|
|
6058
|
-
return O === "checkbox" ? !1 : O === "dna" ? Le(void 0) : k === "currenttime" ?
|
|
6063
|
+
return O === "checkbox" ? !1 : O === "dna" ? Le(void 0) : k === "currenttime" ? Tt(n()) : k === "username" && typeof e.currentUserName() == "string" ? e.currentUserName() : "";
|
|
6059
6064
|
}
|
|
6060
6065
|
function x(m, g, w, _, k) {
|
|
6061
6066
|
const O = a(w, g);
|
|
@@ -6096,10 +6101,10 @@ function Da(e) {
|
|
|
6096
6101
|
};
|
|
6097
6102
|
}
|
|
6098
6103
|
export {
|
|
6099
|
-
|
|
6100
|
-
|
|
6104
|
+
Ir as $,
|
|
6105
|
+
xt as A,
|
|
6101
6106
|
gs as B,
|
|
6102
|
-
|
|
6107
|
+
ui as C,
|
|
6103
6108
|
Oa as D,
|
|
6104
6109
|
Zn as E,
|
|
6105
6110
|
ca as F,
|
|
@@ -6107,21 +6112,21 @@ export {
|
|
|
6107
6112
|
oa as H,
|
|
6108
6113
|
vs as I,
|
|
6109
6114
|
xs as J,
|
|
6110
|
-
|
|
6111
|
-
|
|
6115
|
+
Lr as K,
|
|
6116
|
+
Tr as L,
|
|
6112
6117
|
ds as M,
|
|
6113
6118
|
Yr as N,
|
|
6114
6119
|
Hr as O,
|
|
6115
|
-
|
|
6116
|
-
|
|
6120
|
+
oi as P,
|
|
6121
|
+
It as Q,
|
|
6117
6122
|
Le as R,
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6123
|
+
_i as S,
|
|
6124
|
+
Dr as T,
|
|
6125
|
+
Or as U,
|
|
6126
|
+
Pr as V,
|
|
6127
|
+
Nr as W,
|
|
6128
|
+
Rr as X,
|
|
6129
|
+
Ci as Y,
|
|
6125
6130
|
ae as Z,
|
|
6126
6131
|
ka as _,
|
|
6127
6132
|
pa as a,
|
|
@@ -6135,23 +6140,23 @@ export {
|
|
|
6135
6140
|
ta as a7,
|
|
6136
6141
|
Ea as a8,
|
|
6137
6142
|
Ca as a9,
|
|
6138
|
-
|
|
6143
|
+
Ti as aa,
|
|
6139
6144
|
Ee as ab,
|
|
6140
6145
|
Pa as ac,
|
|
6141
6146
|
Da as ad,
|
|
6142
6147
|
La as ae,
|
|
6143
6148
|
cs as af,
|
|
6144
6149
|
wa as ag,
|
|
6145
|
-
|
|
6146
|
-
|
|
6150
|
+
Er as ah,
|
|
6151
|
+
$t as ai,
|
|
6147
6152
|
Ur as aj,
|
|
6148
6153
|
_a as ak,
|
|
6149
6154
|
hs as al,
|
|
6150
6155
|
ha as am,
|
|
6151
6156
|
da as an,
|
|
6152
6157
|
ma as ao,
|
|
6153
|
-
|
|
6154
|
-
|
|
6158
|
+
Nt as ap,
|
|
6159
|
+
Vr as b,
|
|
6155
6160
|
Ia as c,
|
|
6156
6161
|
Xn as d,
|
|
6157
6162
|
xa as e,
|
|
@@ -6159,15 +6164,15 @@ export {
|
|
|
6159
6164
|
Na as g,
|
|
6160
6165
|
fa as h,
|
|
6161
6166
|
ya as i,
|
|
6162
|
-
|
|
6167
|
+
jt as j,
|
|
6163
6168
|
Gr as k,
|
|
6164
6169
|
Kr as l,
|
|
6165
|
-
|
|
6166
|
-
|
|
6170
|
+
Ai as m,
|
|
6171
|
+
wi as n,
|
|
6167
6172
|
Oe as o,
|
|
6168
6173
|
ga as p,
|
|
6169
6174
|
ms as q,
|
|
6170
|
-
|
|
6175
|
+
Tt as r,
|
|
6171
6176
|
sa as s,
|
|
6172
6177
|
va as t,
|
|
6173
6178
|
ba as u,
|