@airalogy/aimd-recorder 1.19.2 → 1.20.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/README.md +2 -0
- package/README.zh-CN.md +2 -0
- package/dist/{AimdDnaSequenceField-TBKunqU_.js → AimdDnaSequenceField-Cp0cgBYl.js} +1 -1
- package/dist/{AimdEditor.vue_vue_type_style_index_0_lang-gTySIxvX.js → AimdEditor.vue_vue_type_style_index_0_lang-DTdcoNs1.js} +1588 -1584
- package/dist/{AimdMarkdownField-DGV5KFUs.js → AimdMarkdownField-D4AEz_mB.js} +18 -17
- package/dist/{AimdMarkdownNoteField-C78KHCBA.js → AimdMarkdownNoteField-CSGaShKi.js} +5 -4
- package/dist/aimd-recorder.css +1 -1
- package/dist/{arc-BMhAnOm7.js → arc-jL17V0L2.js} +1 -1
- package/dist/{architectureDiagram-3BPJPVTR-DXuPTBR3.js → architectureDiagram-3BPJPVTR-CijadmFI.js} +2 -2
- package/dist/{blockDiagram-GPEHLZMM-HKz9kQ49.js → blockDiagram-GPEHLZMM-BPqvb85_.js} +4 -4
- package/dist/{c4Diagram-AAUBKEIU-B2a8Aupm.js → c4Diagram-AAUBKEIU-i4fqlMXu.js} +2 -2
- package/dist/{channel-CQnbPm6T.js → channel-DnnUQTdl.js} +1 -1
- package/dist/{chunk-2J33WTMH-CPwhDANL.js → chunk-2J33WTMH-DKKEpdr1.js} +1 -1
- package/dist/{chunk-4BX2VUAB-BJV0R8-Z.js → chunk-4BX2VUAB-WvuuiYYH.js} +1 -1
- package/dist/{chunk-55IACEB6-CSqUgTVA.js → chunk-55IACEB6-B_UkHTnd.js} +1 -1
- package/dist/{chunk-727SXJPM-C3LCZWaC.js → chunk-727SXJPM-CR6Pb04P.js} +5 -5
- package/dist/{chunk-AQP2D5EJ-BC5kHyik.js → chunk-AQP2D5EJ-B68Ie417.js} +3 -3
- package/dist/{chunk-FMBD7UC4-lv-SQuSa.js → chunk-FMBD7UC4-CeCGT6rb.js} +1 -1
- package/dist/{chunk-ND2GUHAM-BnnHbOOp.js → chunk-ND2GUHAM-BYN-eC_q.js} +1 -1
- package/dist/{chunk-QZHKN3VN-DE1_5lrn.js → chunk-QZHKN3VN-BNSp120j.js} +1 -1
- package/dist/{classDiagram-v2-Q7XG4LA2-32SrXsR3.js → classDiagram-4FO5ZUOK-Cgbn4w3f.js} +2 -2
- package/dist/{classDiagram-4FO5ZUOK-32SrXsR3.js → classDiagram-v2-Q7XG4LA2-Cgbn4w3f.js} +2 -2
- package/dist/components.js +90 -89
- package/dist/composables.js +22 -22
- package/dist/{cose-bilkent-S5V4N54A-BKyR6PrF.js → cose-bilkent-S5V4N54A-TfrsQ2c3.js} +1 -1
- package/dist/{dagre-BM42HDAG-D8Nwouf2.js → dagre-BM42HDAG-BAyvB_JI.js} +3 -3
- package/dist/{diagram-2AECGRRQ-DfoNEchZ.js → diagram-2AECGRRQ-Bijq8bHO.js} +2 -2
- package/dist/{diagram-5GNKFQAL-Dlpl3XO8.js → diagram-5GNKFQAL-B3ZuTuxm.js} +3 -3
- package/dist/{diagram-KO2AKTUF-CgwROod_.js → diagram-KO2AKTUF-DrqLeGCI.js} +2 -2
- package/dist/{diagram-LMA3HP47-UiiviX43.js → diagram-LMA3HP47-CCSQH8O0.js} +2 -2
- package/dist/{diagram-OG6HWLK6-BPuH-4Wa.js → diagram-OG6HWLK6-DM5cUEjW.js} +3 -3
- package/dist/{erDiagram-TEJ5UH35-B19WKSiS.js → erDiagram-TEJ5UH35-DQhmDdAF.js} +4 -4
- package/dist/{flowDiagram-I6XJVG4X-SsfO1IYz.js → flowDiagram-I6XJVG4X-DrqiPSHI.js} +6 -6
- package/dist/{ganttDiagram-6RSMTGT7-8BCxW9SC.js → ganttDiagram-6RSMTGT7-DpX_Y2vA.js} +2 -2
- package/dist/{gitGraphDiagram-PVQCEYII-D-jzaXKg.js → gitGraphDiagram-PVQCEYII-3isOhIyZ.js} +3 -3
- package/dist/{graph-Dd8Vx0lj.js → graph-C30SJlSk.js} +1 -1
- package/dist/index-Dtvv88SS.js +1308 -0
- package/dist/index.js +19 -19
- package/dist/{infoDiagram-5YYISTIA-B_XwkyXw.js → infoDiagram-5YYISTIA-Cr_MlPvz.js} +1 -1
- package/dist/{ishikawaDiagram-YF4QCWOH-nevqOMkV.js → ishikawaDiagram-YF4QCWOH-DydyFn3h.js} +1 -1
- package/dist/{journeyDiagram-JHISSGLW-DKQOkZNx.js → journeyDiagram-JHISSGLW-V_5MmeOu.js} +4 -4
- package/dist/{kanban-definition-UN3LZRKU-BYvizbN0.js → kanban-definition-UN3LZRKU-C_XXCuvp.js} +2 -2
- package/dist/{layout-BiHDh2wu.js → layout-85j-z7Lr.js} +2 -2
- package/dist/{linear-BcUgIsNC.js → linear-DMtodz-6.js} +1 -1
- package/dist/{mermaid.core-DPv1ut6K.js → mermaid.core-CkanUCyS.js} +34 -34
- package/dist/{mindmap-definition-RKZ34NQL-CiT97EC2.js → mindmap-definition-RKZ34NQL-CyikmuF2.js} +3 -3
- package/dist/{pieDiagram-4H26LBE5-BHcFVpCC.js → pieDiagram-4H26LBE5-CesqzEGg.js} +3 -3
- package/dist/{quadrantDiagram-W4KKPZXB-BFBAb3Zx.js → quadrantDiagram-W4KKPZXB-BsPKPfNd.js} +2 -2
- package/dist/record.js +90 -1196
- package/dist/{requirementDiagram-4Y6WPE33-CUS2OOyE.js → requirementDiagram-4Y6WPE33-BwB1tQvi.js} +3 -3
- package/dist/{sankeyDiagram-5OEKKPKP-IuhX4tCb.js → sankeyDiagram-5OEKKPKP-CfSNbWMY.js} +1 -1
- package/dist/{sequenceDiagram-3UESZ5HK-DWHcFiUF.js → sequenceDiagram-3UESZ5HK-DZZlUNys.js} +3 -3
- package/dist/{stateDiagram-AJRCARHV-J49Kafj_.js → stateDiagram-AJRCARHV-DNJmz_op.js} +4 -4
- package/dist/{stateDiagram-v2-BHNVJYJU-DL2VCR5X.js → stateDiagram-v2-BHNVJYJU-DVfDNM6l.js} +2 -2
- package/dist/{timeline-definition-PNZ67QCA-l9xSQ_pX.js → timeline-definition-PNZ67QCA-DEUCAg_N.js} +2 -2
- package/dist/{useCodeBlockRendering-CY70U0Xm.js → useCodeBlockRendering-DF6zm7nf.js} +475 -526
- package/dist/{vennDiagram-CIIHVFJN-BQjdmOkd.js → vennDiagram-CIIHVFJN-DVDP__od.js} +1 -1
- package/dist/{wardleyDiagram-YWT4CUSO-CmVdsV9b.js → wardleyDiagram-YWT4CUSO-sEtxBd33.js} +2 -2
- package/dist/{xychartDiagram-2RQKCTM6-F-cC_Igm.js → xychartDiagram-2RQKCTM6-DM8QeR5M.js} +2 -2
- package/package.json +4 -4
- package/src/__tests__/recorder-editor.test.ts +3 -1
- package/src/__tests__/var-field-render.test.ts +33 -0
- package/src/components/AimdRecorderEditor.vue +3 -1
|
@@ -1,52 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineAsyncComponent as
|
|
3
|
-
import { createCodeBlockRenderer as
|
|
4
|
-
|
|
5
|
-
return typeof e == "string" && e.trim() ? e.trim() : void 0;
|
|
6
|
-
}
|
|
7
|
-
function Xt(e) {
|
|
8
|
-
return Array.isArray(e) ? e.filter((t) => t != null) : e == null || e === "" ? [] : [e];
|
|
9
|
-
}
|
|
10
|
-
function Fr(e) {
|
|
11
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null;
|
|
12
|
-
}
|
|
13
|
-
function Zt(e) {
|
|
14
|
-
return Array.isArray(e) ? e.filter(Fr) : [];
|
|
15
|
-
}
|
|
16
|
-
function Mr(e) {
|
|
17
|
-
return mi(e?.kwargs?.title);
|
|
18
|
-
}
|
|
19
|
-
function ua(e) {
|
|
20
|
-
return mi(e?.kwargs?.description);
|
|
21
|
-
}
|
|
22
|
-
function Dr(e) {
|
|
23
|
-
const t = e?.kwargs;
|
|
24
|
-
if (!t)
|
|
25
|
-
return [];
|
|
26
|
-
const i = Xt(t.examples);
|
|
27
|
-
return i.length > 0 ? i : Xt(t.example);
|
|
28
|
-
}
|
|
29
|
-
function la(e) {
|
|
30
|
-
const t = Zt(e?.enum);
|
|
31
|
-
return t.length > 0 ? t : Zt(e?.kwargs?.enum);
|
|
32
|
-
}
|
|
33
|
-
function ca(e, t) {
|
|
34
|
-
return Mr(t) ?? e;
|
|
35
|
-
}
|
|
36
|
-
function Br(e) {
|
|
37
|
-
if (typeof e == "string")
|
|
38
|
-
return e;
|
|
39
|
-
if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint")
|
|
40
|
-
return String(e);
|
|
41
|
-
if (e === null)
|
|
42
|
-
return "null";
|
|
43
|
-
try {
|
|
44
|
-
return JSON.stringify(e);
|
|
45
|
-
} catch {
|
|
46
|
-
return String(e);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
const jr = {
|
|
1
|
+
import { a1 as ge, E as Le, a2 as mr, a3 as gr, a4 as yr, a5 as br, a6 as xr, a7 as vr, a8 as wr, a9 as Sr, I as _r, y as Cr, k as kr, L as Ar, U as Er, V as Ir } from "./index-Dtvv88SS.js";
|
|
2
|
+
import { defineAsyncComponent as hi, h as Yt, reactive as Nr, shallowRef as Pr, onMounted as Tr, onBeforeUnmount as Vr } from "vue";
|
|
3
|
+
import { createCodeBlockRenderer as Or, loadShikiHighlighter as Lr } from "@airalogy/aimd-renderer";
|
|
4
|
+
const Rr = {
|
|
50
5
|
codestr: "plaintext",
|
|
51
6
|
pystr: "python",
|
|
52
7
|
jsstr: "javascript",
|
|
@@ -54,7 +9,7 @@ const jr = {
|
|
|
54
9
|
jsonstr: "json",
|
|
55
10
|
yamlstr: "yaml",
|
|
56
11
|
tomlstr: "ini"
|
|
57
|
-
},
|
|
12
|
+
}, Fr = {
|
|
58
13
|
code: "plaintext",
|
|
59
14
|
plaintext: "plaintext",
|
|
60
15
|
py: "python",
|
|
@@ -78,7 +33,7 @@ const jr = {
|
|
|
78
33
|
scss: "scss",
|
|
79
34
|
less: "less",
|
|
80
35
|
xml: "xml"
|
|
81
|
-
},
|
|
36
|
+
}, Mr = [
|
|
82
37
|
"CodeStr",
|
|
83
38
|
"PyStr",
|
|
84
39
|
"JsStr",
|
|
@@ -91,37 +46,37 @@ function _t(e) {
|
|
|
91
46
|
if (typeof e != "string" || !e.trim())
|
|
92
47
|
return null;
|
|
93
48
|
const t = ge(e);
|
|
94
|
-
return
|
|
49
|
+
return Rr[t] ?? Fr[t] ?? null;
|
|
95
50
|
}
|
|
96
|
-
function
|
|
51
|
+
function Dr(e) {
|
|
97
52
|
return typeof e != "string" || !e.trim() ? null : ge(e) === "text" ? "plaintext" : _t(e) ?? e.trim().toLowerCase();
|
|
98
53
|
}
|
|
99
|
-
function
|
|
100
|
-
const i =
|
|
54
|
+
function Br(e, t) {
|
|
55
|
+
const i = Dr(t?.codeLanguage);
|
|
101
56
|
if (i)
|
|
102
57
|
return i;
|
|
103
58
|
const r = _t(t?.inputType);
|
|
104
59
|
return r || _t(e);
|
|
105
60
|
}
|
|
106
|
-
function
|
|
107
|
-
return
|
|
61
|
+
function pi(e, t) {
|
|
62
|
+
return Br(e, t) !== null;
|
|
108
63
|
}
|
|
109
|
-
const
|
|
64
|
+
const jr = hi(() => import("./AimdDnaSequenceField-Cp0cgBYl.js")), $r = hi(() => import("./AimdMarkdownField-D4AEz_mB.js")), Ur = Mr.map((e) => ({
|
|
110
65
|
type: e,
|
|
111
66
|
inputKind: "code"
|
|
112
67
|
}));
|
|
113
68
|
function _e(e) {
|
|
114
69
|
return String(e).padStart(2, "0");
|
|
115
70
|
}
|
|
116
|
-
function
|
|
71
|
+
function zr(e) {
|
|
117
72
|
const t = -e.getTimezoneOffset(), i = t >= 0 ? "+" : "-", r = Math.abs(t), s = Math.floor(r / 60), n = r % 60;
|
|
118
73
|
return `${i}${_e(s)}:${_e(n)}`;
|
|
119
74
|
}
|
|
120
|
-
function
|
|
75
|
+
function Wr(e) {
|
|
121
76
|
const t = e.getFullYear(), i = _e(e.getMonth() + 1), r = _e(e.getDate()), s = _e(e.getHours()), n = _e(e.getMinutes());
|
|
122
|
-
return `${t}-${i}-${r}T${s}:${n}${
|
|
77
|
+
return `${t}-${i}-${r}T${s}:${n}${zr(e)}`;
|
|
123
78
|
}
|
|
124
|
-
function
|
|
79
|
+
function qr(e) {
|
|
125
80
|
if (e instanceof Date)
|
|
126
81
|
return Number.isNaN(e.getTime()) ? /* @__PURE__ */ new Date() : e;
|
|
127
82
|
if (typeof e == "string" || typeof e == "number") {
|
|
@@ -131,12 +86,12 @@ function Qr(e) {
|
|
|
131
86
|
}
|
|
132
87
|
return /* @__PURE__ */ new Date();
|
|
133
88
|
}
|
|
134
|
-
const
|
|
135
|
-
...
|
|
89
|
+
const Kr = [
|
|
90
|
+
...Ur,
|
|
136
91
|
{
|
|
137
92
|
type: "CurrentTime",
|
|
138
93
|
inputKind: "datetime",
|
|
139
|
-
getInitialValue: ({ now: e }) =>
|
|
94
|
+
getInitialValue: ({ now: e }) => Wr(qr(e))
|
|
140
95
|
},
|
|
141
96
|
{
|
|
142
97
|
type: "UserName",
|
|
@@ -158,7 +113,7 @@ const Yr = [
|
|
|
158
113
|
assignerError: l,
|
|
159
114
|
emitChange: c,
|
|
160
115
|
emitBlur: f
|
|
161
|
-
}) => Yt(
|
|
116
|
+
}) => Yt($r, {
|
|
162
117
|
class: n,
|
|
163
118
|
varId: e.id,
|
|
164
119
|
modelValue: t,
|
|
@@ -186,7 +141,7 @@ const Yr = [
|
|
|
186
141
|
extraClasses: n,
|
|
187
142
|
emitChange: a,
|
|
188
143
|
emitBlur: u
|
|
189
|
-
}) => Yt(
|
|
144
|
+
}) => Yt(jr, {
|
|
190
145
|
class: n,
|
|
191
146
|
varId: e.id,
|
|
192
147
|
modelValue: t,
|
|
@@ -204,16 +159,16 @@ function Lt(e, t) {
|
|
|
204
159
|
const i = ge(e);
|
|
205
160
|
return t.find((r) => ge(r.type) === i ? !0 : (r.aliases ?? []).some((s) => ge(s) === i));
|
|
206
161
|
}
|
|
207
|
-
function
|
|
208
|
-
return [...e ?? [], ...
|
|
162
|
+
function ra(e) {
|
|
163
|
+
return [...e ?? [], ...Kr];
|
|
209
164
|
}
|
|
210
|
-
function
|
|
211
|
-
return
|
|
165
|
+
function sa(e, t, i) {
|
|
166
|
+
return mr(e, t, i);
|
|
212
167
|
}
|
|
213
|
-
function
|
|
214
|
-
return
|
|
168
|
+
function Hr(e, t, i) {
|
|
169
|
+
return vr(e, t, i);
|
|
215
170
|
}
|
|
216
|
-
function
|
|
171
|
+
function na(e) {
|
|
217
172
|
return {
|
|
218
173
|
format: "airalogy_selected_file_v1",
|
|
219
174
|
name: e.name,
|
|
@@ -222,14 +177,14 @@ function pa(e) {
|
|
|
222
177
|
lastModified: e.lastModified
|
|
223
178
|
};
|
|
224
179
|
}
|
|
225
|
-
function
|
|
226
|
-
return
|
|
180
|
+
function Gr(e) {
|
|
181
|
+
return Sr(e);
|
|
227
182
|
}
|
|
228
|
-
function
|
|
229
|
-
return
|
|
183
|
+
function Jr(e) {
|
|
184
|
+
return gr(e);
|
|
230
185
|
}
|
|
231
|
-
function
|
|
232
|
-
return
|
|
186
|
+
function Qr(e) {
|
|
187
|
+
return yr(e, void 0, {
|
|
233
188
|
hideAiralogyFileIds: !0,
|
|
234
189
|
keys: [
|
|
235
190
|
"name",
|
|
@@ -245,7 +200,7 @@ function ts(e) {
|
|
|
245
200
|
]
|
|
246
201
|
});
|
|
247
202
|
}
|
|
248
|
-
function
|
|
203
|
+
function aa(e, t) {
|
|
249
204
|
const i = Ie(t), r = e.findIndex((s) => Object.is(s.value, i));
|
|
250
205
|
if (r >= 0)
|
|
251
206
|
return String(r);
|
|
@@ -256,12 +211,12 @@ function da(e, t) {
|
|
|
256
211
|
}
|
|
257
212
|
return "";
|
|
258
213
|
}
|
|
259
|
-
function
|
|
214
|
+
function oa(e, t) {
|
|
260
215
|
const i = Number.parseInt(t, 10);
|
|
261
216
|
return Number.isInteger(i) && i >= 0 && i < e.length ? e[i].value : "";
|
|
262
217
|
}
|
|
263
|
-
function
|
|
264
|
-
if (
|
|
218
|
+
function Yr(e, t) {
|
|
219
|
+
if (pi(void 0, { inputType: e, codeLanguage: t }))
|
|
265
220
|
return "code";
|
|
266
221
|
const i = ge(e);
|
|
267
222
|
if (i) {
|
|
@@ -279,7 +234,7 @@ function is(e, t) {
|
|
|
279
234
|
return "textarea";
|
|
280
235
|
if (i === "dna")
|
|
281
236
|
return "dna";
|
|
282
|
-
if (
|
|
237
|
+
if (wr(i))
|
|
283
238
|
return "file";
|
|
284
239
|
if (i === "text" || i === "string")
|
|
285
240
|
return "text";
|
|
@@ -288,7 +243,7 @@ function is(e, t) {
|
|
|
288
243
|
function te(e) {
|
|
289
244
|
return ge(e);
|
|
290
245
|
}
|
|
291
|
-
function
|
|
246
|
+
function di(e) {
|
|
292
247
|
const t = te(e);
|
|
293
248
|
return t === "float" || t === "int" || t === "integer" || t === "number";
|
|
294
249
|
}
|
|
@@ -296,17 +251,17 @@ function Rt(e) {
|
|
|
296
251
|
const t = typeof e == "string" ? e.trim().toLowerCase() : "", i = te(e);
|
|
297
252
|
return i === "json" || i === "list" || t.startsWith("list[") || i === "array" || t.startsWith("array[") || i === "dict" || t.startsWith("dict[") || i === "map" || t.startsWith("map[") || i === "object" || i === "record";
|
|
298
253
|
}
|
|
299
|
-
function
|
|
300
|
-
const i =
|
|
254
|
+
function Xt(e, t = {}) {
|
|
255
|
+
const i = Yr(t.inputType, t.codeLanguage);
|
|
301
256
|
if (i)
|
|
302
257
|
return i;
|
|
303
258
|
const r = t.typePlugin ?? Lt(e, t.typePlugins);
|
|
304
259
|
if (r?.inputKind)
|
|
305
260
|
return r.inputKind;
|
|
306
261
|
const s = te(e);
|
|
307
|
-
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" || Rt(e) ? "textarea" :
|
|
262
|
+
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" || Rt(e) ? "textarea" : Hr(e, t.kwargs, t.fieldMeta) ? "file" : pi(e, { codeLanguage: t.codeLanguage }) ? "code" : "text";
|
|
308
263
|
}
|
|
309
|
-
function
|
|
264
|
+
function Xr(e) {
|
|
310
265
|
if (typeof e == "string")
|
|
311
266
|
return e;
|
|
312
267
|
if (e === null || typeof e > "u")
|
|
@@ -325,22 +280,22 @@ function we(e) {
|
|
|
325
280
|
return Number.isFinite(t) ? t : void 0;
|
|
326
281
|
}
|
|
327
282
|
}
|
|
328
|
-
function
|
|
329
|
-
if (!
|
|
283
|
+
function mi(e, t) {
|
|
284
|
+
if (!di(e) || !t)
|
|
330
285
|
return {};
|
|
331
286
|
const i = {}, r = we(t.gt), s = we(t.ge), n = we(t.lt), a = we(t.le), u = we(t.multiple_of);
|
|
332
287
|
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;
|
|
333
288
|
}
|
|
334
|
-
function
|
|
335
|
-
const i =
|
|
289
|
+
function ua(e, t) {
|
|
290
|
+
const i = mi(e, t), r = [i.gt, i.ge].filter((n) => n !== void 0), s = [i.lt, i.le].filter((n) => n !== void 0);
|
|
336
291
|
return {
|
|
337
292
|
min: r.length ? Math.max(...r) : void 0,
|
|
338
293
|
max: s.length ? Math.min(...s) : void 0,
|
|
339
294
|
step: i.multiple_of
|
|
340
295
|
};
|
|
341
296
|
}
|
|
342
|
-
function
|
|
343
|
-
const r =
|
|
297
|
+
function Zr(e, t, i) {
|
|
298
|
+
const r = mi(t, i);
|
|
344
299
|
if (Object.keys(r).length === 0 || e === null || typeof e > "u" || typeof e == "string" && e.trim() === "")
|
|
345
300
|
return null;
|
|
346
301
|
const s = we(e);
|
|
@@ -362,12 +317,12 @@ function ss(e, t, i) {
|
|
|
362
317
|
return null;
|
|
363
318
|
}
|
|
364
319
|
function Ie(e) {
|
|
365
|
-
return
|
|
320
|
+
return xr(e);
|
|
366
321
|
}
|
|
367
|
-
function
|
|
368
|
-
return
|
|
322
|
+
function la(e) {
|
|
323
|
+
return br(e);
|
|
369
324
|
}
|
|
370
|
-
function
|
|
325
|
+
function gi(e) {
|
|
371
326
|
const t = Ie(e);
|
|
372
327
|
if (t instanceof Date)
|
|
373
328
|
return Number.isNaN(t.getTime()) ? null : t;
|
|
@@ -384,15 +339,15 @@ function xi(e) {
|
|
|
384
339
|
function Z(e) {
|
|
385
340
|
return String(e).padStart(2, "0");
|
|
386
341
|
}
|
|
387
|
-
function
|
|
342
|
+
function es(e) {
|
|
388
343
|
const t = -e.getTimezoneOffset(), i = t >= 0 ? "+" : "-", r = Math.abs(t), s = Math.floor(r / 60), n = r % 60;
|
|
389
344
|
return `${i}${Z(s)}:${Z(n)}`;
|
|
390
345
|
}
|
|
391
346
|
function Ct(e) {
|
|
392
347
|
const t = e.getFullYear(), i = Z(e.getMonth() + 1), r = Z(e.getDate()), s = Z(e.getHours()), n = Z(e.getMinutes());
|
|
393
|
-
return `${t}-${i}-${r}T${s}:${n}${
|
|
348
|
+
return `${t}-${i}-${r}T${s}:${n}${es(e)}`;
|
|
394
349
|
}
|
|
395
|
-
function
|
|
350
|
+
function ts(e) {
|
|
396
351
|
const t = Ie(e);
|
|
397
352
|
if (typeof t == "string") {
|
|
398
353
|
const r = t.trim();
|
|
@@ -406,10 +361,10 @@ function as(e) {
|
|
|
406
361
|
}
|
|
407
362
|
if (t === null || typeof t > "u")
|
|
408
363
|
return "";
|
|
409
|
-
const i =
|
|
364
|
+
const i = gi(t);
|
|
410
365
|
return i ? Ct(i) : e;
|
|
411
366
|
}
|
|
412
|
-
function
|
|
367
|
+
function is(e, t) {
|
|
413
368
|
const i = Ie(e);
|
|
414
369
|
if (typeof i == "string" && i.trim()) {
|
|
415
370
|
const f = i.trim();
|
|
@@ -423,13 +378,13 @@ function os(e, t) {
|
|
|
423
378
|
if (t === "time" && /^\d{2}:\d{2}/.test(f))
|
|
424
379
|
return f.slice(0, 8);
|
|
425
380
|
}
|
|
426
|
-
const r =
|
|
381
|
+
const r = gi(i);
|
|
427
382
|
if (!r)
|
|
428
383
|
return "";
|
|
429
384
|
const s = r.getFullYear(), n = Z(r.getMonth() + 1), a = Z(r.getDate()), u = Z(r.getHours()), l = Z(r.getMinutes()), c = Z(r.getSeconds());
|
|
430
385
|
return t === "date" ? `${s}-${n}-${a}` : t === "time" ? `${u}:${l}:${c}` : `${s}-${n}-${a}T${u}:${l}`;
|
|
431
386
|
}
|
|
432
|
-
function
|
|
387
|
+
function rs(e, t, i = {}) {
|
|
433
388
|
const r = i.typePlugin;
|
|
434
389
|
if (r?.getDisplayValue) {
|
|
435
390
|
const n = {
|
|
@@ -444,9 +399,9 @@ function us(e, t, i = {}) {
|
|
|
444
399
|
return r.getDisplayValue(n);
|
|
445
400
|
}
|
|
446
401
|
const s = Ie(e);
|
|
447
|
-
return t === "date" || t === "datetime" || t === "time" ?
|
|
402
|
+
return t === "date" || t === "datetime" || t === "time" ? is(s, t) : t === "number" ? typeof s == "number" || typeof s == "string" ? s : "" : t === "dna" ? typeof s == "string" ? s : JSON.stringify(s) : t === "file" ? Qr(s) : Rt(i.type) ? Xr(s) : typeof s == "string" ? s : s === null || typeof s > "u" ? "" : String(s);
|
|
448
403
|
}
|
|
449
|
-
function
|
|
404
|
+
function ca(e, t, i, r = {}) {
|
|
450
405
|
const s = r.typePlugin ?? Lt(t, r.typePlugins);
|
|
451
406
|
if (s?.parseInputValue) {
|
|
452
407
|
const a = {
|
|
@@ -462,7 +417,7 @@ function ba(e, t, i, r = {}) {
|
|
|
462
417
|
}
|
|
463
418
|
const n = te(t);
|
|
464
419
|
if (i === "datetime")
|
|
465
|
-
return
|
|
420
|
+
return ts(e);
|
|
466
421
|
if (i === "number") {
|
|
467
422
|
const a = e.trim();
|
|
468
423
|
if (!a)
|
|
@@ -482,7 +437,7 @@ function ba(e, t, i, r = {}) {
|
|
|
482
437
|
}
|
|
483
438
|
return e;
|
|
484
439
|
}
|
|
485
|
-
function
|
|
440
|
+
function yi(e) {
|
|
486
441
|
switch (e) {
|
|
487
442
|
case "textarea":
|
|
488
443
|
case "dna":
|
|
@@ -493,7 +448,7 @@ function vi(e) {
|
|
|
493
448
|
return 0;
|
|
494
449
|
}
|
|
495
450
|
}
|
|
496
|
-
function
|
|
451
|
+
function ss(e) {
|
|
497
452
|
switch (e) {
|
|
498
453
|
case "datetime":
|
|
499
454
|
return 36;
|
|
@@ -507,7 +462,7 @@ function ls(e) {
|
|
|
507
462
|
return 4;
|
|
508
463
|
}
|
|
509
464
|
}
|
|
510
|
-
function
|
|
465
|
+
function ns(e) {
|
|
511
466
|
if (!e?.classList.contains("aimd-rec-inline__file-control"))
|
|
512
467
|
return 0;
|
|
513
468
|
switch (e.dataset.fileKind) {
|
|
@@ -519,8 +474,8 @@ function cs(e) {
|
|
|
519
474
|
return 220;
|
|
520
475
|
}
|
|
521
476
|
}
|
|
522
|
-
function
|
|
523
|
-
const i = Math.max(e.length + 7, 10), n = Math.round(i * 8 + 16), a =
|
|
477
|
+
function fa(e, t) {
|
|
478
|
+
const i = Math.max(e.length + 7, 10), n = Math.round(i * 8 + 16), a = yi(t);
|
|
524
479
|
return `${Math.max(a, n)}px`;
|
|
525
480
|
}
|
|
526
481
|
function R(e) {
|
|
@@ -528,11 +483,11 @@ function R(e) {
|
|
|
528
483
|
return Number.isFinite(t) ? t : 0;
|
|
529
484
|
}
|
|
530
485
|
let yt = null;
|
|
531
|
-
function
|
|
486
|
+
function bi() {
|
|
532
487
|
return typeof window > "u" ? null : (yt || (yt = document.createElement("canvas")), yt.getContext("2d"));
|
|
533
488
|
}
|
|
534
|
-
function
|
|
535
|
-
const i =
|
|
489
|
+
function as(e, t) {
|
|
490
|
+
const i = bi();
|
|
536
491
|
if (!i)
|
|
537
492
|
return 0;
|
|
538
493
|
const r = t.fontSize || "16px", s = t.fontFamily || "sans-serif", n = t.fontWeight || "400", a = t.fontStyle || "normal";
|
|
@@ -541,35 +496,35 @@ function fs(e, t) {
|
|
|
541
496
|
function Ee(e) {
|
|
542
497
|
if (typeof window > "u")
|
|
543
498
|
return e.scrollWidth;
|
|
544
|
-
const t = window.getComputedStyle(e), i = (e.textContent || "").trim(), r =
|
|
499
|
+
const t = window.getComputedStyle(e), i = (e.textContent || "").trim(), r = as(i, t), s = R(t.paddingLeft) + R(t.paddingRight) + R(t.borderLeftWidth) + R(t.borderRightWidth) + R(t.marginLeft) + R(t.marginRight);
|
|
545
500
|
return r + s;
|
|
546
501
|
}
|
|
547
|
-
function
|
|
502
|
+
function os(e) {
|
|
548
503
|
if (typeof window > "u")
|
|
549
504
|
return 0;
|
|
550
505
|
const t = window.getComputedStyle(e);
|
|
551
506
|
return R(t.paddingLeft) + R(t.paddingRight) + R(t.borderLeftWidth) + R(t.borderRightWidth) + R(t.marginLeft) + R(t.marginRight);
|
|
552
507
|
}
|
|
553
|
-
function
|
|
508
|
+
function us(e) {
|
|
554
509
|
const t = e.querySelector(".aimd-field__title"), i = e.querySelector(".aimd-field__key"), r = Math.max(
|
|
555
510
|
t ? Ee(t) : 0,
|
|
556
511
|
i ? Ee(i) : 0
|
|
557
512
|
);
|
|
558
|
-
return r > 0 ? r +
|
|
513
|
+
return r > 0 ? r + os(e) : Ee(e);
|
|
559
514
|
}
|
|
560
|
-
function
|
|
515
|
+
function ls(e) {
|
|
561
516
|
const t = e.querySelector(".aimd-field__scope--var"), i = e.querySelector(".aimd-field__name"), r = e.querySelector(".aimd-field__id");
|
|
562
517
|
if (t && i)
|
|
563
|
-
return Ee(t) +
|
|
518
|
+
return Ee(t) + us(i) + 4;
|
|
564
519
|
if (t && r)
|
|
565
520
|
return Ee(t) + Ee(r) + 4;
|
|
566
521
|
const s = e.querySelector(".aimd-field__label");
|
|
567
522
|
return s ? s.scrollWidth + 2 : 0;
|
|
568
523
|
}
|
|
569
|
-
function
|
|
524
|
+
function cs(e) {
|
|
570
525
|
if (typeof window > "u")
|
|
571
526
|
return e.scrollWidth;
|
|
572
|
-
const t =
|
|
527
|
+
const t = bi();
|
|
573
528
|
if (!t)
|
|
574
529
|
return e.scrollWidth;
|
|
575
530
|
const i = window.getComputedStyle(e), r = i.fontSize || "16px", s = i.fontFamily || "sans-serif", n = i.fontWeight || "400", a = i.fontStyle || "normal";
|
|
@@ -577,11 +532,11 @@ function ms(e) {
|
|
|
577
532
|
const u = "value" in e ? e.value || e.placeholder || "" : (e.textContent || "").trim(), l = t.measureText(u).width, c = R(i.paddingLeft) + R(i.paddingRight);
|
|
578
533
|
return l + c + 2;
|
|
579
534
|
}
|
|
580
|
-
function
|
|
535
|
+
function Zt(e, t, i) {
|
|
581
536
|
const r = e.querySelector(t);
|
|
582
537
|
return r ? r.offsetWidth || i : 0;
|
|
583
538
|
}
|
|
584
|
-
function
|
|
539
|
+
function ha(e) {
|
|
585
540
|
if (typeof window > "u")
|
|
586
541
|
return;
|
|
587
542
|
const t = e.classList.contains("aimd-rec-inline__textarea--stacked-text");
|
|
@@ -594,35 +549,35 @@ function va(e) {
|
|
|
594
549
|
const s = R(i.borderTopWidth) + R(i.borderBottomWidth), n = Math.max(r, e.scrollHeight + s);
|
|
595
550
|
e.style.height = `${Math.ceil(n)}px`;
|
|
596
551
|
}
|
|
597
|
-
function
|
|
552
|
+
function pa(e, t) {
|
|
598
553
|
const i = e.closest(".aimd-rec-inline--var-stacked");
|
|
599
554
|
if (!i || typeof window > "u")
|
|
600
555
|
return;
|
|
601
|
-
const r =
|
|
556
|
+
const r = ls(i);
|
|
602
557
|
let s = 0;
|
|
603
|
-
const n = i.querySelector(".aimd-rec-inline__input--stacked, .aimd-rec-inline__textarea--stacked-text, .aimd-rec-inline__file-control"), a = Math.max(
|
|
604
|
-
n && (s =
|
|
558
|
+
const n = i.querySelector(".aimd-rec-inline__input--stacked, .aimd-rec-inline__textarea--stacked-text, .aimd-rec-inline__file-control"), a = Math.max(yi(t), ns(n));
|
|
559
|
+
n && (s = cs(n) + ss(t)), i.querySelector(".aimd-rec-inline__control-row") && (s += Zt(i, ".aimd-rec-inline__assigner-prefix", 36) + Zt(i, ".aimd-rec-inline__assigner-status", 30));
|
|
605
560
|
const u = Math.max(a, r, s);
|
|
606
561
|
i.style.width = `${Math.ceil(u)}px`, i.style.maxWidth = "100%";
|
|
607
562
|
}
|
|
608
563
|
function F(e) {
|
|
609
564
|
return e !== null && typeof e == "object" && !Array.isArray(e);
|
|
610
565
|
}
|
|
611
|
-
function
|
|
566
|
+
function fs(e) {
|
|
612
567
|
return F(e) && Object.keys(e).length === 0;
|
|
613
568
|
}
|
|
614
|
-
function
|
|
569
|
+
function xi(e, t) {
|
|
615
570
|
for (const i of t) {
|
|
616
571
|
const r = e[i];
|
|
617
572
|
if (typeof r == "string" && r.trim())
|
|
618
573
|
return r.trim();
|
|
619
574
|
}
|
|
620
575
|
}
|
|
621
|
-
function
|
|
576
|
+
function ei(e) {
|
|
622
577
|
if (typeof e == "string" && e.trim())
|
|
623
578
|
return e.trim();
|
|
624
579
|
if (F(e))
|
|
625
|
-
return
|
|
580
|
+
return xi(e, [
|
|
626
581
|
"error_message",
|
|
627
582
|
"errorMessage",
|
|
628
583
|
"message",
|
|
@@ -630,41 +585,41 @@ function ii(e) {
|
|
|
630
585
|
"reason"
|
|
631
586
|
]);
|
|
632
587
|
}
|
|
633
|
-
function
|
|
588
|
+
function vi(e) {
|
|
634
589
|
const t = [e], i = (r) => {
|
|
635
590
|
F(r) && (t.push(r.data), t.push(r.result), F(r.data) && t.push(r.data.result), F(r.result) && t.push(r.result.data));
|
|
636
591
|
};
|
|
637
592
|
return i(e), F(e) && (i(e.data), i(e.result)), t;
|
|
638
593
|
}
|
|
639
|
-
function
|
|
594
|
+
function hs(e) {
|
|
640
595
|
if (typeof e == "string" && e.trim()) return e.trim();
|
|
641
596
|
if (!F(e)) return "";
|
|
642
597
|
const t = e.name ?? e.id;
|
|
643
598
|
return typeof t == "string" && t.trim() ? t.trim() : "";
|
|
644
599
|
}
|
|
645
600
|
function We(e) {
|
|
646
|
-
return Array.isArray(e) ? new Set(e.map(
|
|
601
|
+
return Array.isArray(e) ? new Set(e.map(hs).filter(Boolean)) : /* @__PURE__ */ new Set();
|
|
647
602
|
}
|
|
648
|
-
function
|
|
603
|
+
function wi(e) {
|
|
649
604
|
if (!F(e)) return [];
|
|
650
605
|
const t = e.dependent_fields;
|
|
651
606
|
return Array.isArray(t) ? t.map((i) => typeof i == "string" ? i.trim() : "").filter(Boolean) : [];
|
|
652
607
|
}
|
|
653
|
-
function
|
|
608
|
+
function ps(e) {
|
|
654
609
|
return F(e) ? (Array.isArray(e.assigned_fields) ? e.assigned_fields : Array.isArray(e.assignedFields) ? e.assignedFields : []).map((i) => typeof i == "string" ? i.trim() : "").filter(Boolean) : [];
|
|
655
610
|
}
|
|
656
|
-
function
|
|
611
|
+
function ds(e) {
|
|
657
612
|
if (!F(e)) return "manual";
|
|
658
613
|
const t = e.mode;
|
|
659
614
|
return typeof t == "string" && t.trim() ? t.trim() : "manual";
|
|
660
615
|
}
|
|
661
|
-
function
|
|
616
|
+
function da(e) {
|
|
662
617
|
return e === "auto" || e === "auto_first" || e === "auto_force" || e === "manual" || e === "manual_readonly" || e === "auto_readonly" ? e : "manual";
|
|
663
618
|
}
|
|
664
|
-
function
|
|
619
|
+
function ma(e) {
|
|
665
620
|
return e === "auto_readonly" || e === "manual_readonly";
|
|
666
621
|
}
|
|
667
|
-
function
|
|
622
|
+
function ms(e) {
|
|
668
623
|
return {
|
|
669
624
|
var: We(e?.var),
|
|
670
625
|
varTable: We(e?.var_table),
|
|
@@ -672,7 +627,7 @@ function vs(e) {
|
|
|
672
627
|
check: We(e?.check)
|
|
673
628
|
};
|
|
674
629
|
}
|
|
675
|
-
function
|
|
630
|
+
function gs(e, t = {}) {
|
|
676
631
|
const i = e.trim();
|
|
677
632
|
if (i.includes(".")) {
|
|
678
633
|
const [r, ...s] = i.split(".");
|
|
@@ -680,20 +635,20 @@ function ws(e, t = {}) {
|
|
|
680
635
|
}
|
|
681
636
|
return t.varTable?.has(i) ? `var_table:${i}` : t.step?.has(i) ? `step:${i}` : t.check?.has(i) ? `check:${i}` : `var:${i}`;
|
|
682
637
|
}
|
|
683
|
-
function
|
|
638
|
+
function ga(e, t) {
|
|
684
639
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
685
640
|
return [];
|
|
686
|
-
const i =
|
|
641
|
+
const i = ms(t);
|
|
687
642
|
return Object.entries(e).flatMap(([r, s]) => {
|
|
688
643
|
const n = r.trim();
|
|
689
644
|
if (!n) return [];
|
|
690
|
-
const a = F(s) ? s : {}, u =
|
|
645
|
+
const a = F(s) ? s : {}, u = ds(a), l = wi(a);
|
|
691
646
|
return [.../* @__PURE__ */ new Set([
|
|
692
647
|
n,
|
|
693
|
-
...
|
|
648
|
+
...ps(a)
|
|
694
649
|
])].map((f) => ({
|
|
695
650
|
assignedField: f,
|
|
696
|
-
fieldKey:
|
|
651
|
+
fieldKey: gs(f, i),
|
|
697
652
|
mode: u,
|
|
698
653
|
dependentFields: l,
|
|
699
654
|
assigner: a
|
|
@@ -703,21 +658,21 @@ function Ca(e, t) {
|
|
|
703
658
|
function Qe(e) {
|
|
704
659
|
if (e !== "") {
|
|
705
660
|
if (Array.isArray(e))
|
|
706
|
-
return e.map((i) => Qe(i)).filter((i) => i !== void 0 && !
|
|
661
|
+
return e.map((i) => Qe(i)).filter((i) => i !== void 0 && !fs(i));
|
|
707
662
|
if (F(e)) {
|
|
708
|
-
const t =
|
|
709
|
-
return
|
|
663
|
+
const t = Jr(e);
|
|
664
|
+
return Gr(t) ? t : Object.fromEntries(
|
|
710
665
|
Object.entries(e).map(([r, s]) => [r, Qe(s)]).filter(([, r]) => r !== void 0)
|
|
711
666
|
);
|
|
712
667
|
}
|
|
713
668
|
return e;
|
|
714
669
|
}
|
|
715
670
|
}
|
|
716
|
-
function
|
|
671
|
+
function ys(e) {
|
|
717
672
|
const t = Qe(e);
|
|
718
673
|
return F(t) ? t : {};
|
|
719
674
|
}
|
|
720
|
-
function
|
|
675
|
+
function bs(e, t) {
|
|
721
676
|
if (Object.prototype.hasOwnProperty.call(e.var, t)) return e.var[t];
|
|
722
677
|
if (Object.prototype.hasOwnProperty.call(e.step, t)) return e.step[t];
|
|
723
678
|
if (Object.prototype.hasOwnProperty.call(e.check, t)) return e.check[t];
|
|
@@ -728,14 +683,14 @@ function _s(e, t) {
|
|
|
728
683
|
return n.map((a) => F(a) ? a[s] : void 0);
|
|
729
684
|
}
|
|
730
685
|
}
|
|
731
|
-
function
|
|
732
|
-
const i = Array.isArray(t?.dependentFields) ? t.dependentFields :
|
|
733
|
-
return i.length === 0 ?
|
|
734
|
-
i.map((r) => [r, Qe(
|
|
686
|
+
function ya(e, t) {
|
|
687
|
+
const i = Array.isArray(t?.dependentFields) ? t.dependentFields : wi(t);
|
|
688
|
+
return i.length === 0 ? ys(e.var) : Object.fromEntries(
|
|
689
|
+
i.map((r) => [r, Qe(bs(e, r))]).filter(([, r]) => r !== void 0)
|
|
735
690
|
);
|
|
736
691
|
}
|
|
737
|
-
function
|
|
738
|
-
const t =
|
|
692
|
+
function ba(e) {
|
|
693
|
+
const t = vi(e);
|
|
739
694
|
for (const i of t) {
|
|
740
695
|
if (!F(i)) continue;
|
|
741
696
|
const r = i.assigned_fields;
|
|
@@ -745,23 +700,23 @@ function Aa(e) {
|
|
|
745
700
|
}
|
|
746
701
|
return {};
|
|
747
702
|
}
|
|
748
|
-
function
|
|
749
|
-
const t =
|
|
703
|
+
function xa(e) {
|
|
704
|
+
const t = vi(e);
|
|
750
705
|
for (const i of t) {
|
|
751
706
|
if (!F(i)) continue;
|
|
752
707
|
const r = i.success, s = i.status;
|
|
753
708
|
if (r === !1 || r === "false" || s === "error" || s === "failed")
|
|
754
|
-
return
|
|
709
|
+
return xi(i, [
|
|
755
710
|
"error_message",
|
|
756
711
|
"errorMessage",
|
|
757
712
|
"message",
|
|
758
713
|
"detail",
|
|
759
714
|
"reason",
|
|
760
715
|
"output"
|
|
761
|
-
]) ??
|
|
716
|
+
]) ?? ei(i.error) ?? ei(i.exception) ?? "Assigner failed";
|
|
762
717
|
}
|
|
763
718
|
}
|
|
764
|
-
function
|
|
719
|
+
function va(e, t) {
|
|
765
720
|
let i = !1;
|
|
766
721
|
for (const [r, s] of Object.entries(t)) {
|
|
767
722
|
const n = r.trim();
|
|
@@ -778,11 +733,11 @@ function Ia(e, t) {
|
|
|
778
733
|
}
|
|
779
734
|
}
|
|
780
735
|
if (Object.prototype.hasOwnProperty.call(e.step, n)) {
|
|
781
|
-
e.step[n] =
|
|
736
|
+
e.step[n] = _r(s), i = !0;
|
|
782
737
|
continue;
|
|
783
738
|
}
|
|
784
739
|
if (Object.prototype.hasOwnProperty.call(e.check, n)) {
|
|
785
|
-
e.check[n] =
|
|
740
|
+
e.check[n] = Cr(s), i = !0;
|
|
786
741
|
continue;
|
|
787
742
|
}
|
|
788
743
|
e.var[n] = s, i = !0;
|
|
@@ -790,21 +745,21 @@ function Ia(e, t) {
|
|
|
790
745
|
}
|
|
791
746
|
return i;
|
|
792
747
|
}
|
|
793
|
-
function
|
|
748
|
+
function wa(e, t) {
|
|
794
749
|
const i = `${e}:`;
|
|
795
750
|
return t.startsWith(i) ? t.slice(i.length) : t;
|
|
796
751
|
}
|
|
797
|
-
function
|
|
752
|
+
function xs(e) {
|
|
798
753
|
if (typeof window > "u")
|
|
799
754
|
return !1;
|
|
800
755
|
const t = window.getComputedStyle(e), i = t.overflowY || t.overflow, r = t.overflowX || t.overflow, s = /(auto|scroll|overlay)/.test(i) && e.scrollHeight > e.clientHeight, n = /(auto|scroll|overlay)/.test(r) && e.scrollWidth > e.clientWidth;
|
|
801
756
|
return s || n;
|
|
802
757
|
}
|
|
803
|
-
function
|
|
758
|
+
function vs(e, t) {
|
|
804
759
|
const i = [], r = /* @__PURE__ */ new Set(), s = (n) => {
|
|
805
760
|
let a = n;
|
|
806
761
|
for (; a && a !== document.body; )
|
|
807
|
-
!r.has(a) &&
|
|
762
|
+
!r.has(a) && xs(a) && (r.add(a), i.push({
|
|
808
763
|
element: a,
|
|
809
764
|
top: a.scrollTop,
|
|
810
765
|
left: a.scrollLeft
|
|
@@ -812,7 +767,7 @@ function ks(e, t) {
|
|
|
812
767
|
};
|
|
813
768
|
return s(t), s(e), i.length ? i : void 0;
|
|
814
769
|
}
|
|
815
|
-
function
|
|
770
|
+
function Sa(e) {
|
|
816
771
|
if (typeof document > "u" || !e)
|
|
817
772
|
return null;
|
|
818
773
|
const t = document.activeElement;
|
|
@@ -822,9 +777,9 @@ function Pa(e) {
|
|
|
822
777
|
if (!i)
|
|
823
778
|
return null;
|
|
824
779
|
const r = { key: i };
|
|
825
|
-
return (t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement) && (r.selectionStart = t.selectionStart, r.selectionEnd = t.selectionEnd, r.selectionDirection = t.selectionDirection), r.scrollTargets =
|
|
780
|
+
return (t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement) && (r.selectionStart = t.selectionStart, r.selectionEnd = t.selectionEnd, r.selectionDirection = t.selectionDirection), r.scrollTargets = vs(e, t), r.windowScrollX = window.scrollX, r.windowScrollY = window.scrollY, r;
|
|
826
781
|
}
|
|
827
|
-
function
|
|
782
|
+
function _a(e, t) {
|
|
828
783
|
if (!t || !e)
|
|
829
784
|
return;
|
|
830
785
|
const i = e.querySelectorAll("[data-rec-focus-key]");
|
|
@@ -854,17 +809,17 @@ function Ta(e, t) {
|
|
|
854
809
|
typeof window < "u" && window.scrollTo(t.windowScrollX ?? window.scrollX, t.windowScrollY ?? window.scrollY);
|
|
855
810
|
}
|
|
856
811
|
}
|
|
857
|
-
var
|
|
812
|
+
var ws = [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], Si = [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], Ss = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", _i = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", bt = {
|
|
858
813
|
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",
|
|
859
814
|
5: "class enum extends super const export import",
|
|
860
815
|
6: "enum",
|
|
861
816
|
strict: "implements interface let package private protected public static yield",
|
|
862
817
|
strictBind: "eval arguments"
|
|
863
|
-
}, xt = "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",
|
|
818
|
+
}, xt = "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", _s = {
|
|
864
819
|
5: xt,
|
|
865
820
|
"5module": xt + " export import",
|
|
866
821
|
6: xt + " const class extends export import super"
|
|
867
|
-
},
|
|
822
|
+
}, Cs = /^in(stanceof)?$/, ks = new RegExp("[" + _i + "]"), As = new RegExp("[" + _i + Ss + "]");
|
|
868
823
|
function kt(e, t) {
|
|
869
824
|
for (var i = 65536, r = 0; r < t.length; r += 2) {
|
|
870
825
|
if (i += t[r], i > e)
|
|
@@ -875,10 +830,10 @@ function kt(e, t) {
|
|
|
875
830
|
return !1;
|
|
876
831
|
}
|
|
877
832
|
function ie(e, t) {
|
|
878
|
-
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 &&
|
|
833
|
+
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && ks.test(String.fromCharCode(e)) : t === !1 ? !1 : kt(e, Si);
|
|
879
834
|
}
|
|
880
835
|
function he(e, t) {
|
|
881
|
-
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 &&
|
|
836
|
+
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 && As.test(String.fromCharCode(e)) : t === !1 ? !1 : kt(e, Si) || kt(e, ws);
|
|
882
837
|
}
|
|
883
838
|
var I = function(t, i) {
|
|
884
839
|
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;
|
|
@@ -983,11 +938,11 @@ var o = {
|
|
|
983
938
|
_typeof: E("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
984
939
|
_void: E("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
985
940
|
_delete: E("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
|
|
986
|
-
}, K = /\r\n?|\n|\u2028|\u2029/,
|
|
941
|
+
}, K = /\r\n?|\n|\u2028|\u2029/, Es = new RegExp(K.source, "g");
|
|
987
942
|
function Ne(e) {
|
|
988
943
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
989
944
|
}
|
|
990
|
-
function
|
|
945
|
+
function Ci(e, t, i) {
|
|
991
946
|
i === void 0 && (i = e.length);
|
|
992
947
|
for (var r = t; r < i; r++) {
|
|
993
948
|
var s = e.charCodeAt(r);
|
|
@@ -996,18 +951,18 @@ function Ei(e, t, i) {
|
|
|
996
951
|
}
|
|
997
952
|
return -1;
|
|
998
953
|
}
|
|
999
|
-
var
|
|
1000
|
-
return
|
|
1001
|
-
}),
|
|
1002
|
-
return
|
|
1003
|
-
}),
|
|
954
|
+
var ki = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, $ = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Ai = Object.prototype, Is = Ai.hasOwnProperty, Ns = Ai.toString, Pe = Object.hasOwn || (function(e, t) {
|
|
955
|
+
return Is.call(e, t);
|
|
956
|
+
}), ti = Array.isArray || (function(e) {
|
|
957
|
+
return Ns.call(e) === "[object Array]";
|
|
958
|
+
}), ii = /* @__PURE__ */ Object.create(null);
|
|
1004
959
|
function fe(e) {
|
|
1005
|
-
return
|
|
960
|
+
return ii[e] || (ii[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
1006
961
|
}
|
|
1007
962
|
function ue(e) {
|
|
1008
963
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
1009
964
|
}
|
|
1010
|
-
var
|
|
965
|
+
var Ps = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, De = function(t, i) {
|
|
1011
966
|
this.line = t, this.column = i;
|
|
1012
967
|
};
|
|
1013
968
|
De.prototype.offset = function(t) {
|
|
@@ -1016,9 +971,9 @@ De.prototype.offset = function(t) {
|
|
|
1016
971
|
var at = function(t, i, r) {
|
|
1017
972
|
this.start = i, this.end = r, t.sourceFile !== null && (this.source = t.sourceFile);
|
|
1018
973
|
};
|
|
1019
|
-
function
|
|
974
|
+
function Ei(e, t) {
|
|
1020
975
|
for (var i = 1, r = 0; ; ) {
|
|
1021
|
-
var s =
|
|
976
|
+
var s = Ci(e, r, t);
|
|
1022
977
|
if (s < 0)
|
|
1023
978
|
return new De(i, t - r);
|
|
1024
979
|
++i, r = s;
|
|
@@ -1120,21 +1075,21 @@ var At = {
|
|
|
1120
1075
|
// When enabled, parenthesized expressions are represented by
|
|
1121
1076
|
// (non-standard) ParenthesizedExpression nodes
|
|
1122
1077
|
preserveParens: !1
|
|
1123
|
-
},
|
|
1124
|
-
function
|
|
1078
|
+
}, ri = !1;
|
|
1079
|
+
function Ts(e) {
|
|
1125
1080
|
var t = {};
|
|
1126
1081
|
for (var i in At)
|
|
1127
1082
|
t[i] = e && Pe(e, i) ? e[i] : At[i];
|
|
1128
|
-
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!
|
|
1129
|
-
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),
|
|
1083
|
+
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!ri && typeof console == "object" && console.warn && (ri = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
1084
|
+
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), ti(t.onToken)) {
|
|
1130
1085
|
var r = t.onToken;
|
|
1131
1086
|
t.onToken = function(s) {
|
|
1132
1087
|
return r.push(s);
|
|
1133
1088
|
};
|
|
1134
1089
|
}
|
|
1135
|
-
return
|
|
1090
|
+
return ti(t.onComment) && (t.onComment = Vs(t, t.onComment)), t;
|
|
1136
1091
|
}
|
|
1137
|
-
function
|
|
1092
|
+
function Vs(e, t) {
|
|
1138
1093
|
return function(i, r, s, n, a, u) {
|
|
1139
1094
|
var l = {
|
|
1140
1095
|
type: i ? "Block" : "Line",
|
|
@@ -1145,12 +1100,12 @@ function Ms(e, t) {
|
|
|
1145
1100
|
e.locations && (l.loc = new at(this, a, u)), e.ranges && (l.range = [s, n]), t.push(l);
|
|
1146
1101
|
};
|
|
1147
1102
|
}
|
|
1148
|
-
var Be = 1, Te = 2, Mt = 4,
|
|
1103
|
+
var Be = 1, Te = 2, Mt = 4, Ii = 8, Dt = 16, Ni = 32, ot = 64, Pi = 128, be = 256, $e = 512, ut = Be | Te | be;
|
|
1149
1104
|
function Bt(e, t) {
|
|
1150
|
-
return Te | (e ? Mt : 0) | (t ?
|
|
1105
|
+
return Te | (e ? Mt : 0) | (t ? Ii : 0);
|
|
1151
1106
|
}
|
|
1152
|
-
var Ye = 0, jt = 1, ce = 2,
|
|
1153
|
-
this.options = t =
|
|
1107
|
+
var Ye = 0, jt = 1, ce = 2, Ti = 3, Vi = 4, Oi = 5, M = function(t, i, r) {
|
|
1108
|
+
this.options = t = Ts(t), this.sourceFile = t.sourceFile, this.keywords = fe(_s[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
|
|
1154
1109
|
var s = "";
|
|
1155
1110
|
t.allowReserved !== !0 && (s = bt[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (s += " await")), this.reservedWords = fe(s);
|
|
1156
1111
|
var n = (s ? s + " " : "") + bt.strict;
|
|
@@ -1165,7 +1120,7 @@ re.inFunction.get = function() {
|
|
|
1165
1120
|
return (this.currentVarScope().flags & Te) > 0;
|
|
1166
1121
|
};
|
|
1167
1122
|
re.inGenerator.get = function() {
|
|
1168
|
-
return (this.currentVarScope().flags &
|
|
1123
|
+
return (this.currentVarScope().flags & Ii) > 0;
|
|
1169
1124
|
};
|
|
1170
1125
|
re.inAsync.get = function() {
|
|
1171
1126
|
return (this.currentVarScope().flags & Mt) > 0;
|
|
@@ -1185,7 +1140,7 @@ re.allowSuper.get = function() {
|
|
|
1185
1140
|
return (t & ot) > 0 || this.options.allowSuperOutsideMethod;
|
|
1186
1141
|
};
|
|
1187
1142
|
re.allowDirectSuper.get = function() {
|
|
1188
|
-
return (this.currentThisScope().flags &
|
|
1143
|
+
return (this.currentThisScope().flags & Pi) > 0;
|
|
1189
1144
|
};
|
|
1190
1145
|
re.treatFunctionsAsVar.get = function() {
|
|
1191
1146
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
@@ -1218,13 +1173,13 @@ M.tokenizer = function(t, i) {
|
|
|
1218
1173
|
return new this(i, t);
|
|
1219
1174
|
};
|
|
1220
1175
|
Object.defineProperties(M.prototype, re);
|
|
1221
|
-
var z = M.prototype,
|
|
1176
|
+
var z = M.prototype, Os = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
1222
1177
|
z.strictDirective = function(e) {
|
|
1223
1178
|
if (this.options.ecmaVersion < 5)
|
|
1224
1179
|
return !1;
|
|
1225
1180
|
for (; ; ) {
|
|
1226
1181
|
$.lastIndex = e, e += $.exec(this.input)[0].length;
|
|
1227
|
-
var t =
|
|
1182
|
+
var t = Os.exec(this.input.slice(e));
|
|
1228
1183
|
if (!t)
|
|
1229
1184
|
return !1;
|
|
1230
1185
|
if ((t[1] || t[2]) === "use strict") {
|
|
@@ -1305,7 +1260,7 @@ v.parseTopLevel = function(e) {
|
|
|
1305
1260
|
}
|
|
1306
1261
|
return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
|
|
1307
1262
|
};
|
|
1308
|
-
var $t = { kind: "loop" },
|
|
1263
|
+
var $t = { kind: "loop" }, Ls = { kind: "switch" };
|
|
1309
1264
|
v.isLet = function(e) {
|
|
1310
1265
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
|
|
1311
1266
|
return !1;
|
|
@@ -1323,7 +1278,7 @@ v.isLet = function(e) {
|
|
|
1323
1278
|
if (r === 92 || r > 55295 && r < 56320)
|
|
1324
1279
|
return !0;
|
|
1325
1280
|
var n = this.input.slice(i, s);
|
|
1326
|
-
if (!
|
|
1281
|
+
if (!Cs.test(n))
|
|
1327
1282
|
return !0;
|
|
1328
1283
|
}
|
|
1329
1284
|
return !1;
|
|
@@ -1473,7 +1428,7 @@ v.parseReturnStatement = function(e) {
|
|
|
1473
1428
|
return !this.inFunction && !this.options.allowReturnOutsideFunction && this.raise(this.start, "'return' outside of function"), this.next(), this.eat(o.semi) || this.insertSemicolon() ? e.argument = null : (e.argument = this.parseExpression(), this.semicolon()), this.finishNode(e, "ReturnStatement");
|
|
1474
1429
|
};
|
|
1475
1430
|
v.parseSwitchStatement = function(e) {
|
|
1476
|
-
this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(o.braceL), this.labels.push(
|
|
1431
|
+
this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(o.braceL), this.labels.push(Ls), this.enterScope(0);
|
|
1477
1432
|
for (var t, i = !1; this.type !== o.braceR; )
|
|
1478
1433
|
if (this.type === o._case || this.type === o._default) {
|
|
1479
1434
|
var r = this.type === o._case;
|
|
@@ -1485,10 +1440,10 @@ v.parseSwitchStatement = function(e) {
|
|
|
1485
1440
|
v.parseThrowStatement = function(e) {
|
|
1486
1441
|
return this.next(), K.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
|
|
1487
1442
|
};
|
|
1488
|
-
var
|
|
1443
|
+
var Rs = [];
|
|
1489
1444
|
v.parseCatchClauseParam = function() {
|
|
1490
1445
|
var e = this.parseBindingAtom(), t = e.type === "Identifier";
|
|
1491
|
-
return this.enterScope(t ?
|
|
1446
|
+
return this.enterScope(t ? Ni : 0), this.checkLValPattern(e, t ? Vi : ce), this.expect(o.parenR), e;
|
|
1492
1447
|
};
|
|
1493
1448
|
v.parseTryStatement = function(e) {
|
|
1494
1449
|
if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === o._catch) {
|
|
@@ -1554,9 +1509,9 @@ v.parseVar = function(e, t, i, r) {
|
|
|
1554
1509
|
v.parseVarId = function(e, t) {
|
|
1555
1510
|
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? jt : ce, !1);
|
|
1556
1511
|
};
|
|
1557
|
-
var Re = 1, Et = 2,
|
|
1512
|
+
var Re = 1, Et = 2, Li = 4;
|
|
1558
1513
|
v.parseFunction = function(e, t, i, r, s) {
|
|
1559
|
-
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === o.star && t & Et && this.unexpected(), e.generator = this.eat(o.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & Re && (e.id = t &
|
|
1514
|
+
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === o.star && t & Et && this.unexpected(), e.generator = this.eat(o.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & Re && (e.id = t & Li && this.type !== o.name ? null : this.parseIdent(), e.id && !(t & Et) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? jt : ce : Ti));
|
|
1560
1515
|
var n = this.yieldPos, a = this.awaitPos, u = this.awaitIdentPos;
|
|
1561
1516
|
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Bt(e.async, e.generator)), t & Re || (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 & Re ? "FunctionDeclaration" : "FunctionExpression");
|
|
1562
1517
|
};
|
|
@@ -1570,7 +1525,7 @@ v.parseClass = function(e, t) {
|
|
|
1570
1525
|
var r = this.enterClassBody(), s = this.startNode(), n = !1;
|
|
1571
1526
|
for (s.body = [], this.expect(o.braceL); this.type !== o.braceR; ) {
|
|
1572
1527
|
var a = this.parseClassElement(e.superClass !== null);
|
|
1573
|
-
a && (s.body.push(a), a.type === "MethodDefinition" && a.kind === "constructor" ? (n && this.raiseRecoverable(a.start, "Duplicate constructor in the same class"), n = !0) : a.key && a.key.type === "PrivateIdentifier" &&
|
|
1528
|
+
a && (s.body.push(a), a.type === "MethodDefinition" && a.kind === "constructor" ? (n && this.raiseRecoverable(a.start, "Duplicate constructor in the same class"), n = !0) : a.key && a.key.type === "PrivateIdentifier" && Fs(r, a) && this.raiseRecoverable(a.key.start, "Identifier '#" + a.key.name + "' has already been declared"));
|
|
1574
1529
|
}
|
|
1575
1530
|
return this.strict = i, this.next(), e.body = this.finishNode(s, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
|
|
1576
1531
|
};
|
|
@@ -1636,7 +1591,7 @@ v.exitClassBody = function() {
|
|
|
1636
1591
|
Pe(t, a.name) || (s ? s.used.push(a) : this.raiseRecoverable(a.start, "Private field '#" + a.name + "' must be declared in an enclosing class"));
|
|
1637
1592
|
}
|
|
1638
1593
|
};
|
|
1639
|
-
function
|
|
1594
|
+
function Fs(e, t) {
|
|
1640
1595
|
var i = t.key.name, r = e[i], s = "true";
|
|
1641
1596
|
return t.type === "MethodDefinition" && (t.kind === "get" || t.kind === "set") && (s = (t.static ? "s" : "i") + t.kind), r === "iget" && s === "iset" || r === "iset" && s === "iget" || r === "sget" && s === "sset" || r === "sset" && s === "sget" ? (e[i] = "true", !1) : r ? !0 : (e[i] = s, !1);
|
|
1642
1597
|
}
|
|
@@ -1675,7 +1630,7 @@ v.parseExportDefaultDeclaration = function() {
|
|
|
1675
1630
|
var e;
|
|
1676
1631
|
if (this.type === o._function || (e = this.isAsyncFunction())) {
|
|
1677
1632
|
var t = this.startNode();
|
|
1678
|
-
return this.next(), e && this.next(), this.parseFunction(t, Re |
|
|
1633
|
+
return this.next(), e && this.next(), this.parseFunction(t, Re | Li, !1, e);
|
|
1679
1634
|
} else if (this.type === o._class) {
|
|
1680
1635
|
var i = this.startNode();
|
|
1681
1636
|
return this.parseClass(i, "nullableID");
|
|
@@ -1733,7 +1688,7 @@ v.parseExportSpecifiers = function(e) {
|
|
|
1733
1688
|
return t;
|
|
1734
1689
|
};
|
|
1735
1690
|
v.parseImport = function(e) {
|
|
1736
|
-
return this.next(), this.type === o.string ? (e.specifiers =
|
|
1691
|
+
return this.next(), this.type === o.string ? (e.specifiers = Rs, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === o.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
|
|
1737
1692
|
};
|
|
1738
1693
|
v.parseImportSpecifier = function() {
|
|
1739
1694
|
var e = this.startNode();
|
|
@@ -1784,7 +1739,7 @@ v.parseImportAttribute = function() {
|
|
|
1784
1739
|
v.parseModuleExportName = function() {
|
|
1785
1740
|
if (this.options.ecmaVersion >= 13 && this.type === o.string) {
|
|
1786
1741
|
var e = this.parseLiteral(this.value);
|
|
1787
|
-
return
|
|
1742
|
+
return Ps.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
|
|
1788
1743
|
}
|
|
1789
1744
|
return this.parseIdent(!0);
|
|
1790
1745
|
};
|
|
@@ -1906,7 +1861,7 @@ Y.checkLValSimple = function(e, t, i) {
|
|
|
1906
1861
|
var r = t !== Ye;
|
|
1907
1862
|
switch (e.type) {
|
|
1908
1863
|
case "Identifier":
|
|
1909
|
-
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 && (Pe(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !==
|
|
1864
|
+
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 && (Pe(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !== Oi && this.declareName(e.name, t, e.start));
|
|
1910
1865
|
break;
|
|
1911
1866
|
case "ChainExpression":
|
|
1912
1867
|
this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
|
|
@@ -2132,7 +2087,7 @@ C.parseMaybeUnary = function(e, t, i, r) {
|
|
|
2132
2087
|
a = this.parseAwait(r), t = !0;
|
|
2133
2088
|
else if (this.type.prefix) {
|
|
2134
2089
|
var u = this.startNode(), l = this.type === o.incDec;
|
|
2135
|
-
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" &&
|
|
2090
|
+
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" && Ri(u.argument) ? this.raiseRecoverable(u.start, "Deleting local variable in strict mode") : u.operator === "delete" && It(u.argument) ? this.raiseRecoverable(u.start, "Private fields can not be deleted") : t = !0, a = this.finishNode(u, l ? "UpdateExpression" : "UnaryExpression");
|
|
2136
2091
|
} else if (!t && this.type === o.privateId)
|
|
2137
2092
|
(r || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), a = this.parsePrivateIdent(), this.type !== o._in && this.unexpected();
|
|
2138
2093
|
else {
|
|
@@ -2151,8 +2106,8 @@ C.parseMaybeUnary = function(e, t, i, r) {
|
|
|
2151
2106
|
else
|
|
2152
2107
|
return a;
|
|
2153
2108
|
};
|
|
2154
|
-
function
|
|
2155
|
-
return e.type === "Identifier" || e.type === "ParenthesizedExpression" &&
|
|
2109
|
+
function Ri(e) {
|
|
2110
|
+
return e.type === "Identifier" || e.type === "ParenthesizedExpression" && Ri(e.expression);
|
|
2156
2111
|
}
|
|
2157
2112
|
function It(e) {
|
|
2158
2113
|
return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && It(e.expression) || e.type === "ParenthesizedExpression" && It(e.expression);
|
|
@@ -2330,7 +2285,7 @@ C.parseParenItem = function(e) {
|
|
|
2330
2285
|
C.parseParenArrowList = function(e, t, i, r) {
|
|
2331
2286
|
return this.parseArrowExpression(this.startNodeAt(e, t), i, !1, r);
|
|
2332
2287
|
};
|
|
2333
|
-
var
|
|
2288
|
+
var Ms = [];
|
|
2334
2289
|
C.parseNew = function() {
|
|
2335
2290
|
this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
|
|
2336
2291
|
var e = this.startNode();
|
|
@@ -2341,7 +2296,7 @@ C.parseNew = function() {
|
|
|
2341
2296
|
return e.property = this.parseIdent(!0), e.property.name !== "target" && this.raiseRecoverable(e.property.start, "The only valid meta property for new is 'new.target'"), i && this.raiseRecoverable(e.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget || this.raiseRecoverable(e.start, "'new.target' can only be used in functions and class static block"), this.finishNode(e, "MetaProperty");
|
|
2342
2297
|
}
|
|
2343
2298
|
var r = this.start, s = this.startLoc;
|
|
2344
|
-
return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), r, s, !0, !1), this.eat(o.parenL) ? e.arguments = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments =
|
|
2299
|
+
return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), r, s, !0, !1), this.eat(o.parenL) ? e.arguments = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments = Ms, this.finishNode(e, "NewExpression");
|
|
2345
2300
|
};
|
|
2346
2301
|
C.parseTemplateElement = function(e) {
|
|
2347
2302
|
var t = e.isTagged, i = this.startNode();
|
|
@@ -2415,7 +2370,7 @@ C.initFunction = function(e) {
|
|
|
2415
2370
|
};
|
|
2416
2371
|
C.parseMethod = function(e, t, i) {
|
|
2417
2372
|
var r = this.startNode(), s = this.yieldPos, n = this.awaitPos, a = this.awaitIdentPos;
|
|
2418
|
-
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(Bt(t, r.generator) | ot | (i ?
|
|
2373
|
+
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(Bt(t, r.generator) | ot | (i ? Pi : 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");
|
|
2419
2374
|
};
|
|
2420
2375
|
C.parseArrowExpression = function(e, t, i, r) {
|
|
2421
2376
|
var s = this.yieldPos, n = this.awaitPos, a = this.awaitIdentPos;
|
|
@@ -2429,7 +2384,7 @@ C.parseFunctionBody = function(e, t, i, r) {
|
|
|
2429
2384
|
var u = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
|
|
2430
2385
|
(!n || u) && (a = this.strictDirective(this.end), a && u && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
|
|
2431
2386
|
var l = this.labels;
|
|
2432
|
-
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,
|
|
2387
|
+
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, Oi), e.body = this.parseBlock(!1, void 0, a && !n), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = l;
|
|
2433
2388
|
}
|
|
2434
2389
|
this.exitScope();
|
|
2435
2390
|
};
|
|
@@ -2489,7 +2444,7 @@ C.parseAwait = function(e) {
|
|
|
2489
2444
|
};
|
|
2490
2445
|
var Ze = M.prototype;
|
|
2491
2446
|
Ze.raise = function(e, t) {
|
|
2492
|
-
var i =
|
|
2447
|
+
var i = Ei(this.input, e);
|
|
2493
2448
|
t += " (" + i.line + ":" + i.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
|
|
2494
2449
|
var r = new SyntaxError(t);
|
|
2495
2450
|
throw r.pos = e, r.loc = i, r.raisedAt = this.pos, r;
|
|
@@ -2499,11 +2454,11 @@ Ze.curPosition = function() {
|
|
|
2499
2454
|
if (this.options.locations)
|
|
2500
2455
|
return new De(this.curLine, this.pos - this.lineStart);
|
|
2501
2456
|
};
|
|
2502
|
-
var pe = M.prototype,
|
|
2457
|
+
var pe = M.prototype, Ds = function(t) {
|
|
2503
2458
|
this.flags = t, this.var = [], this.lexical = [], this.functions = [];
|
|
2504
2459
|
};
|
|
2505
2460
|
pe.enterScope = function(e) {
|
|
2506
|
-
this.scopeStack.push(new
|
|
2461
|
+
this.scopeStack.push(new Ds(e));
|
|
2507
2462
|
};
|
|
2508
2463
|
pe.exitScope = function() {
|
|
2509
2464
|
this.scopeStack.pop();
|
|
@@ -2516,16 +2471,16 @@ pe.declareName = function(e, t, i) {
|
|
|
2516
2471
|
if (t === ce) {
|
|
2517
2472
|
var s = this.currentScope();
|
|
2518
2473
|
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];
|
|
2519
|
-
} else if (t ===
|
|
2474
|
+
} else if (t === Vi) {
|
|
2520
2475
|
var n = this.currentScope();
|
|
2521
2476
|
n.lexical.push(e);
|
|
2522
|
-
} else if (t ===
|
|
2477
|
+
} else if (t === Ti) {
|
|
2523
2478
|
var a = this.currentScope();
|
|
2524
2479
|
this.treatFunctionsAsVar ? r = a.lexical.indexOf(e) > -1 : r = a.lexical.indexOf(e) > -1 || a.var.indexOf(e) > -1, a.functions.push(e);
|
|
2525
2480
|
} else
|
|
2526
2481
|
for (var u = this.scopeStack.length - 1; u >= 0; --u) {
|
|
2527
2482
|
var l = this.scopeStack[u];
|
|
2528
|
-
if (l.lexical.indexOf(e) > -1 && !(l.flags &
|
|
2483
|
+
if (l.lexical.indexOf(e) > -1 && !(l.flags & Ni && l.lexical[0] === e) || !this.treatFunctionsAsVarInScope(l) && l.functions.indexOf(e) > -1) {
|
|
2529
2484
|
r = !0;
|
|
2530
2485
|
break;
|
|
2531
2486
|
}
|
|
@@ -2563,14 +2518,14 @@ Ue.startNode = function() {
|
|
|
2563
2518
|
Ue.startNodeAt = function(e, t) {
|
|
2564
2519
|
return new ct(this, e, t);
|
|
2565
2520
|
};
|
|
2566
|
-
function
|
|
2521
|
+
function Fi(e, t, i, r) {
|
|
2567
2522
|
return e.type = t, e.end = i, this.options.locations && (e.loc.end = r), this.options.ranges && (e.range[1] = i), e;
|
|
2568
2523
|
}
|
|
2569
2524
|
Ue.finishNode = function(e, t) {
|
|
2570
|
-
return
|
|
2525
|
+
return Fi.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
|
|
2571
2526
|
};
|
|
2572
2527
|
Ue.finishNodeAt = function(e, t, i, r) {
|
|
2573
|
-
return
|
|
2528
|
+
return Fi.call(this, e, t, i, r);
|
|
2574
2529
|
};
|
|
2575
2530
|
Ue.copyNode = function(e) {
|
|
2576
2531
|
var t = new ct(this, e.start, this.startLoc);
|
|
@@ -2578,42 +2533,42 @@ Ue.copyNode = function(e) {
|
|
|
2578
2533
|
t[i] = e[i];
|
|
2579
2534
|
return t;
|
|
2580
2535
|
};
|
|
2581
|
-
var
|
|
2582
|
-
9:
|
|
2583
|
-
10:
|
|
2584
|
-
11:
|
|
2585
|
-
12:
|
|
2586
|
-
13:
|
|
2587
|
-
14:
|
|
2588
|
-
},
|
|
2536
|
+
var Bs = "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", Mi = "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", Di = Mi + " Extended_Pictographic", Bi = Di, ji = Bi + " EBase EComp EMod EPres ExtPict", $i = ji, js = $i, $s = {
|
|
2537
|
+
9: Mi,
|
|
2538
|
+
10: Di,
|
|
2539
|
+
11: Bi,
|
|
2540
|
+
12: ji,
|
|
2541
|
+
13: $i,
|
|
2542
|
+
14: js
|
|
2543
|
+
}, Us = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", zs = {
|
|
2589
2544
|
9: "",
|
|
2590
2545
|
10: "",
|
|
2591
2546
|
11: "",
|
|
2592
2547
|
12: "",
|
|
2593
2548
|
13: "",
|
|
2594
|
-
14:
|
|
2595
|
-
},
|
|
2596
|
-
9:
|
|
2597
|
-
10:
|
|
2598
|
-
11:
|
|
2599
|
-
12:
|
|
2600
|
-
13:
|
|
2601
|
-
14:
|
|
2602
|
-
},
|
|
2603
|
-
function
|
|
2604
|
-
var t =
|
|
2605
|
-
binary: fe(
|
|
2606
|
-
binaryOfStrings: fe(
|
|
2549
|
+
14: Us
|
|
2550
|
+
}, si = "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", Ui = "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", zi = Ui + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", Wi = zi + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", qi = Wi + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", Ki = qi + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", Ws = Ki + " " + Bs, qs = {
|
|
2551
|
+
9: Ui,
|
|
2552
|
+
10: zi,
|
|
2553
|
+
11: Wi,
|
|
2554
|
+
12: qi,
|
|
2555
|
+
13: Ki,
|
|
2556
|
+
14: Ws
|
|
2557
|
+
}, Hi = {};
|
|
2558
|
+
function Ks(e) {
|
|
2559
|
+
var t = Hi[e] = {
|
|
2560
|
+
binary: fe($s[e] + " " + si),
|
|
2561
|
+
binaryOfStrings: fe(zs[e]),
|
|
2607
2562
|
nonBinary: {
|
|
2608
|
-
General_Category: fe(
|
|
2609
|
-
Script: fe(
|
|
2563
|
+
General_Category: fe(si),
|
|
2564
|
+
Script: fe(qs[e])
|
|
2610
2565
|
}
|
|
2611
2566
|
};
|
|
2612
2567
|
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;
|
|
2613
2568
|
}
|
|
2614
|
-
for (var vt = 0,
|
|
2615
|
-
var
|
|
2616
|
-
|
|
2569
|
+
for (var vt = 0, ni = [9, 10, 11, 12, 13, 14]; vt < ni.length; vt += 1) {
|
|
2570
|
+
var Hs = ni[vt];
|
|
2571
|
+
Ks(Hs);
|
|
2617
2572
|
}
|
|
2618
2573
|
var b = M.prototype, et = function(t, i) {
|
|
2619
2574
|
this.parent = t, this.base = i || this;
|
|
@@ -2629,7 +2584,7 @@ et.prototype.sibling = function() {
|
|
|
2629
2584
|
return new et(this.parent, this.base);
|
|
2630
2585
|
};
|
|
2631
2586
|
var se = function(t) {
|
|
2632
|
-
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 =
|
|
2587
|
+
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 = Hi[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;
|
|
2633
2588
|
};
|
|
2634
2589
|
se.prototype.reset = function(t, i, r) {
|
|
2635
2590
|
var s = r.indexOf("v") !== -1, n = r.indexOf("u") !== -1;
|
|
@@ -2686,13 +2641,13 @@ b.validateRegExpFlags = function(e) {
|
|
|
2686
2641
|
}
|
|
2687
2642
|
this.options.ecmaVersion >= 15 && r && s && this.raise(e.start, "Invalid regular expression flag");
|
|
2688
2643
|
};
|
|
2689
|
-
function
|
|
2644
|
+
function Gs(e) {
|
|
2690
2645
|
for (var t in e)
|
|
2691
2646
|
return !0;
|
|
2692
2647
|
return !1;
|
|
2693
2648
|
}
|
|
2694
2649
|
b.validateRegExpPattern = function(e) {
|
|
2695
|
-
this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 &&
|
|
2650
|
+
this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && Gs(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
|
|
2696
2651
|
};
|
|
2697
2652
|
b.regexp_pattern = function(e) {
|
|
2698
2653
|
e.pos = 0, e.lastIntValue = 0, e.lastStringValue = "", e.lastAssertionIsQuantifiable = !1, e.numCapturingParens = 0, e.maxBackReference = 0, e.groupNames = /* @__PURE__ */ Object.create(null), e.backReferenceNames.length = 0, e.branchID = null, this.regexp_disjunction(e), e.pos !== e.source.length && (e.eat(
|
|
@@ -2894,11 +2849,11 @@ b.regexp_eatCapturingGroup = function(e) {
|
|
|
2894
2849
|
return !1;
|
|
2895
2850
|
};
|
|
2896
2851
|
b.regexp_eatModifiers = function(e) {
|
|
2897
|
-
for (var t = "", i = 0; (i = e.current()) !== -1 &&
|
|
2852
|
+
for (var t = "", i = 0; (i = e.current()) !== -1 && Js(i); )
|
|
2898
2853
|
t += ue(i), e.advance();
|
|
2899
2854
|
return t;
|
|
2900
2855
|
};
|
|
2901
|
-
function
|
|
2856
|
+
function Js(e) {
|
|
2902
2857
|
return e === 105 || e === 109 || e === 115;
|
|
2903
2858
|
}
|
|
2904
2859
|
b.regexp_eatExtendedAtom = function(e) {
|
|
@@ -2912,13 +2867,13 @@ b.regexp_eatInvalidBracedQuantifier = function(e) {
|
|
|
2912
2867
|
};
|
|
2913
2868
|
b.regexp_eatSyntaxCharacter = function(e) {
|
|
2914
2869
|
var t = e.current();
|
|
2915
|
-
return
|
|
2870
|
+
return Gi(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
2916
2871
|
};
|
|
2917
|
-
function
|
|
2872
|
+
function Gi(e) {
|
|
2918
2873
|
return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
|
|
2919
2874
|
}
|
|
2920
2875
|
b.regexp_eatPatternCharacters = function(e) {
|
|
2921
|
-
for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !
|
|
2876
|
+
for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !Gi(i); )
|
|
2922
2877
|
e.advance();
|
|
2923
2878
|
return e.pos !== t;
|
|
2924
2879
|
};
|
|
@@ -2968,16 +2923,16 @@ b.regexp_eatRegExpIdentifierName = function(e) {
|
|
|
2968
2923
|
};
|
|
2969
2924
|
b.regexp_eatRegExpIdentifierStart = function(e) {
|
|
2970
2925
|
var t = e.pos, i = this.options.ecmaVersion >= 11, r = e.current(i);
|
|
2971
|
-
return e.advance(i), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (r = e.lastIntValue),
|
|
2926
|
+
return e.advance(i), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (r = e.lastIntValue), Qs(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
|
|
2972
2927
|
};
|
|
2973
|
-
function
|
|
2928
|
+
function Qs(e) {
|
|
2974
2929
|
return ie(e, !0) || e === 36 || e === 95;
|
|
2975
2930
|
}
|
|
2976
2931
|
b.regexp_eatRegExpIdentifierPart = function(e) {
|
|
2977
2932
|
var t = e.pos, i = this.options.ecmaVersion >= 11, r = e.current(i);
|
|
2978
|
-
return e.advance(i), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (r = e.lastIntValue),
|
|
2933
|
+
return e.advance(i), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (r = e.lastIntValue), Ys(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
|
|
2979
2934
|
};
|
|
2980
|
-
function
|
|
2935
|
+
function Ys(e) {
|
|
2981
2936
|
return he(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
|
|
2982
2937
|
}
|
|
2983
2938
|
b.regexp_eatAtomEscape = function(e) {
|
|
@@ -3030,9 +2985,9 @@ b.regexp_eatControlEscape = function(e) {
|
|
|
3030
2985
|
};
|
|
3031
2986
|
b.regexp_eatControlLetter = function(e) {
|
|
3032
2987
|
var t = e.current();
|
|
3033
|
-
return
|
|
2988
|
+
return Ji(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
|
|
3034
2989
|
};
|
|
3035
|
-
function
|
|
2990
|
+
function Ji(e) {
|
|
3036
2991
|
return e >= 65 && e <= 90 || e >= 97 && e <= 122;
|
|
3037
2992
|
}
|
|
3038
2993
|
b.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
@@ -3067,13 +3022,13 @@ b.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
|
3067
3022
|
) && this.regexp_eatHexDigits(e) && e.eat(
|
|
3068
3023
|
125
|
|
3069
3024
|
/* } */
|
|
3070
|
-
) &&
|
|
3025
|
+
) && Xs(e.lastIntValue))
|
|
3071
3026
|
return !0;
|
|
3072
3027
|
r && e.raise("Invalid unicode escape"), e.pos = i;
|
|
3073
3028
|
}
|
|
3074
3029
|
return !1;
|
|
3075
3030
|
};
|
|
3076
|
-
function
|
|
3031
|
+
function Xs(e) {
|
|
3077
3032
|
return e >= 0 && e <= 1114111;
|
|
3078
3033
|
}
|
|
3079
3034
|
b.regexp_eatIdentityEscape = function(e) {
|
|
@@ -3096,10 +3051,10 @@ b.regexp_eatDecimalEscape = function(e) {
|
|
|
3096
3051
|
}
|
|
3097
3052
|
return !1;
|
|
3098
3053
|
};
|
|
3099
|
-
var
|
|
3054
|
+
var Qi = 0, le = 1, Q = 2;
|
|
3100
3055
|
b.regexp_eatCharacterClassEscape = function(e) {
|
|
3101
3056
|
var t = e.current();
|
|
3102
|
-
if (
|
|
3057
|
+
if (Zs(t))
|
|
3103
3058
|
return e.lastIntValue = -1, e.advance(), le;
|
|
3104
3059
|
var i = !1;
|
|
3105
3060
|
if (e.switchU && this.options.ecmaVersion >= 9 && ((i = t === 80) || t === 112)) {
|
|
@@ -3115,9 +3070,9 @@ b.regexp_eatCharacterClassEscape = function(e) {
|
|
|
3115
3070
|
return i && r === Q && e.raise("Invalid property name"), r;
|
|
3116
3071
|
e.raise("Invalid property name");
|
|
3117
3072
|
}
|
|
3118
|
-
return
|
|
3073
|
+
return Qi;
|
|
3119
3074
|
};
|
|
3120
|
-
function
|
|
3075
|
+
function Zs(e) {
|
|
3121
3076
|
return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
|
|
3122
3077
|
}
|
|
3123
3078
|
b.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
@@ -3136,7 +3091,7 @@ b.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
|
3136
3091
|
var s = e.lastStringValue;
|
|
3137
3092
|
return this.regexp_validateUnicodePropertyNameOrValue(e, s);
|
|
3138
3093
|
}
|
|
3139
|
-
return
|
|
3094
|
+
return Qi;
|
|
3140
3095
|
};
|
|
3141
3096
|
b.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
|
|
3142
3097
|
Pe(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(i) || e.raise("Invalid property value");
|
|
@@ -3150,21 +3105,21 @@ b.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
|
3150
3105
|
};
|
|
3151
3106
|
b.regexp_eatUnicodePropertyName = function(e) {
|
|
3152
3107
|
var t = 0;
|
|
3153
|
-
for (e.lastStringValue = "";
|
|
3108
|
+
for (e.lastStringValue = ""; Yi(t = e.current()); )
|
|
3154
3109
|
e.lastStringValue += ue(t), e.advance();
|
|
3155
3110
|
return e.lastStringValue !== "";
|
|
3156
3111
|
};
|
|
3157
|
-
function
|
|
3158
|
-
return
|
|
3112
|
+
function Yi(e) {
|
|
3113
|
+
return Ji(e) || e === 95;
|
|
3159
3114
|
}
|
|
3160
3115
|
b.regexp_eatUnicodePropertyValue = function(e) {
|
|
3161
3116
|
var t = 0;
|
|
3162
|
-
for (e.lastStringValue = "";
|
|
3117
|
+
for (e.lastStringValue = ""; en(t = e.current()); )
|
|
3163
3118
|
e.lastStringValue += ue(t), e.advance();
|
|
3164
3119
|
return e.lastStringValue !== "";
|
|
3165
3120
|
};
|
|
3166
|
-
function
|
|
3167
|
-
return
|
|
3121
|
+
function en(e) {
|
|
3122
|
+
return Yi(e) || ft(e);
|
|
3168
3123
|
}
|
|
3169
3124
|
b.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
|
|
3170
3125
|
return this.regexp_eatUnicodePropertyValue(e);
|
|
@@ -3210,7 +3165,7 @@ b.regexp_eatClassAtom = function(e) {
|
|
|
3210
3165
|
return !0;
|
|
3211
3166
|
if (e.switchU) {
|
|
3212
3167
|
var i = e.current();
|
|
3213
|
-
(i === 99 ||
|
|
3168
|
+
(i === 99 || er(i)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
|
|
3214
3169
|
}
|
|
3215
3170
|
e.pos = t;
|
|
3216
3171
|
}
|
|
@@ -3363,19 +3318,19 @@ b.regexp_eatClassSetCharacter = function(e) {
|
|
|
3363
3318
|
/* b */
|
|
3364
3319
|
) ? (e.lastIntValue = 8, !0) : (e.pos = t, !1);
|
|
3365
3320
|
var i = e.current();
|
|
3366
|
-
return i < 0 || i === e.lookahead() &&
|
|
3321
|
+
return i < 0 || i === e.lookahead() && tn(i) || rn(i) ? !1 : (e.advance(), e.lastIntValue = i, !0);
|
|
3367
3322
|
};
|
|
3368
|
-
function
|
|
3323
|
+
function tn(e) {
|
|
3369
3324
|
return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
|
|
3370
3325
|
}
|
|
3371
|
-
function
|
|
3326
|
+
function rn(e) {
|
|
3372
3327
|
return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
|
|
3373
3328
|
}
|
|
3374
3329
|
b.regexp_eatClassSetReservedPunctuator = function(e) {
|
|
3375
3330
|
var t = e.current();
|
|
3376
|
-
return
|
|
3331
|
+
return sn(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
3377
3332
|
};
|
|
3378
|
-
function
|
|
3333
|
+
function sn(e) {
|
|
3379
3334
|
return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
|
|
3380
3335
|
}
|
|
3381
3336
|
b.regexp_eatClassControlLetter = function(e) {
|
|
@@ -3405,14 +3360,14 @@ function ft(e) {
|
|
|
3405
3360
|
}
|
|
3406
3361
|
b.regexp_eatHexDigits = function(e) {
|
|
3407
3362
|
var t = e.pos, i = 0;
|
|
3408
|
-
for (e.lastIntValue = 0;
|
|
3409
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
3363
|
+
for (e.lastIntValue = 0; Xi(i = e.current()); )
|
|
3364
|
+
e.lastIntValue = 16 * e.lastIntValue + Zi(i), e.advance();
|
|
3410
3365
|
return e.pos !== t;
|
|
3411
3366
|
};
|
|
3412
|
-
function
|
|
3367
|
+
function Xi(e) {
|
|
3413
3368
|
return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
|
|
3414
3369
|
}
|
|
3415
|
-
function
|
|
3370
|
+
function Zi(e) {
|
|
3416
3371
|
return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
|
|
3417
3372
|
}
|
|
3418
3373
|
b.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
@@ -3429,9 +3384,9 @@ b.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
|
3429
3384
|
};
|
|
3430
3385
|
b.regexp_eatOctalDigit = function(e) {
|
|
3431
3386
|
var t = e.current();
|
|
3432
|
-
return
|
|
3387
|
+
return er(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
|
|
3433
3388
|
};
|
|
3434
|
-
function
|
|
3389
|
+
function er(e) {
|
|
3435
3390
|
return e >= 48 && e <= 55;
|
|
3436
3391
|
}
|
|
3437
3392
|
b.regexp_eatFixedHexDigits = function(e, t) {
|
|
@@ -3439,9 +3394,9 @@ b.regexp_eatFixedHexDigits = function(e, t) {
|
|
|
3439
3394
|
e.lastIntValue = 0;
|
|
3440
3395
|
for (var r = 0; r < t; ++r) {
|
|
3441
3396
|
var s = e.current();
|
|
3442
|
-
if (!
|
|
3397
|
+
if (!Xi(s))
|
|
3443
3398
|
return e.pos = i, !1;
|
|
3444
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
3399
|
+
e.lastIntValue = 16 * e.lastIntValue + Zi(s), e.advance();
|
|
3445
3400
|
}
|
|
3446
3401
|
return !0;
|
|
3447
3402
|
};
|
|
@@ -3487,7 +3442,7 @@ A.fullCharCodeAtPos = function() {
|
|
|
3487
3442
|
A.skipBlockComment = function() {
|
|
3488
3443
|
var e = this.options.onComment && this.curPosition(), t = this.pos, i = this.input.indexOf("*/", this.pos += 2);
|
|
3489
3444
|
if (i === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = i + 2, this.options.locations)
|
|
3490
|
-
for (var r = void 0, s = t; (r =
|
|
3445
|
+
for (var r = void 0, s = t; (r = Ci(this.input, s, this.pos)) > -1; )
|
|
3491
3446
|
++this.curLine, s = this.lineStart = r;
|
|
3492
3447
|
this.options.onComment && this.options.onComment(
|
|
3493
3448
|
!0,
|
|
@@ -3538,7 +3493,7 @@ A.skipSpace = function() {
|
|
|
3538
3493
|
}
|
|
3539
3494
|
break;
|
|
3540
3495
|
default:
|
|
3541
|
-
if (e > 8 && e < 14 || e >= 5760 &&
|
|
3496
|
+
if (e > 8 && e < 14 || e >= 5760 && ki.test(String.fromCharCode(e)))
|
|
3542
3497
|
++this.pos;
|
|
3543
3498
|
else
|
|
3544
3499
|
break e;
|
|
@@ -3753,17 +3708,17 @@ A.readInt = function(e, t, i) {
|
|
|
3753
3708
|
}
|
|
3754
3709
|
return r && u === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === n || t != null && this.pos - n !== t ? null : a;
|
|
3755
3710
|
};
|
|
3756
|
-
function
|
|
3711
|
+
function nn(e, t) {
|
|
3757
3712
|
return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
|
|
3758
3713
|
}
|
|
3759
|
-
function
|
|
3714
|
+
function tr(e) {
|
|
3760
3715
|
return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
|
|
3761
3716
|
}
|
|
3762
3717
|
A.readRadixNumber = function(e) {
|
|
3763
3718
|
var t = this.pos;
|
|
3764
3719
|
this.pos += 2;
|
|
3765
3720
|
var i = this.readInt(e);
|
|
3766
|
-
return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i =
|
|
3721
|
+
return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = tr(this.input.slice(t, this.pos)), ++this.pos) : ie(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(o.num, i);
|
|
3767
3722
|
};
|
|
3768
3723
|
A.readNumber = function(e) {
|
|
3769
3724
|
var t = this.pos;
|
|
@@ -3772,11 +3727,11 @@ A.readNumber = function(e) {
|
|
|
3772
3727
|
i && this.strict && this.raise(t, "Invalid number");
|
|
3773
3728
|
var r = this.input.charCodeAt(this.pos);
|
|
3774
3729
|
if (!i && !e && this.options.ecmaVersion >= 11 && r === 110) {
|
|
3775
|
-
var s =
|
|
3730
|
+
var s = tr(this.input.slice(t, this.pos));
|
|
3776
3731
|
return ++this.pos, ie(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(o.num, s);
|
|
3777
3732
|
}
|
|
3778
3733
|
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")), ie(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
3779
|
-
var n =
|
|
3734
|
+
var n = nn(this.input.slice(t, this.pos), i);
|
|
3780
3735
|
return this.finishToken(o.num, n);
|
|
3781
3736
|
};
|
|
3782
3737
|
A.readCodePoint = function() {
|
|
@@ -3799,13 +3754,13 @@ A.readString = function(e) {
|
|
|
3799
3754
|
}
|
|
3800
3755
|
return t += this.input.slice(i, this.pos++), this.finishToken(o.string, t);
|
|
3801
3756
|
};
|
|
3802
|
-
var
|
|
3757
|
+
var ir = {};
|
|
3803
3758
|
A.tryReadTemplateToken = function() {
|
|
3804
3759
|
this.inTemplateElement = !0;
|
|
3805
3760
|
try {
|
|
3806
3761
|
this.readTmplToken();
|
|
3807
3762
|
} catch (e) {
|
|
3808
|
-
if (e ===
|
|
3763
|
+
if (e === ir)
|
|
3809
3764
|
this.readInvalidTemplateToken();
|
|
3810
3765
|
else
|
|
3811
3766
|
throw e;
|
|
@@ -3814,7 +3769,7 @@ A.tryReadTemplateToken = function() {
|
|
|
3814
3769
|
};
|
|
3815
3770
|
A.invalidStringToken = function(e, t) {
|
|
3816
3771
|
if (this.inTemplateElement && this.options.ecmaVersion >= 9)
|
|
3817
|
-
throw
|
|
3772
|
+
throw ir;
|
|
3818
3773
|
this.raise(e, t);
|
|
3819
3774
|
};
|
|
3820
3775
|
A.readTmplToken = function() {
|
|
@@ -3949,14 +3904,14 @@ A.readWord = function() {
|
|
|
3949
3904
|
var e = this.readWord1(), t = o.name;
|
|
3950
3905
|
return this.keywords.test(e) && (t = Ft[e]), this.finishToken(t, e);
|
|
3951
3906
|
};
|
|
3952
|
-
var
|
|
3907
|
+
var an = "8.15.0";
|
|
3953
3908
|
M.acorn = {
|
|
3954
3909
|
Parser: M,
|
|
3955
|
-
version:
|
|
3910
|
+
version: an,
|
|
3956
3911
|
defaultOptions: At,
|
|
3957
3912
|
Position: De,
|
|
3958
3913
|
SourceLocation: at,
|
|
3959
|
-
getLineInfo:
|
|
3914
|
+
getLineInfo: Ei,
|
|
3960
3915
|
Node: ct,
|
|
3961
3916
|
TokenType: I,
|
|
3962
3917
|
tokTypes: o,
|
|
@@ -3968,13 +3923,13 @@ M.acorn = {
|
|
|
3968
3923
|
Token: Ut,
|
|
3969
3924
|
isNewLine: Ne,
|
|
3970
3925
|
lineBreak: K,
|
|
3971
|
-
lineBreakG:
|
|
3972
|
-
nonASCIIwhitespace:
|
|
3926
|
+
lineBreakG: Es,
|
|
3927
|
+
nonASCIIwhitespace: ki
|
|
3973
3928
|
};
|
|
3974
|
-
function
|
|
3929
|
+
function on(e, t) {
|
|
3975
3930
|
return M.parse(e, t);
|
|
3976
3931
|
}
|
|
3977
|
-
const
|
|
3932
|
+
const un = [
|
|
3978
3933
|
{
|
|
3979
3934
|
pattern: /\b(?:import|export|class|new|async|await|yield|throw|try|catch|switch|while|for|do)\b/,
|
|
3980
3935
|
message: "contains unsupported control-flow or module syntax"
|
|
@@ -3999,7 +3954,7 @@ const pn = [
|
|
|
3999
3954
|
pattern: /\bDate\b/,
|
|
4000
3955
|
message: "must not use time-dependent APIs"
|
|
4001
3956
|
}
|
|
4002
|
-
],
|
|
3957
|
+
], ln = {
|
|
4003
3958
|
ImportDeclaration: "contains unsupported control-flow or module syntax",
|
|
4004
3959
|
ImportExpression: "contains unsupported control-flow or module syntax",
|
|
4005
3960
|
ExportNamedDeclaration: "contains unsupported control-flow or module syntax",
|
|
@@ -4019,7 +3974,7 @@ const pn = [
|
|
|
4019
3974
|
ForInStatement: "contains unsupported control-flow or module syntax",
|
|
4020
3975
|
ForOfStatement: "contains unsupported control-flow or module syntax",
|
|
4021
3976
|
DoWhileStatement: "contains unsupported control-flow or module syntax"
|
|
4022
|
-
},
|
|
3977
|
+
}, cn = /* @__PURE__ */ new Set([
|
|
4023
3978
|
"window",
|
|
4024
3979
|
"document",
|
|
4025
3980
|
"globalThis",
|
|
@@ -4031,7 +3986,7 @@ const pn = [
|
|
|
4031
3986
|
"eval",
|
|
4032
3987
|
"setTimeout",
|
|
4033
3988
|
"setInterval"
|
|
4034
|
-
]),
|
|
3989
|
+
]), fn = /* @__PURE__ */ new Set([
|
|
4035
3990
|
"__proto__",
|
|
4036
3991
|
"prototype",
|
|
4037
3992
|
"constructor"
|
|
@@ -4049,18 +4004,18 @@ function Nt(e, t) {
|
|
|
4049
4004
|
}
|
|
4050
4005
|
}
|
|
4051
4006
|
}
|
|
4052
|
-
function
|
|
4053
|
-
if (
|
|
4007
|
+
function ai(e, t) {
|
|
4008
|
+
if (cn.has(e))
|
|
4054
4009
|
throw new Error(`client assigner "${t}" uses blocked runtime globals`);
|
|
4055
|
-
if (
|
|
4010
|
+
if (fn.has(e))
|
|
4056
4011
|
throw new Error(`client assigner "${t}" uses blocked object metaprogramming features`);
|
|
4057
4012
|
if (e === "Date")
|
|
4058
4013
|
throw new Error(`client assigner "${t}" must not use time-dependent APIs`);
|
|
4059
4014
|
}
|
|
4060
|
-
function
|
|
4015
|
+
function hn(e, t) {
|
|
4061
4016
|
let i;
|
|
4062
4017
|
try {
|
|
4063
|
-
i =
|
|
4018
|
+
i = on(e, {
|
|
4064
4019
|
ecmaVersion: 2022,
|
|
4065
4020
|
sourceType: "script"
|
|
4066
4021
|
});
|
|
@@ -4069,7 +4024,7 @@ function yn(e, t) {
|
|
|
4069
4024
|
}
|
|
4070
4025
|
let r = 0, s = !1;
|
|
4071
4026
|
if (Nt(i, (n) => {
|
|
4072
|
-
const a =
|
|
4027
|
+
const a = ln[n.type];
|
|
4073
4028
|
if (a)
|
|
4074
4029
|
throw new Error(`client assigner "${t}" ${a}`);
|
|
4075
4030
|
if (n.type === "FunctionDeclaration" || n.type === "FunctionExpression") {
|
|
@@ -4080,26 +4035,26 @@ function yn(e, t) {
|
|
|
4080
4035
|
}
|
|
4081
4036
|
if (n.type === "ReturnStatement" && (s = !0), n.type === "ThisExpression")
|
|
4082
4037
|
throw new Error(`client assigner "${t}" uses blocked object metaprogramming features`);
|
|
4083
|
-
if (n.type === "Identifier" &&
|
|
4038
|
+
if (n.type === "Identifier" && ai(n.name, t), n.type === "MemberExpression" && n.computed && n.property?.type === "Literal" && typeof n.property.value == "string" && ai(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")
|
|
4084
4039
|
throw new Error(`client assigner "${t}" must not use randomness`);
|
|
4085
4040
|
}), r !== 1)
|
|
4086
4041
|
throw new Error(`client assigner "${t}" must contain exactly one function definition`);
|
|
4087
4042
|
if (!s)
|
|
4088
4043
|
throw new Error(`client assigner "${t}" must return an object containing assigned field values`);
|
|
4089
4044
|
}
|
|
4090
|
-
function
|
|
4045
|
+
function pn(e, t) {
|
|
4091
4046
|
if ((e.match(/\bfunction\b/g) ?? []).length !== 1)
|
|
4092
4047
|
throw new Error(`client assigner "${t}" must contain exactly one function definition`);
|
|
4093
|
-
for (const { pattern: r, message: s } of
|
|
4048
|
+
for (const { pattern: r, message: s } of un)
|
|
4094
4049
|
if (r.test(e))
|
|
4095
4050
|
throw new Error(`client assigner "${t}" ${s}`);
|
|
4096
4051
|
if (!/\breturn\b/.test(e))
|
|
4097
4052
|
throw new Error(`client assigner "${t}" must return an object containing assigned field values`);
|
|
4098
|
-
|
|
4053
|
+
hn(e, t);
|
|
4099
4054
|
}
|
|
4100
4055
|
new TextEncoder();
|
|
4101
4056
|
new TextDecoder();
|
|
4102
|
-
const zt = /* @__PURE__ */ Symbol.for("yaml.alias"),
|
|
4057
|
+
const zt = /* @__PURE__ */ Symbol.for("yaml.alias"), dn = /* @__PURE__ */ Symbol.for("yaml.document"), ye = /* @__PURE__ */ Symbol.for("yaml.map"), rr = /* @__PURE__ */ Symbol.for("yaml.pair"), Wt = /* @__PURE__ */ Symbol.for("yaml.scalar"), ze = /* @__PURE__ */ Symbol.for("yaml.seq"), ne = /* @__PURE__ */ Symbol.for("yaml.node.type"), xe = (e) => !!e && typeof e == "object" && e[ne] === zt, ht = (e) => !!e && typeof e == "object" && e[ne] === dn, sr = (e) => !!e && typeof e == "object" && e[ne] === ye, j = (e) => !!e && typeof e == "object" && e[ne] === rr, D = (e) => !!e && typeof e == "object" && e[ne] === Wt, qt = (e) => !!e && typeof e == "object" && e[ne] === ze;
|
|
4103
4058
|
function H(e) {
|
|
4104
4059
|
if (e && typeof e == "object")
|
|
4105
4060
|
switch (e[ne]) {
|
|
@@ -4120,18 +4075,18 @@ function U(e) {
|
|
|
4120
4075
|
}
|
|
4121
4076
|
return !1;
|
|
4122
4077
|
}
|
|
4123
|
-
const
|
|
4078
|
+
const nr = (e) => (D(e) || H(e)) && !!e.anchor, de = /* @__PURE__ */ Symbol("break visit"), mn = /* @__PURE__ */ Symbol("skip children"), Fe = /* @__PURE__ */ Symbol("remove node");
|
|
4124
4079
|
function pt(e, t) {
|
|
4125
|
-
const i =
|
|
4080
|
+
const i = gn(t);
|
|
4126
4081
|
ht(e) ? Ce(null, e.contents, i, Object.freeze([e])) === Fe && (e.contents = null) : Ce(null, e, i, Object.freeze([]));
|
|
4127
4082
|
}
|
|
4128
4083
|
pt.BREAK = de;
|
|
4129
|
-
pt.SKIP =
|
|
4084
|
+
pt.SKIP = mn;
|
|
4130
4085
|
pt.REMOVE = Fe;
|
|
4131
4086
|
function Ce(e, t, i, r) {
|
|
4132
|
-
const s =
|
|
4087
|
+
const s = yn(e, t, i, r);
|
|
4133
4088
|
if (U(s) || j(s))
|
|
4134
|
-
return
|
|
4089
|
+
return bn(e, r, s), Ce(e, s, i, r);
|
|
4135
4090
|
if (typeof s != "symbol") {
|
|
4136
4091
|
if (H(t)) {
|
|
4137
4092
|
r = Object.freeze(r.concat(t));
|
|
@@ -4159,7 +4114,7 @@ function Ce(e, t, i, r) {
|
|
|
4159
4114
|
}
|
|
4160
4115
|
return s;
|
|
4161
4116
|
}
|
|
4162
|
-
function
|
|
4117
|
+
function gn(e) {
|
|
4163
4118
|
return typeof e == "object" && (e.Collection || e.Node || e.Value) ? Object.assign({
|
|
4164
4119
|
Alias: e.Node,
|
|
4165
4120
|
Map: e.Node,
|
|
@@ -4174,10 +4129,10 @@ function wn(e) {
|
|
|
4174
4129
|
Seq: e.Collection
|
|
4175
4130
|
}, e) : e;
|
|
4176
4131
|
}
|
|
4177
|
-
function
|
|
4132
|
+
function yn(e, t, i, r) {
|
|
4178
4133
|
if (typeof i == "function")
|
|
4179
4134
|
return i(e, t, r);
|
|
4180
|
-
if (
|
|
4135
|
+
if (sr(t))
|
|
4181
4136
|
return i.Map?.(e, t, r);
|
|
4182
4137
|
if (qt(t))
|
|
4183
4138
|
return i.Seq?.(e, t, r);
|
|
@@ -4188,7 +4143,7 @@ function Sn(e, t, i, r) {
|
|
|
4188
4143
|
if (xe(t))
|
|
4189
4144
|
return i.Alias?.(e, t, r);
|
|
4190
4145
|
}
|
|
4191
|
-
function
|
|
4146
|
+
function bn(e, t, i) {
|
|
4192
4147
|
const r = t[t.length - 1];
|
|
4193
4148
|
if (H(r))
|
|
4194
4149
|
r.items[e] = i;
|
|
@@ -4201,7 +4156,7 @@ function _n(e, t, i) {
|
|
|
4201
4156
|
throw new Error(`Cannot replace node with ${s} parent`);
|
|
4202
4157
|
}
|
|
4203
4158
|
}
|
|
4204
|
-
function
|
|
4159
|
+
function ar(e) {
|
|
4205
4160
|
if (/[\x00-\x19\s,[\]{}]/.test(e)) {
|
|
4206
4161
|
const i = `Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;
|
|
4207
4162
|
throw new Error(i);
|
|
@@ -4236,7 +4191,7 @@ function ee(e, t, i) {
|
|
|
4236
4191
|
if (Array.isArray(e))
|
|
4237
4192
|
return e.map((r, s) => ee(r, String(s), i));
|
|
4238
4193
|
if (e && typeof e.toJSON == "function") {
|
|
4239
|
-
if (!i || !
|
|
4194
|
+
if (!i || !nr(e))
|
|
4240
4195
|
return e.toJSON(t, i);
|
|
4241
4196
|
const r = { aliasCount: 0, count: 1, res: void 0 };
|
|
4242
4197
|
i.anchors.set(e, r), i.onCreate = (n) => {
|
|
@@ -4274,7 +4229,7 @@ class Kt {
|
|
|
4274
4229
|
return typeof n == "function" ? Oe(n, { "": u }, "", u) : u;
|
|
4275
4230
|
}
|
|
4276
4231
|
}
|
|
4277
|
-
class
|
|
4232
|
+
class xn extends Kt {
|
|
4278
4233
|
constructor(t) {
|
|
4279
4234
|
super(zt), this.source = t, Object.defineProperty(this, "tag", {
|
|
4280
4235
|
set() {
|
|
@@ -4290,7 +4245,7 @@ class Cn extends Kt {
|
|
|
4290
4245
|
let r;
|
|
4291
4246
|
i?.aliasResolveCache ? r = i.aliasResolveCache : (r = [], pt(t, {
|
|
4292
4247
|
Node: (n, a) => {
|
|
4293
|
-
(xe(a) ||
|
|
4248
|
+
(xe(a) || nr(a)) && r.push(a);
|
|
4294
4249
|
}
|
|
4295
4250
|
}), i && (i.aliasResolveCache = r));
|
|
4296
4251
|
let s;
|
|
@@ -4323,7 +4278,7 @@ class Cn extends Kt {
|
|
|
4323
4278
|
toString(t, i, r) {
|
|
4324
4279
|
const s = `*${this.source}`;
|
|
4325
4280
|
if (t) {
|
|
4326
|
-
if (
|
|
4281
|
+
if (ar(this.source), t.options.verifyAliasOrder && !t.anchors.has(this.source)) {
|
|
4327
4282
|
const n = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
|
|
4328
4283
|
throw new Error(n);
|
|
4329
4284
|
}
|
|
@@ -4350,7 +4305,7 @@ function He(e, t, i) {
|
|
|
4350
4305
|
}
|
|
4351
4306
|
return 1;
|
|
4352
4307
|
}
|
|
4353
|
-
const
|
|
4308
|
+
const or = (e) => !e || typeof e != "function" && typeof e != "object";
|
|
4354
4309
|
class L extends Kt {
|
|
4355
4310
|
constructor(t) {
|
|
4356
4311
|
super(Wt), this.value = t;
|
|
@@ -4367,7 +4322,7 @@ L.BLOCK_LITERAL = "BLOCK_LITERAL";
|
|
|
4367
4322
|
L.PLAIN = "PLAIN";
|
|
4368
4323
|
L.QUOTE_DOUBLE = "QUOTE_DOUBLE";
|
|
4369
4324
|
L.QUOTE_SINGLE = "QUOTE_SINGLE";
|
|
4370
|
-
function
|
|
4325
|
+
function vn(e, t, i) {
|
|
4371
4326
|
return i.find((r) => r.identify?.(e) && !r.format);
|
|
4372
4327
|
}
|
|
4373
4328
|
function tt(e, t, i) {
|
|
@@ -4382,10 +4337,10 @@ function tt(e, t, i) {
|
|
|
4382
4337
|
let l;
|
|
4383
4338
|
if (r && e && typeof e == "object") {
|
|
4384
4339
|
if (l = u.get(e), l)
|
|
4385
|
-
return l.anchor ?? (l.anchor = s(e)), new
|
|
4340
|
+
return l.anchor ?? (l.anchor = s(e)), new xn(l.anchor);
|
|
4386
4341
|
l = { anchor: null, node: null }, u.set(e, l);
|
|
4387
4342
|
}
|
|
4388
|
-
let c =
|
|
4343
|
+
let c = vn(e, t, a.tags);
|
|
4389
4344
|
if (!c) {
|
|
4390
4345
|
if (e && typeof e.toJSON == "function" && (e = e.toJSON()), !e || typeof e != "object") {
|
|
4391
4346
|
const h = new L(e);
|
|
@@ -4397,7 +4352,7 @@ function tt(e, t, i) {
|
|
|
4397
4352
|
const f = c?.createNode ? c.createNode(i.schema, e, i) : typeof c?.nodeClass?.from == "function" ? c.nodeClass.from(i.schema, e, i) : new L(e);
|
|
4398
4353
|
return c.default || (f.tag = c.tag), l && (l.node = f), f;
|
|
4399
4354
|
}
|
|
4400
|
-
function
|
|
4355
|
+
function oi(e, t, i) {
|
|
4401
4356
|
let r = i;
|
|
4402
4357
|
for (let s = t.length - 1; s >= 0; --s) {
|
|
4403
4358
|
const n = t[s];
|
|
@@ -4417,8 +4372,8 @@ function li(e, t, i) {
|
|
|
4417
4372
|
sourceObjects: /* @__PURE__ */ new Map()
|
|
4418
4373
|
});
|
|
4419
4374
|
}
|
|
4420
|
-
const
|
|
4421
|
-
class
|
|
4375
|
+
const wn = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next().done;
|
|
4376
|
+
class ur extends Kt {
|
|
4422
4377
|
constructor(t, i) {
|
|
4423
4378
|
super(t), Object.defineProperty(this, "schema", {
|
|
4424
4379
|
value: i,
|
|
@@ -4442,14 +4397,14 @@ class fr extends Kt {
|
|
|
4442
4397
|
* that already exists in the map.
|
|
4443
4398
|
*/
|
|
4444
4399
|
addIn(t, i) {
|
|
4445
|
-
if (
|
|
4400
|
+
if (wn(t))
|
|
4446
4401
|
this.add(i);
|
|
4447
4402
|
else {
|
|
4448
4403
|
const [r, ...s] = t, n = this.get(r, !0);
|
|
4449
4404
|
if (H(n))
|
|
4450
4405
|
n.addIn(s, i);
|
|
4451
4406
|
else if (n === void 0 && this.schema)
|
|
4452
|
-
this.set(r,
|
|
4407
|
+
this.set(r, oi(this.schema, s, i));
|
|
4453
4408
|
else
|
|
4454
4409
|
throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`);
|
|
4455
4410
|
}
|
|
@@ -4507,20 +4462,20 @@ class fr extends Kt {
|
|
|
4507
4462
|
if (H(n))
|
|
4508
4463
|
n.setIn(s, i);
|
|
4509
4464
|
else if (n === void 0 && this.schema)
|
|
4510
|
-
this.set(r,
|
|
4465
|
+
this.set(r, oi(this.schema, s, i));
|
|
4511
4466
|
else
|
|
4512
4467
|
throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`);
|
|
4513
4468
|
}
|
|
4514
4469
|
}
|
|
4515
4470
|
}
|
|
4516
|
-
const
|
|
4471
|
+
const Sn = (e) => e.replace(/^(?!$)(?: $)?/gm, "#");
|
|
4517
4472
|
function je(e, t) {
|
|
4518
4473
|
return /^\n+$/.test(e) ? e.substring(1) : t ? e.replace(/^(?! *$)/gm, t) : e;
|
|
4519
4474
|
}
|
|
4520
4475
|
const ke = (e, t, i) => e.endsWith(`
|
|
4521
4476
|
`) ? je(i, t) : i.includes(`
|
|
4522
4477
|
`) ? `
|
|
4523
|
-
` + je(i, t) : (e.endsWith(" ") ? "" : " ") + i,
|
|
4478
|
+
` + je(i, t) : (e.endsWith(" ") ? "" : " ") + i, lr = "flow", Pt = "block", Ge = "quoted";
|
|
4524
4479
|
function dt(e, t, i = "flow", { indentAtStart: r, lineWidth: s = 80, minContentWidth: n = 20, onFold: a, onOverflow: u } = {}) {
|
|
4525
4480
|
if (!s || s < 0)
|
|
4526
4481
|
return e;
|
|
@@ -4532,7 +4487,7 @@ function dt(e, t, i = "flow", { indentAtStart: r, lineWidth: s = 80, minContentW
|
|
|
4532
4487
|
let h = s - t.length;
|
|
4533
4488
|
typeof r == "number" && (r > s - Math.max(2, n) ? c.push(0) : h = s - r);
|
|
4534
4489
|
let m, y, S = !1, d = -1, w = -1, p = -1;
|
|
4535
|
-
i === Pt && (d =
|
|
4490
|
+
i === Pt && (d = ui(e, d, t.length), d !== -1 && (h = d + l));
|
|
4536
4491
|
for (let x; x = e[d += 1]; ) {
|
|
4537
4492
|
if (i === Ge && x === "\\") {
|
|
4538
4493
|
switch (w = d, e[d + 1]) {
|
|
@@ -4552,7 +4507,7 @@ function dt(e, t, i = "flow", { indentAtStart: r, lineWidth: s = 80, minContentW
|
|
|
4552
4507
|
}
|
|
4553
4508
|
if (x === `
|
|
4554
4509
|
`)
|
|
4555
|
-
i === Pt && (d =
|
|
4510
|
+
i === Pt && (d = ui(e, d, t.length)), h = d + t.length + l, m = void 0;
|
|
4556
4511
|
else {
|
|
4557
4512
|
if (x === " " && y && y !== " " && y !== `
|
|
4558
4513
|
` && y !== " ") {
|
|
@@ -4587,7 +4542,7 @@ ${t}${e.slice(_ + 1, k)}`);
|
|
|
4587
4542
|
}
|
|
4588
4543
|
return g;
|
|
4589
4544
|
}
|
|
4590
|
-
function
|
|
4545
|
+
function ui(e, t, i) {
|
|
4591
4546
|
let r = t, s = t + 1, n = e[s];
|
|
4592
4547
|
for (; n === " " || n === " "; )
|
|
4593
4548
|
if (t < s + i)
|
|
@@ -4606,7 +4561,7 @@ const mt = (e, t) => ({
|
|
|
4606
4561
|
lineWidth: e.options.lineWidth,
|
|
4607
4562
|
minContentWidth: e.options.minContentWidth
|
|
4608
4563
|
}), gt = (e) => /^(%|---|\.\.\.)/m.test(e);
|
|
4609
|
-
function
|
|
4564
|
+
function _n(e, t, i) {
|
|
4610
4565
|
if (!t || t < 0)
|
|
4611
4566
|
return !1;
|
|
4612
4567
|
const r = t - i, s = e.length;
|
|
@@ -4689,7 +4644,7 @@ function Tt(e, t) {
|
|
|
4689
4644
|
return Me(e, t);
|
|
4690
4645
|
const i = t.indent || (gt(e) ? " " : ""), r = "'" + e.replace(/'/g, "''").replace(/\n+/g, `$&
|
|
4691
4646
|
${i}`) + "'";
|
|
4692
|
-
return t.implicitKey ? r : dt(r, i,
|
|
4647
|
+
return t.implicitKey ? r : dt(r, i, lr, mt(t, !1));
|
|
4693
4648
|
}
|
|
4694
4649
|
function Ae(e, t) {
|
|
4695
4650
|
const { singleQuote: i } = t.options;
|
|
@@ -4715,7 +4670,7 @@ function Je({ comment: e, type: t, value: i }, r, s, n) {
|
|
|
4715
4670
|
const { blockQuote: a, commentString: u, lineWidth: l } = r.options;
|
|
4716
4671
|
if (!a || /\n[\t ]+$/.test(i))
|
|
4717
4672
|
return Ae(i, r);
|
|
4718
|
-
const c = r.indent || (r.forceBlockIndent || gt(i) ? " " : ""), f = a === "literal" ? !0 : a === "folded" || t === L.BLOCK_FOLDED ? !1 : t === L.BLOCK_LITERAL ? !0 : !
|
|
4673
|
+
const c = r.indent || (r.forceBlockIndent || gt(i) ? " " : ""), f = a === "literal" ? !0 : a === "folded" || t === L.BLOCK_FOLDED ? !1 : t === L.BLOCK_LITERAL ? !0 : !_n(i, l, c.length);
|
|
4719
4674
|
if (!i)
|
|
4720
4675
|
return f ? `|
|
|
4721
4676
|
` : `>
|
|
@@ -4762,7 +4717,7 @@ ${c}${ae}`;
|
|
|
4762
4717
|
return i = i.replace(/\n+/g, `$&${c}`), `|${_}
|
|
4763
4718
|
${c}${g}${i}${y}`;
|
|
4764
4719
|
}
|
|
4765
|
-
function
|
|
4720
|
+
function Cn(e, t, i, r) {
|
|
4766
4721
|
const { type: s, value: n } = e, { actualString: a, implicitKey: u, indent: l, indentStep: c, inFlow: f } = t;
|
|
4767
4722
|
if (u && n.includes(`
|
|
4768
4723
|
`) || f && /[[\]{},]/.test(n))
|
|
@@ -4786,9 +4741,9 @@ ${l}`);
|
|
|
4786
4741
|
if (S.some(m) || y?.some(m))
|
|
4787
4742
|
return Ae(n, t);
|
|
4788
4743
|
}
|
|
4789
|
-
return u ? h : dt(h, l,
|
|
4744
|
+
return u ? h : dt(h, l, lr, mt(t, !1));
|
|
4790
4745
|
}
|
|
4791
|
-
function
|
|
4746
|
+
function kn(e, t, i, r) {
|
|
4792
4747
|
const { implicitKey: s, inFlow: n } = t, a = typeof e.value == "string" ? e : Object.assign({}, e, { value: String(e.value) });
|
|
4793
4748
|
let { type: u } = e;
|
|
4794
4749
|
u !== L.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value) && (u = L.QUOTE_DOUBLE);
|
|
@@ -4802,7 +4757,7 @@ function Pn(e, t, i, r) {
|
|
|
4802
4757
|
case L.QUOTE_SINGLE:
|
|
4803
4758
|
return Tt(a.value, t);
|
|
4804
4759
|
case L.PLAIN:
|
|
4805
|
-
return
|
|
4760
|
+
return Cn(a, t, i, r);
|
|
4806
4761
|
default:
|
|
4807
4762
|
return null;
|
|
4808
4763
|
}
|
|
@@ -4815,10 +4770,10 @@ function Pn(e, t, i, r) {
|
|
|
4815
4770
|
}
|
|
4816
4771
|
return c;
|
|
4817
4772
|
}
|
|
4818
|
-
function
|
|
4773
|
+
function An(e, t) {
|
|
4819
4774
|
const i = Object.assign({
|
|
4820
4775
|
blockQuote: !0,
|
|
4821
|
-
commentString:
|
|
4776
|
+
commentString: Sn,
|
|
4822
4777
|
defaultKeyType: null,
|
|
4823
4778
|
defaultStringType: "PLAIN",
|
|
4824
4779
|
directives: null,
|
|
@@ -4856,7 +4811,7 @@ function Tn(e, t) {
|
|
|
4856
4811
|
options: i
|
|
4857
4812
|
};
|
|
4858
4813
|
}
|
|
4859
|
-
function
|
|
4814
|
+
function En(e, t) {
|
|
4860
4815
|
if (t.tag) {
|
|
4861
4816
|
const s = e.filter((n) => n.tag === t.tag);
|
|
4862
4817
|
if (s.length > 0)
|
|
@@ -4879,11 +4834,11 @@ function Vn(e, t) {
|
|
|
4879
4834
|
}
|
|
4880
4835
|
return i;
|
|
4881
4836
|
}
|
|
4882
|
-
function
|
|
4837
|
+
function In(e, t, { anchors: i, doc: r }) {
|
|
4883
4838
|
if (!r.directives)
|
|
4884
4839
|
return "";
|
|
4885
4840
|
const s = [], n = (D(e) || H(e)) && e.anchor;
|
|
4886
|
-
n &&
|
|
4841
|
+
n && ar(n) && (i.add(n), s.push(`&${n}`));
|
|
4887
4842
|
const a = e.tag ?? (t.default ? null : t.tag);
|
|
4888
4843
|
return a && s.push(r.directives.tagString(a)), s.join(" ");
|
|
4889
4844
|
}
|
|
@@ -4899,14 +4854,14 @@ function it(e, t, i, r) {
|
|
|
4899
4854
|
}
|
|
4900
4855
|
let s;
|
|
4901
4856
|
const n = U(e) ? e : t.doc.createNode(e, { onTagObj: (l) => s = l });
|
|
4902
|
-
s ?? (s =
|
|
4903
|
-
const a =
|
|
4857
|
+
s ?? (s = En(t.doc.schema.tags, n));
|
|
4858
|
+
const a = In(n, s, t);
|
|
4904
4859
|
a.length > 0 && (t.indentAtStart = (t.indentAtStart ?? 0) + a.length + 1);
|
|
4905
|
-
const u = typeof s.stringify == "function" ? s.stringify(n, t, i, r) : D(n) ?
|
|
4860
|
+
const u = typeof s.stringify == "function" ? s.stringify(n, t, i, r) : D(n) ? kn(n, t, i, r) : n.toString(t, i, r);
|
|
4906
4861
|
return a ? D(n) || u[0] === "{" || u[0] === "[" ? `${a} ${u}` : `${a}
|
|
4907
4862
|
${t.indent}${u}` : u;
|
|
4908
4863
|
}
|
|
4909
|
-
function
|
|
4864
|
+
function Nn({ key: e, value: t }, i, r, s) {
|
|
4910
4865
|
const { allNullValues: n, doc: a, indent: u, indentStep: l, options: { commentString: c, indentSeq: f, simpleKeys: h } } = i;
|
|
4911
4866
|
let m = U(e) && e.comment || null;
|
|
4912
4867
|
if (h) {
|
|
@@ -4969,7 +4924,7 @@ ${i.indent}`);
|
|
|
4969
4924
|
`) && (O = "");
|
|
4970
4925
|
return w += O + k, i.inFlow ? _ && r && r() : x && !_ ? w += ke(w, i.indent, c(x)) : d && s && s(), w;
|
|
4971
4926
|
}
|
|
4972
|
-
function
|
|
4927
|
+
function Pn(e, t) {
|
|
4973
4928
|
(e === "debug" || e === "warn") && console.warn(t);
|
|
4974
4929
|
}
|
|
4975
4930
|
const qe = "<<", wt = {
|
|
@@ -4978,11 +4933,11 @@ const qe = "<<", wt = {
|
|
|
4978
4933
|
tag: "tag:yaml.org,2002:merge",
|
|
4979
4934
|
test: /^<<$/,
|
|
4980
4935
|
resolve: () => Object.assign(new L(Symbol(qe)), {
|
|
4981
|
-
addToJSMap:
|
|
4936
|
+
addToJSMap: cr
|
|
4982
4937
|
}),
|
|
4983
4938
|
stringify: () => qe
|
|
4984
|
-
},
|
|
4985
|
-
function
|
|
4939
|
+
}, Tn = (e, t) => (wt.identify(t) || D(t) && (!t.type || t.type === L.PLAIN) && wt.identify(t.value)) && e?.doc.schema.tags.some((i) => i.tag === wt.tag && i.default);
|
|
4940
|
+
function cr(e, t, i) {
|
|
4986
4941
|
if (i = e && xe(i) ? i.resolve(e.doc) : i, qt(i))
|
|
4987
4942
|
for (const r of i.items)
|
|
4988
4943
|
St(e, t, r);
|
|
@@ -4994,7 +4949,7 @@ function pr(e, t, i) {
|
|
|
4994
4949
|
}
|
|
4995
4950
|
function St(e, t, i) {
|
|
4996
4951
|
const r = e && xe(i) ? i.resolve(e.doc) : i;
|
|
4997
|
-
if (!
|
|
4952
|
+
if (!sr(r))
|
|
4998
4953
|
throw new Error("Merge sources must be maps or map aliases");
|
|
4999
4954
|
const s = r.toJSON(null, e, Map);
|
|
5000
4955
|
for (const [n, a] of s)
|
|
@@ -5006,11 +4961,11 @@ function St(e, t, i) {
|
|
|
5006
4961
|
});
|
|
5007
4962
|
return t;
|
|
5008
4963
|
}
|
|
5009
|
-
function
|
|
4964
|
+
function fr(e, t, { key: i, value: r }) {
|
|
5010
4965
|
if (U(i) && i.addToJSMap)
|
|
5011
4966
|
i.addToJSMap(e, t, r);
|
|
5012
|
-
else if (
|
|
5013
|
-
|
|
4967
|
+
else if (Tn(e, i))
|
|
4968
|
+
cr(e, t, r);
|
|
5014
4969
|
else {
|
|
5015
4970
|
const s = ee(i, "", e);
|
|
5016
4971
|
if (t instanceof Map)
|
|
@@ -5018,7 +4973,7 @@ function dr(e, t, { key: i, value: r }) {
|
|
|
5018
4973
|
else if (t instanceof Set)
|
|
5019
4974
|
t.add(s);
|
|
5020
4975
|
else {
|
|
5021
|
-
const n =
|
|
4976
|
+
const n = Vn(i, s, e), a = ee(r, n, e);
|
|
5022
4977
|
n in t ? Object.defineProperty(t, n, {
|
|
5023
4978
|
value: a,
|
|
5024
4979
|
writable: !0,
|
|
@@ -5029,13 +4984,13 @@ function dr(e, t, { key: i, value: r }) {
|
|
|
5029
4984
|
}
|
|
5030
4985
|
return t;
|
|
5031
4986
|
}
|
|
5032
|
-
function
|
|
4987
|
+
function Vn(e, t, i) {
|
|
5033
4988
|
if (t === null)
|
|
5034
4989
|
return "";
|
|
5035
4990
|
if (typeof t != "object")
|
|
5036
4991
|
return String(t);
|
|
5037
4992
|
if (U(e) && i?.doc) {
|
|
5038
|
-
const r =
|
|
4993
|
+
const r = An(i.doc, {});
|
|
5039
4994
|
r.anchors = /* @__PURE__ */ new Set();
|
|
5040
4995
|
for (const n of i.anchors.keys())
|
|
5041
4996
|
r.anchors.add(n.anchor);
|
|
@@ -5043,7 +4998,7 @@ function Mn(e, t, i) {
|
|
|
5043
4998
|
const s = e.toString(r);
|
|
5044
4999
|
if (!i.mapKeyWarned) {
|
|
5045
5000
|
let n = JSON.stringify(s);
|
|
5046
|
-
n.length > 40 && (n = n.substring(0, 36) + '..."'),
|
|
5001
|
+
n.length > 40 && (n = n.substring(0, 36) + '..."'), Pn(i.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${n}. Set mapAsMap: true to use object keys.`), i.mapKeyWarned = !0;
|
|
5047
5002
|
}
|
|
5048
5003
|
return s;
|
|
5049
5004
|
}
|
|
@@ -5055,7 +5010,7 @@ function Ht(e, t, i) {
|
|
|
5055
5010
|
}
|
|
5056
5011
|
class oe {
|
|
5057
5012
|
constructor(t, i = null) {
|
|
5058
|
-
Object.defineProperty(this, ne, { value:
|
|
5013
|
+
Object.defineProperty(this, ne, { value: rr }), this.key = t, this.value = i;
|
|
5059
5014
|
}
|
|
5060
5015
|
clone(t) {
|
|
5061
5016
|
let { key: i, value: r } = this;
|
|
@@ -5063,16 +5018,16 @@ class oe {
|
|
|
5063
5018
|
}
|
|
5064
5019
|
toJSON(t, i) {
|
|
5065
5020
|
const r = i?.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
5066
|
-
return
|
|
5021
|
+
return fr(i, r, this);
|
|
5067
5022
|
}
|
|
5068
5023
|
toString(t, i, r) {
|
|
5069
|
-
return t?.doc ?
|
|
5024
|
+
return t?.doc ? Nn(this, t, i, r) : JSON.stringify(this);
|
|
5070
5025
|
}
|
|
5071
5026
|
}
|
|
5072
|
-
function
|
|
5073
|
-
return (t.inFlow ?? e.flow ?
|
|
5027
|
+
function hr(e, t, i) {
|
|
5028
|
+
return (t.inFlow ?? e.flow ? Ln : On)(e, t, i);
|
|
5074
5029
|
}
|
|
5075
|
-
function
|
|
5030
|
+
function On({ comment: e, items: t }, i, { blockItemPrefix: r, flowChars: s, itemIndent: n, onChompKeep: a, onComment: u }) {
|
|
5076
5031
|
const { indent: l, options: { commentString: c } } = i, f = Object.assign({}, i, { indent: n, type: null });
|
|
5077
5032
|
let h = !1;
|
|
5078
5033
|
const m = [];
|
|
@@ -5104,7 +5059,7 @@ ${l}${d}` : `
|
|
|
5104
5059
|
return e ? (y += `
|
|
5105
5060
|
` + je(c(e), l), u && u()) : h && a && a(), y;
|
|
5106
5061
|
}
|
|
5107
|
-
function
|
|
5062
|
+
function Ln({ items: e }, t, { flowChars: i, itemIndent: r }) {
|
|
5108
5063
|
const { indent: s, indentStep: n, flowCollectionPadding: a, options: { commentString: u } } = t;
|
|
5109
5064
|
r += n;
|
|
5110
5065
|
const l = Object.assign({}, t, {
|
|
@@ -5160,7 +5115,7 @@ function me(e, t) {
|
|
|
5160
5115
|
if (j(r) && (r.key === t || r.key === i || D(r.key) && r.key.value === i))
|
|
5161
5116
|
return r;
|
|
5162
5117
|
}
|
|
5163
|
-
class Se extends
|
|
5118
|
+
class Se extends ur {
|
|
5164
5119
|
static get tagName() {
|
|
5165
5120
|
return "tag:yaml.org,2002:map";
|
|
5166
5121
|
}
|
|
@@ -5200,7 +5155,7 @@ class Se extends fr {
|
|
|
5200
5155
|
if (s) {
|
|
5201
5156
|
if (!i)
|
|
5202
5157
|
throw new Error(`Key ${r.key} already set`);
|
|
5203
|
-
D(s.value) &&
|
|
5158
|
+
D(s.value) && or(r.value) ? s.value.value = r.value : s.value = r.value;
|
|
5204
5159
|
} else if (n) {
|
|
5205
5160
|
const a = this.items.findIndex((u) => n(r, u) < 0);
|
|
5206
5161
|
a === -1 ? this.items.push(r) : this.items.splice(a, 0, r);
|
|
@@ -5230,7 +5185,7 @@ class Se extends fr {
|
|
|
5230
5185
|
const s = r ? new r() : i?.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
5231
5186
|
i?.onCreate && i.onCreate(s);
|
|
5232
5187
|
for (const n of this.items)
|
|
5233
|
-
|
|
5188
|
+
fr(i, s, n);
|
|
5234
5189
|
return s;
|
|
5235
5190
|
}
|
|
5236
5191
|
toString(t, i, r) {
|
|
@@ -5239,7 +5194,7 @@ class Se extends fr {
|
|
|
5239
5194
|
for (const s of this.items)
|
|
5240
5195
|
if (!j(s))
|
|
5241
5196
|
throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);
|
|
5242
|
-
return !t.allNullValues && this.hasAllNullValues(!1) && (t = Object.assign({}, t, { allNullValues: !0 })),
|
|
5197
|
+
return !t.allNullValues && this.hasAllNullValues(!1) && (t = Object.assign({}, t, { allNullValues: !0 })), hr(this, t, {
|
|
5243
5198
|
blockItemPrefix: "",
|
|
5244
5199
|
flowChars: { start: "{", end: "}" },
|
|
5245
5200
|
itemIndent: t.indent || "",
|
|
@@ -5248,7 +5203,7 @@ class Se extends fr {
|
|
|
5248
5203
|
});
|
|
5249
5204
|
}
|
|
5250
5205
|
}
|
|
5251
|
-
class
|
|
5206
|
+
class pr extends ur {
|
|
5252
5207
|
static get tagName() {
|
|
5253
5208
|
return "tag:yaml.org,2002:seq";
|
|
5254
5209
|
}
|
|
@@ -5299,7 +5254,7 @@ class gr extends fr {
|
|
|
5299
5254
|
if (typeof r != "number")
|
|
5300
5255
|
throw new Error(`Expected a valid index, not ${t}.`);
|
|
5301
5256
|
const s = this.items[r];
|
|
5302
|
-
D(s) &&
|
|
5257
|
+
D(s) && or(i) ? s.value = i : this.items[r] = i;
|
|
5303
5258
|
}
|
|
5304
5259
|
toJSON(t, i) {
|
|
5305
5260
|
const r = [];
|
|
@@ -5310,7 +5265,7 @@ class gr extends fr {
|
|
|
5310
5265
|
return r;
|
|
5311
5266
|
}
|
|
5312
5267
|
toString(t, i, r) {
|
|
5313
|
-
return t ?
|
|
5268
|
+
return t ? hr(this, t, {
|
|
5314
5269
|
blockItemPrefix: "- ",
|
|
5315
5270
|
flowChars: { start: "[", end: "]" },
|
|
5316
5271
|
itemIndent: (t.indent || "") + " ",
|
|
@@ -5337,8 +5292,8 @@ function Ke(e) {
|
|
|
5337
5292
|
let t = D(e) ? e.value : e;
|
|
5338
5293
|
return t && typeof t == "string" && (t = Number(t)), typeof t == "number" && Number.isInteger(t) && t >= 0 ? t : null;
|
|
5339
5294
|
}
|
|
5340
|
-
function
|
|
5341
|
-
const { replacer: r } = i, s = new
|
|
5295
|
+
function Rn(e, t, i) {
|
|
5296
|
+
const { replacer: r } = i, s = new pr(e);
|
|
5342
5297
|
s.tag = "tag:yaml.org,2002:pairs";
|
|
5343
5298
|
let n = 0;
|
|
5344
5299
|
if (t && Symbol.iterator in Object(t))
|
|
@@ -5362,7 +5317,7 @@ function jn(e, t, i) {
|
|
|
5362
5317
|
}
|
|
5363
5318
|
return s;
|
|
5364
5319
|
}
|
|
5365
|
-
class Gt extends
|
|
5320
|
+
class Gt extends pr {
|
|
5366
5321
|
constructor() {
|
|
5367
5322
|
super(), this.add = Se.prototype.add.bind(this), this.delete = Se.prototype.delete.bind(this), this.get = Se.prototype.get.bind(this), this.has = Se.prototype.has.bind(this), this.set = Se.prototype.set.bind(this), this.tag = Gt.tag;
|
|
5368
5323
|
}
|
|
@@ -5384,7 +5339,7 @@ class Gt extends gr {
|
|
|
5384
5339
|
return r;
|
|
5385
5340
|
}
|
|
5386
5341
|
static from(t, i, r) {
|
|
5387
|
-
const s =
|
|
5342
|
+
const s = Rn(t, i, r), n = new this();
|
|
5388
5343
|
return n.items = s.items, n;
|
|
5389
5344
|
}
|
|
5390
5345
|
}
|
|
@@ -5435,7 +5390,7 @@ new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=
|
|
|
5435
5390
|
new Set(",[]{}");
|
|
5436
5391
|
new Set(` ,[]{}
|
|
5437
5392
|
\r `);
|
|
5438
|
-
const
|
|
5393
|
+
const li = /* @__PURE__ */ new Map(), Fn = Object.freeze({
|
|
5439
5394
|
abs: Math.abs,
|
|
5440
5395
|
ceil: Math.ceil,
|
|
5441
5396
|
floor: Math.floor,
|
|
@@ -5444,14 +5399,14 @@ const fi = /* @__PURE__ */ new Map(), $n = Object.freeze({
|
|
|
5444
5399
|
pow: Math.pow,
|
|
5445
5400
|
round: Math.round,
|
|
5446
5401
|
trunc: Math.trunc
|
|
5447
|
-
}),
|
|
5402
|
+
}), Mn = Object.freeze({
|
|
5448
5403
|
entries: Object.entries,
|
|
5449
5404
|
fromEntries: Object.fromEntries,
|
|
5450
5405
|
keys: Object.keys,
|
|
5451
5406
|
values: Object.values
|
|
5452
|
-
}),
|
|
5407
|
+
}), Dn = Object.freeze({
|
|
5453
5408
|
isArray: Array.isArray
|
|
5454
|
-
}),
|
|
5409
|
+
}), Bn = Object.freeze({
|
|
5455
5410
|
parse: JSON.parse,
|
|
5456
5411
|
stringify: JSON.stringify
|
|
5457
5412
|
});
|
|
@@ -5474,10 +5429,10 @@ function Ot(e, t) {
|
|
|
5474
5429
|
}
|
|
5475
5430
|
return !1;
|
|
5476
5431
|
}
|
|
5477
|
-
function
|
|
5432
|
+
function dr(e) {
|
|
5478
5433
|
return e === null || typeof e > "u" ? !1 : typeof e == "string" ? e.trim().length > 0 : !0;
|
|
5479
5434
|
}
|
|
5480
|
-
function
|
|
5435
|
+
function jn(e) {
|
|
5481
5436
|
if (typeof e == "number")
|
|
5482
5437
|
return Number.isFinite(e) ? e : void 0;
|
|
5483
5438
|
if (typeof e == "string" && e.trim()) {
|
|
@@ -5485,13 +5440,13 @@ function qn(e) {
|
|
|
5485
5440
|
return Number.isFinite(t) ? t : void 0;
|
|
5486
5441
|
}
|
|
5487
5442
|
}
|
|
5488
|
-
function
|
|
5489
|
-
return t ?
|
|
5443
|
+
function $n(e, t) {
|
|
5444
|
+
return t ? di(t.type) && jn(e) === void 0 ? !1 : Zr(e, t.type, t.kwargs) === null : !0;
|
|
5490
5445
|
}
|
|
5491
|
-
function
|
|
5492
|
-
return
|
|
5446
|
+
function Un(e, t, i) {
|
|
5447
|
+
return dr(t) && $n(t, i?.[e]);
|
|
5493
5448
|
}
|
|
5494
|
-
function
|
|
5449
|
+
function zn(e, t) {
|
|
5495
5450
|
const i = /* @__PURE__ */ new Set();
|
|
5496
5451
|
for (const r of e.dependent_fields) {
|
|
5497
5452
|
const s = t.get(r);
|
|
@@ -5499,7 +5454,7 @@ function Gn(e, t) {
|
|
|
5499
5454
|
}
|
|
5500
5455
|
return i;
|
|
5501
5456
|
}
|
|
5502
|
-
function
|
|
5457
|
+
function Wn(e) {
|
|
5503
5458
|
const t = new Map(e.map((a) => [a.id, a])), i = /* @__PURE__ */ new Map();
|
|
5504
5459
|
for (const a of e)
|
|
5505
5460
|
for (const u of a.assigned_fields)
|
|
@@ -5508,7 +5463,7 @@ function Jn(e) {
|
|
|
5508
5463
|
function n(a) {
|
|
5509
5464
|
if (!r.has(a.id)) {
|
|
5510
5465
|
r.add(a.id);
|
|
5511
|
-
for (const u of
|
|
5466
|
+
for (const u of zn(a, i)) {
|
|
5512
5467
|
const l = t.get(u);
|
|
5513
5468
|
l && n(l);
|
|
5514
5469
|
}
|
|
@@ -5519,17 +5474,17 @@ function Jn(e) {
|
|
|
5519
5474
|
n(a);
|
|
5520
5475
|
return s;
|
|
5521
5476
|
}
|
|
5522
|
-
function
|
|
5523
|
-
return e.assigned_fields.every((i) => !
|
|
5477
|
+
function qn(e, t) {
|
|
5478
|
+
return e.assigned_fields.every((i) => !dr(t[i]));
|
|
5524
5479
|
}
|
|
5525
|
-
function
|
|
5526
|
-
return e.dependent_fields.every((r) =>
|
|
5480
|
+
function Kn(e, t, i) {
|
|
5481
|
+
return e.dependent_fields.every((r) => Un(r, t[r], i?.fieldDefinitions));
|
|
5527
5482
|
}
|
|
5528
|
-
function
|
|
5529
|
-
const t =
|
|
5483
|
+
function Hn(e) {
|
|
5484
|
+
const t = li.get(e.function_source);
|
|
5530
5485
|
if (t)
|
|
5531
5486
|
return t;
|
|
5532
|
-
|
|
5487
|
+
pn(e.function_source, e.id);
|
|
5533
5488
|
const r = new Function(
|
|
5534
5489
|
"__math__",
|
|
5535
5490
|
"__object__",
|
|
@@ -5554,17 +5509,17 @@ const Date = undefined;
|
|
|
5554
5509
|
return (${e.function_source});
|
|
5555
5510
|
`
|
|
5556
5511
|
)(
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5512
|
+
Fn,
|
|
5513
|
+
Mn,
|
|
5514
|
+
Dn,
|
|
5515
|
+
Bn
|
|
5561
5516
|
);
|
|
5562
5517
|
if (typeof r != "function")
|
|
5563
5518
|
throw new Error(`client assigner "${e.id}" did not compile to a callable function`);
|
|
5564
|
-
return
|
|
5519
|
+
return li.set(e.function_source, r), r;
|
|
5565
5520
|
}
|
|
5566
|
-
function
|
|
5567
|
-
const i =
|
|
5521
|
+
function Gn(e, t) {
|
|
5522
|
+
const i = Hn(e), r = Object.fromEntries(
|
|
5568
5523
|
e.dependent_fields.map((u) => [u, nt(t[u])])
|
|
5569
5524
|
), s = i(r);
|
|
5570
5525
|
if (!st(s))
|
|
@@ -5579,14 +5534,14 @@ function Zn(e, t) {
|
|
|
5579
5534
|
e.assigned_fields.map((u) => [u, nt(s[u])])
|
|
5580
5535
|
);
|
|
5581
5536
|
}
|
|
5582
|
-
function
|
|
5537
|
+
function Jn(e, t, i) {
|
|
5583
5538
|
if (e.length === 0)
|
|
5584
5539
|
return { changed: !1, changedFields: [] };
|
|
5585
5540
|
const r = new Set(i?.triggerIds ?? []), s = /* @__PURE__ */ new Set();
|
|
5586
|
-
for (const n of
|
|
5587
|
-
if (!
|
|
5541
|
+
for (const n of Wn(e)) {
|
|
5542
|
+
if (!Kn(n, t, i) || !r.has(n.id) && (n.mode === "manual" || n.mode === "auto_first" && !qn(n, t)))
|
|
5588
5543
|
continue;
|
|
5589
|
-
const u =
|
|
5544
|
+
const u = Gn(n, t);
|
|
5590
5545
|
for (const [l, c] of Object.entries(u))
|
|
5591
5546
|
Ot(t[l], c) || (t[l] = c, s.add(l));
|
|
5592
5547
|
}
|
|
@@ -5595,7 +5550,7 @@ function ea(e, t, i) {
|
|
|
5595
5550
|
changedFields: Array.from(s)
|
|
5596
5551
|
};
|
|
5597
5552
|
}
|
|
5598
|
-
function
|
|
5553
|
+
function Ca(e) {
|
|
5599
5554
|
const {
|
|
5600
5555
|
readonly: t,
|
|
5601
5556
|
clientAssigners: i,
|
|
@@ -5609,7 +5564,7 @@ function Va(e) {
|
|
|
5609
5564
|
if (t() || i.value.length === 0)
|
|
5610
5565
|
return !1;
|
|
5611
5566
|
try {
|
|
5612
|
-
return
|
|
5567
|
+
return Jn(i.value, s.var, {
|
|
5613
5568
|
...m,
|
|
5614
5569
|
fieldDefinitions: r?.()
|
|
5615
5570
|
}).changed;
|
|
@@ -5639,7 +5594,7 @@ function Va(e) {
|
|
|
5639
5594
|
triggerManualClientAssigners: h
|
|
5640
5595
|
};
|
|
5641
5596
|
}
|
|
5642
|
-
function
|
|
5597
|
+
function Qn(e, t, i, r, s, n) {
|
|
5643
5598
|
return {
|
|
5644
5599
|
fieldType: e,
|
|
5645
5600
|
fieldKey: t,
|
|
@@ -5654,25 +5609,25 @@ function ta(e, t, i, r, s, n) {
|
|
|
5654
5609
|
fieldState: n.fieldState
|
|
5655
5610
|
};
|
|
5656
5611
|
}
|
|
5657
|
-
function
|
|
5658
|
-
const a =
|
|
5612
|
+
function ka(e, t, i, r, s, n) {
|
|
5613
|
+
const a = Qn(e, t, i, r, s, n), u = n.fieldAdapters?.[e], c = (u ? u(a) : void 0) ?? s;
|
|
5659
5614
|
return n.wrapField ? n.wrapField(t, e, c) : c;
|
|
5660
5615
|
}
|
|
5661
|
-
const
|
|
5662
|
-
let
|
|
5663
|
-
function
|
|
5664
|
-
const t =
|
|
5616
|
+
const ci = /* @__PURE__ */ new WeakMap();
|
|
5617
|
+
let fi = 0;
|
|
5618
|
+
function Yn(e) {
|
|
5619
|
+
const t = ci.get(e);
|
|
5665
5620
|
if (t)
|
|
5666
5621
|
return t;
|
|
5667
|
-
const i = `vt-row-${
|
|
5668
|
-
return
|
|
5622
|
+
const i = `vt-row-${fi}`;
|
|
5623
|
+
return fi += 1, ci.set(e, i), i;
|
|
5669
5624
|
}
|
|
5670
|
-
function
|
|
5625
|
+
function Aa(e) {
|
|
5671
5626
|
if (Array.isArray(e.columns) && e.columns.length > 0) return e.columns;
|
|
5672
5627
|
const t = e.definition?.subvars;
|
|
5673
5628
|
return t && typeof t == "object" ? Object.keys(t) : [];
|
|
5674
5629
|
}
|
|
5675
|
-
function
|
|
5630
|
+
function Ea(e) {
|
|
5676
5631
|
const {
|
|
5677
5632
|
readonly: t,
|
|
5678
5633
|
localRecord: i,
|
|
@@ -5683,18 +5638,18 @@ function Ra(e) {
|
|
|
5683
5638
|
} = e;
|
|
5684
5639
|
let u = null, l = null, c = null, f = null, h = null, m = null, y = null;
|
|
5685
5640
|
function S(N, T) {
|
|
5686
|
-
const P =
|
|
5641
|
+
const P = Ar(i.var[N], T);
|
|
5687
5642
|
return i.var[N] = P, P;
|
|
5688
5643
|
}
|
|
5689
5644
|
function d(N, T) {
|
|
5690
|
-
S(N, T).push(
|
|
5645
|
+
S(N, T).push(kr(T)), r({ rebuild: !0, runClientAssigners: !0 }), n({ tableName: N, columns: T });
|
|
5691
5646
|
}
|
|
5692
5647
|
function w(N, T, P, W) {
|
|
5693
5648
|
const ve = S(N, W);
|
|
5694
5649
|
if (T === P || T < 0 || P < 0 || T >= ve.length || P >= ve.length)
|
|
5695
5650
|
return;
|
|
5696
5651
|
const Qt = ve.splice(T, 1)[0];
|
|
5697
|
-
ve.splice(P, 0, Qt), m =
|
|
5652
|
+
ve.splice(P, 0, Qt), m = Yn(Qt), y && clearTimeout(y), y = setTimeout(() => {
|
|
5698
5653
|
m = null, y = null, s();
|
|
5699
5654
|
}, 520), r({ rebuild: !0, runClientAssigners: !0 });
|
|
5700
5655
|
}
|
|
@@ -5748,18 +5703,18 @@ function Ra(e) {
|
|
|
5748
5703
|
getSettlingVarTableRowKey: ae
|
|
5749
5704
|
};
|
|
5750
5705
|
}
|
|
5751
|
-
function
|
|
5706
|
+
function Xn(e) {
|
|
5752
5707
|
if (!e) return [];
|
|
5753
5708
|
if (Array.isArray(e.examples))
|
|
5754
5709
|
return e.examples.filter((i) => i != null);
|
|
5755
5710
|
const t = e.example;
|
|
5756
5711
|
return t == null ? [] : [t];
|
|
5757
5712
|
}
|
|
5758
|
-
function
|
|
5713
|
+
function Zn(e) {
|
|
5759
5714
|
return e === "auto_force" || e === "auto_readonly" || e === "manual_readonly";
|
|
5760
5715
|
}
|
|
5761
|
-
function
|
|
5762
|
-
const t =
|
|
5716
|
+
function Ia(e) {
|
|
5717
|
+
const t = Nr({});
|
|
5763
5718
|
function i(p, g, x) {
|
|
5764
5719
|
const _ = e.wrapField();
|
|
5765
5720
|
return _ ? _(p, g, x) : x;
|
|
@@ -5771,7 +5726,7 @@ function Fa(e) {
|
|
|
5771
5726
|
function s(p) {
|
|
5772
5727
|
if (e.readonly()) return !0;
|
|
5773
5728
|
const g = e.fieldMeta()?.[p], x = e.fieldState()?.[p];
|
|
5774
|
-
return !!(g?.disabled || x?.disabled ||
|
|
5729
|
+
return !!(g?.disabled || x?.disabled || Zn(g?.assigner?.mode));
|
|
5775
5730
|
}
|
|
5776
5731
|
function n() {
|
|
5777
5732
|
const p = e.now();
|
|
@@ -5808,7 +5763,7 @@ function Fa(e) {
|
|
|
5808
5763
|
if (!_)
|
|
5809
5764
|
return null;
|
|
5810
5765
|
const k = te(g);
|
|
5811
|
-
return k === "int" || k === "integer" ||
|
|
5766
|
+
return k === "int" || k === "integer" || Xt(g, {
|
|
5812
5767
|
inputType: e.fieldMeta()?.[x]?.inputType,
|
|
5813
5768
|
codeLanguage: e.fieldMeta()?.[x]?.codeLanguage,
|
|
5814
5769
|
kwargs: p.definition?.kwargs,
|
|
@@ -5828,7 +5783,7 @@ function Fa(e) {
|
|
|
5828
5783
|
}
|
|
5829
5784
|
return N?.getDisplayValue ? N.getDisplayValue(
|
|
5830
5785
|
l(g, x, O, _, k)
|
|
5831
|
-
) :
|
|
5786
|
+
) : rs(_, k, { type: x, typePlugin: N });
|
|
5832
5787
|
}
|
|
5833
5788
|
function h(p) {
|
|
5834
5789
|
p in t && delete t[p];
|
|
@@ -5843,7 +5798,7 @@ function Fa(e) {
|
|
|
5843
5798
|
const k = te(g);
|
|
5844
5799
|
if (p.definition && Object.prototype.hasOwnProperty.call(p.definition, "default"))
|
|
5845
5800
|
return k === "dnasequence" ? Le(p.definition.default) : p.definition.default;
|
|
5846
|
-
const O =
|
|
5801
|
+
const O = Xt(g, {
|
|
5847
5802
|
inputType: e.fieldMeta()?.[x]?.inputType,
|
|
5848
5803
|
codeLanguage: e.fieldMeta()?.[x]?.codeLanguage,
|
|
5849
5804
|
kwargs: p.definition?.kwargs,
|
|
@@ -5865,9 +5820,9 @@ function Fa(e) {
|
|
|
5865
5820
|
const x = p.definition?.kwargs?.placeholder;
|
|
5866
5821
|
if (typeof x == "string" && x.trim())
|
|
5867
5822
|
return x.trim();
|
|
5868
|
-
const _ =
|
|
5823
|
+
const _ = Xn(g), [k] = _.length > 0 ? _ : Er(p.definition);
|
|
5869
5824
|
if (k != null && typeof k != "object")
|
|
5870
|
-
return
|
|
5825
|
+
return Ir(k);
|
|
5871
5826
|
}
|
|
5872
5827
|
function w(p) {
|
|
5873
5828
|
if (typeof p == "string" && p.trim())
|
|
@@ -5894,7 +5849,7 @@ function Fa(e) {
|
|
|
5894
5849
|
getAimdId: w
|
|
5895
5850
|
};
|
|
5896
5851
|
}
|
|
5897
|
-
function
|
|
5852
|
+
function Na(...e) {
|
|
5898
5853
|
return (t, i, r) => {
|
|
5899
5854
|
for (const s of e) {
|
|
5900
5855
|
const n = s(t, i, r);
|
|
@@ -5904,84 +5859,78 @@ function Ma(...e) {
|
|
|
5904
5859
|
return null;
|
|
5905
5860
|
};
|
|
5906
5861
|
}
|
|
5907
|
-
function
|
|
5908
|
-
const t =
|
|
5862
|
+
function Pa(e) {
|
|
5863
|
+
const t = Pr(null);
|
|
5909
5864
|
let i = !1;
|
|
5910
|
-
const r =
|
|
5865
|
+
const r = Or(() => t.value, {
|
|
5911
5866
|
theme: "github-light",
|
|
5912
5867
|
lineNumbers: !0,
|
|
5913
5868
|
wrap: !0
|
|
5914
5869
|
});
|
|
5915
|
-
return
|
|
5916
|
-
|
|
5870
|
+
return Tr(() => {
|
|
5871
|
+
Lr().then((s) => {
|
|
5917
5872
|
i || (t.value = s, e?.());
|
|
5918
5873
|
}).catch(() => {
|
|
5919
5874
|
});
|
|
5920
|
-
}),
|
|
5875
|
+
}), Vr(() => {
|
|
5921
5876
|
i = !0;
|
|
5922
5877
|
}), {
|
|
5923
5878
|
preRenderer: r
|
|
5924
5879
|
};
|
|
5925
5880
|
}
|
|
5926
5881
|
export {
|
|
5927
|
-
|
|
5882
|
+
xa as $,
|
|
5928
5883
|
Rt as A,
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5884
|
+
cs as B,
|
|
5885
|
+
ls as C,
|
|
5886
|
+
ys as D,
|
|
5932
5887
|
Qe as E,
|
|
5933
|
-
|
|
5934
|
-
|
|
5888
|
+
da as F,
|
|
5889
|
+
ts as G,
|
|
5935
5890
|
te as H,
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5891
|
+
ca as I,
|
|
5892
|
+
ga as J,
|
|
5893
|
+
ka as K,
|
|
5894
|
+
_a as L,
|
|
5895
|
+
ha as M,
|
|
5896
|
+
la as N,
|
|
5897
|
+
gi as O,
|
|
5943
5898
|
Ie as P,
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5899
|
+
Ca as Q,
|
|
5900
|
+
Pa as R,
|
|
5901
|
+
Ia as S,
|
|
5902
|
+
Ea as T,
|
|
5903
|
+
Kr as U,
|
|
5904
|
+
ra as V,
|
|
5950
5905
|
Lt as W,
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
xa as e,
|
|
5966
|
-
Pa as f,
|
|
5967
|
-
Ma as g,
|
|
5968
|
-
pa as h,
|
|
5969
|
-
Aa as i,
|
|
5970
|
-
os as j,
|
|
5906
|
+
Jr as X,
|
|
5907
|
+
Br as Y,
|
|
5908
|
+
ua as Z,
|
|
5909
|
+
Zr as _,
|
|
5910
|
+
va as a,
|
|
5911
|
+
pa as b,
|
|
5912
|
+
ya as c,
|
|
5913
|
+
Qn as d,
|
|
5914
|
+
fa as e,
|
|
5915
|
+
Sa as f,
|
|
5916
|
+
Na as g,
|
|
5917
|
+
na as h,
|
|
5918
|
+
ba as i,
|
|
5919
|
+
is as j,
|
|
5971
5920
|
Ct as k,
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5921
|
+
wi as l,
|
|
5922
|
+
gs as m,
|
|
5923
|
+
ms as n,
|
|
5924
|
+
ds as o,
|
|
5925
|
+
wa as p,
|
|
5926
|
+
Qr as q,
|
|
5927
|
+
sa as r,
|
|
5928
|
+
aa as s,
|
|
5929
|
+
oa as t,
|
|
5930
|
+
rs as u,
|
|
5931
|
+
Xt as v,
|
|
5932
|
+
Aa as w,
|
|
5933
|
+
Yn as x,
|
|
5934
|
+
Hr as y,
|
|
5935
|
+
ma as z
|
|
5987
5936
|
};
|