@illuma-ai/codeviz 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +97 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +993 -943
- package/dist/index.js.map +1 -1
- package/dist/ui/components.d.ts +2 -2
- package/dist/ui/components.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import Ir, { memo as Pt, useState as He, useRef as fe, useCallback as Xe, useEffect as Ne, useMemo as Os, forwardRef as
|
|
1
|
+
import { jsxs as pe, jsx as F, Fragment as Ds } from "react/jsx-runtime";
|
|
2
|
+
import Ir, { memo as Pt, useState as He, useRef as fe, useCallback as Xe, useEffect as Ne, useMemo as Os, forwardRef as z1, useImperativeHandle as H1 } from "react";
|
|
3
3
|
function Di(e, t) {
|
|
4
4
|
(t == null || t > e.length) && (t = e.length);
|
|
5
5
|
for (var r = 0, s = Array(t); r < t; r++) s[r] = e[r];
|
|
6
6
|
return s;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function W1(e) {
|
|
9
9
|
if (Array.isArray(e)) return e;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
return (t =
|
|
11
|
+
function G1(e, t, r) {
|
|
12
|
+
return (t = ec(t)) in e ? Object.defineProperty(e, t, {
|
|
13
13
|
value: r,
|
|
14
14
|
enumerable: !0,
|
|
15
15
|
configurable: !0,
|
|
16
16
|
writable: !0
|
|
17
17
|
}) : e[t] = r, e;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function X1(e, t) {
|
|
20
20
|
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
21
21
|
if (r != null) {
|
|
22
|
-
var s, i, o, c, u = [], f = !0,
|
|
22
|
+
var s, i, o, c, u = [], f = !0, p = !1;
|
|
23
23
|
try {
|
|
24
24
|
if (o = (r = r.call(e)).next, t !== 0) for (; !(f = (s = o.call(r)).done) && (u.push(s.value), u.length !== t); f = !0) ;
|
|
25
25
|
} catch (m) {
|
|
26
|
-
|
|
26
|
+
p = !0, i = m;
|
|
27
27
|
} finally {
|
|
28
28
|
try {
|
|
29
29
|
if (!f && r.return != null && (c = r.return(), Object(c) !== c)) return;
|
|
30
30
|
} finally {
|
|
31
|
-
if (
|
|
31
|
+
if (p) throw i;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
return u;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Y1() {
|
|
38
38
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
39
39
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
40
40
|
}
|
|
@@ -52,23 +52,23 @@ function Mi(e) {
|
|
|
52
52
|
for (var t = 1; t < arguments.length; t++) {
|
|
53
53
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
54
54
|
t % 2 ? Oi(Object(r), !0).forEach(function(s) {
|
|
55
|
-
|
|
55
|
+
G1(e, s, r[s]);
|
|
56
56
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Oi(Object(r)).forEach(function(s) {
|
|
57
57
|
Object.defineProperty(e, s, Object.getOwnPropertyDescriptor(r, s));
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
return e;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function K1(e, t) {
|
|
63
63
|
if (e == null) return {};
|
|
64
|
-
var r, s, i =
|
|
64
|
+
var r, s, i = Q1(e, t);
|
|
65
65
|
if (Object.getOwnPropertySymbols) {
|
|
66
66
|
var o = Object.getOwnPropertySymbols(e);
|
|
67
67
|
for (s = 0; s < o.length; s++) r = o[s], t.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (i[r] = e[r]);
|
|
68
68
|
}
|
|
69
69
|
return i;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Q1(e, t) {
|
|
72
72
|
if (e == null) return {};
|
|
73
73
|
var r = {};
|
|
74
74
|
for (var s in e) if ({}.hasOwnProperty.call(e, s)) {
|
|
@@ -77,10 +77,10 @@ function Qc(e, t) {
|
|
|
77
77
|
}
|
|
78
78
|
return r;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return
|
|
80
|
+
function J1(e, t) {
|
|
81
|
+
return W1(e) || X1(e, t) || tc(e, t) || Y1();
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Z1(e, t) {
|
|
84
84
|
if (typeof e != "object" || !e) return e;
|
|
85
85
|
var r = e[Symbol.toPrimitive];
|
|
86
86
|
if (r !== void 0) {
|
|
@@ -90,18 +90,18 @@ function Zc(e, t) {
|
|
|
90
90
|
}
|
|
91
91
|
return (t === "string" ? String : Number)(e);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
var t =
|
|
93
|
+
function ec(e) {
|
|
94
|
+
var t = Z1(e, "string");
|
|
95
95
|
return typeof t == "symbol" ? t : t + "";
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function tc(e, t) {
|
|
98
98
|
if (e) {
|
|
99
99
|
if (typeof e == "string") return Di(e, t);
|
|
100
100
|
var r = {}.toString.call(e).slice(8, -1);
|
|
101
101
|
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Di(e, t) : void 0;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function rc(e, t, r) {
|
|
105
105
|
return t in e ? Object.defineProperty(e, t, {
|
|
106
106
|
value: r,
|
|
107
107
|
enumerable: !0,
|
|
@@ -123,14 +123,14 @@ function ji(e) {
|
|
|
123
123
|
for (var t = 1; t < arguments.length; t++) {
|
|
124
124
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
125
125
|
t % 2 ? Fi(Object(r), !0).forEach(function(s) {
|
|
126
|
-
|
|
126
|
+
rc(e, s, r[s]);
|
|
127
127
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Fi(Object(r)).forEach(function(s) {
|
|
128
128
|
Object.defineProperty(e, s, Object.getOwnPropertyDescriptor(r, s));
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
return e;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function nc() {
|
|
134
134
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
135
135
|
t[r] = arguments[r];
|
|
136
136
|
return function(s) {
|
|
@@ -153,35 +153,35 @@ function Hr(e) {
|
|
|
153
153
|
function Cn(e) {
|
|
154
154
|
return {}.toString.call(e).includes("Object");
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function sc(e) {
|
|
157
157
|
return !Object.keys(e).length;
|
|
158
158
|
}
|
|
159
159
|
function Jr(e) {
|
|
160
160
|
return typeof e == "function";
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function ic(e, t) {
|
|
163
163
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function ac(e, t) {
|
|
166
166
|
return Cn(t) || Wt("changeType"), Object.keys(t).some(function(r) {
|
|
167
|
-
return !
|
|
167
|
+
return !ic(e, r);
|
|
168
168
|
}) && Wt("changeField"), t;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function oc(e) {
|
|
171
171
|
Jr(e) || Wt("selectorType");
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function cc(e) {
|
|
174
174
|
Jr(e) || Cn(e) || Wt("handlerType"), Cn(e) && Object.values(e).some(function(t) {
|
|
175
175
|
return !Jr(t);
|
|
176
176
|
}) && Wt("handlersType");
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
e || Wt("initialIsRequired"), Cn(e) || Wt("initialType"),
|
|
178
|
+
function lc(e) {
|
|
179
|
+
e || Wt("initialIsRequired"), Cn(e) || Wt("initialType"), sc(e) && Wt("initialContent");
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function uc(e, t) {
|
|
182
182
|
throw new Error(e[t] || e.default);
|
|
183
183
|
}
|
|
184
|
-
var
|
|
184
|
+
var hc = {
|
|
185
185
|
initialIsRequired: "initial state is required",
|
|
186
186
|
initialType: "initial state should be an object",
|
|
187
187
|
initialContent: "initial state shouldn't be an empty object",
|
|
@@ -191,49 +191,49 @@ var p1 = {
|
|
|
191
191
|
changeType: "provided value of changes should be an object",
|
|
192
192
|
changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
|
|
193
193
|
default: "an unknown error accured in `state-local` package"
|
|
194
|
-
}, Wt = Hr(
|
|
195
|
-
changes:
|
|
196
|
-
selector:
|
|
197
|
-
handler:
|
|
198
|
-
initial:
|
|
194
|
+
}, Wt = Hr(uc)(hc), gn = {
|
|
195
|
+
changes: ac,
|
|
196
|
+
selector: oc,
|
|
197
|
+
handler: cc,
|
|
198
|
+
initial: lc
|
|
199
199
|
};
|
|
200
|
-
function
|
|
200
|
+
function pc(e) {
|
|
201
201
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
202
202
|
gn.initial(e), gn.handler(t);
|
|
203
203
|
var r = {
|
|
204
204
|
current: e
|
|
205
|
-
}, s = Hr(
|
|
205
|
+
}, s = Hr(mc)(r, t), i = Hr(dc)(r), o = Hr(gn.changes)(e), c = Hr(fc)(r);
|
|
206
206
|
function u() {
|
|
207
|
-
var
|
|
207
|
+
var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(m) {
|
|
208
208
|
return m;
|
|
209
209
|
};
|
|
210
|
-
return gn.selector(
|
|
210
|
+
return gn.selector(p), p(r.current);
|
|
211
211
|
}
|
|
212
|
-
function f(
|
|
213
|
-
|
|
212
|
+
function f(p) {
|
|
213
|
+
nc(s, i, o, c)(p);
|
|
214
214
|
}
|
|
215
215
|
return [u, f];
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function fc(e, t) {
|
|
218
218
|
return Jr(t) ? t(e.current) : t;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function dc(e, t) {
|
|
221
221
|
return e.current = ji(ji({}, e.current), t), t;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function mc(e, t, r) {
|
|
224
224
|
return Jr(t) ? t(e.current) : Object.keys(r).forEach(function(s) {
|
|
225
225
|
var i;
|
|
226
226
|
return (i = t[s]) === null || i === void 0 ? void 0 : i.call(t, e.current[s]);
|
|
227
227
|
}), r;
|
|
228
228
|
}
|
|
229
|
-
var
|
|
230
|
-
create:
|
|
231
|
-
},
|
|
229
|
+
var gc = {
|
|
230
|
+
create: pc
|
|
231
|
+
}, xc = {
|
|
232
232
|
paths: {
|
|
233
233
|
vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"
|
|
234
234
|
}
|
|
235
235
|
};
|
|
236
|
-
function
|
|
236
|
+
function kc(e) {
|
|
237
237
|
return function t() {
|
|
238
238
|
for (var r = this, s = arguments.length, i = new Array(s), o = 0; o < s; o++)
|
|
239
239
|
i[o] = arguments[o];
|
|
@@ -244,20 +244,20 @@ function k1(e) {
|
|
|
244
244
|
};
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function bc(e) {
|
|
248
248
|
return {}.toString.call(e).includes("Object");
|
|
249
249
|
}
|
|
250
|
-
function
|
|
251
|
-
return e || Bi("configIsRequired"),
|
|
250
|
+
function yc(e) {
|
|
251
|
+
return e || Bi("configIsRequired"), bc(e) || Bi("configType"), e.urls ? (vc(), {
|
|
252
252
|
paths: {
|
|
253
253
|
vs: e.urls.monacoBase
|
|
254
254
|
}
|
|
255
255
|
}) : e;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function vc() {
|
|
258
258
|
console.warn(xa.deprecation);
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function wc(e, t) {
|
|
261
261
|
throw new Error(e[t] || e.default);
|
|
262
262
|
}
|
|
263
263
|
var xa = {
|
|
@@ -274,9 +274,9 @@ var xa = {
|
|
|
274
274
|
|
|
275
275
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
276
276
|
`
|
|
277
|
-
}, Bi =
|
|
278
|
-
config:
|
|
279
|
-
},
|
|
277
|
+
}, Bi = kc(wc)(xa), _c = {
|
|
278
|
+
config: yc
|
|
279
|
+
}, Sc = function() {
|
|
280
280
|
for (var t = arguments.length, r = new Array(t), s = 0; s < t; s++)
|
|
281
281
|
r[s] = arguments[s];
|
|
282
282
|
return function(i) {
|
|
@@ -290,29 +290,29 @@ function ka(e, t) {
|
|
|
290
290
|
t[r] instanceof Object && e[r] && Object.assign(t[r], ka(e[r], t[r]));
|
|
291
291
|
}), Mi(Mi({}, e), t);
|
|
292
292
|
}
|
|
293
|
-
var
|
|
293
|
+
var Ic = {
|
|
294
294
|
type: "cancelation",
|
|
295
295
|
msg: "operation is manually canceled"
|
|
296
296
|
};
|
|
297
297
|
function xs(e) {
|
|
298
298
|
var t = !1, r = new Promise(function(s, i) {
|
|
299
299
|
e.then(function(o) {
|
|
300
|
-
return t ? i(
|
|
300
|
+
return t ? i(Ic) : s(o);
|
|
301
301
|
}), e.catch(i);
|
|
302
302
|
});
|
|
303
303
|
return r.cancel = function() {
|
|
304
304
|
return t = !0;
|
|
305
305
|
}, r;
|
|
306
306
|
}
|
|
307
|
-
var
|
|
308
|
-
config:
|
|
307
|
+
var Cc = ["monaco"], Ec = gc.create({
|
|
308
|
+
config: xc,
|
|
309
309
|
isInitialized: !1,
|
|
310
310
|
resolve: null,
|
|
311
311
|
reject: null,
|
|
312
312
|
monaco: null
|
|
313
|
-
}), ba =
|
|
314
|
-
function
|
|
315
|
-
var t =
|
|
313
|
+
}), ba = J1(Ec, 2), on = ba[0], qn = ba[1];
|
|
314
|
+
function Tc(e) {
|
|
315
|
+
var t = _c.config(e), r = t.monaco, s = K1(t, Cc);
|
|
316
316
|
qn(function(i) {
|
|
317
317
|
return {
|
|
318
318
|
config: ka(i.config, s),
|
|
@@ -320,7 +320,7 @@ function T1(e) {
|
|
|
320
320
|
};
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function Ac() {
|
|
324
324
|
var e = on(function(t) {
|
|
325
325
|
var r = t.monaco, s = t.isInitialized, i = t.resolve;
|
|
326
326
|
return {
|
|
@@ -336,30 +336,30 @@ function A1() {
|
|
|
336
336
|
return e.resolve(e.monaco), xs(ks);
|
|
337
337
|
if (window.monaco && window.monaco.editor)
|
|
338
338
|
return ya(window.monaco), e.resolve(window.monaco), xs(ks);
|
|
339
|
-
|
|
339
|
+
Sc(Pc, Lc)(Rc);
|
|
340
340
|
}
|
|
341
341
|
return xs(ks);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Pc(e) {
|
|
344
344
|
return document.body.appendChild(e);
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function Nc(e) {
|
|
347
347
|
var t = document.createElement("script");
|
|
348
348
|
return e && (t.src = e), t;
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function Lc(e) {
|
|
351
351
|
var t = on(function(s) {
|
|
352
352
|
var i = s.config, o = s.reject;
|
|
353
353
|
return {
|
|
354
354
|
config: i,
|
|
355
355
|
reject: o
|
|
356
356
|
};
|
|
357
|
-
}), r =
|
|
357
|
+
}), r = Nc("".concat(t.config.paths.vs, "/loader.js"));
|
|
358
358
|
return r.onload = function() {
|
|
359
359
|
return e();
|
|
360
360
|
}, r.onerror = t.reject, r;
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Rc() {
|
|
363
363
|
var e = on(function(r) {
|
|
364
364
|
var s = r.config, i = r.resolve, o = r.reject;
|
|
365
365
|
return {
|
|
@@ -380,7 +380,7 @@ function ya(e) {
|
|
|
380
380
|
monaco: e
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function Dc() {
|
|
384
384
|
return on(function(e) {
|
|
385
385
|
var t = e.monaco;
|
|
386
386
|
return t;
|
|
@@ -392,44 +392,44 @@ var ks = new Promise(function(e, t) {
|
|
|
392
392
|
reject: t
|
|
393
393
|
});
|
|
394
394
|
}), va = {
|
|
395
|
-
config:
|
|
396
|
-
init:
|
|
397
|
-
__getMonacoInstance:
|
|
398
|
-
},
|
|
399
|
-
function
|
|
400
|
-
return Ir.createElement("div", { style:
|
|
401
|
-
}
|
|
402
|
-
var
|
|
403
|
-
function $
|
|
404
|
-
return Ir.createElement("section", { style: { ...bs.wrapper, width: e, height: t }, ...c }, !r && Ir.createElement(
|
|
405
|
-
}
|
|
406
|
-
var
|
|
407
|
-
function
|
|
395
|
+
config: Tc,
|
|
396
|
+
init: Ac,
|
|
397
|
+
__getMonacoInstance: Dc
|
|
398
|
+
}, Oc = { wrapper: { display: "flex", position: "relative", textAlign: "initial" }, fullWidth: { width: "100%" }, hide: { display: "none" } }, bs = Oc, Mc = { container: { display: "flex", height: "100%", width: "100%", justifyContent: "center", alignItems: "center" } }, Fc = Mc;
|
|
399
|
+
function jc({ children: e }) {
|
|
400
|
+
return Ir.createElement("div", { style: Fc.container }, e);
|
|
401
|
+
}
|
|
402
|
+
var Bc = jc, Vc = Bc;
|
|
403
|
+
function $c({ width: e, height: t, isEditorReady: r, loading: s, _ref: i, className: o, wrapperProps: c }) {
|
|
404
|
+
return Ir.createElement("section", { style: { ...bs.wrapper, width: e, height: t }, ...c }, !r && Ir.createElement(Vc, null, s), Ir.createElement("div", { ref: i, style: { ...bs.fullWidth, ...!r && bs.hide }, className: o }));
|
|
405
|
+
}
|
|
406
|
+
var qc = $c, wa = Pt(qc);
|
|
407
|
+
function Uc(e) {
|
|
408
408
|
Ne(e, []);
|
|
409
409
|
}
|
|
410
|
-
var _a =
|
|
411
|
-
function
|
|
410
|
+
var _a = Uc;
|
|
411
|
+
function zc(e, t, r = !0) {
|
|
412
412
|
let s = fe(!0);
|
|
413
413
|
Ne(s.current || !r ? () => {
|
|
414
414
|
s.current = !1;
|
|
415
415
|
} : e, t);
|
|
416
416
|
}
|
|
417
|
-
var st =
|
|
417
|
+
var st = zc;
|
|
418
418
|
function Gr() {
|
|
419
419
|
}
|
|
420
420
|
function Sr(e, t, r, s) {
|
|
421
|
-
return
|
|
421
|
+
return Hc(e, s) || Wc(e, t, r, s);
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function Hc(e, t) {
|
|
424
424
|
return e.editor.getModel(Sa(e, t));
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function Wc(e, t, r, s) {
|
|
427
427
|
return e.editor.createModel(t, r, s ? Sa(e, s) : void 0);
|
|
428
428
|
}
|
|
429
429
|
function Sa(e, t) {
|
|
430
430
|
return e.Uri.parse(t);
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function Gc({ original: e, modified: t, language: r, originalLanguage: s, modifiedLanguage: i, originalModelPath: o, modifiedModelPath: c, keepCurrentOriginalModel: u = !1, keepCurrentModifiedModel: f = !1, theme: p = "light", loading: m = "Loading...", options: x = {}, height: _ = "100%", width: y = "100%", className: N, wrapperProps: R = {}, beforeMount: M = Gr, onMount: Y = Gr }) {
|
|
433
433
|
let [T, O] = He(!1), [L, H] = He(!0), G = fe(null), $ = fe(null), C = fe(null), j = fe(Y), U = fe(M), ve = fe(!1);
|
|
434
434
|
_a(() => {
|
|
435
435
|
let z = va.init();
|
|
@@ -455,8 +455,8 @@ function G1({ original: e, modified: t, language: r, originalLanguage: s, modifi
|
|
|
455
455
|
$.current.editor.setModelLanguage(z, s || r || "text"), $.current.editor.setModelLanguage(oe, i || r || "text");
|
|
456
456
|
}, [r, s, i], T), st(() => {
|
|
457
457
|
var z;
|
|
458
|
-
(z = $.current) == null || z.editor.setTheme(
|
|
459
|
-
}, [
|
|
458
|
+
(z = $.current) == null || z.editor.setTheme(p);
|
|
459
|
+
}, [p], T), st(() => {
|
|
460
460
|
var z;
|
|
461
461
|
(z = G.current) == null || z.updateOptions(x);
|
|
462
462
|
}, [x], T);
|
|
@@ -468,8 +468,8 @@ function G1({ original: e, modified: t, language: r, originalLanguage: s, modifi
|
|
|
468
468
|
(ke = G.current) == null || ke.setModel({ original: z, modified: oe });
|
|
469
469
|
}, [r, t, i, e, s, o, c]), Ue = Xe(() => {
|
|
470
470
|
var z;
|
|
471
|
-
!ve.current && C.current && (G.current = $.current.editor.createDiffEditor(C.current, { automaticLayout: !0, ...x }), Me(), (z = $.current) == null || z.editor.setTheme(
|
|
472
|
-
}, [x,
|
|
471
|
+
!ve.current && C.current && (G.current = $.current.editor.createDiffEditor(C.current, { automaticLayout: !0, ...x }), Me(), (z = $.current) == null || z.editor.setTheme(p), O(!0), ve.current = !0);
|
|
472
|
+
}, [x, p, Me]);
|
|
473
473
|
Ne(() => {
|
|
474
474
|
T && j.current(G.current, $.current);
|
|
475
475
|
}, [T]), Ne(() => {
|
|
@@ -482,17 +482,17 @@ function G1({ original: e, modified: t, language: r, originalLanguage: s, modifi
|
|
|
482
482
|
}
|
|
483
483
|
return Ir.createElement(wa, { width: y, height: _, isEditorReady: T, loading: m, _ref: C, className: N, wrapperProps: R });
|
|
484
484
|
}
|
|
485
|
-
var
|
|
486
|
-
Pt(
|
|
487
|
-
function
|
|
485
|
+
var Xc = Gc;
|
|
486
|
+
Pt(Xc);
|
|
487
|
+
function Yc(e) {
|
|
488
488
|
let t = fe();
|
|
489
489
|
return Ne(() => {
|
|
490
490
|
t.current = e;
|
|
491
491
|
}, [e]), t.current;
|
|
492
492
|
}
|
|
493
|
-
var
|
|
494
|
-
function
|
|
495
|
-
let [H, G] = He(!1), [$, C] = He(!0), j = fe(null), U = fe(null), ve = fe(null), Me = fe(T), Ue = fe(Y), Fe = fe(), z = fe(s), oe =
|
|
493
|
+
var Kc = Yc, xn = /* @__PURE__ */ new Map();
|
|
494
|
+
function Qc({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: s, language: i, path: o, theme: c = "light", line: u, loading: f = "Loading...", options: p = {}, overrideServices: m = {}, saveViewState: x = !0, keepCurrentModel: _ = !1, width: y = "100%", height: N = "100%", className: R, wrapperProps: M = {}, beforeMount: Y = Gr, onMount: T = Gr, onChange: O, onValidate: L = Gr }) {
|
|
495
|
+
let [H, G] = He(!1), [$, C] = He(!0), j = fe(null), U = fe(null), ve = fe(null), Me = fe(T), Ue = fe(Y), Fe = fe(), z = fe(s), oe = Kc(o), ke = fe(!1), Z = fe(!1);
|
|
496
496
|
_a(() => {
|
|
497
497
|
let ee = va.init();
|
|
498
498
|
return ee.then((le) => (j.current = le) && C(!1)).catch((le) => (le == null ? void 0 : le.type) !== "cancelation" && console.error("Monaco initialization: error:", le)), () => U.current ? $e() : ee.cancel();
|
|
@@ -502,8 +502,8 @@ function Q1({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: s, lan
|
|
|
502
502
|
ee !== ((le = U.current) == null ? void 0 : le.getModel()) && (x && xn.set(oe, (be = U.current) == null ? void 0 : be.saveViewState()), (Oe = U.current) == null || Oe.setModel(ee), x && ((b = U.current) == null || b.restoreViewState(xn.get(o))));
|
|
503
503
|
}, [o], H), st(() => {
|
|
504
504
|
var ee;
|
|
505
|
-
(ee = U.current) == null || ee.updateOptions(
|
|
506
|
-
}, [
|
|
505
|
+
(ee = U.current) == null || ee.updateOptions(p);
|
|
506
|
+
}, [p], H), st(() => {
|
|
507
507
|
!U.current || s === void 0 || (U.current.getOption(j.current.editor.EditorOption.readOnly) ? U.current.setValue(s) : s !== U.current.getValue() && (Z.current = !0, U.current.executeEdits("", [{ range: U.current.getModel().getFullModelRange(), text: s, forceMoveMarkers: !0 }]), U.current.pushUndoStop(), Z.current = !1));
|
|
508
508
|
}, [s], H), st(() => {
|
|
509
509
|
var le, be;
|
|
@@ -521,9 +521,9 @@ function Q1({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: s, lan
|
|
|
521
521
|
if (!(!ve.current || !j.current) && !ke.current) {
|
|
522
522
|
Ue.current(j.current);
|
|
523
523
|
let le = o || r, be = Sr(j.current, s || e || "", t || i || "", le || "");
|
|
524
|
-
U.current = (ee = j.current) == null ? void 0 : ee.editor.create(ve.current, { model: be, automaticLayout: !0, ...
|
|
524
|
+
U.current = (ee = j.current) == null ? void 0 : ee.editor.create(ve.current, { model: be, automaticLayout: !0, ...p }, m), x && U.current.restoreViewState(xn.get(le)), j.current.editor.setTheme(c), u !== void 0 && U.current.revealLine(u), G(!0), ke.current = !0;
|
|
525
525
|
}
|
|
526
|
-
}, [e, t, r, s, i, o,
|
|
526
|
+
}, [e, t, r, s, i, o, p, m, x, c, u]);
|
|
527
527
|
Ne(() => {
|
|
528
528
|
H && Me.current(U.current, j.current);
|
|
529
529
|
}, [H]), Ne(() => {
|
|
@@ -556,13 +556,13 @@ function Q1({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: s, lan
|
|
|
556
556
|
}
|
|
557
557
|
return Ir.createElement(wa, { width: y, height: N, isEditorReady: H, loading: f, _ref: ve, className: R, wrapperProps: M });
|
|
558
558
|
}
|
|
559
|
-
var
|
|
559
|
+
var Jc = Qc, Zc = Pt(Jc), el = Zc;
|
|
560
560
|
const Ia = Pt(function({
|
|
561
561
|
size: t = "md",
|
|
562
562
|
label: r = "Loading preview..."
|
|
563
563
|
}) {
|
|
564
564
|
const s = t === "sm" ? 8 : t === "md" ? 12 : 16, i = t === "sm" ? 4 : t === "md" ? 6 : 8;
|
|
565
|
-
return /* @__PURE__ */
|
|
565
|
+
return /* @__PURE__ */ pe("div", { style: kn.container, children: [
|
|
566
566
|
/* @__PURE__ */ F("div", { style: { ...kn.cubes, gap: i }, children: [0, 1, 2].map((o) => /* @__PURE__ */ F(
|
|
567
567
|
"div",
|
|
568
568
|
{
|
|
@@ -629,7 +629,7 @@ const Ia = Pt(function({
|
|
|
629
629
|
editorRef: u,
|
|
630
630
|
baseCode: f
|
|
631
631
|
}) {
|
|
632
|
-
const
|
|
632
|
+
const p = fe(null), m = fe([]), x = Xe((R) => {
|
|
633
633
|
const M = R.languages.typescript.typescriptDefaults, Y = R.languages.typescript.javascriptDefaults, T = {
|
|
634
634
|
noSemanticValidation: !0,
|
|
635
635
|
noSyntaxValidation: !0,
|
|
@@ -648,7 +648,7 @@ const Ia = Pt(function({
|
|
|
648
648
|
M.setCompilerOptions(O), Y.setCompilerOptions(O);
|
|
649
649
|
}, []), _ = Xe(
|
|
650
650
|
(R) => {
|
|
651
|
-
|
|
651
|
+
p.current = R, u && (u.current = R), sl();
|
|
652
652
|
},
|
|
653
653
|
[u]
|
|
654
654
|
), y = Xe(
|
|
@@ -658,7 +658,7 @@ const Ia = Pt(function({
|
|
|
658
658
|
[s]
|
|
659
659
|
);
|
|
660
660
|
Ne(() => {
|
|
661
|
-
const R =
|
|
661
|
+
const R = p.current;
|
|
662
662
|
if (!R || f == null) {
|
|
663
663
|
R && m.current.length > 0 && (m.current = R.deltaDecorations(m.current, []));
|
|
664
664
|
return;
|
|
@@ -827,9 +827,9 @@ var d;
|
|
|
827
827
|
e[e._async = u] = "_async";
|
|
828
828
|
const f = u + 1;
|
|
829
829
|
e[e._await = f] = "_await";
|
|
830
|
-
const
|
|
831
|
-
e[e._checks =
|
|
832
|
-
const m =
|
|
830
|
+
const p = f + 1;
|
|
831
|
+
e[e._checks = p] = "_checks";
|
|
832
|
+
const m = p + 1;
|
|
833
833
|
e[e._constructor = m] = "_constructor";
|
|
834
834
|
const x = m + 1;
|
|
835
835
|
e[e._declare = x] = "_declare";
|
|
@@ -911,8 +911,8 @@ var n;
|
|
|
911
911
|
e[e.IS_EXPRESSION_START = u] = "IS_EXPRESSION_START";
|
|
912
912
|
const f = 512;
|
|
913
913
|
e[e.num = f] = "num";
|
|
914
|
-
const
|
|
915
|
-
e[e.bigint =
|
|
914
|
+
const p = 1536;
|
|
915
|
+
e[e.bigint = p] = "bigint";
|
|
916
916
|
const m = 2560;
|
|
917
917
|
e[e.decimal = m] = "decimal";
|
|
918
918
|
const x = 3584;
|
|
@@ -1091,10 +1091,10 @@ var n;
|
|
|
1091
1091
|
e[e._yield = ls] = "_yield";
|
|
1092
1092
|
const us = 92688;
|
|
1093
1093
|
e[e._null = us] = "_null";
|
|
1094
|
-
const
|
|
1095
|
-
e[e._true =
|
|
1096
|
-
const
|
|
1097
|
-
e[e._false =
|
|
1094
|
+
const hs = 93712;
|
|
1095
|
+
e[e._true = hs] = "_true";
|
|
1096
|
+
const ps = 94736;
|
|
1097
|
+
e[e._false = ps] = "_false";
|
|
1098
1098
|
const fs = 95256;
|
|
1099
1099
|
e[e._in = fs] = "_in";
|
|
1100
1100
|
const ds = 96280;
|
|
@@ -1103,38 +1103,38 @@ var n;
|
|
|
1103
1103
|
e[e._typeof = ms] = "_typeof";
|
|
1104
1104
|
const gs = 98960;
|
|
1105
1105
|
e[e._void = gs] = "_void";
|
|
1106
|
-
const
|
|
1107
|
-
e[e._delete =
|
|
1108
|
-
const
|
|
1109
|
-
e[e._async =
|
|
1110
|
-
const
|
|
1111
|
-
e[e._get =
|
|
1112
|
-
const
|
|
1113
|
-
e[e._set =
|
|
1114
|
-
const
|
|
1115
|
-
e[e._declare =
|
|
1116
|
-
const
|
|
1117
|
-
e[e._readonly =
|
|
1118
|
-
const
|
|
1119
|
-
e[e._abstract =
|
|
1120
|
-
const
|
|
1121
|
-
e[e._static =
|
|
1122
|
-
const
|
|
1123
|
-
e[e._public =
|
|
1124
|
-
const
|
|
1125
|
-
e[e._private =
|
|
1126
|
-
const
|
|
1127
|
-
e[e._protected =
|
|
1128
|
-
const
|
|
1129
|
-
e[e._override =
|
|
1130
|
-
const
|
|
1131
|
-
e[e._as =
|
|
1132
|
-
const $
|
|
1133
|
-
e[e._enum = $
|
|
1134
|
-
const
|
|
1135
|
-
e[e._type =
|
|
1136
|
-
const
|
|
1137
|
-
e[e._implements =
|
|
1106
|
+
const T1 = 99984;
|
|
1107
|
+
e[e._delete = T1] = "_delete";
|
|
1108
|
+
const A1 = 100880;
|
|
1109
|
+
e[e._async = A1] = "_async";
|
|
1110
|
+
const P1 = 101904;
|
|
1111
|
+
e[e._get = P1] = "_get";
|
|
1112
|
+
const N1 = 102928;
|
|
1113
|
+
e[e._set = N1] = "_set";
|
|
1114
|
+
const L1 = 103952;
|
|
1115
|
+
e[e._declare = L1] = "_declare";
|
|
1116
|
+
const R1 = 104976;
|
|
1117
|
+
e[e._readonly = R1] = "_readonly";
|
|
1118
|
+
const D1 = 106e3;
|
|
1119
|
+
e[e._abstract = D1] = "_abstract";
|
|
1120
|
+
const O1 = 107024;
|
|
1121
|
+
e[e._static = O1] = "_static";
|
|
1122
|
+
const M1 = 107536;
|
|
1123
|
+
e[e._public = M1] = "_public";
|
|
1124
|
+
const F1 = 108560;
|
|
1125
|
+
e[e._private = F1] = "_private";
|
|
1126
|
+
const j1 = 109584;
|
|
1127
|
+
e[e._protected = j1] = "_protected";
|
|
1128
|
+
const B1 = 110608;
|
|
1129
|
+
e[e._override = B1] = "_override";
|
|
1130
|
+
const V1 = 112144;
|
|
1131
|
+
e[e._as = V1] = "_as";
|
|
1132
|
+
const $1 = 113168;
|
|
1133
|
+
e[e._enum = $1] = "_enum";
|
|
1134
|
+
const q1 = 114192;
|
|
1135
|
+
e[e._type = q1] = "_type";
|
|
1136
|
+
const U1 = 115216;
|
|
1137
|
+
e[e._implements = U1] = "_implements";
|
|
1138
1138
|
})(n || (n = {}));
|
|
1139
1139
|
function ol(e) {
|
|
1140
1140
|
switch (e) {
|
|
@@ -1374,8 +1374,8 @@ let Et = class {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
};
|
|
1376
1376
|
class cl {
|
|
1377
|
-
constructor(t, r, s, i, o, c, u, f,
|
|
1378
|
-
this.potentialArrowAt = t, this.noAnonFunctionType = r, this.inDisallowConditionalTypesContext = s, this.tokensLength = i, this.scopesLength = o, this.pos = c, this.type = u, this.contextualKeyword = f, this.start =
|
|
1377
|
+
constructor(t, r, s, i, o, c, u, f, p, m, x, _, y) {
|
|
1378
|
+
this.potentialArrowAt = t, this.noAnonFunctionType = r, this.inDisallowConditionalTypesContext = s, this.tokensLength = i, this.scopesLength = o, this.pos = c, this.type = u, this.contextualKeyword = f, this.start = p, this.end = m, this.isType = x, this.scopeDepth = _, this.error = y;
|
|
1379
1379
|
}
|
|
1380
1380
|
}
|
|
1381
1381
|
class Ke {
|
|
@@ -1474,8 +1474,8 @@ var g;
|
|
|
1474
1474
|
e[e.exclamationMark = u] = "exclamationMark";
|
|
1475
1475
|
const f = 34;
|
|
1476
1476
|
e[e.quotationMark = f] = "quotationMark";
|
|
1477
|
-
const
|
|
1478
|
-
e[e.numberSign =
|
|
1477
|
+
const p = 35;
|
|
1478
|
+
e[e.numberSign = p] = "numberSign";
|
|
1479
1479
|
const m = 36;
|
|
1480
1480
|
e[e.dollarSign = m] = "dollarSign";
|
|
1481
1481
|
const x = 37;
|
|
@@ -1654,10 +1654,10 @@ var g;
|
|
|
1654
1654
|
e[e.leftCurlyBrace = ls] = "leftCurlyBrace";
|
|
1655
1655
|
const us = 124;
|
|
1656
1656
|
e[e.verticalBar = us] = "verticalBar";
|
|
1657
|
-
const
|
|
1658
|
-
e[e.rightCurlyBrace =
|
|
1659
|
-
const
|
|
1660
|
-
e[e.tilde =
|
|
1657
|
+
const hs = 125;
|
|
1658
|
+
e[e.rightCurlyBrace = hs] = "rightCurlyBrace";
|
|
1659
|
+
const ps = 126;
|
|
1660
|
+
e[e.tilde = ps] = "tilde";
|
|
1661
1661
|
const fs = 160;
|
|
1662
1662
|
e[e.nonBreakingSpace = fs] = "nonBreakingSpace";
|
|
1663
1663
|
const ds = 5760;
|
|
@@ -1673,7 +1673,7 @@ function Zr() {
|
|
|
1673
1673
|
}
|
|
1674
1674
|
function ll(e) {
|
|
1675
1675
|
if ("pos" in e) {
|
|
1676
|
-
const t =
|
|
1676
|
+
const t = hl(e.pos);
|
|
1677
1677
|
e.message += ` (${t.line}:${t.column})`, e.loc = t;
|
|
1678
1678
|
}
|
|
1679
1679
|
return e;
|
|
@@ -1683,13 +1683,13 @@ class ul {
|
|
|
1683
1683
|
this.line = t, this.column = r;
|
|
1684
1684
|
}
|
|
1685
1685
|
}
|
|
1686
|
-
function
|
|
1686
|
+
function hl(e) {
|
|
1687
1687
|
let t = 1, r = 1;
|
|
1688
1688
|
for (let s = 0; s < e; s++)
|
|
1689
1689
|
A.charCodeAt(s) === g.lineFeed ? (t++, r = 1) : r++;
|
|
1690
1690
|
return new ul(t, r);
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1692
|
+
function pl(e, t, r, s) {
|
|
1693
1693
|
A = e, a = new Ke(), Ca = 1, Un = t, ue = r, ge = s;
|
|
1694
1694
|
}
|
|
1695
1695
|
function q(e) {
|
|
@@ -1706,7 +1706,7 @@ function De(e) {
|
|
|
1706
1706
|
Ve(e) || re();
|
|
1707
1707
|
}
|
|
1708
1708
|
function it() {
|
|
1709
|
-
return
|
|
1709
|
+
return h(n.eof) || h(n.braceR) || Qe();
|
|
1710
1710
|
}
|
|
1711
1711
|
function Qe() {
|
|
1712
1712
|
const e = a.tokens[a.tokens.length - 1], t = e ? e.end : 0;
|
|
@@ -11148,9 +11148,9 @@ var W;
|
|
|
11148
11148
|
e[e.ObjectShorthandFunctionScopedDeclaration = u] = "ObjectShorthandFunctionScopedDeclaration";
|
|
11149
11149
|
const f = u + 1;
|
|
11150
11150
|
e[e.ObjectShorthandBlockScopedDeclaration = f] = "ObjectShorthandBlockScopedDeclaration";
|
|
11151
|
-
const
|
|
11152
|
-
e[e.ObjectShorthand =
|
|
11153
|
-
const m =
|
|
11151
|
+
const p = f + 1;
|
|
11152
|
+
e[e.ObjectShorthand = p] = "ObjectShorthand";
|
|
11153
|
+
const m = p + 1;
|
|
11154
11154
|
e[e.ImportDeclaration = m] = "ImportDeclaration";
|
|
11155
11155
|
const x = m + 1;
|
|
11156
11156
|
e[e.ObjectKey = x] = "ObjectKey";
|
|
@@ -11227,13 +11227,13 @@ function se(e) {
|
|
|
11227
11227
|
a.isType = e;
|
|
11228
11228
|
}
|
|
11229
11229
|
function k(e) {
|
|
11230
|
-
return
|
|
11230
|
+
return h(e) ? (w(), !0) : !1;
|
|
11231
11231
|
}
|
|
11232
11232
|
function La(e) {
|
|
11233
11233
|
const t = a.isType;
|
|
11234
11234
|
a.isType = !0, k(e), a.isType = t;
|
|
11235
11235
|
}
|
|
11236
|
-
function
|
|
11236
|
+
function h(e) {
|
|
11237
11237
|
return a.type === e;
|
|
11238
11238
|
}
|
|
11239
11239
|
function Ae() {
|
|
@@ -11603,7 +11603,7 @@ function Ol() {
|
|
|
11603
11603
|
}
|
|
11604
11604
|
const e = A.charCodeAt(a.pos);
|
|
11605
11605
|
if (e === g.graveAccent || e === g.dollarSign && A.charCodeAt(a.pos + 1) === g.leftCurlyBrace) {
|
|
11606
|
-
if (a.pos === a.start &&
|
|
11606
|
+
if (a.pos === a.start && h(n.template))
|
|
11607
11607
|
if (e === g.dollarSign) {
|
|
11608
11608
|
a.pos += 2, te(n.dollarBraceL);
|
|
11609
11609
|
return;
|
|
@@ -12391,33 +12391,33 @@ class rr {
|
|
|
12391
12391
|
this.importsToReplace.set(t, `require('${t}');`);
|
|
12392
12392
|
continue;
|
|
12393
12393
|
}
|
|
12394
|
-
const
|
|
12394
|
+
const p = this.getFreeIdentifierForPath(t);
|
|
12395
12395
|
let m;
|
|
12396
|
-
this.enableLegacyTypeScriptModuleInterop ? m =
|
|
12397
|
-
let x = `var ${
|
|
12396
|
+
this.enableLegacyTypeScriptModuleInterop ? m = p : m = i.length > 0 ? i[0] : this.getFreeIdentifierForPath(t);
|
|
12397
|
+
let x = `var ${p} = require('${t}');`;
|
|
12398
12398
|
if (i.length > 0)
|
|
12399
12399
|
for (const _ of i) {
|
|
12400
|
-
const y = this.enableLegacyTypeScriptModuleInterop ?
|
|
12400
|
+
const y = this.enableLegacyTypeScriptModuleInterop ? p : `${this.helperManager.getHelperName("interopRequireWildcard")}(${p})`;
|
|
12401
12401
|
x += ` var ${_} = ${y};`;
|
|
12402
12402
|
}
|
|
12403
|
-
else u.length > 0 && m !==
|
|
12403
|
+
else u.length > 0 && m !== p ? x += ` var ${m} = ${this.helperManager.getHelperName(
|
|
12404
12404
|
"interopRequireWildcard"
|
|
12405
|
-
)}(${
|
|
12405
|
+
)}(${p});` : s.length > 0 && m !== p && (x += ` var ${m} = ${this.helperManager.getHelperName(
|
|
12406
12406
|
"interopRequireDefault"
|
|
12407
|
-
)}(${
|
|
12407
|
+
)}(${p});`);
|
|
12408
12408
|
for (const { importedName: _, localName: y } of c)
|
|
12409
12409
|
x += ` ${this.helperManager.getHelperName(
|
|
12410
12410
|
"createNamedExportFrom"
|
|
12411
|
-
)}(${
|
|
12411
|
+
)}(${p}, '${y}', '${_}');`;
|
|
12412
12412
|
for (const _ of u)
|
|
12413
12413
|
x += ` exports.${_} = ${m};`;
|
|
12414
12414
|
f && (x += ` ${this.helperManager.getHelperName(
|
|
12415
12415
|
"createStarExport"
|
|
12416
|
-
)}(${
|
|
12416
|
+
)}(${p});`), this.importsToReplace.set(t, x);
|
|
12417
12417
|
for (const _ of s)
|
|
12418
12418
|
this.identifierReplacements.set(_, `${m}.default`);
|
|
12419
12419
|
for (const { importedName: _, localName: y } of o)
|
|
12420
|
-
this.identifierReplacements.set(y, `${
|
|
12420
|
+
this.identifierReplacements.set(y, `${p}.${_}`);
|
|
12421
12421
|
}
|
|
12422
12422
|
}
|
|
12423
12423
|
getFreeIdentifierForPath(t) {
|
|
@@ -12621,9 +12621,9 @@ function Wl(e) {
|
|
|
12621
12621
|
const u = e[c];
|
|
12622
12622
|
if (c > 0 && t.write(Ul), u.length === 0) continue;
|
|
12623
12623
|
let f = 0;
|
|
12624
|
-
for (let
|
|
12625
|
-
const m = u[
|
|
12626
|
-
|
|
12624
|
+
for (let p = 0; p < u.length; p++) {
|
|
12625
|
+
const m = u[p];
|
|
12626
|
+
p > 0 && t.write(ql), f = Ur(t, m[0], f), m.length !== 1 && (r = Ur(t, m[1], r), s = Ur(t, m[2], s), i = Ur(t, m[3], i), m.length !== 4 && (o = Ur(t, m[4], o)));
|
|
12627
12627
|
}
|
|
12628
12628
|
}
|
|
12629
12629
|
return t.flush();
|
|
@@ -12646,7 +12646,7 @@ var sr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
12646
12646
|
function f(T) {
|
|
12647
12647
|
return T.startsWith("file:");
|
|
12648
12648
|
}
|
|
12649
|
-
function
|
|
12649
|
+
function p(T) {
|
|
12650
12650
|
return /^[.?#]/.test(T);
|
|
12651
12651
|
}
|
|
12652
12652
|
function m(T) {
|
|
@@ -12746,7 +12746,7 @@ var sr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
12746
12746
|
return G;
|
|
12747
12747
|
case 4: {
|
|
12748
12748
|
const $ = L.path.slice(1);
|
|
12749
|
-
return $ ?
|
|
12749
|
+
return $ ? p(O || T) && !p($) ? "./" + $ + G : $ + G : G || ".";
|
|
12750
12750
|
}
|
|
12751
12751
|
case 5:
|
|
12752
12752
|
return L.path + G;
|
|
@@ -12818,12 +12818,12 @@ function nu(e) {
|
|
|
12818
12818
|
}
|
|
12819
12819
|
function su(e, t, r, s, i, o, c, u, f) {
|
|
12820
12820
|
const {
|
|
12821
|
-
_mappings:
|
|
12821
|
+
_mappings: p,
|
|
12822
12822
|
_sources: m,
|
|
12823
12823
|
_sourcesContent: x,
|
|
12824
12824
|
_names: _
|
|
12825
12825
|
// _originalScopes: originalScopes,
|
|
12826
|
-
} = t, y = iu(
|
|
12826
|
+
} = t, y = iu(p, r), N = au(y, s);
|
|
12827
12827
|
if (!i)
|
|
12828
12828
|
return cu(y, N) ? void 0 : Xi(y, N, [s]);
|
|
12829
12829
|
const R = Yl(m, i), M = Ga;
|
|
@@ -12868,31 +12868,31 @@ function lu(e, t, r, s, i, o) {
|
|
|
12868
12868
|
return c.length === 1 ? !1 : r === c[Ql] && s === c[Jl] && i === c[Zl] && o === (c.length === 5 ? c[eu] : Ga);
|
|
12869
12869
|
}
|
|
12870
12870
|
function uu({ code: e, mappings: t }, r, s, i, o) {
|
|
12871
|
-
const c =
|
|
12872
|
-
let f = 0,
|
|
12873
|
-
for (;
|
|
12874
|
-
f++,
|
|
12871
|
+
const c = hu(i, o), u = new tu({ file: s.compiledFilename });
|
|
12872
|
+
let f = 0, p = t[0];
|
|
12873
|
+
for (; p === void 0 && f < t.length - 1; )
|
|
12874
|
+
f++, p = t[f];
|
|
12875
12875
|
let m = 0, x = 0;
|
|
12876
|
-
|
|
12876
|
+
p !== x && ws(u, m, 0, r, m, 0);
|
|
12877
12877
|
for (let R = 0; R < e.length; R++) {
|
|
12878
|
-
if (R ===
|
|
12879
|
-
const M =
|
|
12880
|
-
for (ws(u, m, M, r, m, Y); (
|
|
12881
|
-
f++,
|
|
12878
|
+
if (R === p) {
|
|
12879
|
+
const M = p - x, Y = c[f];
|
|
12880
|
+
for (ws(u, m, M, r, m, Y); (p === R || p === void 0) && f < t.length - 1; )
|
|
12881
|
+
f++, p = t[f];
|
|
12882
12882
|
}
|
|
12883
|
-
e.charCodeAt(R) === g.lineFeed && (m++, x = R + 1,
|
|
12883
|
+
e.charCodeAt(R) === g.lineFeed && (m++, x = R + 1, p !== x && ws(u, m, 0, r, m, 0));
|
|
12884
12884
|
}
|
|
12885
12885
|
const { sourceRoot: _, sourcesContent: y, ...N } = nu(u);
|
|
12886
12886
|
return N;
|
|
12887
12887
|
}
|
|
12888
|
-
function
|
|
12888
|
+
function hu(e, t) {
|
|
12889
12889
|
const r = new Array(t.length);
|
|
12890
12890
|
let s = 0, i = t[s].start, o = 0;
|
|
12891
12891
|
for (let c = 0; c < e.length; c++)
|
|
12892
12892
|
c === i && (r[s] = i - o, s++, i = t[s].start), e.charCodeAt(c) === g.lineFeed && (o = c + 1);
|
|
12893
12893
|
return r;
|
|
12894
12894
|
}
|
|
12895
|
-
const
|
|
12895
|
+
const pu = {
|
|
12896
12896
|
require: `
|
|
12897
12897
|
import {createRequire as CREATE_REQUIRE_NAME} from "module";
|
|
12898
12898
|
const require = CREATE_REQUIRE_NAME(import.meta.url);
|
|
@@ -13035,7 +13035,7 @@ class En {
|
|
|
13035
13035
|
emitHelpers() {
|
|
13036
13036
|
let t = "";
|
|
13037
13037
|
this.helperNames.optionalChainDelete && this.getHelperName("optionalChain"), this.helperNames.asyncOptionalChainDelete && this.getHelperName("asyncOptionalChain");
|
|
13038
|
-
for (const [r, s] of Object.entries(
|
|
13038
|
+
for (const [r, s] of Object.entries(pu)) {
|
|
13039
13039
|
const i = this.helperNames[r];
|
|
13040
13040
|
let o = s;
|
|
13041
13041
|
r === "optionalChainDelete" ? o = o.replace("OPTIONAL_CHAIN_NAME", this.helperNames.optionalChain) : r === "asyncOptionalChainDelete" ? o = o.replace(
|
|
@@ -13268,10 +13268,10 @@ var ku = (
|
|
|
13268
13268
|
);
|
|
13269
13269
|
e.TName = u;
|
|
13270
13270
|
function f(b) {
|
|
13271
|
-
return new
|
|
13271
|
+
return new p(b);
|
|
13272
13272
|
}
|
|
13273
13273
|
e.lit = f;
|
|
13274
|
-
var
|
|
13274
|
+
var p = (
|
|
13275
13275
|
/** @class */
|
|
13276
13276
|
function(b) {
|
|
13277
13277
|
t(S, b);
|
|
@@ -13287,7 +13287,7 @@ var ku = (
|
|
|
13287
13287
|
}, S;
|
|
13288
13288
|
}(s)
|
|
13289
13289
|
);
|
|
13290
|
-
e.TLiteral =
|
|
13290
|
+
e.TLiteral = p;
|
|
13291
13291
|
function m(b) {
|
|
13292
13292
|
return new x(i(b));
|
|
13293
13293
|
}
|
|
@@ -13368,7 +13368,7 @@ var ku = (
|
|
|
13368
13368
|
var E = b.call(this) || this;
|
|
13369
13369
|
E.ttypes = I;
|
|
13370
13370
|
var D = I.map(function(J) {
|
|
13371
|
-
return J instanceof u || J instanceof
|
|
13371
|
+
return J instanceof u || J instanceof p ? J.name : null;
|
|
13372
13372
|
}).filter(function(J) {
|
|
13373
13373
|
return J;
|
|
13374
13374
|
}), X = I.length - D.length;
|
|
@@ -13718,9 +13718,9 @@ var ku = (
|
|
|
13718
13718
|
})(Ms);
|
|
13719
13719
|
(function(e) {
|
|
13720
13720
|
var t = sr && sr.__spreadArrays || function() {
|
|
13721
|
-
for (var f = 0,
|
|
13722
|
-
for (var x = Array(f), _ = 0,
|
|
13723
|
-
for (var y = arguments[
|
|
13721
|
+
for (var f = 0, p = 0, m = arguments.length; p < m; p++) f += arguments[p].length;
|
|
13722
|
+
for (var x = Array(f), _ = 0, p = 0; p < m; p++)
|
|
13723
|
+
for (var y = arguments[p], N = 0, R = y.length; N < R; N++, _++)
|
|
13724
13724
|
x[_] = y[N];
|
|
13725
13725
|
return x;
|
|
13726
13726
|
};
|
|
@@ -13788,8 +13788,8 @@ var ku = (
|
|
|
13788
13788
|
return o.VError;
|
|
13789
13789
|
} });
|
|
13790
13790
|
function c() {
|
|
13791
|
-
for (var f = [],
|
|
13792
|
-
f[
|
|
13791
|
+
for (var f = [], p = 0; p < arguments.length; p++)
|
|
13792
|
+
f[p] = arguments[p];
|
|
13793
13793
|
for (var m = Object.assign.apply(Object, t([{}, r.basicTypes], f)), x = {}, _ = 0, y = f; _ < y.length; _++)
|
|
13794
13794
|
for (var N = y[_], R = 0, M = Object.keys(N); R < M.length; R++) {
|
|
13795
13795
|
var Y = M[R];
|
|
@@ -13801,38 +13801,38 @@ var ku = (
|
|
|
13801
13801
|
var u = (
|
|
13802
13802
|
/** @class */
|
|
13803
13803
|
function() {
|
|
13804
|
-
function f(
|
|
13805
|
-
if (x === void 0 && (x = "value"), this.suite =
|
|
13804
|
+
function f(p, m, x) {
|
|
13805
|
+
if (x === void 0 && (x = "value"), this.suite = p, this.ttype = m, this._path = x, this.props = /* @__PURE__ */ new Map(), m instanceof r.TIface)
|
|
13806
13806
|
for (var _ = 0, y = m.props; _ < y.length; _++) {
|
|
13807
13807
|
var N = y[_];
|
|
13808
13808
|
this.props.set(N.name, N.ttype);
|
|
13809
13809
|
}
|
|
13810
|
-
this.checkerPlain = this.ttype.getChecker(
|
|
13810
|
+
this.checkerPlain = this.ttype.getChecker(p, !1), this.checkerStrict = this.ttype.getChecker(p, !0);
|
|
13811
13811
|
}
|
|
13812
|
-
return f.prototype.setReportedPath = function(
|
|
13813
|
-
this._path =
|
|
13814
|
-
}, f.prototype.check = function(
|
|
13815
|
-
return this._doCheck(this.checkerPlain,
|
|
13816
|
-
}, f.prototype.test = function(
|
|
13817
|
-
return this.checkerPlain(
|
|
13818
|
-
}, f.prototype.validate = function(
|
|
13819
|
-
return this._doValidate(this.checkerPlain,
|
|
13820
|
-
}, f.prototype.strictCheck = function(
|
|
13821
|
-
return this._doCheck(this.checkerStrict,
|
|
13822
|
-
}, f.prototype.strictTest = function(
|
|
13823
|
-
return this.checkerStrict(
|
|
13824
|
-
}, f.prototype.strictValidate = function(
|
|
13825
|
-
return this._doValidate(this.checkerStrict,
|
|
13826
|
-
}, f.prototype.getProp = function(
|
|
13827
|
-
var m = this.props.get(
|
|
13812
|
+
return f.prototype.setReportedPath = function(p) {
|
|
13813
|
+
this._path = p;
|
|
13814
|
+
}, f.prototype.check = function(p) {
|
|
13815
|
+
return this._doCheck(this.checkerPlain, p);
|
|
13816
|
+
}, f.prototype.test = function(p) {
|
|
13817
|
+
return this.checkerPlain(p, new s.NoopContext());
|
|
13818
|
+
}, f.prototype.validate = function(p) {
|
|
13819
|
+
return this._doValidate(this.checkerPlain, p);
|
|
13820
|
+
}, f.prototype.strictCheck = function(p) {
|
|
13821
|
+
return this._doCheck(this.checkerStrict, p);
|
|
13822
|
+
}, f.prototype.strictTest = function(p) {
|
|
13823
|
+
return this.checkerStrict(p, new s.NoopContext());
|
|
13824
|
+
}, f.prototype.strictValidate = function(p) {
|
|
13825
|
+
return this._doValidate(this.checkerStrict, p);
|
|
13826
|
+
}, f.prototype.getProp = function(p) {
|
|
13827
|
+
var m = this.props.get(p);
|
|
13828
13828
|
if (!m)
|
|
13829
|
-
throw new Error("Type has no property " +
|
|
13830
|
-
return new f(this.suite, m, this._path + "." +
|
|
13831
|
-
}, f.prototype.methodArgs = function(
|
|
13832
|
-
var m = this._getMethod(
|
|
13829
|
+
throw new Error("Type has no property " + p);
|
|
13830
|
+
return new f(this.suite, m, this._path + "." + p);
|
|
13831
|
+
}, f.prototype.methodArgs = function(p) {
|
|
13832
|
+
var m = this._getMethod(p);
|
|
13833
13833
|
return new f(this.suite, m.paramList);
|
|
13834
|
-
}, f.prototype.methodResult = function(
|
|
13835
|
-
var m = this._getMethod(
|
|
13834
|
+
}, f.prototype.methodResult = function(p) {
|
|
13835
|
+
var m = this._getMethod(p);
|
|
13836
13836
|
return new f(this.suite, m.result);
|
|
13837
13837
|
}, f.prototype.getArgs = function() {
|
|
13838
13838
|
if (!(this.ttype instanceof r.TFunc))
|
|
@@ -13844,24 +13844,24 @@ var ku = (
|
|
|
13844
13844
|
return new f(this.suite, this.ttype.result);
|
|
13845
13845
|
}, f.prototype.getType = function() {
|
|
13846
13846
|
return this.ttype;
|
|
13847
|
-
}, f.prototype._doCheck = function(
|
|
13847
|
+
}, f.prototype._doCheck = function(p, m) {
|
|
13848
13848
|
var x = new s.NoopContext();
|
|
13849
|
-
if (!
|
|
13849
|
+
if (!p(m, x)) {
|
|
13850
13850
|
var _ = new s.DetailContext();
|
|
13851
|
-
throw
|
|
13851
|
+
throw p(m, _), _.getError(this._path);
|
|
13852
13852
|
}
|
|
13853
|
-
}, f.prototype._doValidate = function(
|
|
13853
|
+
}, f.prototype._doValidate = function(p, m) {
|
|
13854
13854
|
var x = new s.NoopContext();
|
|
13855
|
-
if (
|
|
13855
|
+
if (p(m, x))
|
|
13856
13856
|
return null;
|
|
13857
13857
|
var _ = new s.DetailContext();
|
|
13858
|
-
return
|
|
13859
|
-
}, f.prototype._getMethod = function(
|
|
13860
|
-
var m = this.props.get(
|
|
13858
|
+
return p(m, _), _.getErrorDetail(this._path);
|
|
13859
|
+
}, f.prototype._getMethod = function(p) {
|
|
13860
|
+
var m = this.props.get(p);
|
|
13861
13861
|
if (!m)
|
|
13862
|
-
throw new Error("Type has no property " +
|
|
13862
|
+
throw new Error("Type has no property " + p);
|
|
13863
13863
|
if (!(m instanceof r.TFunc))
|
|
13864
|
-
throw new Error("Property " +
|
|
13864
|
+
throw new Error("Property " + p + " is not a method");
|
|
13865
13865
|
return m;
|
|
13866
13866
|
}, f;
|
|
13867
13867
|
}()
|
|
@@ -13938,7 +13938,7 @@ function Hn(e) {
|
|
|
13938
13938
|
return;
|
|
13939
13939
|
}
|
|
13940
13940
|
case n.braceL:
|
|
13941
|
-
|
|
13941
|
+
pi(!0, e);
|
|
13942
13942
|
return;
|
|
13943
13943
|
default:
|
|
13944
13944
|
re();
|
|
@@ -13948,10 +13948,10 @@ function ti(e, t, r = !1, s = !1, i = 0) {
|
|
|
13948
13948
|
let o = !0, c = !1;
|
|
13949
13949
|
const u = a.tokens.length;
|
|
13950
13950
|
for (; !k(e) && !a.error; )
|
|
13951
|
-
if (o ? o = !1 : (v(n.comma), a.tokens[a.tokens.length - 1].contextId = i, !c && a.tokens[u].isType && (a.tokens[a.tokens.length - 1].isType = !0, c = !0)), !(r &&
|
|
13951
|
+
if (o ? o = !1 : (v(n.comma), a.tokens[a.tokens.length - 1].contextId = i, !c && a.tokens[u].isType && (a.tokens[a.tokens.length - 1].isType = !0, c = !0)), !(r && h(n.comma))) {
|
|
13952
13952
|
if (k(e))
|
|
13953
13953
|
break;
|
|
13954
|
-
if (
|
|
13954
|
+
if (h(n.ellipsis)) {
|
|
13955
13955
|
Qa(t), Ja(), k(n.comma), v(e);
|
|
13956
13956
|
break;
|
|
13957
13957
|
} else
|
|
@@ -13972,7 +13972,7 @@ function Iu(e, t) {
|
|
|
13972
13972
|
);
|
|
13973
13973
|
}
|
|
13974
13974
|
function Ja() {
|
|
13975
|
-
ge ?
|
|
13975
|
+
ge ? Up() : ue && Rh();
|
|
13976
13976
|
}
|
|
13977
13977
|
function An(e, t = !1) {
|
|
13978
13978
|
if (t || Hn(e), !k(n.eq))
|
|
@@ -13981,21 +13981,21 @@ function An(e, t = !1) {
|
|
|
13981
13981
|
Ge(), a.tokens[r].rhsEndIndex = a.tokens.length;
|
|
13982
13982
|
}
|
|
13983
13983
|
function Fs() {
|
|
13984
|
-
return
|
|
13984
|
+
return h(n.name);
|
|
13985
13985
|
}
|
|
13986
13986
|
function Cu() {
|
|
13987
|
-
return
|
|
13987
|
+
return h(n.name) || !!(a.type & n.IS_KEYWORD) || h(n.string) || h(n.num) || h(n.bigint) || h(n.decimal);
|
|
13988
13988
|
}
|
|
13989
13989
|
function Za() {
|
|
13990
13990
|
const e = a.snapshot();
|
|
13991
|
-
return w(), (
|
|
13991
|
+
return w(), (h(n.bracketL) || h(n.braceL) || h(n.star) || h(n.ellipsis) || h(n.hash) || Cu()) && !Qe() ? !0 : (a.restoreFromSnapshot(e), !1);
|
|
13992
13992
|
}
|
|
13993
13993
|
function ri(e) {
|
|
13994
13994
|
for (; eo(e) !== null; )
|
|
13995
13995
|
;
|
|
13996
13996
|
}
|
|
13997
13997
|
function eo(e) {
|
|
13998
|
-
if (!
|
|
13998
|
+
if (!h(n.name))
|
|
13999
13999
|
return null;
|
|
14000
14000
|
const t = a.contextualKeyword;
|
|
14001
14001
|
if (e.indexOf(t) !== -1 && Za()) {
|
|
@@ -14034,31 +14034,31 @@ function un() {
|
|
|
14034
14034
|
Q();
|
|
14035
14035
|
}
|
|
14036
14036
|
function Eu() {
|
|
14037
|
-
un(), !Qe() &&
|
|
14037
|
+
un(), !Qe() && h(n.lessThan) && Tr();
|
|
14038
14038
|
}
|
|
14039
14039
|
function Tu() {
|
|
14040
|
-
w(),
|
|
14040
|
+
w(), hn();
|
|
14041
14041
|
}
|
|
14042
14042
|
function Au() {
|
|
14043
14043
|
w();
|
|
14044
14044
|
}
|
|
14045
14045
|
function Pu() {
|
|
14046
|
-
v(n._typeof),
|
|
14046
|
+
v(n._typeof), h(n._import) ? to() : un(), !Qe() && h(n.lessThan) && Tr();
|
|
14047
14047
|
}
|
|
14048
14048
|
function to() {
|
|
14049
|
-
v(n._import), v(n.parenL), v(n.string), v(n.parenR), k(n.dot) && un(),
|
|
14049
|
+
v(n._import), v(n.parenL), v(n.string), v(n.parenR), k(n.dot) && un(), h(n.lessThan) && Tr();
|
|
14050
14050
|
}
|
|
14051
14051
|
function Nu() {
|
|
14052
14052
|
k(n._const);
|
|
14053
14053
|
const e = k(n._in), t = Ve(d._out);
|
|
14054
|
-
k(n._const), (e || t) && !
|
|
14054
|
+
k(n._const), (e || t) && !h(n.name) ? a.tokens[a.tokens.length - 1].type = n.name : Q(), k(n._extends) && Pe(), k(n.eq) && Pe();
|
|
14055
14055
|
}
|
|
14056
14056
|
function lr() {
|
|
14057
|
-
|
|
14057
|
+
h(n.lessThan) && Wn();
|
|
14058
14058
|
}
|
|
14059
14059
|
function Wn() {
|
|
14060
14060
|
const e = ie(0);
|
|
14061
|
-
for (
|
|
14061
|
+
for (h(n.lessThan) || h(n.typeParameterStart) ? w() : re(); !k(n.greaterThan) && !a.error; )
|
|
14062
14062
|
Nu(), k(n.comma);
|
|
14063
14063
|
se(e);
|
|
14064
14064
|
}
|
|
@@ -14067,7 +14067,7 @@ function ni(e) {
|
|
|
14067
14067
|
lr(), v(n.parenL), a.scopeDepth++, Lu(
|
|
14068
14068
|
!1
|
|
14069
14069
|
/* isBlockScope */
|
|
14070
|
-
), a.scopeDepth--, (t ||
|
|
14070
|
+
), a.scopeDepth--, (t || h(e)) && tn(e);
|
|
14071
14071
|
}
|
|
14072
14072
|
function Lu(e) {
|
|
14073
14073
|
ti(n.parenR, e);
|
|
@@ -14081,25 +14081,25 @@ function Qi() {
|
|
|
14081
14081
|
function Ru() {
|
|
14082
14082
|
const e = a.snapshot();
|
|
14083
14083
|
w();
|
|
14084
|
-
const t = k(n.name) &&
|
|
14084
|
+
const t = k(n.name) && h(n.colon);
|
|
14085
14085
|
return a.restoreFromSnapshot(e), t;
|
|
14086
14086
|
}
|
|
14087
14087
|
function ro() {
|
|
14088
|
-
if (!(
|
|
14088
|
+
if (!(h(n.bracketL) && Ru()))
|
|
14089
14089
|
return !1;
|
|
14090
14090
|
const e = ie(0);
|
|
14091
|
-
return v(n.bracketL), Q(),
|
|
14091
|
+
return v(n.bracketL), Q(), hn(), v(n.bracketR), Er(), Pn(), se(e), !0;
|
|
14092
14092
|
}
|
|
14093
14093
|
function Ji(e) {
|
|
14094
|
-
k(n.question), !e && (
|
|
14094
|
+
k(n.question), !e && (h(n.parenL) || h(n.lessThan)) ? (ni(n.colon), Pn()) : (Er(), Pn());
|
|
14095
14095
|
}
|
|
14096
14096
|
function Du() {
|
|
14097
|
-
if (
|
|
14097
|
+
if (h(n.parenL) || h(n.lessThan)) {
|
|
14098
14098
|
Qi();
|
|
14099
14099
|
return;
|
|
14100
14100
|
}
|
|
14101
|
-
if (
|
|
14102
|
-
w(),
|
|
14101
|
+
if (h(n._new)) {
|
|
14102
|
+
w(), h(n.parenL) || h(n.lessThan) ? Qi() : Ji(!1);
|
|
14103
14103
|
return;
|
|
14104
14104
|
}
|
|
14105
14105
|
const e = !!eo([d._readonly]);
|
|
@@ -14120,13 +14120,13 @@ function Mu() {
|
|
|
14120
14120
|
return a.restoreFromSnapshot(e), t;
|
|
14121
14121
|
}
|
|
14122
14122
|
function Fu() {
|
|
14123
|
-
return w(), k(n.plus) || k(n.minus) ? q(d._readonly) : (q(d._readonly) && w(), !
|
|
14123
|
+
return w(), k(n.plus) || k(n.minus) ? q(d._readonly) : (q(d._readonly) && w(), !h(n.bracketL) || (w(), !Fs()) ? !1 : (w(), h(n._in)));
|
|
14124
14124
|
}
|
|
14125
14125
|
function ju() {
|
|
14126
14126
|
Q(), v(n._in), Pe();
|
|
14127
14127
|
}
|
|
14128
14128
|
function Bu() {
|
|
14129
|
-
v(n.braceL),
|
|
14129
|
+
v(n.braceL), h(n.plus) || h(n.minus) ? (w(), De(d._readonly)) : Ve(d._readonly), v(n.bracketL), ju(), Ve(d._as) && Pe(), v(n.bracketR), h(n.plus) || h(n.minus) ? (w(), v(n.question)) : k(n.question), Zu(), Ie(), v(n.braceR);
|
|
14130
14130
|
}
|
|
14131
14131
|
function Vu() {
|
|
14132
14132
|
for (v(n.bracketL); !k(n.bracketR) && !a.error; )
|
|
@@ -14139,7 +14139,7 @@ function qu() {
|
|
|
14139
14139
|
v(n.parenL), Pe(), v(n.parenR);
|
|
14140
14140
|
}
|
|
14141
14141
|
function Uu() {
|
|
14142
|
-
for (zt(), zt(); !
|
|
14142
|
+
for (zt(), zt(); !h(n.backQuote) && !a.error; )
|
|
14143
14143
|
v(n.dollarBraceL), Pe(), zt(), zt();
|
|
14144
14144
|
w();
|
|
14145
14145
|
}
|
|
@@ -14212,11 +14212,11 @@ function Hu() {
|
|
|
14212
14212
|
k(n.bracketR) || (Pe(), v(n.bracketR));
|
|
14213
14213
|
}
|
|
14214
14214
|
function Wu() {
|
|
14215
|
-
if (De(d._infer), Q(),
|
|
14215
|
+
if (De(d._infer), Q(), h(n._extends)) {
|
|
14216
14216
|
const e = a.snapshot();
|
|
14217
14217
|
v(n._extends);
|
|
14218
14218
|
const t = a.inDisallowConditionalTypesContext;
|
|
14219
|
-
a.inDisallowConditionalTypesContext = !0, Pe(), a.inDisallowConditionalTypesContext = t, (a.error || !a.inDisallowConditionalTypesContext &&
|
|
14219
|
+
a.inDisallowConditionalTypesContext = !0, Pe(), a.inDisallowConditionalTypesContext = t, (a.error || !a.inDisallowConditionalTypesContext && h(n.question)) && a.restoreFromSnapshot(e);
|
|
14220
14220
|
}
|
|
14221
14221
|
}
|
|
14222
14222
|
function js() {
|
|
@@ -14230,25 +14230,25 @@ function js() {
|
|
|
14230
14230
|
}
|
|
14231
14231
|
}
|
|
14232
14232
|
function Zi() {
|
|
14233
|
-
if (k(n.bitwiseAND), js(),
|
|
14233
|
+
if (k(n.bitwiseAND), js(), h(n.bitwiseAND))
|
|
14234
14234
|
for (; k(n.bitwiseAND); )
|
|
14235
14235
|
js();
|
|
14236
14236
|
}
|
|
14237
14237
|
function Gu() {
|
|
14238
|
-
if (k(n.bitwiseOR), Zi(),
|
|
14238
|
+
if (k(n.bitwiseOR), Zi(), h(n.bitwiseOR))
|
|
14239
14239
|
for (; k(n.bitwiseOR); )
|
|
14240
14240
|
Zi();
|
|
14241
14241
|
}
|
|
14242
14242
|
function Xu() {
|
|
14243
|
-
return
|
|
14243
|
+
return h(n.lessThan) ? !0 : h(n.parenL) && Ku();
|
|
14244
14244
|
}
|
|
14245
14245
|
function Yu() {
|
|
14246
|
-
if (
|
|
14246
|
+
if (h(n.name) || h(n._this))
|
|
14247
14247
|
return w(), !0;
|
|
14248
|
-
if (
|
|
14248
|
+
if (h(n.braceL) || h(n.bracketL)) {
|
|
14249
14249
|
let e = 1;
|
|
14250
14250
|
for (w(); e > 0 && !a.error; )
|
|
14251
|
-
|
|
14251
|
+
h(n.braceL) || h(n.bracketL) ? e++ : (h(n.braceR) || h(n.bracketR)) && e--, w();
|
|
14252
14252
|
return !0;
|
|
14253
14253
|
}
|
|
14254
14254
|
return !1;
|
|
@@ -14258,26 +14258,26 @@ function Ku() {
|
|
|
14258
14258
|
return a.restoreFromSnapshot(e), t;
|
|
14259
14259
|
}
|
|
14260
14260
|
function Qu() {
|
|
14261
|
-
return w(), !!(
|
|
14261
|
+
return w(), !!(h(n.parenR) || h(n.ellipsis) || Yu() && (h(n.colon) || h(n.comma) || h(n.question) || h(n.eq) || h(n.parenR) && (w(), h(n.arrow))));
|
|
14262
14262
|
}
|
|
14263
14263
|
function tn(e) {
|
|
14264
14264
|
const t = ie(0);
|
|
14265
|
-
v(e),
|
|
14265
|
+
v(e), eh() || Pe(), se(t);
|
|
14266
14266
|
}
|
|
14267
14267
|
function Ju() {
|
|
14268
|
-
|
|
14268
|
+
h(n.colon) && tn(n.colon);
|
|
14269
14269
|
}
|
|
14270
14270
|
function Er() {
|
|
14271
|
-
|
|
14271
|
+
h(n.colon) && hn();
|
|
14272
14272
|
}
|
|
14273
14273
|
function Zu() {
|
|
14274
14274
|
k(n.colon) && Pe();
|
|
14275
14275
|
}
|
|
14276
|
-
function
|
|
14276
|
+
function eh() {
|
|
14277
14277
|
const e = a.snapshot();
|
|
14278
|
-
return q(d._asserts) ? (w(), Ve(d._is) ? (Pe(), !0) : Fs() ||
|
|
14278
|
+
return q(d._asserts) ? (w(), Ve(d._is) ? (Pe(), !0) : Fs() || h(n._this) ? (w(), Ve(d._is) && Pe(), !0) : (a.restoreFromSnapshot(e), !1)) : Fs() || h(n._this) ? (w(), q(d._is) && !Qe() ? (w(), Pe(), !0) : (a.restoreFromSnapshot(e), !1)) : !1;
|
|
14279
14279
|
}
|
|
14280
|
-
function
|
|
14280
|
+
function hn() {
|
|
14281
14281
|
const e = ie(0);
|
|
14282
14282
|
v(n.colon), Pe(), se(e);
|
|
14283
14283
|
}
|
|
@@ -14287,7 +14287,7 @@ function Pe() {
|
|
|
14287
14287
|
const e = a.inDisallowConditionalTypesContext;
|
|
14288
14288
|
a.inDisallowConditionalTypesContext = !0, ea(), a.inDisallowConditionalTypesContext = e, v(n.question), Pe(), v(n.colon), Pe();
|
|
14289
14289
|
}
|
|
14290
|
-
function
|
|
14290
|
+
function th() {
|
|
14291
14291
|
return q(d._abstract) && Ae() === n._new;
|
|
14292
14292
|
}
|
|
14293
14293
|
function ea() {
|
|
@@ -14295,50 +14295,50 @@ function ea() {
|
|
|
14295
14295
|
_s(Gt.TSFunctionType);
|
|
14296
14296
|
return;
|
|
14297
14297
|
}
|
|
14298
|
-
if (
|
|
14298
|
+
if (h(n._new)) {
|
|
14299
14299
|
_s(Gt.TSConstructorType);
|
|
14300
14300
|
return;
|
|
14301
|
-
} else if (
|
|
14301
|
+
} else if (th()) {
|
|
14302
14302
|
_s(Gt.TSAbstractConstructorType);
|
|
14303
14303
|
return;
|
|
14304
14304
|
}
|
|
14305
14305
|
Gu();
|
|
14306
14306
|
}
|
|
14307
|
-
function
|
|
14307
|
+
function rh() {
|
|
14308
14308
|
const e = ie(1);
|
|
14309
|
-
Pe(), v(n.greaterThan), se(e),
|
|
14309
|
+
Pe(), v(n.greaterThan), se(e), pn();
|
|
14310
14310
|
}
|
|
14311
|
-
function
|
|
14311
|
+
function nh() {
|
|
14312
14312
|
if (k(n.jsxTagStart)) {
|
|
14313
14313
|
a.tokens[a.tokens.length - 1].type = n.typeParameterStart;
|
|
14314
14314
|
const e = ie(1);
|
|
14315
|
-
for (; !
|
|
14315
|
+
for (; !h(n.greaterThan) && !a.error; )
|
|
14316
14316
|
Pe(), k(n.comma);
|
|
14317
|
-
|
|
14317
|
+
ht(), se(e);
|
|
14318
14318
|
}
|
|
14319
14319
|
}
|
|
14320
14320
|
function so() {
|
|
14321
|
-
for (; !
|
|
14322
|
-
|
|
14321
|
+
for (; !h(n.braceL) && !a.error; )
|
|
14322
|
+
sh(), k(n.comma);
|
|
14323
14323
|
}
|
|
14324
|
-
function
|
|
14325
|
-
un(),
|
|
14324
|
+
function sh() {
|
|
14325
|
+
un(), h(n.lessThan) && Tr();
|
|
14326
14326
|
}
|
|
14327
|
-
function
|
|
14327
|
+
function ih() {
|
|
14328
14328
|
Qt(!1), lr(), k(n._extends) && so(), no();
|
|
14329
14329
|
}
|
|
14330
|
-
function
|
|
14330
|
+
function ah() {
|
|
14331
14331
|
Qt(!1), lr(), v(n.eq), Pe(), Ie();
|
|
14332
14332
|
}
|
|
14333
|
-
function
|
|
14334
|
-
if (
|
|
14333
|
+
function oh() {
|
|
14334
|
+
if (h(n.string) ? Cr() : Q(), k(n.eq)) {
|
|
14335
14335
|
const e = a.tokens.length - 1;
|
|
14336
14336
|
Ge(), a.tokens[e].rhsEndIndex = a.tokens.length;
|
|
14337
14337
|
}
|
|
14338
14338
|
}
|
|
14339
14339
|
function si() {
|
|
14340
14340
|
for (Qt(!1), v(n.braceL); !k(n.braceR) && !a.error; )
|
|
14341
|
-
|
|
14341
|
+
oh(), k(n.comma);
|
|
14342
14342
|
}
|
|
14343
14343
|
function ii() {
|
|
14344
14344
|
v(n.braceL), Kn(
|
|
@@ -14350,21 +14350,21 @@ function Bs() {
|
|
|
14350
14350
|
Qt(!1), k(n.dot) ? Bs() : ii();
|
|
14351
14351
|
}
|
|
14352
14352
|
function io() {
|
|
14353
|
-
q(d._global) ? Q() :
|
|
14353
|
+
q(d._global) ? Q() : h(n.string) ? Ot() : re(), h(n.braceL) ? ii() : Ie();
|
|
14354
14354
|
}
|
|
14355
14355
|
function Vs() {
|
|
14356
|
-
Tn(), v(n.eq),
|
|
14356
|
+
Tn(), v(n.eq), lh(), Ie();
|
|
14357
14357
|
}
|
|
14358
|
-
function
|
|
14358
|
+
function ch() {
|
|
14359
14359
|
return q(d._require) && Ae() === n.parenL;
|
|
14360
14360
|
}
|
|
14361
|
-
function
|
|
14362
|
-
|
|
14361
|
+
function lh() {
|
|
14362
|
+
ch() ? uh() : un();
|
|
14363
14363
|
}
|
|
14364
|
-
function
|
|
14365
|
-
De(d._require), v(n.parenL),
|
|
14364
|
+
function uh() {
|
|
14365
|
+
De(d._require), v(n.parenL), h(n.string) || re(), Cr(), v(n.parenR);
|
|
14366
14366
|
}
|
|
14367
|
-
function
|
|
14367
|
+
function hh() {
|
|
14368
14368
|
if (St())
|
|
14369
14369
|
return !1;
|
|
14370
14370
|
switch (a.type) {
|
|
@@ -14388,7 +14388,7 @@ function pp() {
|
|
|
14388
14388
|
), se(e), !0;
|
|
14389
14389
|
}
|
|
14390
14390
|
case n._const:
|
|
14391
|
-
if (
|
|
14391
|
+
if (h(n._const) && Qs(d._enum)) {
|
|
14392
14392
|
const e = ie(1);
|
|
14393
14393
|
return v(n._const), De(d._enum), a.tokens[a.tokens.length - 1].type = n._enum, si(), se(e), !0;
|
|
14394
14394
|
}
|
|
@@ -14417,16 +14417,16 @@ function ta() {
|
|
|
14417
14417
|
!0
|
|
14418
14418
|
);
|
|
14419
14419
|
}
|
|
14420
|
-
function
|
|
14420
|
+
function ph(e) {
|
|
14421
14421
|
switch (e) {
|
|
14422
14422
|
case d._declare: {
|
|
14423
14423
|
const t = a.tokens.length - 1;
|
|
14424
|
-
if (
|
|
14424
|
+
if (hh())
|
|
14425
14425
|
return a.tokens[t].type = n._declare, !0;
|
|
14426
14426
|
break;
|
|
14427
14427
|
}
|
|
14428
14428
|
case d._global:
|
|
14429
|
-
if (
|
|
14429
|
+
if (h(n.braceL))
|
|
14430
14430
|
return ii(), !0;
|
|
14431
14431
|
break;
|
|
14432
14432
|
default:
|
|
@@ -14441,7 +14441,7 @@ function hp(e) {
|
|
|
14441
14441
|
function Gn(e, t) {
|
|
14442
14442
|
switch (e) {
|
|
14443
14443
|
case d._abstract:
|
|
14444
|
-
if (wr(t) &&
|
|
14444
|
+
if (wr(t) && h(n._class))
|
|
14445
14445
|
return a.tokens[a.tokens.length - 1].type = n._abstract, or(
|
|
14446
14446
|
/* isStatement */
|
|
14447
14447
|
!0,
|
|
@@ -14450,36 +14450,36 @@ function Gn(e, t) {
|
|
|
14450
14450
|
), !0;
|
|
14451
14451
|
break;
|
|
14452
14452
|
case d._enum:
|
|
14453
|
-
if (wr(t) &&
|
|
14453
|
+
if (wr(t) && h(n.name))
|
|
14454
14454
|
return a.tokens[a.tokens.length - 1].type = n._enum, si(), !0;
|
|
14455
14455
|
break;
|
|
14456
14456
|
case d._interface:
|
|
14457
|
-
if (wr(t) &&
|
|
14457
|
+
if (wr(t) && h(n.name)) {
|
|
14458
14458
|
const r = ie(t ? 2 : 1);
|
|
14459
|
-
return
|
|
14459
|
+
return ih(), se(r), !0;
|
|
14460
14460
|
}
|
|
14461
14461
|
break;
|
|
14462
14462
|
case d._module:
|
|
14463
14463
|
if (wr(t)) {
|
|
14464
|
-
if (
|
|
14464
|
+
if (h(n.string)) {
|
|
14465
14465
|
const r = ie(t ? 2 : 1);
|
|
14466
14466
|
return io(), se(r), !0;
|
|
14467
|
-
} else if (
|
|
14467
|
+
} else if (h(n.name)) {
|
|
14468
14468
|
const r = ie(t ? 2 : 1);
|
|
14469
14469
|
return Bs(), se(r), !0;
|
|
14470
14470
|
}
|
|
14471
14471
|
}
|
|
14472
14472
|
break;
|
|
14473
14473
|
case d._namespace:
|
|
14474
|
-
if (wr(t) &&
|
|
14474
|
+
if (wr(t) && h(n.name)) {
|
|
14475
14475
|
const r = ie(t ? 2 : 1);
|
|
14476
14476
|
return Bs(), se(r), !0;
|
|
14477
14477
|
}
|
|
14478
14478
|
break;
|
|
14479
14479
|
case d._type:
|
|
14480
|
-
if (wr(t) &&
|
|
14480
|
+
if (wr(t) && h(n.name)) {
|
|
14481
14481
|
const r = ie(t ? 2 : 1);
|
|
14482
|
-
return
|
|
14482
|
+
return ah(), se(r), !0;
|
|
14483
14483
|
}
|
|
14484
14484
|
break;
|
|
14485
14485
|
}
|
|
@@ -14488,7 +14488,7 @@ function Gn(e, t) {
|
|
|
14488
14488
|
function wr(e) {
|
|
14489
14489
|
return e ? (w(), !0) : !St();
|
|
14490
14490
|
}
|
|
14491
|
-
function
|
|
14491
|
+
function fh() {
|
|
14492
14492
|
const e = a.snapshot();
|
|
14493
14493
|
return Wn(), Ar(), Ju(), v(n.arrow), a.error ? (a.restoreFromSnapshot(e), !1) : (fn(!0), !0);
|
|
14494
14494
|
}
|
|
@@ -14497,12 +14497,12 @@ function ai() {
|
|
|
14497
14497
|
}
|
|
14498
14498
|
function Tr() {
|
|
14499
14499
|
const e = ie(0);
|
|
14500
|
-
for (v(n.lessThan); !
|
|
14500
|
+
for (v(n.lessThan); !h(n.greaterThan) && !a.error; )
|
|
14501
14501
|
Pe(), k(n.comma);
|
|
14502
14502
|
e ? (v(n.greaterThan), se(e)) : (se(e), Ba(), v(n.greaterThan), a.tokens[a.tokens.length - 1].isType = !0);
|
|
14503
14503
|
}
|
|
14504
14504
|
function ao() {
|
|
14505
|
-
if (
|
|
14505
|
+
if (h(n.name))
|
|
14506
14506
|
switch (a.contextualKeyword) {
|
|
14507
14507
|
case d._abstract:
|
|
14508
14508
|
case d._declare:
|
|
@@ -14515,8 +14515,8 @@ function ao() {
|
|
|
14515
14515
|
}
|
|
14516
14516
|
return !1;
|
|
14517
14517
|
}
|
|
14518
|
-
function
|
|
14519
|
-
if (
|
|
14518
|
+
function dh(e, t) {
|
|
14519
|
+
if (h(n.colon) && tn(n.colon), !h(n.braceL) && St()) {
|
|
14520
14520
|
let r = a.tokens.length - 1;
|
|
14521
14521
|
for (; r >= 0 && (a.tokens[r].start >= e || a.tokens[r].type === n._default || a.tokens[r].type === n._export); )
|
|
14522
14522
|
a.tokens[r].isType = !0, r--;
|
|
@@ -14524,16 +14524,16 @@ function dp(e, t) {
|
|
|
14524
14524
|
}
|
|
14525
14525
|
fn(!1, t);
|
|
14526
14526
|
}
|
|
14527
|
-
function
|
|
14527
|
+
function mh(e, t, r) {
|
|
14528
14528
|
if (!Qe() && k(n.bang)) {
|
|
14529
14529
|
a.tokens[a.tokens.length - 1].type = n.nonNullAssertion;
|
|
14530
14530
|
return;
|
|
14531
14531
|
}
|
|
14532
|
-
if (
|
|
14532
|
+
if (h(n.lessThan) || h(n.bitShiftL)) {
|
|
14533
14533
|
const s = a.snapshot();
|
|
14534
|
-
if (!t && mo() &&
|
|
14534
|
+
if (!t && mo() && fh())
|
|
14535
14535
|
return;
|
|
14536
|
-
if (ai(), !t && k(n.parenL) ? (a.tokens[a.tokens.length - 1].subscriptStartIndex = e, Xt()) :
|
|
14536
|
+
if (ai(), !t && k(n.parenL) ? (a.tokens[a.tokens.length - 1].subscriptStartIndex = e, Xt()) : h(n.backQuote) ? hi() : (
|
|
14537
14537
|
// The remaining possible case is an instantiation expression, e.g.
|
|
14538
14538
|
// Array<number> . Check for a few cases that would disqualify it and
|
|
14539
14539
|
// cause us to bail out.
|
|
@@ -14544,10 +14544,10 @@ function mp(e, t, r) {
|
|
|
14544
14544
|
a.restoreFromSnapshot(s);
|
|
14545
14545
|
else
|
|
14546
14546
|
return;
|
|
14547
|
-
} else !t &&
|
|
14547
|
+
} else !t && h(n.questionDot) && Ae() === n.lessThan && (w(), a.tokens[e].isOptionalChainStart = !0, a.tokens[a.tokens.length - 1].subscriptStartIndex = e, Tr(), v(n.parenL), Xt());
|
|
14548
14548
|
ci(e, t, r);
|
|
14549
14549
|
}
|
|
14550
|
-
function
|
|
14550
|
+
function gh() {
|
|
14551
14551
|
if (k(n._import))
|
|
14552
14552
|
return q(d._type) && Ae() !== n.eq && De(d._type), Vs(), !0;
|
|
14553
14553
|
if (k(n.eq))
|
|
@@ -14560,37 +14560,37 @@ function gp() {
|
|
|
14560
14560
|
}
|
|
14561
14561
|
return !1;
|
|
14562
14562
|
}
|
|
14563
|
-
function
|
|
14564
|
-
if (Q(),
|
|
14563
|
+
function xh() {
|
|
14564
|
+
if (Q(), h(n.comma) || h(n.braceR)) {
|
|
14565
14565
|
a.tokens[a.tokens.length - 1].identifierRole = W.ImportDeclaration;
|
|
14566
14566
|
return;
|
|
14567
14567
|
}
|
|
14568
|
-
if (Q(),
|
|
14568
|
+
if (Q(), h(n.comma) || h(n.braceR)) {
|
|
14569
14569
|
a.tokens[a.tokens.length - 1].identifierRole = W.ImportDeclaration, a.tokens[a.tokens.length - 2].isType = !0, a.tokens[a.tokens.length - 1].isType = !0;
|
|
14570
14570
|
return;
|
|
14571
14571
|
}
|
|
14572
|
-
if (Q(),
|
|
14572
|
+
if (Q(), h(n.comma) || h(n.braceR)) {
|
|
14573
14573
|
a.tokens[a.tokens.length - 3].identifierRole = W.ImportAccess, a.tokens[a.tokens.length - 1].identifierRole = W.ImportDeclaration;
|
|
14574
14574
|
return;
|
|
14575
14575
|
}
|
|
14576
14576
|
Q(), a.tokens[a.tokens.length - 3].identifierRole = W.ImportAccess, a.tokens[a.tokens.length - 1].identifierRole = W.ImportDeclaration, a.tokens[a.tokens.length - 4].isType = !0, a.tokens[a.tokens.length - 3].isType = !0, a.tokens[a.tokens.length - 2].isType = !0, a.tokens[a.tokens.length - 1].isType = !0;
|
|
14577
14577
|
}
|
|
14578
|
-
function
|
|
14579
|
-
if (Q(),
|
|
14578
|
+
function kh() {
|
|
14579
|
+
if (Q(), h(n.comma) || h(n.braceR)) {
|
|
14580
14580
|
a.tokens[a.tokens.length - 1].identifierRole = W.ExportAccess;
|
|
14581
14581
|
return;
|
|
14582
14582
|
}
|
|
14583
|
-
if (Q(),
|
|
14583
|
+
if (Q(), h(n.comma) || h(n.braceR)) {
|
|
14584
14584
|
a.tokens[a.tokens.length - 1].identifierRole = W.ExportAccess, a.tokens[a.tokens.length - 2].isType = !0, a.tokens[a.tokens.length - 1].isType = !0;
|
|
14585
14585
|
return;
|
|
14586
14586
|
}
|
|
14587
|
-
if (Q(),
|
|
14587
|
+
if (Q(), h(n.comma) || h(n.braceR)) {
|
|
14588
14588
|
a.tokens[a.tokens.length - 3].identifierRole = W.ExportAccess;
|
|
14589
14589
|
return;
|
|
14590
14590
|
}
|
|
14591
14591
|
Q(), a.tokens[a.tokens.length - 3].identifierRole = W.ExportAccess, a.tokens[a.tokens.length - 4].isType = !0, a.tokens[a.tokens.length - 3].isType = !0, a.tokens[a.tokens.length - 2].isType = !0, a.tokens[a.tokens.length - 1].isType = !0;
|
|
14592
14592
|
}
|
|
14593
|
-
function
|
|
14593
|
+
function bh() {
|
|
14594
14594
|
if (q(d._abstract) && Ae() === n._class)
|
|
14595
14595
|
return a.type = n._abstract, w(), or(!0, !0), !0;
|
|
14596
14596
|
if (q(d._interface)) {
|
|
@@ -14599,7 +14599,7 @@ function bp() {
|
|
|
14599
14599
|
}
|
|
14600
14600
|
return !1;
|
|
14601
14601
|
}
|
|
14602
|
-
function
|
|
14602
|
+
function yh() {
|
|
14603
14603
|
if (a.type === n._const) {
|
|
14604
14604
|
const e = ln();
|
|
14605
14605
|
if (e.type === n.name && e.contextualKeyword === d._enum)
|
|
@@ -14607,7 +14607,7 @@ function yp() {
|
|
|
14607
14607
|
}
|
|
14608
14608
|
return !1;
|
|
14609
14609
|
}
|
|
14610
|
-
function
|
|
14610
|
+
function vh(e) {
|
|
14611
14611
|
const t = a.tokens.length;
|
|
14612
14612
|
ri([
|
|
14613
14613
|
d._abstract,
|
|
@@ -14625,14 +14625,14 @@ function vp(e) {
|
|
|
14625
14625
|
}
|
|
14626
14626
|
return !1;
|
|
14627
14627
|
}
|
|
14628
|
-
function
|
|
14629
|
-
|
|
14628
|
+
function wh(e) {
|
|
14629
|
+
ph(e) || Ie();
|
|
14630
14630
|
}
|
|
14631
|
-
function
|
|
14631
|
+
function _h() {
|
|
14632
14632
|
const e = Ve(d._declare);
|
|
14633
14633
|
e && (a.tokens[a.tokens.length - 1].type = n._declare);
|
|
14634
14634
|
let t = !1;
|
|
14635
|
-
if (
|
|
14635
|
+
if (h(n.name))
|
|
14636
14636
|
if (e) {
|
|
14637
14637
|
const r = ie(2);
|
|
14638
14638
|
t = ta(), se(r);
|
|
@@ -14645,31 +14645,31 @@ function _p() {
|
|
|
14645
14645
|
} else
|
|
14646
14646
|
at(!0);
|
|
14647
14647
|
}
|
|
14648
|
-
function
|
|
14649
|
-
if (e && (
|
|
14648
|
+
function Sh(e) {
|
|
14649
|
+
if (e && (h(n.lessThan) || h(n.bitShiftL)) && ai(), Ve(d._implements)) {
|
|
14650
14650
|
a.tokens[a.tokens.length - 1].type = n._implements;
|
|
14651
14651
|
const t = ie(1);
|
|
14652
14652
|
so(), se(t);
|
|
14653
14653
|
}
|
|
14654
14654
|
}
|
|
14655
|
-
function
|
|
14655
|
+
function Ih() {
|
|
14656
14656
|
lr();
|
|
14657
14657
|
}
|
|
14658
|
-
function
|
|
14658
|
+
function Ch() {
|
|
14659
14659
|
lr();
|
|
14660
14660
|
}
|
|
14661
|
-
function
|
|
14661
|
+
function Eh() {
|
|
14662
14662
|
const e = ie(0);
|
|
14663
14663
|
Qe() || k(n.bang), Er(), se(e);
|
|
14664
14664
|
}
|
|
14665
|
-
function
|
|
14666
|
-
|
|
14665
|
+
function Th() {
|
|
14666
|
+
h(n.colon) && hn();
|
|
14667
14667
|
}
|
|
14668
|
-
function
|
|
14669
|
-
return Un ?
|
|
14668
|
+
function Ah(e, t) {
|
|
14669
|
+
return Un ? Ph(e, t) : Nh(e, t);
|
|
14670
14670
|
}
|
|
14671
|
-
function
|
|
14672
|
-
if (!
|
|
14671
|
+
function Ph(e, t) {
|
|
14672
|
+
if (!h(n.lessThan))
|
|
14673
14673
|
return Ct(e, t);
|
|
14674
14674
|
const r = a.snapshot();
|
|
14675
14675
|
let s = Ct(e, t);
|
|
@@ -14679,8 +14679,8 @@ function Pp(e, t) {
|
|
|
14679
14679
|
return s;
|
|
14680
14680
|
return a.type = n.typeParameterStart, Wn(), s = Ct(e, t), s || re(), s;
|
|
14681
14681
|
}
|
|
14682
|
-
function
|
|
14683
|
-
if (!
|
|
14682
|
+
function Nh(e, t) {
|
|
14683
|
+
if (!h(n.lessThan))
|
|
14684
14684
|
return Ct(e, t);
|
|
14685
14685
|
const r = a.snapshot();
|
|
14686
14686
|
Wn();
|
|
@@ -14691,21 +14691,21 @@ function Np(e, t) {
|
|
|
14691
14691
|
return s;
|
|
14692
14692
|
return Ct(e, t);
|
|
14693
14693
|
}
|
|
14694
|
-
function
|
|
14695
|
-
if (
|
|
14694
|
+
function Lh() {
|
|
14695
|
+
if (h(n.colon)) {
|
|
14696
14696
|
const e = a.snapshot();
|
|
14697
|
-
tn(n.colon), it() && re(),
|
|
14697
|
+
tn(n.colon), it() && re(), h(n.arrow) || re(), a.error && a.restoreFromSnapshot(e);
|
|
14698
14698
|
}
|
|
14699
14699
|
return k(n.arrow);
|
|
14700
14700
|
}
|
|
14701
|
-
function
|
|
14701
|
+
function Rh() {
|
|
14702
14702
|
const e = ie(0);
|
|
14703
14703
|
k(n.question), Er(), se(e);
|
|
14704
14704
|
}
|
|
14705
|
-
function
|
|
14706
|
-
(
|
|
14705
|
+
function Dh() {
|
|
14706
|
+
(h(n.lessThan) || h(n.bitShiftL)) && ai(), Eo();
|
|
14707
14707
|
}
|
|
14708
|
-
function
|
|
14708
|
+
function Oh() {
|
|
14709
14709
|
let e = !1, t = !1;
|
|
14710
14710
|
for (; ; ) {
|
|
14711
14711
|
if (a.pos >= A.length) {
|
|
@@ -14728,7 +14728,7 @@ function Op() {
|
|
|
14728
14728
|
r === g.lineFeed ? e = !0 : r !== g.space && r !== g.carriageReturn && r !== g.tab && (t = !0), a.pos++;
|
|
14729
14729
|
}
|
|
14730
14730
|
}
|
|
14731
|
-
function
|
|
14731
|
+
function Mh(e) {
|
|
14732
14732
|
for (a.pos++; ; ) {
|
|
14733
14733
|
if (a.pos >= A.length) {
|
|
14734
14734
|
re("Unterminated string constant");
|
|
@@ -14742,7 +14742,7 @@ function Mp(e) {
|
|
|
14742
14742
|
}
|
|
14743
14743
|
te(n.string);
|
|
14744
14744
|
}
|
|
14745
|
-
function
|
|
14745
|
+
function Fh() {
|
|
14746
14746
|
let e;
|
|
14747
14747
|
do {
|
|
14748
14748
|
if (a.pos > A.length) {
|
|
@@ -14754,7 +14754,7 @@ function Fp() {
|
|
|
14754
14754
|
te(n.jsxName);
|
|
14755
14755
|
}
|
|
14756
14756
|
function $s() {
|
|
14757
|
-
|
|
14757
|
+
ht();
|
|
14758
14758
|
}
|
|
14759
14759
|
function oo(e) {
|
|
14760
14760
|
if ($s(), !k(n.colon)) {
|
|
@@ -14767,59 +14767,59 @@ function co() {
|
|
|
14767
14767
|
const e = a.tokens.length;
|
|
14768
14768
|
oo(W.Access);
|
|
14769
14769
|
let t = !1;
|
|
14770
|
-
for (;
|
|
14771
|
-
t = !0,
|
|
14770
|
+
for (; h(n.dot); )
|
|
14771
|
+
t = !0, ht(), $s();
|
|
14772
14772
|
if (!t) {
|
|
14773
14773
|
const r = a.tokens[e], s = A.charCodeAt(r.start);
|
|
14774
14774
|
s >= g.lowercaseA && s <= g.lowercaseZ && (r.identifierRole = null);
|
|
14775
14775
|
}
|
|
14776
14776
|
}
|
|
14777
|
-
function
|
|
14777
|
+
function jh() {
|
|
14778
14778
|
switch (a.type) {
|
|
14779
14779
|
case n.braceL:
|
|
14780
|
-
w(), We(),
|
|
14780
|
+
w(), We(), ht();
|
|
14781
14781
|
return;
|
|
14782
14782
|
case n.jsxTagStart:
|
|
14783
|
-
uo(),
|
|
14783
|
+
uo(), ht();
|
|
14784
14784
|
return;
|
|
14785
14785
|
case n.string:
|
|
14786
|
-
|
|
14786
|
+
ht();
|
|
14787
14787
|
return;
|
|
14788
14788
|
default:
|
|
14789
14789
|
re("JSX value should be either an expression or a quoted JSX text");
|
|
14790
14790
|
}
|
|
14791
14791
|
}
|
|
14792
|
-
function
|
|
14792
|
+
function Bh() {
|
|
14793
14793
|
v(n.ellipsis), We();
|
|
14794
14794
|
}
|
|
14795
|
-
function
|
|
14796
|
-
if (
|
|
14795
|
+
function Vh(e) {
|
|
14796
|
+
if (h(n.jsxTagEnd))
|
|
14797
14797
|
return !1;
|
|
14798
|
-
co(), ue &&
|
|
14798
|
+
co(), ue && nh();
|
|
14799
14799
|
let t = !1;
|
|
14800
|
-
for (; !
|
|
14800
|
+
for (; !h(n.slash) && !h(n.jsxTagEnd) && !a.error; ) {
|
|
14801
14801
|
if (k(n.braceL)) {
|
|
14802
|
-
t = !0, v(n.ellipsis), Ge(),
|
|
14802
|
+
t = !0, v(n.ellipsis), Ge(), ht();
|
|
14803
14803
|
continue;
|
|
14804
14804
|
}
|
|
14805
|
-
t && a.end - a.start === 3 && A.charCodeAt(a.start) === g.lowercaseK && A.charCodeAt(a.start + 1) === g.lowercaseE && A.charCodeAt(a.start + 2) === g.lowercaseY && (a.tokens[e].jsxRole = xt.KeyAfterPropSpread), oo(W.ObjectKey),
|
|
14805
|
+
t && a.end - a.start === 3 && A.charCodeAt(a.start) === g.lowercaseK && A.charCodeAt(a.start + 1) === g.lowercaseE && A.charCodeAt(a.start + 2) === g.lowercaseY && (a.tokens[e].jsxRole = xt.KeyAfterPropSpread), oo(W.ObjectKey), h(n.eq) && (ht(), jh());
|
|
14806
14806
|
}
|
|
14807
|
-
const r =
|
|
14808
|
-
return r &&
|
|
14807
|
+
const r = h(n.slash);
|
|
14808
|
+
return r && ht(), r;
|
|
14809
14809
|
}
|
|
14810
|
-
function $
|
|
14811
|
-
|
|
14810
|
+
function $h() {
|
|
14811
|
+
h(n.jsxTagEnd) || co();
|
|
14812
14812
|
}
|
|
14813
14813
|
function lo() {
|
|
14814
14814
|
const e = a.tokens.length - 1;
|
|
14815
14815
|
a.tokens[e].jsxRole = xt.NoChildren;
|
|
14816
14816
|
let t = 0;
|
|
14817
|
-
if (!
|
|
14817
|
+
if (!Vh(e))
|
|
14818
14818
|
for (_r(); ; )
|
|
14819
14819
|
switch (a.type) {
|
|
14820
14820
|
case n.jsxTagStart:
|
|
14821
|
-
if (
|
|
14822
|
-
|
|
14821
|
+
if (ht(), h(n.slash)) {
|
|
14822
|
+
ht(), $h(), a.tokens[e].jsxRole !== xt.KeyAfterPropSpread && (t === 1 ? a.tokens[e].jsxRole = xt.OneChild : t > 1 && (a.tokens[e].jsxRole = xt.StaticChildren));
|
|
14823
14823
|
return;
|
|
14824
14824
|
}
|
|
14825
14825
|
t++, lo(), _r();
|
|
@@ -14831,7 +14831,7 @@ function lo() {
|
|
|
14831
14831
|
_r();
|
|
14832
14832
|
break;
|
|
14833
14833
|
case n.braceL:
|
|
14834
|
-
w(),
|
|
14834
|
+
w(), h(n.ellipsis) ? (Bh(), _r(), t += 2) : (h(n.braceR) || (t++, We()), _r());
|
|
14835
14835
|
break;
|
|
14836
14836
|
default:
|
|
14837
14837
|
re();
|
|
@@ -14839,15 +14839,15 @@ function lo() {
|
|
|
14839
14839
|
}
|
|
14840
14840
|
}
|
|
14841
14841
|
function uo() {
|
|
14842
|
-
|
|
14842
|
+
ht(), lo();
|
|
14843
14843
|
}
|
|
14844
|
-
function
|
|
14844
|
+
function ht() {
|
|
14845
14845
|
a.tokens.push(new zn()), Fa(), a.start = a.pos;
|
|
14846
14846
|
const e = A.charCodeAt(a.pos);
|
|
14847
14847
|
if (cn[e])
|
|
14848
|
-
|
|
14848
|
+
Fh();
|
|
14849
14849
|
else if (e === g.quotationMark || e === g.apostrophe)
|
|
14850
|
-
|
|
14850
|
+
Mh(e);
|
|
14851
14851
|
else
|
|
14852
14852
|
switch (++a.pos, e) {
|
|
14853
14853
|
case g.greaterThan:
|
|
@@ -14876,51 +14876,51 @@ function pt() {
|
|
|
14876
14876
|
}
|
|
14877
14877
|
}
|
|
14878
14878
|
function _r() {
|
|
14879
|
-
a.tokens.push(new zn()), a.start = a.pos,
|
|
14879
|
+
a.tokens.push(new zn()), a.start = a.pos, Oh();
|
|
14880
14880
|
}
|
|
14881
|
-
function
|
|
14882
|
-
if (
|
|
14881
|
+
function qh(e) {
|
|
14882
|
+
if (h(n.question)) {
|
|
14883
14883
|
const t = Ae();
|
|
14884
14884
|
if (t === n.colon || t === n.comma || t === n.parenR)
|
|
14885
14885
|
return;
|
|
14886
14886
|
}
|
|
14887
|
-
|
|
14887
|
+
ho(e);
|
|
14888
14888
|
}
|
|
14889
|
-
function
|
|
14890
|
-
La(n.question),
|
|
14889
|
+
function Uh() {
|
|
14890
|
+
La(n.question), h(n.colon) && (ue ? hn() : ge && ur());
|
|
14891
14891
|
}
|
|
14892
|
-
class
|
|
14892
|
+
class zh {
|
|
14893
14893
|
constructor(t) {
|
|
14894
14894
|
this.stop = t;
|
|
14895
14895
|
}
|
|
14896
14896
|
}
|
|
14897
14897
|
function We(e = !1) {
|
|
14898
|
-
if (Ge(e),
|
|
14898
|
+
if (Ge(e), h(n.comma))
|
|
14899
14899
|
for (; k(n.comma); )
|
|
14900
14900
|
Ge(e);
|
|
14901
14901
|
}
|
|
14902
14902
|
function Ge(e = !1, t = !1) {
|
|
14903
|
-
return ue ?
|
|
14903
|
+
return ue ? Ah(e, t) : ge ? Yp(e, t) : Ct(e, t);
|
|
14904
14904
|
}
|
|
14905
14905
|
function Ct(e, t) {
|
|
14906
|
-
if (
|
|
14907
|
-
return
|
|
14908
|
-
(
|
|
14909
|
-
const r =
|
|
14906
|
+
if (h(n._yield))
|
|
14907
|
+
return ap(), !1;
|
|
14908
|
+
(h(n.parenL) || h(n.name) || h(n._yield)) && (a.potentialArrowAt = a.start);
|
|
14909
|
+
const r = Hh(e);
|
|
14910
14910
|
return t && ui(), a.type & n.IS_ASSIGN ? (w(), Ge(e), !1) : r;
|
|
14911
14911
|
}
|
|
14912
|
-
function
|
|
14913
|
-
return
|
|
14912
|
+
function Hh(e) {
|
|
14913
|
+
return Gh(e) ? !0 : (Wh(e), !1);
|
|
14914
14914
|
}
|
|
14915
|
-
function
|
|
14916
|
-
ue || ge ?
|
|
14915
|
+
function Wh(e) {
|
|
14916
|
+
ue || ge ? qh(e) : ho(e);
|
|
14917
14917
|
}
|
|
14918
|
-
function
|
|
14918
|
+
function ho(e) {
|
|
14919
14919
|
k(n.question) && (Ge(), v(n.colon), Ge(e));
|
|
14920
14920
|
}
|
|
14921
|
-
function
|
|
14921
|
+
function Gh(e) {
|
|
14922
14922
|
const t = a.tokens.length;
|
|
14923
|
-
return
|
|
14923
|
+
return pn() ? !0 : (vn(t, -1, e), !1);
|
|
14924
14924
|
}
|
|
14925
14925
|
function vn(e, t, r) {
|
|
14926
14926
|
if (ue && (n._in & n.PRECEDENCE_MASK) > t && !Qe() && (Ve(d._as) || Ve(d._satisfies))) {
|
|
@@ -14929,46 +14929,46 @@ function vn(e, t, r) {
|
|
|
14929
14929
|
return;
|
|
14930
14930
|
}
|
|
14931
14931
|
const s = a.type & n.PRECEDENCE_MASK;
|
|
14932
|
-
if (s > 0 && (!r || !
|
|
14932
|
+
if (s > 0 && (!r || !h(n._in)) && s > t) {
|
|
14933
14933
|
const i = a.type;
|
|
14934
14934
|
w(), i === n.nullishCoalescing && (a.tokens[a.tokens.length - 1].nullishStartIndex = e);
|
|
14935
14935
|
const o = a.tokens.length;
|
|
14936
|
-
|
|
14936
|
+
pn(), vn(o, i & n.IS_RIGHT_ASSOCIATIVE ? s - 1 : s, r), i === n.nullishCoalescing && (a.tokens[e].numNullishCoalesceStarts++, a.tokens[a.tokens.length - 1].numNullishCoalesceEnds++), vn(e, t, r);
|
|
14937
14937
|
}
|
|
14938
14938
|
}
|
|
14939
|
-
function
|
|
14939
|
+
function pn() {
|
|
14940
14940
|
if (ue && !Un && k(n.lessThan))
|
|
14941
|
-
return
|
|
14941
|
+
return rh(), !1;
|
|
14942
14942
|
if (q(d._module) && Da() === g.leftCurlyBrace && !Ea())
|
|
14943
|
-
return
|
|
14943
|
+
return op(), !1;
|
|
14944
14944
|
if (a.type & n.IS_PREFIX)
|
|
14945
|
-
return w(),
|
|
14946
|
-
if (
|
|
14945
|
+
return w(), pn(), !1;
|
|
14946
|
+
if (po())
|
|
14947
14947
|
return !0;
|
|
14948
14948
|
for (; a.type & n.IS_POSTFIX && !it(); )
|
|
14949
14949
|
a.type === n.preIncDec && (a.type = n.postIncDec), w();
|
|
14950
14950
|
return !1;
|
|
14951
14951
|
}
|
|
14952
|
-
function
|
|
14952
|
+
function po() {
|
|
14953
14953
|
const e = a.tokens.length;
|
|
14954
14954
|
return Ot() ? !0 : (oi(e), a.tokens.length > e && a.tokens[e].isOptionalChainStart && (a.tokens[a.tokens.length - 1].isOptionalChainEnd = !0), !1);
|
|
14955
14955
|
}
|
|
14956
14956
|
function oi(e, t = !1) {
|
|
14957
|
-
ge ?
|
|
14957
|
+
ge ? Qp(e, t) : fo(e, t);
|
|
14958
14958
|
}
|
|
14959
14959
|
function fo(e, t = !1) {
|
|
14960
|
-
const r = new
|
|
14960
|
+
const r = new zh(!1);
|
|
14961
14961
|
do
|
|
14962
|
-
|
|
14962
|
+
Xh(e, t, r);
|
|
14963
14963
|
while (!r.stop && !a.error);
|
|
14964
14964
|
}
|
|
14965
|
-
function
|
|
14966
|
-
ue ?
|
|
14965
|
+
function Xh(e, t, r) {
|
|
14966
|
+
ue ? mh(e, t, r) : ge ? Np(e, t, r) : ci(e, t, r);
|
|
14967
14967
|
}
|
|
14968
14968
|
function ci(e, t, r) {
|
|
14969
14969
|
if (!t && k(n.doubleColon))
|
|
14970
14970
|
li(), r.stop = !0, oi(e, t);
|
|
14971
|
-
else if (
|
|
14971
|
+
else if (h(n.questionDot)) {
|
|
14972
14972
|
if (a.tokens[e].isOptionalChainStart = !0, t && Ae() === n.parenL) {
|
|
14973
14973
|
r.stop = !0;
|
|
14974
14974
|
return;
|
|
@@ -14978,18 +14978,18 @@ function ci(e, t, r) {
|
|
|
14978
14978
|
a.tokens[a.tokens.length - 1].subscriptStartIndex = e, Nn();
|
|
14979
14979
|
else if (k(n.bracketL))
|
|
14980
14980
|
a.tokens[a.tokens.length - 1].subscriptStartIndex = e, We(), v(n.bracketR);
|
|
14981
|
-
else if (!t &&
|
|
14981
|
+
else if (!t && h(n.parenL))
|
|
14982
14982
|
if (mo()) {
|
|
14983
14983
|
const s = a.snapshot(), i = a.tokens.length;
|
|
14984
14984
|
w(), a.tokens[a.tokens.length - 1].subscriptStartIndex = e;
|
|
14985
14985
|
const o = Zr();
|
|
14986
|
-
a.tokens[a.tokens.length - 1].contextId = o, Xt(), a.tokens[a.tokens.length - 1].contextId = o,
|
|
14986
|
+
a.tokens[a.tokens.length - 1].contextId = o, Xt(), a.tokens[a.tokens.length - 1].contextId = o, Yh() && (a.restoreFromSnapshot(s), r.stop = !0, a.scopeDepth++, Ar(), Kh(i));
|
|
14987
14987
|
} else {
|
|
14988
14988
|
w(), a.tokens[a.tokens.length - 1].subscriptStartIndex = e;
|
|
14989
14989
|
const s = Zr();
|
|
14990
14990
|
a.tokens[a.tokens.length - 1].contextId = s, Xt(), a.tokens[a.tokens.length - 1].contextId = s;
|
|
14991
14991
|
}
|
|
14992
|
-
else
|
|
14992
|
+
else h(n.backQuote) ? hi() : r.stop = !0;
|
|
14993
14993
|
}
|
|
14994
14994
|
function mo() {
|
|
14995
14995
|
return a.tokens[a.tokens.length - 1].contextualKeyword === d._async && !it();
|
|
@@ -15004,11 +15004,11 @@ function Xt() {
|
|
|
15004
15004
|
bo(!1);
|
|
15005
15005
|
}
|
|
15006
15006
|
}
|
|
15007
|
-
function
|
|
15008
|
-
return
|
|
15007
|
+
function Yh() {
|
|
15008
|
+
return h(n.colon) || h(n.arrow);
|
|
15009
15009
|
}
|
|
15010
|
-
function
|
|
15011
|
-
ue ?
|
|
15010
|
+
function Kh(e) {
|
|
15011
|
+
ue ? Th() : ge && Xp(), v(n.arrow), nn(e);
|
|
15012
15012
|
}
|
|
15013
15013
|
function li() {
|
|
15014
15014
|
const e = a.tokens.length;
|
|
@@ -15017,9 +15017,9 @@ function li() {
|
|
|
15017
15017
|
function Ot() {
|
|
15018
15018
|
if (k(n.modulo))
|
|
15019
15019
|
return Q(), !1;
|
|
15020
|
-
if (
|
|
15020
|
+
if (h(n.jsxText) || h(n.jsxEmptyText))
|
|
15021
15021
|
return Cr(), !1;
|
|
15022
|
-
if (
|
|
15022
|
+
if (h(n.lessThan) && Un)
|
|
15023
15023
|
return a.type = n.jsxTagStart, uo(), w(), !1;
|
|
15024
15024
|
const e = a.potentialArrowAt === a.start;
|
|
15025
15025
|
switch (a.type) {
|
|
@@ -15038,10 +15038,10 @@ function Ot() {
|
|
|
15038
15038
|
case n._false:
|
|
15039
15039
|
return w(), !1;
|
|
15040
15040
|
case n._import:
|
|
15041
|
-
return w(),
|
|
15041
|
+
return w(), h(n.dot) && (a.tokens[a.tokens.length - 1].type = n.name, w(), Q()), !1;
|
|
15042
15042
|
case n.name: {
|
|
15043
15043
|
const t = a.tokens.length, r = a.start, s = a.contextualKeyword;
|
|
15044
|
-
return Q(), s === d._await ? (
|
|
15044
|
+
return Q(), s === d._await ? (ip(), !1) : s === d._async && h(n._function) && !it() ? (w(), ar(r, !1), !1) : e && s === d._async && !it() && h(n.name) ? (a.scopeDepth++, Qt(!1), v(n.arrow), nn(t), !0) : h(n._do) && !it() ? (w(), Yt(), !1) : e && !it() && h(n.arrow) ? (a.scopeDepth++, ei(!1), v(n.arrow), nn(t), !0) : (a.tokens[a.tokens.length - 1].identifierRole = W.Access, !1);
|
|
15045
15045
|
}
|
|
15046
15046
|
case n._do:
|
|
15047
15047
|
return w(), Yt(), !1;
|
|
@@ -15050,17 +15050,17 @@ function Ot() {
|
|
|
15050
15050
|
case n.bracketL:
|
|
15051
15051
|
return w(), ko(n.bracketR, !0), !1;
|
|
15052
15052
|
case n.braceL:
|
|
15053
|
-
return
|
|
15053
|
+
return pi(!1, !1), !1;
|
|
15054
15054
|
case n._function:
|
|
15055
|
-
return
|
|
15055
|
+
return Qh(), !1;
|
|
15056
15056
|
case n.at:
|
|
15057
15057
|
vi();
|
|
15058
15058
|
case n._class:
|
|
15059
15059
|
return or(!1), !1;
|
|
15060
15060
|
case n._new:
|
|
15061
|
-
return
|
|
15061
|
+
return Zh(), !1;
|
|
15062
15062
|
case n.backQuote:
|
|
15063
|
-
return
|
|
15063
|
+
return hi(), !1;
|
|
15064
15064
|
case n.doubleColon:
|
|
15065
15065
|
return w(), li(), !1;
|
|
15066
15066
|
case n.hash: {
|
|
@@ -15074,7 +15074,7 @@ function Ot() {
|
|
|
15074
15074
|
function Nn() {
|
|
15075
15075
|
k(n.hash), Q();
|
|
15076
15076
|
}
|
|
15077
|
-
function
|
|
15077
|
+
function Qh() {
|
|
15078
15078
|
const e = a.start;
|
|
15079
15079
|
Q(), k(n.dot) && Q(), ar(e, !1);
|
|
15080
15080
|
}
|
|
@@ -15088,12 +15088,12 @@ function go(e) {
|
|
|
15088
15088
|
const t = a.snapshot(), r = a.tokens.length;
|
|
15089
15089
|
v(n.parenL);
|
|
15090
15090
|
let s = !0;
|
|
15091
|
-
for (; !
|
|
15091
|
+
for (; !h(n.parenR) && !a.error; ) {
|
|
15092
15092
|
if (s)
|
|
15093
15093
|
s = !1;
|
|
15094
|
-
else if (v(n.comma),
|
|
15094
|
+
else if (v(n.comma), h(n.parenR))
|
|
15095
15095
|
break;
|
|
15096
|
-
if (
|
|
15096
|
+
if (h(n.ellipsis)) {
|
|
15097
15097
|
Qa(
|
|
15098
15098
|
!1
|
|
15099
15099
|
/* isBlockScope */
|
|
@@ -15102,33 +15102,33 @@ function go(e) {
|
|
|
15102
15102
|
} else
|
|
15103
15103
|
Ge(!1, !0);
|
|
15104
15104
|
}
|
|
15105
|
-
return v(n.parenR), e &&
|
|
15105
|
+
return v(n.parenR), e && Jh() && qs() ? (a.restoreFromSnapshot(t), a.scopeDepth++, Ar(), qs(), nn(r), a.error ? (a.restoreFromSnapshot(t), go(!1), !1) : !0) : !1;
|
|
15106
15106
|
}
|
|
15107
|
-
function
|
|
15108
|
-
return
|
|
15107
|
+
function Jh() {
|
|
15108
|
+
return h(n.colon) || !it();
|
|
15109
15109
|
}
|
|
15110
15110
|
function qs() {
|
|
15111
|
-
return ue ?
|
|
15111
|
+
return ue ? Lh() : ge ? Kp() : k(n.arrow);
|
|
15112
15112
|
}
|
|
15113
15113
|
function ui() {
|
|
15114
|
-
(ue || ge) &&
|
|
15114
|
+
(ue || ge) && Uh();
|
|
15115
15115
|
}
|
|
15116
|
-
function
|
|
15116
|
+
function Zh() {
|
|
15117
15117
|
if (v(n._new), k(n.dot)) {
|
|
15118
15118
|
Q();
|
|
15119
15119
|
return;
|
|
15120
15120
|
}
|
|
15121
|
-
|
|
15121
|
+
ep(), ge && Lp(), k(n.parenL) && ko(n.parenR);
|
|
15122
15122
|
}
|
|
15123
|
-
function
|
|
15123
|
+
function ep() {
|
|
15124
15124
|
li(), k(n.questionDot);
|
|
15125
15125
|
}
|
|
15126
|
-
function
|
|
15127
|
-
for (zt(), zt(); !
|
|
15126
|
+
function hi() {
|
|
15127
|
+
for (zt(), zt(); !h(n.backQuote) && !a.error; )
|
|
15128
15128
|
v(n.dollarBraceL), We(), zt(), zt();
|
|
15129
15129
|
w();
|
|
15130
15130
|
}
|
|
15131
|
-
function
|
|
15131
|
+
function pi(e, t) {
|
|
15132
15132
|
const r = Zr();
|
|
15133
15133
|
let s = !0;
|
|
15134
15134
|
for (w(), a.tokens[a.tokens.length - 1].contextId = r; !k(n.braceR) && !a.error; ) {
|
|
@@ -15137,36 +15137,36 @@ function hi(e, t) {
|
|
|
15137
15137
|
else if (v(n.comma), k(n.braceR))
|
|
15138
15138
|
break;
|
|
15139
15139
|
let i = !1;
|
|
15140
|
-
if (
|
|
15140
|
+
if (h(n.ellipsis)) {
|
|
15141
15141
|
const o = a.tokens.length;
|
|
15142
15142
|
if (Ka(), e && (a.tokens.length === o + 2 && ei(t), k(n.braceR)))
|
|
15143
15143
|
break;
|
|
15144
15144
|
continue;
|
|
15145
15145
|
}
|
|
15146
|
-
e || (i = k(n.star)), !e && q(d._async) ? (i && re(), Q(),
|
|
15146
|
+
e || (i = k(n.star)), !e && q(d._async) ? (i && re(), Q(), h(n.colon) || h(n.parenL) || h(n.braceR) || h(n.eq) || h(n.comma) || (h(n.star) && (w(), i = !0), rn(r))) : rn(r), sp(e, t, r);
|
|
15147
15147
|
}
|
|
15148
15148
|
a.tokens[a.tokens.length - 1].contextId = r;
|
|
15149
15149
|
}
|
|
15150
|
-
function
|
|
15151
|
-
return !e && (
|
|
15152
|
-
|
|
15153
|
-
|
|
15154
|
-
|
|
15150
|
+
function tp(e) {
|
|
15151
|
+
return !e && (h(n.string) || // get "string"() {}
|
|
15152
|
+
h(n.num) || // get 1() {}
|
|
15153
|
+
h(n.bracketL) || // get ["string"]() {}
|
|
15154
|
+
h(n.name) || // get foo() {}
|
|
15155
15155
|
!!(a.type & n.IS_KEYWORD));
|
|
15156
15156
|
}
|
|
15157
|
-
function
|
|
15157
|
+
function rp(e, t) {
|
|
15158
15158
|
const r = a.start;
|
|
15159
|
-
return
|
|
15159
|
+
return h(n.parenL) ? (e && re(), Us(
|
|
15160
15160
|
r,
|
|
15161
15161
|
/* isConstructor */
|
|
15162
15162
|
!1
|
|
15163
|
-
), !0) :
|
|
15163
|
+
), !0) : tp(e) ? (rn(t), Us(
|
|
15164
15164
|
r,
|
|
15165
15165
|
/* isConstructor */
|
|
15166
15166
|
!1
|
|
15167
15167
|
), !0) : !1;
|
|
15168
15168
|
}
|
|
15169
|
-
function
|
|
15169
|
+
function np(e, t) {
|
|
15170
15170
|
if (k(n.colon)) {
|
|
15171
15171
|
e ? An(t) : Ge(!1);
|
|
15172
15172
|
return;
|
|
@@ -15174,11 +15174,11 @@ function nh(e, t) {
|
|
|
15174
15174
|
let r;
|
|
15175
15175
|
e ? a.scopeDepth === 0 ? r = W.ObjectShorthandTopLevelDeclaration : t ? r = W.ObjectShorthandBlockScopedDeclaration : r = W.ObjectShorthandFunctionScopedDeclaration : r = W.ObjectShorthand, a.tokens[a.tokens.length - 1].identifierRole = r, An(t, !0);
|
|
15176
15176
|
}
|
|
15177
|
-
function
|
|
15178
|
-
ue ?
|
|
15177
|
+
function sp(e, t, r) {
|
|
15178
|
+
ue ? Ih() : ge && qp(), rp(e, r) || np(e, t);
|
|
15179
15179
|
}
|
|
15180
15180
|
function rn(e) {
|
|
15181
|
-
ge && yi(), k(n.bracketL) ? (a.tokens[a.tokens.length - 1].contextId = e, Ge(), v(n.bracketR), a.tokens[a.tokens.length - 1].contextId = e) : (
|
|
15181
|
+
ge && yi(), k(n.bracketL) ? (a.tokens[a.tokens.length - 1].contextId = e, Ge(), v(n.bracketR), a.tokens[a.tokens.length - 1].contextId = e) : (h(n.num) || h(n.string) || h(n.bigint) || h(n.decimal) ? Ot() : Nn(), a.tokens[a.tokens.length - 1].identifierRole = W.ObjectKey, a.tokens[a.tokens.length - 1].contextId = e);
|
|
15182
15182
|
}
|
|
15183
15183
|
function Us(e, t) {
|
|
15184
15184
|
const r = Zr();
|
|
@@ -15194,10 +15194,10 @@ function nn(e) {
|
|
|
15194
15194
|
a.scopes.push(new Et(e, t, !0)), a.scopeDepth--;
|
|
15195
15195
|
}
|
|
15196
15196
|
function xo(e, t = 0) {
|
|
15197
|
-
ue ?
|
|
15197
|
+
ue ? dh(e, t) : ge ? Pp(t) : fn(!1, t);
|
|
15198
15198
|
}
|
|
15199
15199
|
function fn(e, t = 0) {
|
|
15200
|
-
e && !
|
|
15200
|
+
e && !h(n.braceL) ? Ge() : Yt(!0, t);
|
|
15201
15201
|
}
|
|
15202
15202
|
function ko(e, t = !1) {
|
|
15203
15203
|
let r = !0;
|
|
@@ -15209,21 +15209,21 @@ function ko(e, t = !1) {
|
|
|
15209
15209
|
}
|
|
15210
15210
|
}
|
|
15211
15211
|
function bo(e) {
|
|
15212
|
-
e &&
|
|
15212
|
+
e && h(n.comma) || (h(n.ellipsis) ? (Ka(), ui()) : h(n.question) ? w() : Ge(!1, !0));
|
|
15213
15213
|
}
|
|
15214
15214
|
function Q() {
|
|
15215
15215
|
w(), a.tokens[a.tokens.length - 1].type = n.name;
|
|
15216
15216
|
}
|
|
15217
|
-
function
|
|
15218
|
-
|
|
15217
|
+
function ip() {
|
|
15218
|
+
pn();
|
|
15219
15219
|
}
|
|
15220
|
-
function
|
|
15221
|
-
w(), !
|
|
15220
|
+
function ap() {
|
|
15221
|
+
w(), !h(n.semi) && !it() && (k(n.star), Ge());
|
|
15222
15222
|
}
|
|
15223
|
-
function
|
|
15223
|
+
function op() {
|
|
15224
15224
|
De(d._module), v(n.braceL), Kn(n.braceR);
|
|
15225
15225
|
}
|
|
15226
|
-
function
|
|
15226
|
+
function cp(e) {
|
|
15227
15227
|
return (e.type === n.name || !!(e.type & n.IS_KEYWORD)) && e.contextualKeyword !== d._from;
|
|
15228
15228
|
}
|
|
15229
15229
|
function Tt(e) {
|
|
@@ -15235,52 +15235,52 @@ function ra() {
|
|
|
15235
15235
|
}
|
|
15236
15236
|
function fi() {
|
|
15237
15237
|
const e = ie(0);
|
|
15238
|
-
v(n.colon),
|
|
15238
|
+
v(n.colon), h(n.modulo) ? ra() : (et(), h(n.modulo) && ra()), se(e);
|
|
15239
15239
|
}
|
|
15240
|
-
function
|
|
15240
|
+
function lp() {
|
|
15241
15241
|
w(), di(
|
|
15242
15242
|
/* isClass */
|
|
15243
15243
|
!0
|
|
15244
15244
|
);
|
|
15245
15245
|
}
|
|
15246
|
-
function
|
|
15247
|
-
w(), Q(),
|
|
15246
|
+
function up() {
|
|
15247
|
+
w(), Q(), h(n.lessThan) && yt(), v(n.parenL), Hs(), v(n.parenR), fi(), Ie();
|
|
15248
15248
|
}
|
|
15249
15249
|
function zs() {
|
|
15250
|
-
|
|
15250
|
+
h(n._class) ? lp() : h(n._function) ? up() : h(n._var) ? hp() : Ve(d._module) ? k(n.dot) ? dp() : pp() : q(d._type) ? mp() : q(d._opaque) ? gp() : q(d._interface) ? xp() : h(n._export) ? fp() : re();
|
|
15251
15251
|
}
|
|
15252
|
-
function
|
|
15252
|
+
function hp() {
|
|
15253
15253
|
w(), _o(), Ie();
|
|
15254
15254
|
}
|
|
15255
|
-
function
|
|
15256
|
-
for (
|
|
15257
|
-
|
|
15255
|
+
function pp() {
|
|
15256
|
+
for (h(n.string) ? Ot() : Q(), v(n.braceL); !h(n.braceR) && !a.error; )
|
|
15257
|
+
h(n._import) ? (w(), Ro()) : re();
|
|
15258
15258
|
v(n.braceR);
|
|
15259
15259
|
}
|
|
15260
|
-
function
|
|
15261
|
-
v(n._export), k(n._default) ?
|
|
15262
|
-
|
|
15263
|
-
|
|
15264
|
-
q(d._opaque) ? zs() :
|
|
15265
|
-
|
|
15260
|
+
function fp() {
|
|
15261
|
+
v(n._export), k(n._default) ? h(n._function) || h(n._class) ? zs() : (et(), Ie()) : h(n._var) || // declare export var ...
|
|
15262
|
+
h(n._function) || // declare export function ...
|
|
15263
|
+
h(n._class) || // declare export class ...
|
|
15264
|
+
q(d._opaque) ? zs() : h(n.star) || // declare export * from ''
|
|
15265
|
+
h(n.braceL) || // declare export {} ...
|
|
15266
15266
|
q(d._interface) || // declare export interface ...
|
|
15267
15267
|
q(d._type) || // declare export type ...
|
|
15268
15268
|
q(d._opaque) ? No() : re();
|
|
15269
15269
|
}
|
|
15270
|
-
function
|
|
15270
|
+
function dp() {
|
|
15271
15271
|
De(d._exports), ur(), Ie();
|
|
15272
15272
|
}
|
|
15273
|
-
function
|
|
15273
|
+
function mp() {
|
|
15274
15274
|
w(), gi();
|
|
15275
15275
|
}
|
|
15276
|
-
function
|
|
15276
|
+
function gp() {
|
|
15277
15277
|
w(), xi(!0);
|
|
15278
15278
|
}
|
|
15279
|
-
function
|
|
15279
|
+
function xp() {
|
|
15280
15280
|
w(), di();
|
|
15281
15281
|
}
|
|
15282
15282
|
function di(e = !1) {
|
|
15283
|
-
if (Yn(),
|
|
15283
|
+
if (Yn(), h(n.lessThan) && yt(), k(n._extends))
|
|
15284
15284
|
do
|
|
15285
15285
|
wn();
|
|
15286
15286
|
while (!e && k(n.comma));
|
|
@@ -15299,7 +15299,7 @@ function di(e = !1) {
|
|
|
15299
15299
|
Ln(e, !1, e);
|
|
15300
15300
|
}
|
|
15301
15301
|
function wn() {
|
|
15302
|
-
yo(!1),
|
|
15302
|
+
yo(!1), h(n.lessThan) && ir();
|
|
15303
15303
|
}
|
|
15304
15304
|
function mi() {
|
|
15305
15305
|
di();
|
|
@@ -15308,29 +15308,29 @@ function Yn() {
|
|
|
15308
15308
|
Q();
|
|
15309
15309
|
}
|
|
15310
15310
|
function gi() {
|
|
15311
|
-
Yn(),
|
|
15311
|
+
Yn(), h(n.lessThan) && yt(), Tt(n.eq), Ie();
|
|
15312
15312
|
}
|
|
15313
15313
|
function xi(e) {
|
|
15314
|
-
De(d._type), Yn(),
|
|
15314
|
+
De(d._type), Yn(), h(n.lessThan) && yt(), h(n.colon) && Tt(n.colon), e || Tt(n.eq), Ie();
|
|
15315
15315
|
}
|
|
15316
|
-
function
|
|
15316
|
+
function kp() {
|
|
15317
15317
|
yi(), _o(), k(n.eq) && et();
|
|
15318
15318
|
}
|
|
15319
15319
|
function yt() {
|
|
15320
15320
|
const e = ie(0);
|
|
15321
|
-
|
|
15321
|
+
h(n.lessThan) || h(n.typeParameterStart) ? w() : re();
|
|
15322
15322
|
do
|
|
15323
|
-
|
|
15324
|
-
while (!
|
|
15323
|
+
kp(), h(n.greaterThan) || v(n.comma);
|
|
15324
|
+
while (!h(n.greaterThan) && !a.error);
|
|
15325
15325
|
v(n.greaterThan), se(e);
|
|
15326
15326
|
}
|
|
15327
15327
|
function ir() {
|
|
15328
15328
|
const e = ie(0);
|
|
15329
|
-
for (v(n.lessThan); !
|
|
15330
|
-
et(),
|
|
15329
|
+
for (v(n.lessThan); !h(n.greaterThan) && !a.error; )
|
|
15330
|
+
et(), h(n.greaterThan) || v(n.comma);
|
|
15331
15331
|
v(n.greaterThan), se(e);
|
|
15332
15332
|
}
|
|
15333
|
-
function
|
|
15333
|
+
function bp() {
|
|
15334
15334
|
if (De(d._interface), k(n._extends))
|
|
15335
15335
|
do
|
|
15336
15336
|
wn();
|
|
@@ -15338,25 +15338,25 @@ function bh() {
|
|
|
15338
15338
|
Ln(!1, !1, !1);
|
|
15339
15339
|
}
|
|
15340
15340
|
function ki() {
|
|
15341
|
-
|
|
15341
|
+
h(n.num) || h(n.string) ? Ot() : Q();
|
|
15342
15342
|
}
|
|
15343
|
-
function
|
|
15343
|
+
function yp() {
|
|
15344
15344
|
Ae() === n.colon ? (ki(), Tt()) : et(), v(n.bracketR), Tt();
|
|
15345
15345
|
}
|
|
15346
|
-
function
|
|
15347
|
-
ki(), v(n.bracketR), v(n.bracketR),
|
|
15346
|
+
function vp() {
|
|
15347
|
+
ki(), v(n.bracketR), v(n.bracketR), h(n.lessThan) || h(n.parenL) ? bi() : (k(n.question), Tt());
|
|
15348
15348
|
}
|
|
15349
15349
|
function bi() {
|
|
15350
|
-
for (
|
|
15351
|
-
Rn(),
|
|
15350
|
+
for (h(n.lessThan) && yt(), v(n.parenL); !h(n.parenR) && !h(n.ellipsis) && !a.error; )
|
|
15351
|
+
Rn(), h(n.parenR) || v(n.comma);
|
|
15352
15352
|
k(n.ellipsis) && Rn(), v(n.parenR), Tt();
|
|
15353
15353
|
}
|
|
15354
|
-
function
|
|
15354
|
+
function wp() {
|
|
15355
15355
|
bi();
|
|
15356
15356
|
}
|
|
15357
15357
|
function Ln(e, t, r) {
|
|
15358
15358
|
let s;
|
|
15359
|
-
for (t &&
|
|
15359
|
+
for (t && h(n.braceBarL) ? (v(n.braceBarL), s = n.braceBarR) : (v(n.braceL), s = n.braceR); !h(s) && !a.error; ) {
|
|
15360
15360
|
if (r && q(d._proto)) {
|
|
15361
15361
|
const i = Ae();
|
|
15362
15362
|
i !== n.colon && i !== n.question && (w(), e = !1);
|
|
@@ -15366,43 +15366,43 @@ function Ln(e, t, r) {
|
|
|
15366
15366
|
i !== n.colon && i !== n.question && w();
|
|
15367
15367
|
}
|
|
15368
15368
|
if (yi(), k(n.bracketL))
|
|
15369
|
-
k(n.bracketL) ?
|
|
15370
|
-
else if (
|
|
15371
|
-
|
|
15369
|
+
k(n.bracketL) ? vp() : yp();
|
|
15370
|
+
else if (h(n.parenL) || h(n.lessThan))
|
|
15371
|
+
wp();
|
|
15372
15372
|
else {
|
|
15373
15373
|
if (q(d._get) || q(d._set)) {
|
|
15374
15374
|
const i = Ae();
|
|
15375
15375
|
(i === n.name || i === n.string || i === n.num) && w();
|
|
15376
15376
|
}
|
|
15377
|
-
|
|
15377
|
+
_p();
|
|
15378
15378
|
}
|
|
15379
|
-
|
|
15379
|
+
Sp();
|
|
15380
15380
|
}
|
|
15381
15381
|
v(s);
|
|
15382
15382
|
}
|
|
15383
|
-
function
|
|
15384
|
-
if (
|
|
15385
|
-
if (v(n.ellipsis), k(n.comma) || k(n.semi),
|
|
15383
|
+
function _p() {
|
|
15384
|
+
if (h(n.ellipsis)) {
|
|
15385
|
+
if (v(n.ellipsis), k(n.comma) || k(n.semi), h(n.braceR))
|
|
15386
15386
|
return;
|
|
15387
15387
|
et();
|
|
15388
15388
|
} else
|
|
15389
|
-
ki(),
|
|
15389
|
+
ki(), h(n.lessThan) || h(n.parenL) ? bi() : (k(n.question), Tt());
|
|
15390
15390
|
}
|
|
15391
|
-
function
|
|
15392
|
-
!k(n.semi) && !k(n.comma) && !
|
|
15391
|
+
function Sp() {
|
|
15392
|
+
!k(n.semi) && !k(n.comma) && !h(n.braceR) && !h(n.braceBarR) && re();
|
|
15393
15393
|
}
|
|
15394
15394
|
function yo(e) {
|
|
15395
15395
|
for (e || Q(); k(n.dot); )
|
|
15396
15396
|
Q();
|
|
15397
15397
|
}
|
|
15398
|
-
function
|
|
15399
|
-
yo(!0),
|
|
15398
|
+
function Ip() {
|
|
15399
|
+
yo(!0), h(n.lessThan) && ir();
|
|
15400
15400
|
}
|
|
15401
|
-
function
|
|
15401
|
+
function Cp() {
|
|
15402
15402
|
v(n._typeof), vo();
|
|
15403
15403
|
}
|
|
15404
|
-
function
|
|
15405
|
-
for (v(n.bracketL); a.pos < A.length && !
|
|
15404
|
+
function Ep() {
|
|
15405
|
+
for (v(n.bracketL); a.pos < A.length && !h(n.bracketR) && (et(), !h(n.bracketR)); )
|
|
15406
15406
|
v(n.comma);
|
|
15407
15407
|
v(n.bracketR);
|
|
15408
15408
|
}
|
|
@@ -15411,8 +15411,8 @@ function Rn() {
|
|
|
15411
15411
|
e === n.colon || e === n.question ? (Q(), k(n.question), Tt()) : et();
|
|
15412
15412
|
}
|
|
15413
15413
|
function Hs() {
|
|
15414
|
-
for (; !
|
|
15415
|
-
Rn(),
|
|
15414
|
+
for (; !h(n.parenR) && !h(n.ellipsis) && !a.error; )
|
|
15415
|
+
Rn(), h(n.parenR) || v(n.comma);
|
|
15416
15416
|
k(n.ellipsis) && Rn();
|
|
15417
15417
|
}
|
|
15418
15418
|
function vo() {
|
|
@@ -15421,10 +15421,10 @@ function vo() {
|
|
|
15421
15421
|
switch (a.type) {
|
|
15422
15422
|
case n.name: {
|
|
15423
15423
|
if (q(d._interface)) {
|
|
15424
|
-
|
|
15424
|
+
bp();
|
|
15425
15425
|
return;
|
|
15426
15426
|
}
|
|
15427
|
-
Q(),
|
|
15427
|
+
Q(), Ip();
|
|
15428
15428
|
return;
|
|
15429
15429
|
}
|
|
15430
15430
|
case n.braceL:
|
|
@@ -15434,20 +15434,20 @@ function vo() {
|
|
|
15434
15434
|
Ln(!1, !0, !1);
|
|
15435
15435
|
return;
|
|
15436
15436
|
case n.bracketL:
|
|
15437
|
-
|
|
15437
|
+
Ep();
|
|
15438
15438
|
return;
|
|
15439
15439
|
case n.lessThan:
|
|
15440
15440
|
yt(), v(n.parenL), Hs(), v(n.parenR), v(n.arrow), et();
|
|
15441
15441
|
return;
|
|
15442
15442
|
case n.parenL:
|
|
15443
|
-
if (w(), !
|
|
15444
|
-
if (
|
|
15443
|
+
if (w(), !h(n.parenR) && !h(n.ellipsis))
|
|
15444
|
+
if (h(n.name)) {
|
|
15445
15445
|
const r = Ae();
|
|
15446
15446
|
e = r !== n.question && r !== n.colon;
|
|
15447
15447
|
} else
|
|
15448
15448
|
e = !0;
|
|
15449
15449
|
if (e)
|
|
15450
|
-
if (a.noAnonFunctionType = !1, et(), a.noAnonFunctionType = t, a.noAnonFunctionType || !(
|
|
15450
|
+
if (a.noAnonFunctionType = !1, et(), a.noAnonFunctionType = t, a.noAnonFunctionType || !(h(n.comma) || h(n.parenR) && Ae() === n.arrow)) {
|
|
15451
15451
|
v(n.parenR);
|
|
15452
15452
|
return;
|
|
15453
15453
|
} else
|
|
@@ -15469,7 +15469,7 @@ function vo() {
|
|
|
15469
15469
|
return;
|
|
15470
15470
|
default:
|
|
15471
15471
|
if (a.type === n._typeof) {
|
|
15472
|
-
|
|
15472
|
+
Cp();
|
|
15473
15473
|
return;
|
|
15474
15474
|
} else if (a.type & n.IS_KEYWORD) {
|
|
15475
15475
|
w(), a.tokens[a.tokens.length - 1].type = n.name;
|
|
@@ -15478,12 +15478,12 @@ function vo() {
|
|
|
15478
15478
|
}
|
|
15479
15479
|
re();
|
|
15480
15480
|
}
|
|
15481
|
-
function
|
|
15482
|
-
for (vo(); !it() && (
|
|
15481
|
+
function Tp() {
|
|
15482
|
+
for (vo(); !it() && (h(n.bracketL) || h(n.questionDot)); )
|
|
15483
15483
|
k(n.questionDot), v(n.bracketL), k(n.bracketR) || (et(), v(n.bracketR));
|
|
15484
15484
|
}
|
|
15485
15485
|
function wo() {
|
|
15486
|
-
k(n.question) ? wo() :
|
|
15486
|
+
k(n.question) ? wo() : Tp();
|
|
15487
15487
|
}
|
|
15488
15488
|
function na() {
|
|
15489
15489
|
wo(), !a.noAnonFunctionType && k(n.arrow) && et();
|
|
@@ -15492,34 +15492,34 @@ function sa() {
|
|
|
15492
15492
|
for (k(n.bitwiseAND), na(); k(n.bitwiseAND); )
|
|
15493
15493
|
na();
|
|
15494
15494
|
}
|
|
15495
|
-
function
|
|
15495
|
+
function Ap() {
|
|
15496
15496
|
for (k(n.bitwiseOR), sa(); k(n.bitwiseOR); )
|
|
15497
15497
|
sa();
|
|
15498
15498
|
}
|
|
15499
15499
|
function et() {
|
|
15500
|
-
|
|
15500
|
+
Ap();
|
|
15501
15501
|
}
|
|
15502
15502
|
function ur() {
|
|
15503
15503
|
Tt();
|
|
15504
15504
|
}
|
|
15505
15505
|
function _o() {
|
|
15506
|
-
Q(),
|
|
15506
|
+
Q(), h(n.colon) && ur();
|
|
15507
15507
|
}
|
|
15508
15508
|
function yi() {
|
|
15509
|
-
(
|
|
15509
|
+
(h(n.plus) || h(n.minus)) && (w(), a.tokens[a.tokens.length - 1].isType = !0);
|
|
15510
15510
|
}
|
|
15511
|
-
function
|
|
15512
|
-
|
|
15511
|
+
function Pp(e) {
|
|
15512
|
+
h(n.colon) && fi(), fn(!1, e);
|
|
15513
15513
|
}
|
|
15514
|
-
function
|
|
15515
|
-
if (
|
|
15514
|
+
function Np(e, t, r) {
|
|
15515
|
+
if (h(n.questionDot) && Ae() === n.lessThan) {
|
|
15516
15516
|
if (t) {
|
|
15517
15517
|
r.stop = !0;
|
|
15518
15518
|
return;
|
|
15519
15519
|
}
|
|
15520
15520
|
w(), ir(), v(n.parenL), Xt();
|
|
15521
15521
|
return;
|
|
15522
|
-
} else if (!t &&
|
|
15522
|
+
} else if (!t && h(n.lessThan)) {
|
|
15523
15523
|
const s = a.snapshot();
|
|
15524
15524
|
if (ir(), v(n.parenL), Xt(), a.error)
|
|
15525
15525
|
a.restoreFromSnapshot(s);
|
|
@@ -15528,30 +15528,30 @@ function Nh(e, t, r) {
|
|
|
15528
15528
|
}
|
|
15529
15529
|
ci(e, t, r);
|
|
15530
15530
|
}
|
|
15531
|
-
function
|
|
15532
|
-
if (
|
|
15531
|
+
function Lp() {
|
|
15532
|
+
if (h(n.lessThan)) {
|
|
15533
15533
|
const e = a.snapshot();
|
|
15534
15534
|
ir(), a.error && a.restoreFromSnapshot(e);
|
|
15535
15535
|
}
|
|
15536
15536
|
}
|
|
15537
|
-
function
|
|
15538
|
-
if (
|
|
15537
|
+
function Rp() {
|
|
15538
|
+
if (h(n.name) && a.contextualKeyword === d._interface) {
|
|
15539
15539
|
const e = ie(0);
|
|
15540
15540
|
return w(), mi(), se(e), !0;
|
|
15541
15541
|
} else if (q(d._enum))
|
|
15542
15542
|
return So(), !0;
|
|
15543
15543
|
return !1;
|
|
15544
15544
|
}
|
|
15545
|
-
function
|
|
15545
|
+
function Dp() {
|
|
15546
15546
|
return q(d._enum) ? (So(), !0) : !1;
|
|
15547
15547
|
}
|
|
15548
|
-
function
|
|
15548
|
+
function Op(e) {
|
|
15549
15549
|
if (e === d._declare) {
|
|
15550
|
-
if (
|
|
15550
|
+
if (h(n._class) || h(n.name) || h(n._function) || h(n._var) || h(n._export)) {
|
|
15551
15551
|
const t = ie(1);
|
|
15552
15552
|
zs(), se(t);
|
|
15553
15553
|
}
|
|
15554
|
-
} else if (
|
|
15554
|
+
} else if (h(n.name)) {
|
|
15555
15555
|
if (e === d._interface) {
|
|
15556
15556
|
const t = ie(1);
|
|
15557
15557
|
mi(), se(t);
|
|
@@ -15565,16 +15565,16 @@ function Oh(e) {
|
|
|
15565
15565
|
}
|
|
15566
15566
|
Ie();
|
|
15567
15567
|
}
|
|
15568
|
-
function
|
|
15568
|
+
function Mp() {
|
|
15569
15569
|
return q(d._type) || q(d._interface) || q(d._opaque) || q(d._enum);
|
|
15570
15570
|
}
|
|
15571
|
-
function
|
|
15572
|
-
return
|
|
15571
|
+
function Fp() {
|
|
15572
|
+
return h(n.name) && (a.contextualKeyword === d._type || a.contextualKeyword === d._interface || a.contextualKeyword === d._opaque || a.contextualKeyword === d._enum);
|
|
15573
15573
|
}
|
|
15574
|
-
function
|
|
15574
|
+
function jp() {
|
|
15575
15575
|
if (q(d._type)) {
|
|
15576
15576
|
const e = ie(1);
|
|
15577
|
-
w(),
|
|
15577
|
+
w(), h(n.braceL) ? (wi(), sn()) : gi(), se(e);
|
|
15578
15578
|
} else if (q(d._opaque)) {
|
|
15579
15579
|
const e = ie(1);
|
|
15580
15580
|
w(), xi(!1), se(e);
|
|
@@ -15584,60 +15584,60 @@ function jh() {
|
|
|
15584
15584
|
} else
|
|
15585
15585
|
at(!0);
|
|
15586
15586
|
}
|
|
15587
|
-
function
|
|
15588
|
-
return
|
|
15587
|
+
function Bp() {
|
|
15588
|
+
return h(n.star) || q(d._type) && Ae() === n.star;
|
|
15589
15589
|
}
|
|
15590
|
-
function
|
|
15590
|
+
function Vp() {
|
|
15591
15591
|
if (Ve(d._type)) {
|
|
15592
15592
|
const e = ie(2);
|
|
15593
15593
|
Ws(), se(e);
|
|
15594
15594
|
} else
|
|
15595
15595
|
Ws();
|
|
15596
15596
|
}
|
|
15597
|
-
function $
|
|
15598
|
-
if (e &&
|
|
15597
|
+
function $p(e) {
|
|
15598
|
+
if (e && h(n.lessThan) && ir(), q(d._implements)) {
|
|
15599
15599
|
const t = ie(0);
|
|
15600
15600
|
w(), a.tokens[a.tokens.length - 1].type = n._implements;
|
|
15601
15601
|
do
|
|
15602
|
-
Yn(),
|
|
15602
|
+
Yn(), h(n.lessThan) && ir();
|
|
15603
15603
|
while (k(n.comma));
|
|
15604
15604
|
se(t);
|
|
15605
15605
|
}
|
|
15606
15606
|
}
|
|
15607
|
-
function
|
|
15608
|
-
|
|
15607
|
+
function qp() {
|
|
15608
|
+
h(n.lessThan) && (yt(), h(n.parenL) || re());
|
|
15609
15609
|
}
|
|
15610
|
-
function
|
|
15610
|
+
function Up() {
|
|
15611
15611
|
const e = ie(0);
|
|
15612
|
-
k(n.question),
|
|
15612
|
+
k(n.question), h(n.colon) && ur(), se(e);
|
|
15613
15613
|
}
|
|
15614
|
-
function
|
|
15615
|
-
if (
|
|
15614
|
+
function zp() {
|
|
15615
|
+
if (h(n._typeof) || q(d._type)) {
|
|
15616
15616
|
const e = ln();
|
|
15617
|
-
(
|
|
15617
|
+
(cp(e) || e.type === n.braceL || e.type === n.star) && w();
|
|
15618
15618
|
}
|
|
15619
15619
|
}
|
|
15620
|
-
function
|
|
15620
|
+
function Hp() {
|
|
15621
15621
|
const e = a.contextualKeyword === d._type || a.type === n._typeof;
|
|
15622
|
-
e ? w() : Q(), q(d._as) && !Qs(d._as) ? (Q(), e && !
|
|
15622
|
+
e ? w() : Q(), q(d._as) && !Qs(d._as) ? (Q(), e && !h(n.name) && !(a.type & n.IS_KEYWORD) || Q()) : (e && (h(n.name) || a.type & n.IS_KEYWORD) && Q(), Ve(d._as) && Q());
|
|
15623
15623
|
}
|
|
15624
|
-
function
|
|
15625
|
-
if (
|
|
15624
|
+
function Wp() {
|
|
15625
|
+
if (h(n.lessThan)) {
|
|
15626
15626
|
const e = ie(0);
|
|
15627
15627
|
yt(), se(e);
|
|
15628
15628
|
}
|
|
15629
15629
|
}
|
|
15630
|
-
function
|
|
15631
|
-
|
|
15630
|
+
function Gp() {
|
|
15631
|
+
h(n.colon) && ur();
|
|
15632
15632
|
}
|
|
15633
|
-
function
|
|
15634
|
-
if (
|
|
15633
|
+
function Xp() {
|
|
15634
|
+
if (h(n.colon)) {
|
|
15635
15635
|
const e = a.noAnonFunctionType;
|
|
15636
15636
|
a.noAnonFunctionType = !0, ur(), a.noAnonFunctionType = e;
|
|
15637
15637
|
}
|
|
15638
15638
|
}
|
|
15639
|
-
function
|
|
15640
|
-
if (
|
|
15639
|
+
function Yp(e, t) {
|
|
15640
|
+
if (h(n.lessThan)) {
|
|
15641
15641
|
const r = a.snapshot();
|
|
15642
15642
|
let s = Ct(e, t);
|
|
15643
15643
|
if (a.error)
|
|
@@ -15651,36 +15651,36 @@ function Yh(e, t) {
|
|
|
15651
15651
|
}
|
|
15652
15652
|
return Ct(e, t);
|
|
15653
15653
|
}
|
|
15654
|
-
function
|
|
15655
|
-
if (
|
|
15654
|
+
function Kp() {
|
|
15655
|
+
if (h(n.colon)) {
|
|
15656
15656
|
const e = ie(0), t = a.snapshot(), r = a.noAnonFunctionType;
|
|
15657
|
-
a.noAnonFunctionType = !0, fi(), a.noAnonFunctionType = r, it() && re(),
|
|
15657
|
+
a.noAnonFunctionType = !0, fi(), a.noAnonFunctionType = r, it() && re(), h(n.arrow) || re(), a.error && a.restoreFromSnapshot(t), se(e);
|
|
15658
15658
|
}
|
|
15659
15659
|
return k(n.arrow);
|
|
15660
15660
|
}
|
|
15661
|
-
function
|
|
15662
|
-
if (a.tokens[a.tokens.length - 1].contextualKeyword === d._async &&
|
|
15661
|
+
function Qp(e, t = !1) {
|
|
15662
|
+
if (a.tokens[a.tokens.length - 1].contextualKeyword === d._async && h(n.lessThan)) {
|
|
15663
15663
|
const r = a.snapshot();
|
|
15664
|
-
if (
|
|
15664
|
+
if (Jp() && !a.error)
|
|
15665
15665
|
return;
|
|
15666
15666
|
a.restoreFromSnapshot(r);
|
|
15667
15667
|
}
|
|
15668
15668
|
fo(e, t);
|
|
15669
15669
|
}
|
|
15670
|
-
function
|
|
15670
|
+
function Jp() {
|
|
15671
15671
|
a.scopeDepth++;
|
|
15672
15672
|
const e = a.tokens.length;
|
|
15673
15673
|
return Ar(), qs() ? (nn(e), !0) : !1;
|
|
15674
15674
|
}
|
|
15675
15675
|
function So() {
|
|
15676
|
-
De(d._enum), a.tokens[a.tokens.length - 1].type = n._enum, Q(),
|
|
15676
|
+
De(d._enum), a.tokens[a.tokens.length - 1].type = n._enum, Q(), Zp();
|
|
15677
15677
|
}
|
|
15678
|
-
function
|
|
15678
|
+
function Zp() {
|
|
15679
15679
|
Ve(d._of) && w(), v(n.braceL), ef(), v(n.braceR);
|
|
15680
15680
|
}
|
|
15681
15681
|
function ef() {
|
|
15682
|
-
for (; !
|
|
15683
|
-
tf(),
|
|
15682
|
+
for (; !h(n.braceR) && !a.error && !k(n.ellipsis); )
|
|
15683
|
+
tf(), h(n.braceR) || v(n.comma);
|
|
15684
15684
|
}
|
|
15685
15685
|
function tf() {
|
|
15686
15686
|
Q(), k(n.eq) && w();
|
|
@@ -15691,10 +15691,10 @@ function rf() {
|
|
|
15691
15691
|
return new Uf(a.tokens, a.scopes);
|
|
15692
15692
|
}
|
|
15693
15693
|
function at(e) {
|
|
15694
|
-
ge &&
|
|
15694
|
+
ge && Rp() || (h(n.at) && vi(), nf(e));
|
|
15695
15695
|
}
|
|
15696
15696
|
function nf(e) {
|
|
15697
|
-
if (ue &&
|
|
15697
|
+
if (ue && yh())
|
|
15698
15698
|
return;
|
|
15699
15699
|
const t = a.type;
|
|
15700
15700
|
switch (t) {
|
|
@@ -15713,7 +15713,7 @@ function nf(e) {
|
|
|
15713
15713
|
return;
|
|
15714
15714
|
case n._function:
|
|
15715
15715
|
if (Ae() === n.dot) break;
|
|
15716
|
-
e || re(),
|
|
15716
|
+
e || re(), pf();
|
|
15717
15717
|
return;
|
|
15718
15718
|
case n._class:
|
|
15719
15719
|
e || re(), or(!0);
|
|
@@ -15759,7 +15759,7 @@ function nf(e) {
|
|
|
15759
15759
|
case n.name:
|
|
15760
15760
|
if (a.contextualKeyword === d._async) {
|
|
15761
15761
|
const i = a.start, o = a.snapshot();
|
|
15762
|
-
if (w(),
|
|
15762
|
+
if (w(), h(n._function) && !it()) {
|
|
15763
15763
|
v(n._function), ar(i, !0);
|
|
15764
15764
|
return;
|
|
15765
15765
|
} else
|
|
@@ -15791,10 +15791,10 @@ function Io() {
|
|
|
15791
15791
|
if (!q(d._await))
|
|
15792
15792
|
return !1;
|
|
15793
15793
|
const e = a.snapshot();
|
|
15794
|
-
return w(), !q(d._using) || Qe() || (w(), !
|
|
15794
|
+
return w(), !q(d._using) || Qe() || (w(), !h(n.name) || Qe()) ? (a.restoreFromSnapshot(e), !1) : (a.restoreFromSnapshot(e), !0);
|
|
15795
15795
|
}
|
|
15796
15796
|
function vi() {
|
|
15797
|
-
for (;
|
|
15797
|
+
for (; h(n.at); )
|
|
15798
15798
|
Co();
|
|
15799
15799
|
}
|
|
15800
15800
|
function Co() {
|
|
@@ -15807,7 +15807,7 @@ function Co() {
|
|
|
15807
15807
|
}
|
|
15808
15808
|
}
|
|
15809
15809
|
function sf() {
|
|
15810
|
-
ue ?
|
|
15810
|
+
ue ? Dh() : Eo();
|
|
15811
15811
|
}
|
|
15812
15812
|
function Eo() {
|
|
15813
15813
|
k(n.parenL) && Xt();
|
|
@@ -15824,36 +15824,36 @@ function cf() {
|
|
|
15824
15824
|
function lf() {
|
|
15825
15825
|
a.scopeDepth++;
|
|
15826
15826
|
const e = a.tokens.length;
|
|
15827
|
-
|
|
15827
|
+
hf();
|
|
15828
15828
|
const t = a.tokens.length;
|
|
15829
15829
|
a.scopes.push(new Et(e, t, !1)), a.scopeDepth--;
|
|
15830
15830
|
}
|
|
15831
15831
|
function uf() {
|
|
15832
15832
|
return !(!q(d._using) || Qs(d._of));
|
|
15833
15833
|
}
|
|
15834
|
-
function
|
|
15834
|
+
function hf() {
|
|
15835
15835
|
w();
|
|
15836
15836
|
let e = !1;
|
|
15837
|
-
if (q(d._await) && (e = !0, w()), v(n.parenL),
|
|
15837
|
+
if (q(d._await) && (e = !0, w()), v(n.parenL), h(n.semi)) {
|
|
15838
15838
|
e && re(), Ss();
|
|
15839
15839
|
return;
|
|
15840
15840
|
}
|
|
15841
15841
|
const t = Io();
|
|
15842
|
-
if (t ||
|
|
15843
|
-
if (t && De(d._await), w(), To(!0, a.type !== n._var),
|
|
15842
|
+
if (t || h(n._var) || h(n._let) || h(n._const) || uf()) {
|
|
15843
|
+
if (t && De(d._await), w(), To(!0, a.type !== n._var), h(n._in) || q(d._of)) {
|
|
15844
15844
|
ia(e);
|
|
15845
15845
|
return;
|
|
15846
15846
|
}
|
|
15847
15847
|
Ss();
|
|
15848
15848
|
return;
|
|
15849
15849
|
}
|
|
15850
|
-
if (We(!0),
|
|
15850
|
+
if (We(!0), h(n._in) || q(d._of)) {
|
|
15851
15851
|
ia(e);
|
|
15852
15852
|
return;
|
|
15853
15853
|
}
|
|
15854
15854
|
e && re(), Ss();
|
|
15855
15855
|
}
|
|
15856
|
-
function
|
|
15856
|
+
function pf() {
|
|
15857
15857
|
const e = a.start;
|
|
15858
15858
|
w(), ar(e, !0);
|
|
15859
15859
|
}
|
|
@@ -15866,9 +15866,9 @@ function df() {
|
|
|
15866
15866
|
function mf() {
|
|
15867
15867
|
w(), Xn(), a.scopeDepth++;
|
|
15868
15868
|
const e = a.tokens.length;
|
|
15869
|
-
for (v(n.braceL); !
|
|
15870
|
-
if (
|
|
15871
|
-
const r =
|
|
15869
|
+
for (v(n.braceL); !h(n.braceR) && !a.error; )
|
|
15870
|
+
if (h(n._case) || h(n._default)) {
|
|
15871
|
+
const r = h(n._case);
|
|
15872
15872
|
w(), r && We(), v(n.colon);
|
|
15873
15873
|
} else
|
|
15874
15874
|
at(!0);
|
|
@@ -15886,10 +15886,10 @@ function xf() {
|
|
|
15886
15886
|
), ue && Er();
|
|
15887
15887
|
}
|
|
15888
15888
|
function kf() {
|
|
15889
|
-
if (w(), Yt(),
|
|
15889
|
+
if (w(), Yt(), h(n._catch)) {
|
|
15890
15890
|
w();
|
|
15891
15891
|
let e = null;
|
|
15892
|
-
if (
|
|
15892
|
+
if (h(n.parenL) && (a.scopeDepth++, e = a.tokens.length, v(n.parenL), xf(), v(n.parenR)), Yt(), e != null) {
|
|
15893
15893
|
const t = a.tokens.length;
|
|
15894
15894
|
a.scopes.push(new Et(e, t, !1)), a.scopeDepth--;
|
|
15895
15895
|
}
|
|
@@ -15909,7 +15909,7 @@ function vf() {
|
|
|
15909
15909
|
at(!0);
|
|
15910
15910
|
}
|
|
15911
15911
|
function wf(e) {
|
|
15912
|
-
ue ?
|
|
15912
|
+
ue ? wh(e) : ge ? Op(e) : Ie();
|
|
15913
15913
|
}
|
|
15914
15914
|
function Yt(e = !1, t = 0) {
|
|
15915
15915
|
const r = a.tokens.length;
|
|
@@ -15922,7 +15922,7 @@ function Kn(e) {
|
|
|
15922
15922
|
at(!0);
|
|
15923
15923
|
}
|
|
15924
15924
|
function Ss() {
|
|
15925
|
-
v(n.semi),
|
|
15925
|
+
v(n.semi), h(n.semi) || We(), v(n.semi), h(n.parenR) || We(), v(n.parenR), at(!1);
|
|
15926
15926
|
}
|
|
15927
15927
|
function ia(e) {
|
|
15928
15928
|
e ? Ve(d._of) : w(), We(), v(n.parenR), at(!1);
|
|
@@ -15938,19 +15938,19 @@ function To(e, t) {
|
|
|
15938
15938
|
}
|
|
15939
15939
|
}
|
|
15940
15940
|
function _f(e) {
|
|
15941
|
-
Hn(e), ue ?
|
|
15941
|
+
Hn(e), ue ? Eh() : ge && Gp();
|
|
15942
15942
|
}
|
|
15943
15943
|
function ar(e, t, r = !1) {
|
|
15944
|
-
|
|
15944
|
+
h(n.star) && w(), t && !r && !h(n.name) && !h(n._yield) && re();
|
|
15945
15945
|
let s = null;
|
|
15946
|
-
|
|
15946
|
+
h(n.name) && (t || (s = a.tokens.length, a.scopeDepth++), Qt(!1));
|
|
15947
15947
|
const i = a.tokens.length;
|
|
15948
15948
|
a.scopeDepth++, Ar(), xo(e);
|
|
15949
15949
|
const o = a.tokens.length;
|
|
15950
15950
|
a.scopes.push(new Et(i, o, !0)), a.scopeDepth--, s !== null && (a.scopes.push(new Et(s, o, !0)), a.scopeDepth--);
|
|
15951
15951
|
}
|
|
15952
15952
|
function Ar(e = !1, t = 0) {
|
|
15953
|
-
ue ?
|
|
15953
|
+
ue ? Ch() : ge && Wp(), v(n.parenL), t && (a.tokens[a.tokens.length - 1].contextId = t), ti(
|
|
15954
15954
|
n.parenR,
|
|
15955
15955
|
!1,
|
|
15956
15956
|
!1,
|
|
@@ -15970,16 +15970,16 @@ function or(e, t = !1) {
|
|
|
15970
15970
|
}
|
|
15971
15971
|
}
|
|
15972
15972
|
function Ao() {
|
|
15973
|
-
return
|
|
15973
|
+
return h(n.eq) || h(n.semi) || h(n.braceR) || h(n.bang) || h(n.colon);
|
|
15974
15974
|
}
|
|
15975
15975
|
function Po() {
|
|
15976
|
-
return
|
|
15976
|
+
return h(n.parenL) || h(n.lessThan);
|
|
15977
15977
|
}
|
|
15978
15978
|
function Sf(e) {
|
|
15979
15979
|
for (v(n.braceL); !k(n.braceR) && !a.error; ) {
|
|
15980
15980
|
if (k(n.semi))
|
|
15981
15981
|
continue;
|
|
15982
|
-
if (
|
|
15982
|
+
if (h(n.at)) {
|
|
15983
15983
|
Co();
|
|
15984
15984
|
continue;
|
|
15985
15985
|
}
|
|
@@ -15996,7 +15996,7 @@ function If(e, t) {
|
|
|
15996
15996
|
d._override
|
|
15997
15997
|
]);
|
|
15998
15998
|
let r = !1;
|
|
15999
|
-
if (
|
|
15999
|
+
if (h(n.name) && a.contextualKeyword === d._static) {
|
|
16000
16000
|
if (Q(), Po()) {
|
|
16001
16001
|
Wr(
|
|
16002
16002
|
e,
|
|
@@ -16008,7 +16008,7 @@ function If(e, t) {
|
|
|
16008
16008
|
Sn();
|
|
16009
16009
|
return;
|
|
16010
16010
|
}
|
|
16011
|
-
if (a.tokens[a.tokens.length - 1].type = n._static, r = !0,
|
|
16011
|
+
if (a.tokens[a.tokens.length - 1].type = n._static, r = !0, h(n.braceL)) {
|
|
16012
16012
|
a.tokens[a.tokens.length - 1].contextId = t, Yt();
|
|
16013
16013
|
return;
|
|
16014
16014
|
}
|
|
@@ -16016,7 +16016,7 @@ function If(e, t) {
|
|
|
16016
16016
|
Cf(e, r, t);
|
|
16017
16017
|
}
|
|
16018
16018
|
function Cf(e, t, r) {
|
|
16019
|
-
if (ue &&
|
|
16019
|
+
if (ue && vh(t))
|
|
16020
16020
|
return;
|
|
16021
16021
|
if (k(n.star)) {
|
|
16022
16022
|
zr(r), Wr(
|
|
@@ -16029,18 +16029,18 @@ function Cf(e, t, r) {
|
|
|
16029
16029
|
zr(r);
|
|
16030
16030
|
let s = !1;
|
|
16031
16031
|
const i = a.tokens[a.tokens.length - 1];
|
|
16032
|
-
i.contextualKeyword === d._constructor && (s = !0), aa(), Po() ? Wr(e, s) : Ao() ? Sn() : i.contextualKeyword === d._async && !St() ? (a.tokens[a.tokens.length - 1].type = n._async,
|
|
16032
|
+
i.contextualKeyword === d._constructor && (s = !0), aa(), Po() ? Wr(e, s) : Ao() ? Sn() : i.contextualKeyword === d._async && !St() ? (a.tokens[a.tokens.length - 1].type = n._async, h(n.star) && w(), zr(r), aa(), Wr(
|
|
16033
16033
|
e,
|
|
16034
16034
|
!1
|
|
16035
16035
|
/* isConstructor */
|
|
16036
|
-
)) : (i.contextualKeyword === d._get || i.contextualKeyword === d._set) && !(St() &&
|
|
16036
|
+
)) : (i.contextualKeyword === d._get || i.contextualKeyword === d._set) && !(St() && h(n.star)) ? (i.contextualKeyword === d._get ? a.tokens[a.tokens.length - 1].type = n._get : a.tokens[a.tokens.length - 1].type = n._set, zr(r), Wr(
|
|
16037
16037
|
e,
|
|
16038
16038
|
/* isConstructor */
|
|
16039
16039
|
!1
|
|
16040
16040
|
)) : i.contextualKeyword === d._accessor && !St() ? (zr(r), Sn()) : St() ? Sn() : re();
|
|
16041
16041
|
}
|
|
16042
16042
|
function Wr(e, t) {
|
|
16043
|
-
ue ? lr() : ge &&
|
|
16043
|
+
ue ? lr() : ge && h(n.lessThan) && yt(), Us(e, t);
|
|
16044
16044
|
}
|
|
16045
16045
|
function zr(e) {
|
|
16046
16046
|
rn(e);
|
|
@@ -16052,40 +16052,40 @@ function aa() {
|
|
|
16052
16052
|
}
|
|
16053
16053
|
}
|
|
16054
16054
|
function Sn() {
|
|
16055
|
-
if (ue ? (La(n.bang), Er()) : ge &&
|
|
16055
|
+
if (ue ? (La(n.bang), Er()) : ge && h(n.colon) && ur(), h(n.eq)) {
|
|
16056
16056
|
const e = a.tokens.length;
|
|
16057
16057
|
w(), Ge(), a.tokens[e].rhsEndIndex = a.tokens.length;
|
|
16058
16058
|
}
|
|
16059
16059
|
Ie();
|
|
16060
16060
|
}
|
|
16061
16061
|
function Ef(e, t = !1) {
|
|
16062
|
-
ue && (!e || t) && q(d._implements) || (
|
|
16062
|
+
ue && (!e || t) && q(d._implements) || (h(n.name) && Qt(!0), ue ? lr() : ge && h(n.lessThan) && yt());
|
|
16063
16063
|
}
|
|
16064
16064
|
function Tf() {
|
|
16065
16065
|
let e = !1;
|
|
16066
|
-
k(n._extends) ? (
|
|
16066
|
+
k(n._extends) ? (po(), e = !0) : e = !1, ue ? Sh(e) : ge && $p(e);
|
|
16067
16067
|
}
|
|
16068
16068
|
function No() {
|
|
16069
16069
|
const e = a.tokens.length - 1;
|
|
16070
|
-
ue &&
|
|
16070
|
+
ue && gh() || (Lf() ? Rf() : Nf() ? (Q(), h(n.comma) && Ae() === n.star ? (v(n.comma), v(n.star), De(d._as), Q()) : Lo(), sn()) : k(n._default) ? Af() : Of() ? Pf() : (wi(), sn()), a.tokens[e].rhsEndIndex = a.tokens.length);
|
|
16071
16071
|
}
|
|
16072
16072
|
function Af() {
|
|
16073
|
-
if (ue &&
|
|
16073
|
+
if (ue && bh() || ge && Dp())
|
|
16074
16074
|
return;
|
|
16075
16075
|
const e = a.start;
|
|
16076
|
-
k(n._function) ? ar(e, !0, !0) : q(d._async) && Ae() === n._function ? (Ve(d._async), k(n._function), ar(e, !0, !0)) :
|
|
16076
|
+
k(n._function) ? ar(e, !0, !0) : q(d._async) && Ae() === n._function ? (Ve(d._async), k(n._function), ar(e, !0, !0)) : h(n._class) ? or(!0, !0) : h(n.at) ? (vi(), or(!0, !0)) : (Ge(), Ie());
|
|
16077
16077
|
}
|
|
16078
16078
|
function Pf() {
|
|
16079
|
-
ue ?
|
|
16079
|
+
ue ? _h() : ge ? jp() : at(!0);
|
|
16080
16080
|
}
|
|
16081
16081
|
function Nf() {
|
|
16082
16082
|
if (ue && ao())
|
|
16083
16083
|
return !1;
|
|
16084
|
-
if (ge &&
|
|
16084
|
+
if (ge && Fp())
|
|
16085
16085
|
return !1;
|
|
16086
|
-
if (
|
|
16086
|
+
if (h(n.name))
|
|
16087
16087
|
return a.contextualKeyword !== d._async;
|
|
16088
|
-
if (!
|
|
16088
|
+
if (!h(n._default))
|
|
16089
16089
|
return !1;
|
|
16090
16090
|
const e = Js(), t = ln(), r = t.type === n.name && t.contextualKeyword === d._from;
|
|
16091
16091
|
if (t.type === n.comma)
|
|
@@ -16103,10 +16103,10 @@ function sn() {
|
|
|
16103
16103
|
Ve(d._from) && (Ot(), Do()), Ie();
|
|
16104
16104
|
}
|
|
16105
16105
|
function Lf() {
|
|
16106
|
-
return ge ?
|
|
16106
|
+
return ge ? Bp() : h(n.star);
|
|
16107
16107
|
}
|
|
16108
16108
|
function Rf() {
|
|
16109
|
-
ge ?
|
|
16109
|
+
ge ? Vp() : Ws();
|
|
16110
16110
|
}
|
|
16111
16111
|
function Ws() {
|
|
16112
16112
|
v(n.star), q(d._as) ? Df() : sn();
|
|
@@ -16115,7 +16115,7 @@ function Df() {
|
|
|
16115
16115
|
w(), a.tokens[a.tokens.length - 1].type = n._as, Q(), Lo(), sn();
|
|
16116
16116
|
}
|
|
16117
16117
|
function Of() {
|
|
16118
|
-
return ue && ao() || ge &&
|
|
16118
|
+
return ue && ao() || ge && Mp() || a.type === n._var || a.type === n._const || a.type === n._let || a.type === n._function || a.type === n._class || q(d._async) || h(n.at);
|
|
16119
16119
|
}
|
|
16120
16120
|
function wi() {
|
|
16121
16121
|
let e = !0;
|
|
@@ -16129,20 +16129,20 @@ function wi() {
|
|
|
16129
16129
|
}
|
|
16130
16130
|
function Mf() {
|
|
16131
16131
|
if (ue) {
|
|
16132
|
-
|
|
16132
|
+
kh();
|
|
16133
16133
|
return;
|
|
16134
16134
|
}
|
|
16135
16135
|
Q(), a.tokens[a.tokens.length - 1].identifierRole = W.ExportAccess, Ve(d._as) && Q();
|
|
16136
16136
|
}
|
|
16137
16137
|
function Ff() {
|
|
16138
16138
|
const e = a.snapshot();
|
|
16139
|
-
return De(d._module), Ve(d._from) ? q(d._from) ? (a.restoreFromSnapshot(e), !0) : (a.restoreFromSnapshot(e), !1) :
|
|
16139
|
+
return De(d._module), Ve(d._from) ? q(d._from) ? (a.restoreFromSnapshot(e), !0) : (a.restoreFromSnapshot(e), !1) : h(n.comma) ? (a.restoreFromSnapshot(e), !1) : (a.restoreFromSnapshot(e), !0);
|
|
16140
16140
|
}
|
|
16141
16141
|
function jf() {
|
|
16142
16142
|
q(d._module) && Ff() && w();
|
|
16143
16143
|
}
|
|
16144
16144
|
function Ro() {
|
|
16145
|
-
if (ue &&
|
|
16145
|
+
if (ue && h(n.name) && Ae() === n.eq) {
|
|
16146
16146
|
Vs();
|
|
16147
16147
|
return;
|
|
16148
16148
|
}
|
|
@@ -16155,19 +16155,19 @@ function Ro() {
|
|
|
16155
16155
|
}
|
|
16156
16156
|
} else (e.type === n.star || e.type === n.braceL) && De(d._type);
|
|
16157
16157
|
}
|
|
16158
|
-
|
|
16158
|
+
h(n.string) || (jf(), Vf(), De(d._from)), Ot(), Do(), Ie();
|
|
16159
16159
|
}
|
|
16160
16160
|
function Bf() {
|
|
16161
|
-
return
|
|
16161
|
+
return h(n.name);
|
|
16162
16162
|
}
|
|
16163
16163
|
function oa() {
|
|
16164
16164
|
Tn();
|
|
16165
16165
|
}
|
|
16166
16166
|
function Vf() {
|
|
16167
|
-
ge &&
|
|
16167
|
+
ge && zp();
|
|
16168
16168
|
let e = !0;
|
|
16169
16169
|
if (!(Bf() && (oa(), !k(n.comma)))) {
|
|
16170
|
-
if (
|
|
16170
|
+
if (h(n.star)) {
|
|
16171
16171
|
w(), De(d._as), oa();
|
|
16172
16172
|
return;
|
|
16173
16173
|
}
|
|
@@ -16184,17 +16184,17 @@ function Vf() {
|
|
|
16184
16184
|
}
|
|
16185
16185
|
function $f() {
|
|
16186
16186
|
if (ue) {
|
|
16187
|
-
|
|
16187
|
+
xh();
|
|
16188
16188
|
return;
|
|
16189
16189
|
}
|
|
16190
16190
|
if (ge) {
|
|
16191
|
-
|
|
16191
|
+
Hp();
|
|
16192
16192
|
return;
|
|
16193
16193
|
}
|
|
16194
16194
|
Tn(), q(d._as) && (a.tokens[a.tokens.length - 1].identifierRole = W.ImportAccess, w(), Tn());
|
|
16195
16195
|
}
|
|
16196
16196
|
function Do() {
|
|
16197
|
-
(
|
|
16197
|
+
(h(n._with) || q(d._assert) && !Qe()) && (w(), pi(!1, !1));
|
|
16198
16198
|
}
|
|
16199
16199
|
function qf() {
|
|
16200
16200
|
return a.pos === 0 && A.charCodeAt(0) === g.numberSign && A.charCodeAt(1) === g.exclamationMark && Ma(2), Oa(), rf();
|
|
@@ -16207,7 +16207,7 @@ class Uf {
|
|
|
16207
16207
|
function zf(e, t, r, s) {
|
|
16208
16208
|
if (s && r)
|
|
16209
16209
|
throw new Error("Cannot combine flow and typescript plugins.");
|
|
16210
|
-
|
|
16210
|
+
pl(e, t, r, s);
|
|
16211
16211
|
const i = qf();
|
|
16212
16212
|
if (a.error)
|
|
16213
16213
|
throw ll(a.error);
|
|
@@ -16434,13 +16434,13 @@ function Wf(e, t, r, s) {
|
|
|
16434
16434
|
const i = t.snapshot(), o = Gf(t);
|
|
16435
16435
|
let c = [];
|
|
16436
16436
|
const u = [], f = [];
|
|
16437
|
-
let
|
|
16437
|
+
let p = null;
|
|
16438
16438
|
const m = [], x = [], _ = t.currentToken().contextId;
|
|
16439
16439
|
if (_ == null)
|
|
16440
16440
|
throw new Error("Expected non-null class context ID on class open-brace.");
|
|
16441
16441
|
for (t.nextToken(); !t.matchesContextIdAndLabel(n.braceR, _); )
|
|
16442
16442
|
if (t.matchesContextual(d._constructor) && !t.currentToken().isType)
|
|
16443
|
-
({ constructorInitializerStatements: c, constructorInsertPos:
|
|
16443
|
+
({ constructorInitializerStatements: c, constructorInsertPos: p } = ca(t));
|
|
16444
16444
|
else if (t.matches1(n.semi))
|
|
16445
16445
|
s || x.push({ start: t.currentIndex(), end: t.currentIndex() + 1 }), t.nextToken();
|
|
16446
16446
|
else if (t.currentToken().isType)
|
|
@@ -16459,7 +16459,7 @@ function Wf(e, t, r, s) {
|
|
|
16459
16459
|
continue;
|
|
16460
16460
|
}
|
|
16461
16461
|
if (t.matchesContextual(d._constructor) && !t.currentToken().isType) {
|
|
16462
|
-
({ constructorInitializerStatements: c, constructorInsertPos:
|
|
16462
|
+
({ constructorInitializerStatements: c, constructorInsertPos: p } = ca(t));
|
|
16463
16463
|
continue;
|
|
16464
16464
|
}
|
|
16465
16465
|
const Y = t.currentIndex();
|
|
@@ -16489,7 +16489,7 @@ function Wf(e, t, r, s) {
|
|
|
16489
16489
|
constructorInitializerStatements: c,
|
|
16490
16490
|
instanceInitializerNames: [],
|
|
16491
16491
|
staticInitializerNames: [],
|
|
16492
|
-
constructorInsertPos:
|
|
16492
|
+
constructorInsertPos: p,
|
|
16493
16493
|
fields: [],
|
|
16494
16494
|
rangesToRemove: x
|
|
16495
16495
|
} : {
|
|
@@ -16497,7 +16497,7 @@ function Wf(e, t, r, s) {
|
|
|
16497
16497
|
constructorInitializerStatements: c,
|
|
16498
16498
|
instanceInitializerNames: u,
|
|
16499
16499
|
staticInitializerNames: f,
|
|
16500
|
-
constructorInsertPos:
|
|
16500
|
+
constructorInsertPos: p,
|
|
16501
16501
|
fields: m,
|
|
16502
16502
|
rangesToRemove: x
|
|
16503
16503
|
};
|
|
@@ -16639,8 +16639,8 @@ class Yr extends bt {
|
|
|
16639
16639
|
__init3() {
|
|
16640
16640
|
this.hadDefaultExport = !1;
|
|
16641
16641
|
}
|
|
16642
|
-
constructor(t, r, s, i, o, c, u, f,
|
|
16643
|
-
super(), this.rootTransformer = t, this.tokens = r, this.importProcessor = s, this.nameManager = i, this.helperManager = o, this.reactHotLoaderTransformer = c, this.enableLegacyBabel5ModuleInterop = u, this.enableLegacyTypeScriptModuleInterop = f, this.isTypeScriptTransformEnabled =
|
|
16642
|
+
constructor(t, r, s, i, o, c, u, f, p, m, x, _) {
|
|
16643
|
+
super(), this.rootTransformer = t, this.tokens = r, this.importProcessor = s, this.nameManager = i, this.helperManager = o, this.reactHotLoaderTransformer = c, this.enableLegacyBabel5ModuleInterop = u, this.enableLegacyTypeScriptModuleInterop = f, this.isTypeScriptTransformEnabled = p, this.isFlowTransformEnabled = m, this.preserveDynamicImport = x, this.keepUnusedImports = _, Yr.prototype.__init.call(this), Yr.prototype.__init2.call(this), Yr.prototype.__init3.call(this), this.declarationInfo = p ? Fo(r) : Mo;
|
|
16644
16644
|
}
|
|
16645
16645
|
getPrefixCode() {
|
|
16646
16646
|
let t = "";
|
|
@@ -17929,7 +17929,7 @@ class On {
|
|
|
17929
17929
|
instanceInitializerNames: u,
|
|
17930
17930
|
rangesToRemove: f
|
|
17931
17931
|
} = t;
|
|
17932
|
-
let
|
|
17932
|
+
let p = 0, m = 0;
|
|
17933
17933
|
const x = this.tokens.currentToken().contextId;
|
|
17934
17934
|
if (x == null)
|
|
17935
17935
|
throw new Error("Expected non-null context ID on class.");
|
|
@@ -17952,11 +17952,11 @@ class On {
|
|
|
17952
17952
|
this.tokens.appendCode(`constructor() { ${y}; }`);
|
|
17953
17953
|
}
|
|
17954
17954
|
for (; !this.tokens.matchesContextIdAndLabel(n.braceR, x); )
|
|
17955
|
-
if (
|
|
17955
|
+
if (p < c.length && this.tokens.currentIndex() === c[p].start) {
|
|
17956
17956
|
let y = !1;
|
|
17957
|
-
for (this.tokens.matches1(n.bracketL) ? this.tokens.copyTokenWithPrefix(`${c[
|
|
17958
|
-
y && this.tokens.currentIndex() === c[
|
|
17959
|
-
this.tokens.appendCode("}"),
|
|
17957
|
+
for (this.tokens.matches1(n.bracketL) ? this.tokens.copyTokenWithPrefix(`${c[p].initializerName}() {this`) : this.tokens.matches1(n.string) || this.tokens.matches1(n.num) ? (this.tokens.copyTokenWithPrefix(`${c[p].initializerName}() {this[`), y = !0) : this.tokens.copyTokenWithPrefix(`${c[p].initializerName}() {this.`); this.tokens.currentIndex() < c[p].end; )
|
|
17958
|
+
y && this.tokens.currentIndex() === c[p].equalsIndex && this.tokens.appendCode("]"), this.processToken();
|
|
17959
|
+
this.tokens.appendCode("}"), p++;
|
|
17960
17960
|
} else if (m < f.length && this.tokens.currentIndex() >= f[m].start) {
|
|
17961
17961
|
for (this.tokens.currentIndex() < f[m].end && this.tokens.removeInitialToken(); this.tokens.currentIndex() < f[m].end; )
|
|
17962
17962
|
this.tokens.removeToken();
|
|
@@ -18133,7 +18133,7 @@ function ld(e, t) {
|
|
|
18133
18133
|
}
|
|
18134
18134
|
}
|
|
18135
18135
|
function ud(e, t) {
|
|
18136
|
-
const r = t.transforms.includes("jsx"), s = t.transforms.includes("typescript"), i = t.transforms.includes("flow"), o = t.disableESTransforms === !0, c = zf(e, r, s, i), u = c.tokens, f = c.scopes,
|
|
18136
|
+
const r = t.transforms.includes("jsx"), s = t.transforms.includes("typescript"), i = t.transforms.includes("flow"), o = t.disableESTransforms === !0, c = zf(e, r, s, i), u = c.tokens, f = c.scopes, p = new Zs(e, u), m = new En(p), x = new Xr(
|
|
18137
18137
|
e,
|
|
18138
18138
|
u,
|
|
18139
18139
|
i,
|
|
@@ -18142,16 +18142,16 @@ function ud(e, t) {
|
|
|
18142
18142
|
), _ = !!t.enableLegacyTypeScriptModuleInterop;
|
|
18143
18143
|
let y = null;
|
|
18144
18144
|
return t.transforms.includes("imports") ? (y = new rr(
|
|
18145
|
-
|
|
18145
|
+
p,
|
|
18146
18146
|
x,
|
|
18147
18147
|
_,
|
|
18148
18148
|
t,
|
|
18149
18149
|
t.transforms.includes("typescript"),
|
|
18150
18150
|
!!t.keepUnusedImports,
|
|
18151
18151
|
m
|
|
18152
|
-
), y.preprocessTokens(), Yi(x, f, y.getGlobalNames()), t.transforms.includes("typescript") && !t.keepUnusedImports && y.pruneTypeOnlyImports()) : t.transforms.includes("typescript") && !t.keepUnusedImports && Yi(x, f, ad(x)), { tokenProcessor: x, scopes: f, nameManager:
|
|
18152
|
+
), y.preprocessTokens(), Yi(x, f, y.getGlobalNames()), t.transforms.includes("typescript") && !t.keepUnusedImports && y.pruneTypeOnlyImports()) : t.transforms.includes("typescript") && !t.keepUnusedImports && Yi(x, f, ad(x)), { tokenProcessor: x, scopes: f, nameManager: p, importProcessor: y, helperManager: m };
|
|
18153
18153
|
}
|
|
18154
|
-
var
|
|
18154
|
+
var hd = [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, 78, 5, 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, 199, 7, 137, 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, 55, 9, 266, 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, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], Vo = [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, 7, 25, 39, 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, 5, 57, 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, 24, 43, 261, 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, 33, 24, 3, 24, 45, 74, 6, 0, 67, 12, 65, 1, 2, 0, 15, 4, 10, 7381, 42, 31, 98, 114, 8702, 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, 208, 30, 2, 2, 2, 1, 2, 6, 3, 4, 10, 1, 225, 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, 4381, 3, 5773, 3, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 8489], pd = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", $o = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", Cs = {
|
|
18155
18155
|
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",
|
|
18156
18156
|
5: "class enum extends super const export import",
|
|
18157
18157
|
6: "enum",
|
|
@@ -18161,7 +18161,7 @@ var pd = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166,
|
|
|
18161
18161
|
5: Es,
|
|
18162
18162
|
"5module": Es + " export import",
|
|
18163
18163
|
6: Es + " const class extends export import super"
|
|
18164
|
-
}, qo = /^in(stanceof)?$/, dd = new RegExp("[" + $o + "]"), md = new RegExp("[" + $o +
|
|
18164
|
+
}, qo = /^in(stanceof)?$/, dd = new RegExp("[" + $o + "]"), md = new RegExp("[" + $o + pd + "]");
|
|
18165
18165
|
function Gs(e, t) {
|
|
18166
18166
|
for (var r = 65536, s = 0; s < t.length; s += 2) {
|
|
18167
18167
|
if (r += t[s], r > e)
|
|
@@ -18175,7 +18175,7 @@ function At(e, t) {
|
|
|
18175
18175
|
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && dd.test(String.fromCharCode(e)) : t === !1 ? !1 : Gs(e, Vo);
|
|
18176
18176
|
}
|
|
18177
18177
|
function Kt(e, t) {
|
|
18178
|
-
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 && md.test(String.fromCharCode(e)) : t === !1 ? !1 : Gs(e, Vo) || Gs(e,
|
|
18178
|
+
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 && md.test(String.fromCharCode(e)) : t === !1 ? !1 : Gs(e, Vo) || Gs(e, hd);
|
|
18179
18179
|
}
|
|
18180
18180
|
var me = function(t, r) {
|
|
18181
18181
|
r === void 0 && (r = {}), this.label = t, this.keyword = r.keyword, this.beforeExpr = !!r.beforeExpr, this.startsExpr = !!r.startsExpr, this.isLoop = !!r.isLoop, this.isAssign = !!r.isAssign, this.prefix = !!r.prefix, this.postfix = !!r.postfix, this.binop = r.binop || null, this.updateContext = null;
|
|
@@ -18297,9 +18297,9 @@ var zo = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ye = /(?:\s|\/\/.*|\/\
|
|
|
18297
18297
|
return xd.call(e, t);
|
|
18298
18298
|
}, ua = Array.isArray || function(e) {
|
|
18299
18299
|
return kd.call(e) === "[object Array]";
|
|
18300
|
-
},
|
|
18300
|
+
}, ha = /* @__PURE__ */ Object.create(null);
|
|
18301
18301
|
function Ht(e) {
|
|
18302
|
-
return
|
|
18302
|
+
return ha[e] || (ha[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
18303
18303
|
}
|
|
18304
18304
|
function Mt(e) {
|
|
18305
18305
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
@@ -18417,12 +18417,12 @@ var Xs = {
|
|
|
18417
18417
|
// When enabled, parenthesized expressions are represented by
|
|
18418
18418
|
// (non-standard) ParenthesizedExpression nodes
|
|
18419
18419
|
preserveParens: !1
|
|
18420
|
-
},
|
|
18420
|
+
}, pa = !1;
|
|
18421
18421
|
function yd(e) {
|
|
18422
18422
|
var t = {};
|
|
18423
18423
|
for (var r in Xs)
|
|
18424
18424
|
t[r] = e && Nr(e, r) ? e[r] : Xs[r];
|
|
18425
|
-
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!
|
|
18425
|
+
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!pa && typeof console == "object" && console.warn && (pa = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
18426
18426
|
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), ua(t.onToken)) {
|
|
18427
18427
|
var s = t.onToken;
|
|
18428
18428
|
t.onToken = function(i) {
|
|
@@ -18444,9 +18444,9 @@ function vd(e, t) {
|
|
|
18444
18444
|
e.locations && (f.loc = new Qn(this, c, u)), e.ranges && (f.range = [i, o]), t.push(f);
|
|
18445
18445
|
};
|
|
18446
18446
|
}
|
|
18447
|
-
var cr = 1,
|
|
18447
|
+
var cr = 1, hr = 2, Ci = 4, Go = 8, Ei = 16, Xo = 32, Jn = 64, Yo = 128, pr = 256, dn = 512, Ko = 1024, Zn = cr | hr | pr;
|
|
18448
18448
|
function Ti(e, t) {
|
|
18449
|
-
return
|
|
18449
|
+
return hr | (e ? Ci : 0) | (t ? Go : 0);
|
|
18450
18450
|
}
|
|
18451
18451
|
var Mn = 0, Ai = 1, jt = 2, Qo = 3, Jo = 4, Zo = 5, qe = function(t, r, s) {
|
|
18452
18452
|
this.options = t = yd(t), this.sourceFile = t.sourceFile, this.keywords = Ht(fd[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
|
|
@@ -18455,59 +18455,59 @@ var Mn = 0, Ai = 1, jt = 2, Qo = 3, Jo = 4, Zo = 5, qe = function(t, r, s) {
|
|
|
18455
18455
|
var o = (i ? i + " " : "") + Cs.strict;
|
|
18456
18456
|
this.reservedWordsStrict = Ht(o), this.reservedWordsStrictBind = Ht(o + " " + Cs.strictBind), this.input = String(r), this.containsEsc = !1, s ? (this.pos = s, this.lineStart = this.input.lastIndexOf(`
|
|
18457
18457
|
`, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(rt).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = l.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(
|
|
18458
|
-
this.options.sourceType === "commonjs" ?
|
|
18458
|
+
this.options.sourceType === "commonjs" ? hr : cr
|
|
18459
18459
|
), this.regexpState = null, this.privateNameStack = [];
|
|
18460
|
-
},
|
|
18460
|
+
}, pt = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowReturn: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, allowUsing: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
|
|
18461
18461
|
qe.prototype.parse = function() {
|
|
18462
18462
|
var t = this.options.program || this.startNode();
|
|
18463
18463
|
return this.nextToken(), this.parseTopLevel(t);
|
|
18464
18464
|
};
|
|
18465
|
-
|
|
18466
|
-
return (this.currentVarScope().flags &
|
|
18465
|
+
pt.inFunction.get = function() {
|
|
18466
|
+
return (this.currentVarScope().flags & hr) > 0;
|
|
18467
18467
|
};
|
|
18468
|
-
|
|
18468
|
+
pt.inGenerator.get = function() {
|
|
18469
18469
|
return (this.currentVarScope().flags & Go) > 0;
|
|
18470
18470
|
};
|
|
18471
|
-
|
|
18471
|
+
pt.inAsync.get = function() {
|
|
18472
18472
|
return (this.currentVarScope().flags & Ci) > 0;
|
|
18473
18473
|
};
|
|
18474
|
-
|
|
18474
|
+
pt.canAwait.get = function() {
|
|
18475
18475
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
18476
18476
|
var t = this.scopeStack[e], r = t.flags;
|
|
18477
|
-
if (r & (
|
|
18477
|
+
if (r & (pr | dn))
|
|
18478
18478
|
return !1;
|
|
18479
|
-
if (r &
|
|
18479
|
+
if (r & hr)
|
|
18480
18480
|
return (r & Ci) > 0;
|
|
18481
18481
|
}
|
|
18482
18482
|
return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
|
|
18483
18483
|
};
|
|
18484
|
-
|
|
18484
|
+
pt.allowReturn.get = function() {
|
|
18485
18485
|
return !!(this.inFunction || this.options.allowReturnOutsideFunction && this.currentVarScope().flags & cr);
|
|
18486
18486
|
};
|
|
18487
|
-
|
|
18487
|
+
pt.allowSuper.get = function() {
|
|
18488
18488
|
var e = this.currentThisScope(), t = e.flags;
|
|
18489
18489
|
return (t & Jn) > 0 || this.options.allowSuperOutsideMethod;
|
|
18490
18490
|
};
|
|
18491
|
-
|
|
18491
|
+
pt.allowDirectSuper.get = function() {
|
|
18492
18492
|
return (this.currentThisScope().flags & Yo) > 0;
|
|
18493
18493
|
};
|
|
18494
|
-
|
|
18494
|
+
pt.treatFunctionsAsVar.get = function() {
|
|
18495
18495
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
18496
18496
|
};
|
|
18497
|
-
|
|
18497
|
+
pt.allowNewDotTarget.get = function() {
|
|
18498
18498
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
18499
18499
|
var t = this.scopeStack[e], r = t.flags;
|
|
18500
|
-
if (r & (
|
|
18500
|
+
if (r & (pr | dn) || r & hr && !(r & Ei))
|
|
18501
18501
|
return !0;
|
|
18502
18502
|
}
|
|
18503
18503
|
return !1;
|
|
18504
18504
|
};
|
|
18505
|
-
|
|
18505
|
+
pt.allowUsing.get = function() {
|
|
18506
18506
|
var e = this.currentScope(), t = e.flags;
|
|
18507
18507
|
return !(t & Ko || !this.inModule && t & cr);
|
|
18508
18508
|
};
|
|
18509
|
-
|
|
18510
|
-
return (this.currentVarScope().flags &
|
|
18509
|
+
pt.inClassStaticBlock.get = function() {
|
|
18510
|
+
return (this.currentVarScope().flags & pr) > 0;
|
|
18511
18511
|
};
|
|
18512
18512
|
qe.extend = function() {
|
|
18513
18513
|
for (var t = [], r = arguments.length; r--; ) t[r] = arguments[r];
|
|
@@ -18525,7 +18525,7 @@ qe.parseExpressionAt = function(t, r, s) {
|
|
|
18525
18525
|
qe.tokenizer = function(t, r) {
|
|
18526
18526
|
return new this(r, t);
|
|
18527
18527
|
};
|
|
18528
|
-
Object.defineProperties(qe.prototype,
|
|
18528
|
+
Object.defineProperties(qe.prototype, pt);
|
|
18529
18529
|
var Je = qe.prototype, wd = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
18530
18530
|
Je.strictDirective = function(e) {
|
|
18531
18531
|
if (this.options.ecmaVersion < 5)
|
|
@@ -18670,8 +18670,8 @@ V.isUsingKeyword = function(e, t) {
|
|
|
18670
18670
|
while (Kt(u = this.fullCharCodeAt(s)));
|
|
18671
18671
|
if (u === 92)
|
|
18672
18672
|
return !0;
|
|
18673
|
-
var
|
|
18674
|
-
return !(qo.test(
|
|
18673
|
+
var p = this.input.slice(f, s);
|
|
18674
|
+
return !(qo.test(p) || t && p === "of");
|
|
18675
18675
|
};
|
|
18676
18676
|
V.isAwaitUsing = function(e) {
|
|
18677
18677
|
return this.isUsingKeyword(!0, e);
|
|
@@ -18728,9 +18728,9 @@ V.parseStatement = function(e, t, r) {
|
|
|
18728
18728
|
default:
|
|
18729
18729
|
if (this.isAsyncFunction())
|
|
18730
18730
|
return e && this.unexpected(), this.next(), this.parseFunctionStatement(i, !0, !e);
|
|
18731
|
-
var
|
|
18732
|
-
if (
|
|
18733
|
-
return this.allowUsing || this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),
|
|
18731
|
+
var p = this.isAwaitUsing(!1) ? "await using" : this.isUsing(!1) ? "using" : null;
|
|
18732
|
+
if (p)
|
|
18733
|
+
return this.allowUsing || this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"), p === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(i, !1, p), this.semicolon(), this.finishNode(i, "VariableDeclaration");
|
|
18734
18734
|
var m = this.value, x = this.parseExpression();
|
|
18735
18735
|
return s === l.name && x.type === "Identifier" && this.eat(l.colon) ? this.parseLabeledStatement(i, m, x, e) : this.parseExpressionStatement(i, x);
|
|
18736
18736
|
}
|
|
@@ -18766,8 +18766,8 @@ V.parseForStatement = function(e) {
|
|
|
18766
18766
|
var f = this.startNode();
|
|
18767
18767
|
return this.next(), u === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.parseVar(f, !0, u), this.finishNode(f, "VariableDeclaration"), this.parseForAfterInit(e, f, t);
|
|
18768
18768
|
}
|
|
18769
|
-
var
|
|
18770
|
-
return this.type === l._in || (c = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === l._in && this.unexpected(t), e.await = !0) : c && this.options.ecmaVersion >= 8 && (_.start === x && !
|
|
18769
|
+
var p = this.containsEsc, m = new es(), x = this.start, _ = t > -1 ? this.parseExprSubscripts(m, "await") : this.parseExpression(!0, m);
|
|
18770
|
+
return this.type === l._in || (c = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === l._in && this.unexpected(t), e.await = !0) : c && this.options.ecmaVersion >= 8 && (_.start === x && !p && _.type === "Identifier" && _.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), o && c && this.raise(_.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(_, !1, m), this.checkLValPattern(_), this.parseForIn(e, _)) : (this.checkExpressionErrors(m, !0), t > -1 && this.unexpected(t), this.parseFor(e, _));
|
|
18771
18771
|
};
|
|
18772
18772
|
V.parseForAfterInit = function(e, t, r) {
|
|
18773
18773
|
return (this.type === l._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === l._in ? r > -1 && this.unexpected(r) : e.await = r > -1), this.parseForIn(e, t)) : (r > -1 && this.unexpected(r), this.parseFor(e, t));
|
|
@@ -18824,9 +18824,9 @@ V.parseLabeledStatement = function(e, t, r, s) {
|
|
|
18824
18824
|
c.name === t && this.raise(r.start, "Label '" + t + "' is already declared");
|
|
18825
18825
|
}
|
|
18826
18826
|
for (var u = this.type.isLoop ? "loop" : this.type === l._switch ? "switch" : null, f = this.labels.length - 1; f >= 0; f--) {
|
|
18827
|
-
var
|
|
18828
|
-
if (
|
|
18829
|
-
|
|
18827
|
+
var p = this.labels[f];
|
|
18828
|
+
if (p.statementStart === e.start)
|
|
18829
|
+
p.statementStart = this.start, p.kind = u;
|
|
18830
18830
|
else
|
|
18831
18831
|
break;
|
|
18832
18832
|
}
|
|
@@ -18863,9 +18863,9 @@ V.parseVar = function(e, t, r, s) {
|
|
|
18863
18863
|
V.parseVarId = function(e, t) {
|
|
18864
18864
|
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Ai : jt, !1);
|
|
18865
18865
|
};
|
|
18866
|
-
var Kr = 1, Ys = 2,
|
|
18866
|
+
var Kr = 1, Ys = 2, e1 = 4;
|
|
18867
18867
|
V.parseFunction = function(e, t, r, s, i) {
|
|
18868
|
-
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === l.star && t & Ys && this.unexpected(), e.generator = this.eat(l.star)), this.options.ecmaVersion >= 8 && (e.async = !!s), t & Kr && (e.id = t &
|
|
18868
|
+
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === l.star && t & Ys && this.unexpected(), e.generator = this.eat(l.star)), this.options.ecmaVersion >= 8 && (e.async = !!s), t & Kr && (e.id = t & e1 && this.type !== l.name ? null : this.parseIdent(), e.id && !(t & Ys) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Ai : jt : Qo));
|
|
18869
18869
|
var o = this.yieldPos, c = this.awaitPos, u = this.awaitIdentPos;
|
|
18870
18870
|
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ti(e.async, e.generator)), t & Kr || (e.id = this.type === l.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, r, !1, i), this.yieldPos = o, this.awaitPos = c, this.awaitIdentPos = u, this.finishNode(e, t & Kr ? "FunctionDeclaration" : "FunctionExpression");
|
|
18871
18871
|
};
|
|
@@ -18897,8 +18897,8 @@ V.parseClassElement = function(e) {
|
|
|
18897
18897
|
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? c = f : s = f);
|
|
18898
18898
|
}
|
|
18899
18899
|
if (s ? (r.computed = !1, r.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), r.key.name = s, this.finishNode(r.key, "Identifier")) : this.parseClassElementName(r), t < 13 || this.type === l.parenL || c !== "method" || i || o) {
|
|
18900
|
-
var
|
|
18901
|
-
|
|
18900
|
+
var p = !r.static && Fn(r, "constructor"), m = p && e;
|
|
18901
|
+
p && c !== "method" && this.raise(r.key.start, "Constructor can't have get/set modifier"), r.kind = p ? "constructor" : c, this.parseClassMethod(r, i, o, m);
|
|
18902
18902
|
} else
|
|
18903
18903
|
this.parseClassField(r);
|
|
18904
18904
|
return r;
|
|
@@ -18921,7 +18921,7 @@ V.parseClassField = function(e) {
|
|
|
18921
18921
|
V.parseClassStaticBlock = function(e) {
|
|
18922
18922
|
e.body = [];
|
|
18923
18923
|
var t = this.labels;
|
|
18924
|
-
for (this.labels = [], this.enterScope(
|
|
18924
|
+
for (this.labels = [], this.enterScope(pr | Jn); this.type !== l.braceR; ) {
|
|
18925
18925
|
var r = this.parseStatement(null);
|
|
18926
18926
|
e.body.push(r);
|
|
18927
18927
|
}
|
|
@@ -18984,7 +18984,7 @@ V.parseExportDefaultDeclaration = function() {
|
|
|
18984
18984
|
var e;
|
|
18985
18985
|
if (this.type === l._function || (e = this.isAsyncFunction())) {
|
|
18986
18986
|
var t = this.startNode();
|
|
18987
|
-
return this.next(), e && this.next(), this.parseFunction(t, Kr |
|
|
18987
|
+
return this.next(), e && this.next(), this.parseFunction(t, Kr | e1, !1, e);
|
|
18988
18988
|
} else if (this.type === l._class) {
|
|
18989
18989
|
var r = this.startNode();
|
|
18990
18990
|
return this.parseClass(r, "nullableID");
|
|
@@ -19396,13 +19396,13 @@ ne.parseMaybeAssign = function(e, t, r) {
|
|
|
19396
19396
|
t ? (i = t.parenthesizedAssign, o = t.trailingComma, c = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new es(), s = !0);
|
|
19397
19397
|
var u = this.start, f = this.startLoc;
|
|
19398
19398
|
(this.type === l.parenL || this.type === l.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
|
|
19399
|
-
var
|
|
19400
|
-
if (r && (
|
|
19399
|
+
var p = this.parseMaybeConditional(e, t);
|
|
19400
|
+
if (r && (p = r.call(this, p, u, f)), this.type.isAssign) {
|
|
19401
19401
|
var m = this.startNodeAt(u, f);
|
|
19402
|
-
return m.operator = this.value, this.type === l.eq && (
|
|
19402
|
+
return m.operator = this.value, this.type === l.eq && (p = this.toAssignable(p, !1, t)), s || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= p.start && (t.shorthandAssign = -1), this.type === l.eq ? this.checkLValPattern(p) : this.checkLValSimple(p), m.left = p, this.next(), m.right = this.parseMaybeAssign(e), c > -1 && (t.doubleProto = c), this.finishNode(m, "AssignmentExpression");
|
|
19403
19403
|
} else
|
|
19404
19404
|
s && this.checkExpressionErrors(t, !0);
|
|
19405
|
-
return i > -1 && (t.parenthesizedAssign = i), o > -1 && (t.trailingComma = o),
|
|
19405
|
+
return i > -1 && (t.parenthesizedAssign = i), o > -1 && (t.trailingComma = o), p;
|
|
19406
19406
|
};
|
|
19407
19407
|
ne.parseMaybeConditional = function(e, t) {
|
|
19408
19408
|
var r = this.start, s = this.startLoc, i = this.parseExprOps(e, t);
|
|
@@ -19425,7 +19425,7 @@ ne.parseExprOp = function(e, t, r, s, i) {
|
|
|
19425
19425
|
u && (o = l.logicalAND.binop);
|
|
19426
19426
|
var f = this.value;
|
|
19427
19427
|
this.next();
|
|
19428
|
-
var
|
|
19428
|
+
var p = this.start, m = this.startLoc, x = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, i), p, m, o, i), _ = this.buildBinary(t, r, e, x, f, c || u);
|
|
19429
19429
|
return (c && this.type === l.coalesce || u && (this.type === l.logicalOR || this.type === l.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(_, t, r, s, i);
|
|
19430
19430
|
}
|
|
19431
19431
|
return e;
|
|
@@ -19441,15 +19441,15 @@ ne.parseMaybeUnary = function(e, t, r, s) {
|
|
|
19441
19441
|
c = this.parseAwait(s), t = !0;
|
|
19442
19442
|
else if (this.type.prefix) {
|
|
19443
19443
|
var u = this.startNode(), f = this.type === l.incDec;
|
|
19444
|
-
u.operator = this.value, u.prefix = !0, this.next(), u.argument = this.parseMaybeUnary(null, !0, f, s), this.checkExpressionErrors(e, !0), f ? this.checkLValSimple(u.argument) : this.strict && u.operator === "delete" &&
|
|
19444
|
+
u.operator = this.value, u.prefix = !0, this.next(), u.argument = this.parseMaybeUnary(null, !0, f, s), this.checkExpressionErrors(e, !0), f ? this.checkLValSimple(u.argument) : this.strict && u.operator === "delete" && t1(u.argument) ? this.raiseRecoverable(u.start, "Deleting local variable in strict mode") : u.operator === "delete" && Ks(u.argument) ? this.raiseRecoverable(u.start, "Private fields can not be deleted") : t = !0, c = this.finishNode(u, f ? "UpdateExpression" : "UnaryExpression");
|
|
19445
19445
|
} else if (!t && this.type === l.privateId)
|
|
19446
19446
|
(s || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), c = this.parsePrivateIdent(), this.type !== l._in && this.unexpected();
|
|
19447
19447
|
else {
|
|
19448
19448
|
if (c = this.parseExprSubscripts(e, s), this.checkExpressionErrors(e))
|
|
19449
19449
|
return c;
|
|
19450
19450
|
for (; this.type.postfix && !this.canInsertSemicolon(); ) {
|
|
19451
|
-
var
|
|
19452
|
-
|
|
19451
|
+
var p = this.startNodeAt(i, o);
|
|
19452
|
+
p.operator = this.value, p.prefix = !1, p.argument = c, this.checkLValSimple(c), this.next(), c = this.finishNode(p, "UpdateExpression");
|
|
19453
19453
|
}
|
|
19454
19454
|
}
|
|
19455
19455
|
if (!r && this.eat(l.starstar))
|
|
@@ -19460,8 +19460,8 @@ ne.parseMaybeUnary = function(e, t, r, s) {
|
|
|
19460
19460
|
else
|
|
19461
19461
|
return c;
|
|
19462
19462
|
};
|
|
19463
|
-
function
|
|
19464
|
-
return e.type === "Identifier" || e.type === "ParenthesizedExpression" &&
|
|
19463
|
+
function t1(e) {
|
|
19464
|
+
return e.type === "Identifier" || e.type === "ParenthesizedExpression" && t1(e.expression);
|
|
19465
19465
|
}
|
|
19466
19466
|
function Ks(e) {
|
|
19467
19467
|
return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && Ks(e.expression) || e.type === "ParenthesizedExpression" && Ks(e.expression);
|
|
@@ -19495,10 +19495,10 @@ ne.parseSubscriptAsyncArrow = function(e, t, r, s) {
|
|
|
19495
19495
|
ne.parseSubscript = function(e, t, r, s, i, o, c) {
|
|
19496
19496
|
var u = this.options.ecmaVersion >= 11, f = u && this.eat(l.questionDot);
|
|
19497
19497
|
s && f && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
|
|
19498
|
-
var
|
|
19499
|
-
if (
|
|
19498
|
+
var p = this.eat(l.bracketL);
|
|
19499
|
+
if (p || f && this.type !== l.parenL && this.type !== l.backQuote || this.eat(l.dot)) {
|
|
19500
19500
|
var m = this.startNodeAt(t, r);
|
|
19501
|
-
m.object = e,
|
|
19501
|
+
m.object = e, p ? (m.property = this.parseExpression(), this.expect(l.bracketR)) : this.type === l.privateId && e.type !== "Super" ? m.property = this.parsePrivateIdent() : m.property = this.parseIdent(this.options.allowReserved !== "never"), m.computed = !!p, u && (m.optional = f), e = this.finishNode(m, "MemberExpression");
|
|
19502
19502
|
} else if (!s && this.eat(l.parenL)) {
|
|
19503
19503
|
var x = new es(), _ = this.yieldPos, y = this.awaitPos, N = this.awaitIdentPos;
|
|
19504
19504
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
@@ -19535,8 +19535,8 @@ ne.parseExprAtom = function(e, t, r) {
|
|
|
19535
19535
|
}
|
|
19536
19536
|
return f;
|
|
19537
19537
|
case l.regexp:
|
|
19538
|
-
var
|
|
19539
|
-
return s = this.parseLiteral(
|
|
19538
|
+
var p = this.value;
|
|
19539
|
+
return s = this.parseLiteral(p.value), s.regex = { pattern: p.pattern, flags: p.flags }, s;
|
|
19540
19540
|
case l.num:
|
|
19541
19541
|
case l.string:
|
|
19542
19542
|
return this.parseLiteral(this.value);
|
|
@@ -19608,9 +19608,9 @@ ne.parseParenAndDistinguishExpression = function(e, t) {
|
|
|
19608
19608
|
var r = this.start, s = this.startLoc, i, o = this.options.ecmaVersion >= 8;
|
|
19609
19609
|
if (this.options.ecmaVersion >= 6) {
|
|
19610
19610
|
this.next();
|
|
19611
|
-
var c = this.start, u = this.startLoc, f = [],
|
|
19611
|
+
var c = this.start, u = this.startLoc, f = [], p = !0, m = !1, x = new es(), _ = this.yieldPos, y = this.awaitPos, N;
|
|
19612
19612
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== l.parenR; )
|
|
19613
|
-
if (
|
|
19613
|
+
if (p ? p = !1 : this.expect(l.comma), o && this.afterTrailingComma(l.parenR, !0)) {
|
|
19614
19614
|
m = !0;
|
|
19615
19615
|
break;
|
|
19616
19616
|
} else if (this.type === l.ellipsis) {
|
|
@@ -19818,7 +19818,7 @@ Jt.exitScope = function() {
|
|
|
19818
19818
|
this.scopeStack.pop();
|
|
19819
19819
|
};
|
|
19820
19820
|
Jt.treatFunctionsAsVarInScope = function(e) {
|
|
19821
|
-
return e.flags &
|
|
19821
|
+
return e.flags & hr || !this.inModule && e.flags & cr;
|
|
19822
19822
|
};
|
|
19823
19823
|
Jt.declareName = function(e, t, r) {
|
|
19824
19824
|
var s = !1;
|
|
@@ -19852,14 +19852,14 @@ Jt.currentScope = function() {
|
|
|
19852
19852
|
Jt.currentVarScope = function() {
|
|
19853
19853
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
19854
19854
|
var t = this.scopeStack[e];
|
|
19855
|
-
if (t.flags & (Zn | dn |
|
|
19855
|
+
if (t.flags & (Zn | dn | pr))
|
|
19856
19856
|
return t;
|
|
19857
19857
|
}
|
|
19858
19858
|
};
|
|
19859
19859
|
Jt.currentThisScope = function() {
|
|
19860
19860
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
19861
19861
|
var t = this.scopeStack[e];
|
|
19862
|
-
if (t.flags & (Zn | dn |
|
|
19862
|
+
if (t.flags & (Zn | dn | pr) && !(t.flags & Ei))
|
|
19863
19863
|
return t;
|
|
19864
19864
|
}
|
|
19865
19865
|
};
|
|
@@ -19872,14 +19872,14 @@ mn.startNode = function() {
|
|
|
19872
19872
|
mn.startNodeAt = function(e, t) {
|
|
19873
19873
|
return new ts(this, e, t);
|
|
19874
19874
|
};
|
|
19875
|
-
function
|
|
19875
|
+
function r1(e, t, r, s) {
|
|
19876
19876
|
return e.type = t, e.end = r, this.options.locations && (e.loc.end = s), this.options.ranges && (e.range[1] = r), e;
|
|
19877
19877
|
}
|
|
19878
19878
|
mn.finishNode = function(e, t) {
|
|
19879
|
-
return
|
|
19879
|
+
return r1.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
|
|
19880
19880
|
};
|
|
19881
19881
|
mn.finishNodeAt = function(e, t, r, s) {
|
|
19882
|
-
return
|
|
19882
|
+
return r1.call(this, e, t, r, s);
|
|
19883
19883
|
};
|
|
19884
19884
|
mn.copyNode = function(e) {
|
|
19885
19885
|
var t = new ts(this, e.start, this.startLoc);
|
|
@@ -19887,12 +19887,12 @@ mn.copyNode = function(e) {
|
|
|
19887
19887
|
t[r] = e[r];
|
|
19888
19888
|
return t;
|
|
19889
19889
|
};
|
|
19890
|
-
var Td = "Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",
|
|
19891
|
-
9:
|
|
19892
|
-
10:
|
|
19893
|
-
11:
|
|
19894
|
-
12:
|
|
19895
|
-
13:
|
|
19890
|
+
var Td = "Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz", n1 = "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", s1 = n1 + " Extended_Pictographic", i1 = s1, a1 = i1 + " EBase EComp EMod EPres ExtPict", o1 = a1, Ad = o1, Pd = {
|
|
19891
|
+
9: n1,
|
|
19892
|
+
10: s1,
|
|
19893
|
+
11: i1,
|
|
19894
|
+
12: a1,
|
|
19895
|
+
13: o1,
|
|
19896
19896
|
14: Ad
|
|
19897
19897
|
}, Nd = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", Ld = {
|
|
19898
19898
|
9: "",
|
|
@@ -19901,16 +19901,16 @@ var Td = "Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana
|
|
|
19901
19901
|
12: "",
|
|
19902
19902
|
13: "",
|
|
19903
19903
|
14: Nd
|
|
19904
|
-
}, fa = "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",
|
|
19905
|
-
9:
|
|
19906
|
-
10:
|
|
19907
|
-
11:
|
|
19908
|
-
12:
|
|
19909
|
-
13:
|
|
19904
|
+
}, fa = "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", c1 = "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", l1 = c1 + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", u1 = l1 + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", h1 = u1 + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", p1 = h1 + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", Rd = p1 + " " + Td, Dd = {
|
|
19905
|
+
9: c1,
|
|
19906
|
+
10: l1,
|
|
19907
|
+
11: u1,
|
|
19908
|
+
12: h1,
|
|
19909
|
+
13: p1,
|
|
19910
19910
|
14: Rd
|
|
19911
|
-
},
|
|
19911
|
+
}, f1 = {};
|
|
19912
19912
|
function Od(e) {
|
|
19913
|
-
var t =
|
|
19913
|
+
var t = f1[e] = {
|
|
19914
19914
|
binary: Ht(Pd[e] + " " + fa),
|
|
19915
19915
|
binaryOfStrings: Ht(Ld[e]),
|
|
19916
19916
|
nonBinary: {
|
|
@@ -19938,7 +19938,7 @@ Bn.prototype.sibling = function() {
|
|
|
19938
19938
|
return new Bn(this.parent, this.base);
|
|
19939
19939
|
};
|
|
19940
19940
|
var Nt = function(t) {
|
|
19941
|
-
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 =
|
|
19941
|
+
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 = f1[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;
|
|
19942
19942
|
};
|
|
19943
19943
|
Nt.prototype.reset = function(t, r, s) {
|
|
19944
19944
|
var i = s.indexOf("v") !== -1, o = s.indexOf("u") !== -1;
|
|
@@ -20221,13 +20221,13 @@ B.regexp_eatInvalidBracedQuantifier = function(e) {
|
|
|
20221
20221
|
};
|
|
20222
20222
|
B.regexp_eatSyntaxCharacter = function(e) {
|
|
20223
20223
|
var t = e.current();
|
|
20224
|
-
return
|
|
20224
|
+
return d1(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
20225
20225
|
};
|
|
20226
|
-
function
|
|
20226
|
+
function d1(e) {
|
|
20227
20227
|
return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
|
|
20228
20228
|
}
|
|
20229
20229
|
B.regexp_eatPatternCharacters = function(e) {
|
|
20230
|
-
for (var t = e.pos, r = 0; (r = e.current()) !== -1 && !
|
|
20230
|
+
for (var t = e.pos, r = 0; (r = e.current()) !== -1 && !d1(r); )
|
|
20231
20231
|
e.advance();
|
|
20232
20232
|
return e.pos !== t;
|
|
20233
20233
|
};
|
|
@@ -20339,9 +20339,9 @@ B.regexp_eatControlEscape = function(e) {
|
|
|
20339
20339
|
};
|
|
20340
20340
|
B.regexp_eatControlLetter = function(e) {
|
|
20341
20341
|
var t = e.current();
|
|
20342
|
-
return
|
|
20342
|
+
return m1(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
|
|
20343
20343
|
};
|
|
20344
|
-
function
|
|
20344
|
+
function m1(e) {
|
|
20345
20345
|
return e >= 65 && e <= 90 || e >= 97 && e <= 122;
|
|
20346
20346
|
}
|
|
20347
20347
|
B.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
@@ -20405,7 +20405,7 @@ B.regexp_eatDecimalEscape = function(e) {
|
|
|
20405
20405
|
}
|
|
20406
20406
|
return !1;
|
|
20407
20407
|
};
|
|
20408
|
-
var
|
|
20408
|
+
var g1 = 0, Ft = 1, ut = 2;
|
|
20409
20409
|
B.regexp_eatCharacterClassEscape = function(e) {
|
|
20410
20410
|
var t = e.current();
|
|
20411
20411
|
if (qd(t))
|
|
@@ -20424,7 +20424,7 @@ B.regexp_eatCharacterClassEscape = function(e) {
|
|
|
20424
20424
|
return r && s === ut && e.raise("Invalid property name"), s;
|
|
20425
20425
|
e.raise("Invalid property name");
|
|
20426
20426
|
}
|
|
20427
|
-
return
|
|
20427
|
+
return g1;
|
|
20428
20428
|
};
|
|
20429
20429
|
function qd(e) {
|
|
20430
20430
|
return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
|
|
@@ -20445,7 +20445,7 @@ B.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
|
20445
20445
|
var i = e.lastStringValue;
|
|
20446
20446
|
return this.regexp_validateUnicodePropertyNameOrValue(e, i);
|
|
20447
20447
|
}
|
|
20448
|
-
return
|
|
20448
|
+
return g1;
|
|
20449
20449
|
};
|
|
20450
20450
|
B.regexp_validateUnicodePropertyNameAndValue = function(e, t, r) {
|
|
20451
20451
|
Nr(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(r) || e.raise("Invalid property value");
|
|
@@ -20459,12 +20459,12 @@ B.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
|
20459
20459
|
};
|
|
20460
20460
|
B.regexp_eatUnicodePropertyName = function(e) {
|
|
20461
20461
|
var t = 0;
|
|
20462
|
-
for (e.lastStringValue = "";
|
|
20462
|
+
for (e.lastStringValue = ""; x1(t = e.current()); )
|
|
20463
20463
|
e.lastStringValue += Mt(t), e.advance();
|
|
20464
20464
|
return e.lastStringValue !== "";
|
|
20465
20465
|
};
|
|
20466
|
-
function
|
|
20467
|
-
return
|
|
20466
|
+
function x1(e) {
|
|
20467
|
+
return m1(e) || e === 95;
|
|
20468
20468
|
}
|
|
20469
20469
|
B.regexp_eatUnicodePropertyValue = function(e) {
|
|
20470
20470
|
var t = 0;
|
|
@@ -20473,7 +20473,7 @@ B.regexp_eatUnicodePropertyValue = function(e) {
|
|
|
20473
20473
|
return e.lastStringValue !== "";
|
|
20474
20474
|
};
|
|
20475
20475
|
function Ud(e) {
|
|
20476
|
-
return
|
|
20476
|
+
return x1(e) || rs(e);
|
|
20477
20477
|
}
|
|
20478
20478
|
B.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
|
|
20479
20479
|
return this.regexp_eatUnicodePropertyValue(e);
|
|
@@ -20519,7 +20519,7 @@ B.regexp_eatClassAtom = function(e) {
|
|
|
20519
20519
|
return !0;
|
|
20520
20520
|
if (e.switchU) {
|
|
20521
20521
|
var r = e.current();
|
|
20522
|
-
(r === 99 ||
|
|
20522
|
+
(r === 99 || y1(r)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
|
|
20523
20523
|
}
|
|
20524
20524
|
e.pos = t;
|
|
20525
20525
|
}
|
|
@@ -20714,14 +20714,14 @@ function rs(e) {
|
|
|
20714
20714
|
}
|
|
20715
20715
|
B.regexp_eatHexDigits = function(e) {
|
|
20716
20716
|
var t = e.pos, r = 0;
|
|
20717
|
-
for (e.lastIntValue = 0;
|
|
20718
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
20717
|
+
for (e.lastIntValue = 0; k1(r = e.current()); )
|
|
20718
|
+
e.lastIntValue = 16 * e.lastIntValue + b1(r), e.advance();
|
|
20719
20719
|
return e.pos !== t;
|
|
20720
20720
|
};
|
|
20721
|
-
function
|
|
20721
|
+
function k1(e) {
|
|
20722
20722
|
return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
|
|
20723
20723
|
}
|
|
20724
|
-
function
|
|
20724
|
+
function b1(e) {
|
|
20725
20725
|
return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
|
|
20726
20726
|
}
|
|
20727
20727
|
B.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
@@ -20738,9 +20738,9 @@ B.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
|
20738
20738
|
};
|
|
20739
20739
|
B.regexp_eatOctalDigit = function(e) {
|
|
20740
20740
|
var t = e.current();
|
|
20741
|
-
return
|
|
20741
|
+
return y1(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
|
|
20742
20742
|
};
|
|
20743
|
-
function
|
|
20743
|
+
function y1(e) {
|
|
20744
20744
|
return e >= 48 && e <= 55;
|
|
20745
20745
|
}
|
|
20746
20746
|
B.regexp_eatFixedHexDigits = function(e, t) {
|
|
@@ -20748,22 +20748,22 @@ B.regexp_eatFixedHexDigits = function(e, t) {
|
|
|
20748
20748
|
e.lastIntValue = 0;
|
|
20749
20749
|
for (var s = 0; s < t; ++s) {
|
|
20750
20750
|
var i = e.current();
|
|
20751
|
-
if (!
|
|
20751
|
+
if (!k1(i))
|
|
20752
20752
|
return e.pos = r, !1;
|
|
20753
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
20753
|
+
e.lastIntValue = 16 * e.lastIntValue + b1(i), e.advance();
|
|
20754
20754
|
}
|
|
20755
20755
|
return !0;
|
|
20756
20756
|
};
|
|
20757
20757
|
var Ni = function(t) {
|
|
20758
20758
|
this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new Qn(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
|
|
20759
|
-
},
|
|
20760
|
-
|
|
20759
|
+
}, he = qe.prototype;
|
|
20760
|
+
he.next = function(e) {
|
|
20761
20761
|
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Ni(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
|
|
20762
20762
|
};
|
|
20763
|
-
|
|
20763
|
+
he.getToken = function() {
|
|
20764
20764
|
return this.next(), new Ni(this);
|
|
20765
20765
|
};
|
|
20766
|
-
typeof Symbol < "u" && (
|
|
20766
|
+
typeof Symbol < "u" && (he[Symbol.iterator] = function() {
|
|
20767
20767
|
var e = this;
|
|
20768
20768
|
return {
|
|
20769
20769
|
next: function() {
|
|
@@ -20775,7 +20775,7 @@ typeof Symbol < "u" && (pe[Symbol.iterator] = function() {
|
|
|
20775
20775
|
}
|
|
20776
20776
|
};
|
|
20777
20777
|
});
|
|
20778
|
-
|
|
20778
|
+
he.nextToken = function() {
|
|
20779
20779
|
var e = this.curContext();
|
|
20780
20780
|
if ((!e || !e.preserveSpace) && this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length)
|
|
20781
20781
|
return this.finishToken(l.eof);
|
|
@@ -20783,20 +20783,20 @@ pe.nextToken = function() {
|
|
|
20783
20783
|
return e.override(this);
|
|
20784
20784
|
this.readToken(this.fullCharCodeAtPos());
|
|
20785
20785
|
};
|
|
20786
|
-
|
|
20786
|
+
he.readToken = function(e) {
|
|
20787
20787
|
return At(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
|
|
20788
20788
|
};
|
|
20789
|
-
|
|
20789
|
+
he.fullCharCodeAt = function(e) {
|
|
20790
20790
|
var t = this.input.charCodeAt(e);
|
|
20791
20791
|
if (t <= 55295 || t >= 56320)
|
|
20792
20792
|
return t;
|
|
20793
20793
|
var r = this.input.charCodeAt(e + 1);
|
|
20794
20794
|
return r <= 56319 || r >= 57344 ? t : (t << 10) + r - 56613888;
|
|
20795
20795
|
};
|
|
20796
|
-
|
|
20796
|
+
he.fullCharCodeAtPos = function() {
|
|
20797
20797
|
return this.fullCharCodeAt(this.pos);
|
|
20798
20798
|
};
|
|
20799
|
-
|
|
20799
|
+
he.skipBlockComment = function() {
|
|
20800
20800
|
var e = this.options.onComment && this.curPosition(), t = this.pos, r = this.input.indexOf("*/", this.pos += 2);
|
|
20801
20801
|
if (r === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = r + 2, this.options.locations)
|
|
20802
20802
|
for (var s = void 0, i = t; (s = Uo(this.input, i, this.pos)) > -1; )
|
|
@@ -20810,7 +20810,7 @@ pe.skipBlockComment = function() {
|
|
|
20810
20810
|
this.curPosition()
|
|
20811
20811
|
);
|
|
20812
20812
|
};
|
|
20813
|
-
|
|
20813
|
+
he.skipLineComment = function(e) {
|
|
20814
20814
|
for (var t = this.pos, r = this.options.onComment && this.curPosition(), s = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !Pr(s); )
|
|
20815
20815
|
s = this.input.charCodeAt(++this.pos);
|
|
20816
20816
|
this.options.onComment && this.options.onComment(
|
|
@@ -20822,7 +20822,7 @@ pe.skipLineComment = function(e) {
|
|
|
20822
20822
|
this.curPosition()
|
|
20823
20823
|
);
|
|
20824
20824
|
};
|
|
20825
|
-
|
|
20825
|
+
he.skipSpace = function() {
|
|
20826
20826
|
e: for (; this.pos < this.input.length; ) {
|
|
20827
20827
|
var e = this.input.charCodeAt(this.pos);
|
|
20828
20828
|
switch (e) {
|
|
@@ -20857,27 +20857,27 @@ pe.skipSpace = function() {
|
|
|
20857
20857
|
}
|
|
20858
20858
|
}
|
|
20859
20859
|
};
|
|
20860
|
-
|
|
20860
|
+
he.finishToken = function(e, t) {
|
|
20861
20861
|
this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
|
|
20862
20862
|
var r = this.type;
|
|
20863
20863
|
this.type = e, this.value = t, this.updateContext(r);
|
|
20864
20864
|
};
|
|
20865
|
-
|
|
20865
|
+
he.readToken_dot = function() {
|
|
20866
20866
|
var e = this.input.charCodeAt(this.pos + 1);
|
|
20867
20867
|
if (e >= 48 && e <= 57)
|
|
20868
20868
|
return this.readNumber(!0);
|
|
20869
20869
|
var t = this.input.charCodeAt(this.pos + 2);
|
|
20870
20870
|
return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(l.ellipsis)) : (++this.pos, this.finishToken(l.dot));
|
|
20871
20871
|
};
|
|
20872
|
-
|
|
20872
|
+
he.readToken_slash = function() {
|
|
20873
20873
|
var e = this.input.charCodeAt(this.pos + 1);
|
|
20874
20874
|
return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(l.assign, 2) : this.finishOp(l.slash, 1);
|
|
20875
20875
|
};
|
|
20876
|
-
|
|
20876
|
+
he.readToken_mult_modulo_exp = function(e) {
|
|
20877
20877
|
var t = this.input.charCodeAt(this.pos + 1), r = 1, s = e === 42 ? l.star : l.modulo;
|
|
20878
20878
|
return this.options.ecmaVersion >= 7 && e === 42 && t === 42 && (++r, s = l.starstar, t = this.input.charCodeAt(this.pos + 2)), t === 61 ? this.finishOp(l.assign, r + 1) : this.finishOp(s, r);
|
|
20879
20879
|
};
|
|
20880
|
-
|
|
20880
|
+
he.readToken_pipe_amp = function(e) {
|
|
20881
20881
|
var t = this.input.charCodeAt(this.pos + 1);
|
|
20882
20882
|
if (t === e) {
|
|
20883
20883
|
if (this.options.ecmaVersion >= 12) {
|
|
@@ -20889,23 +20889,23 @@ pe.readToken_pipe_amp = function(e) {
|
|
|
20889
20889
|
}
|
|
20890
20890
|
return t === 61 ? this.finishOp(l.assign, 2) : this.finishOp(e === 124 ? l.bitwiseOR : l.bitwiseAND, 1);
|
|
20891
20891
|
};
|
|
20892
|
-
|
|
20892
|
+
he.readToken_caret = function() {
|
|
20893
20893
|
var e = this.input.charCodeAt(this.pos + 1);
|
|
20894
20894
|
return e === 61 ? this.finishOp(l.assign, 2) : this.finishOp(l.bitwiseXOR, 1);
|
|
20895
20895
|
};
|
|
20896
|
-
|
|
20896
|
+
he.readToken_plus_min = function(e) {
|
|
20897
20897
|
var t = this.input.charCodeAt(this.pos + 1);
|
|
20898
20898
|
return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || rt.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(l.incDec, 2) : t === 61 ? this.finishOp(l.assign, 2) : this.finishOp(l.plusMin, 1);
|
|
20899
20899
|
};
|
|
20900
|
-
|
|
20900
|
+
he.readToken_lt_gt = function(e) {
|
|
20901
20901
|
var t = this.input.charCodeAt(this.pos + 1), r = 1;
|
|
20902
20902
|
return t === e ? (r = e === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + r) === 61 ? this.finishOp(l.assign, r + 1) : this.finishOp(l.bitShift, r)) : t === 33 && e === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45 ? (this.skipLineComment(4), this.skipSpace(), this.nextToken()) : (t === 61 && (r = 2), this.finishOp(l.relational, r));
|
|
20903
20903
|
};
|
|
20904
|
-
|
|
20904
|
+
he.readToken_eq_excl = function(e) {
|
|
20905
20905
|
var t = this.input.charCodeAt(this.pos + 1);
|
|
20906
20906
|
return t === 61 ? this.finishOp(l.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : e === 61 && t === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(l.arrow)) : this.finishOp(e === 61 ? l.eq : l.prefix, 1);
|
|
20907
20907
|
};
|
|
20908
|
-
|
|
20908
|
+
he.readToken_question = function() {
|
|
20909
20909
|
var e = this.options.ecmaVersion;
|
|
20910
20910
|
if (e >= 11) {
|
|
20911
20911
|
var t = this.input.charCodeAt(this.pos + 1);
|
|
@@ -20925,13 +20925,13 @@ pe.readToken_question = function() {
|
|
|
20925
20925
|
}
|
|
20926
20926
|
return this.finishOp(l.question, 1);
|
|
20927
20927
|
};
|
|
20928
|
-
|
|
20928
|
+
he.readToken_numberSign = function() {
|
|
20929
20929
|
var e = this.options.ecmaVersion, t = 35;
|
|
20930
20930
|
if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), At(t, !0) || t === 92))
|
|
20931
20931
|
return this.finishToken(l.privateId, this.readWord1());
|
|
20932
20932
|
this.raise(this.pos, "Unexpected character '" + Mt(t) + "'");
|
|
20933
20933
|
};
|
|
20934
|
-
|
|
20934
|
+
he.getTokenFromCode = function(e) {
|
|
20935
20935
|
switch (e) {
|
|
20936
20936
|
case 46:
|
|
20937
20937
|
return this.readToken_dot();
|
|
@@ -21008,11 +21008,11 @@ pe.getTokenFromCode = function(e) {
|
|
|
21008
21008
|
}
|
|
21009
21009
|
this.raise(this.pos, "Unexpected character '" + Mt(e) + "'");
|
|
21010
21010
|
};
|
|
21011
|
-
|
|
21011
|
+
he.finishOp = function(e, t) {
|
|
21012
21012
|
var r = this.input.slice(this.pos, this.pos + t);
|
|
21013
21013
|
return this.pos += t, this.finishToken(e, r);
|
|
21014
21014
|
};
|
|
21015
|
-
|
|
21015
|
+
he.readRegexp = function() {
|
|
21016
21016
|
for (var e, t, r = this.pos; ; ) {
|
|
21017
21017
|
this.pos >= this.input.length && this.raise(r, "Unterminated regular expression");
|
|
21018
21018
|
var s = this.input.charAt(this.pos);
|
|
@@ -21042,8 +21042,8 @@ pe.readRegexp = function() {
|
|
|
21042
21042
|
}
|
|
21043
21043
|
return this.finishToken(l.regexp, { pattern: i, flags: c, value: f });
|
|
21044
21044
|
};
|
|
21045
|
-
|
|
21046
|
-
for (var s = this.options.ecmaVersion >= 12 && t === void 0, i = r && this.input.charCodeAt(this.pos) === 48, o = this.pos, c = 0, u = 0, f = 0,
|
|
21045
|
+
he.readInt = function(e, t, r) {
|
|
21046
|
+
for (var s = this.options.ecmaVersion >= 12 && t === void 0, i = r && this.input.charCodeAt(this.pos) === 48, o = this.pos, c = 0, u = 0, f = 0, p = t ?? 1 / 0; f < p; ++f, ++this.pos) {
|
|
21047
21047
|
var m = this.input.charCodeAt(this.pos), x = void 0;
|
|
21048
21048
|
if (s && m === 95) {
|
|
21049
21049
|
i && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), u === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), f === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), u = m;
|
|
@@ -21058,30 +21058,30 @@ pe.readInt = function(e, t, r) {
|
|
|
21058
21058
|
function Gd(e, t) {
|
|
21059
21059
|
return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
|
|
21060
21060
|
}
|
|
21061
|
-
function
|
|
21061
|
+
function v1(e) {
|
|
21062
21062
|
return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
|
|
21063
21063
|
}
|
|
21064
|
-
|
|
21064
|
+
he.readRadixNumber = function(e) {
|
|
21065
21065
|
var t = this.pos;
|
|
21066
21066
|
this.pos += 2;
|
|
21067
21067
|
var r = this.readInt(e);
|
|
21068
|
-
return r == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (r =
|
|
21068
|
+
return r == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (r = v1(this.input.slice(t, this.pos)), ++this.pos) : At(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(l.num, r);
|
|
21069
21069
|
};
|
|
21070
|
-
|
|
21070
|
+
he.readNumber = function(e) {
|
|
21071
21071
|
var t = this.pos;
|
|
21072
21072
|
!e && this.readInt(10, void 0, !0) === null && this.raise(t, "Invalid number");
|
|
21073
21073
|
var r = this.pos - t >= 2 && this.input.charCodeAt(t) === 48;
|
|
21074
21074
|
r && this.strict && this.raise(t, "Invalid number");
|
|
21075
21075
|
var s = this.input.charCodeAt(this.pos);
|
|
21076
21076
|
if (!r && !e && this.options.ecmaVersion >= 11 && s === 110) {
|
|
21077
|
-
var i =
|
|
21077
|
+
var i = v1(this.input.slice(t, this.pos));
|
|
21078
21078
|
return ++this.pos, At(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(l.num, i);
|
|
21079
21079
|
}
|
|
21080
21080
|
r && /[89]/.test(this.input.slice(t, this.pos)) && (r = !1), s === 46 && !r && (++this.pos, this.readInt(10), s = this.input.charCodeAt(this.pos)), (s === 69 || s === 101) && !r && (s = this.input.charCodeAt(++this.pos), (s === 43 || s === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), At(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
21081
21081
|
var o = Gd(this.input.slice(t, this.pos), r);
|
|
21082
21082
|
return this.finishToken(l.num, o);
|
|
21083
21083
|
};
|
|
21084
|
-
|
|
21084
|
+
he.readCodePoint = function() {
|
|
21085
21085
|
var e = this.input.charCodeAt(this.pos), t;
|
|
21086
21086
|
if (e === 123) {
|
|
21087
21087
|
this.options.ecmaVersion < 6 && this.unexpected();
|
|
@@ -21091,7 +21091,7 @@ pe.readCodePoint = function() {
|
|
|
21091
21091
|
t = this.readHexChar(4);
|
|
21092
21092
|
return t;
|
|
21093
21093
|
};
|
|
21094
|
-
|
|
21094
|
+
he.readString = function(e) {
|
|
21095
21095
|
for (var t = "", r = ++this.pos; ; ) {
|
|
21096
21096
|
this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
|
|
21097
21097
|
var s = this.input.charCodeAt(this.pos);
|
|
@@ -21101,25 +21101,25 @@ pe.readString = function(e) {
|
|
|
21101
21101
|
}
|
|
21102
21102
|
return t += this.input.slice(r, this.pos++), this.finishToken(l.string, t);
|
|
21103
21103
|
};
|
|
21104
|
-
var
|
|
21105
|
-
|
|
21104
|
+
var w1 = {};
|
|
21105
|
+
he.tryReadTemplateToken = function() {
|
|
21106
21106
|
this.inTemplateElement = !0;
|
|
21107
21107
|
try {
|
|
21108
21108
|
this.readTmplToken();
|
|
21109
21109
|
} catch (e) {
|
|
21110
|
-
if (e ===
|
|
21110
|
+
if (e === w1)
|
|
21111
21111
|
this.readInvalidTemplateToken();
|
|
21112
21112
|
else
|
|
21113
21113
|
throw e;
|
|
21114
21114
|
}
|
|
21115
21115
|
this.inTemplateElement = !1;
|
|
21116
21116
|
};
|
|
21117
|
-
|
|
21117
|
+
he.invalidStringToken = function(e, t) {
|
|
21118
21118
|
if (this.inTemplateElement && this.options.ecmaVersion >= 9)
|
|
21119
|
-
throw
|
|
21119
|
+
throw w1;
|
|
21120
21120
|
this.raise(e, t);
|
|
21121
21121
|
};
|
|
21122
|
-
|
|
21122
|
+
he.readTmplToken = function() {
|
|
21123
21123
|
for (var e = "", t = this.pos; ; ) {
|
|
21124
21124
|
this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
|
|
21125
21125
|
var r = this.input.charCodeAt(this.pos);
|
|
@@ -21144,7 +21144,7 @@ pe.readTmplToken = function() {
|
|
|
21144
21144
|
++this.pos;
|
|
21145
21145
|
}
|
|
21146
21146
|
};
|
|
21147
|
-
|
|
21147
|
+
he.readInvalidTemplateToken = function() {
|
|
21148
21148
|
for (; this.pos < this.input.length; this.pos++)
|
|
21149
21149
|
switch (this.input[this.pos]) {
|
|
21150
21150
|
case "\\":
|
|
@@ -21167,7 +21167,7 @@ pe.readInvalidTemplateToken = function() {
|
|
|
21167
21167
|
}
|
|
21168
21168
|
this.raise(this.start, "Unterminated template");
|
|
21169
21169
|
};
|
|
21170
|
-
|
|
21170
|
+
he.readEscapedChar = function(e) {
|
|
21171
21171
|
var t = this.input.charCodeAt(++this.pos);
|
|
21172
21172
|
switch (++this.pos, t) {
|
|
21173
21173
|
case 110:
|
|
@@ -21214,11 +21214,11 @@ pe.readEscapedChar = function(e) {
|
|
|
21214
21214
|
return Pr(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
|
|
21215
21215
|
}
|
|
21216
21216
|
};
|
|
21217
|
-
|
|
21217
|
+
he.readHexChar = function(e) {
|
|
21218
21218
|
var t = this.pos, r = this.readInt(16, e);
|
|
21219
21219
|
return r === null && this.invalidStringToken(t, "Bad character escape sequence"), r;
|
|
21220
21220
|
};
|
|
21221
|
-
|
|
21221
|
+
he.readWord1 = function() {
|
|
21222
21222
|
this.containsEsc = !1;
|
|
21223
21223
|
for (var e = "", t = !0, r = this.pos, s = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
|
|
21224
21224
|
var i = this.fullCharCodeAtPos();
|
|
@@ -21236,7 +21236,7 @@ pe.readWord1 = function() {
|
|
|
21236
21236
|
}
|
|
21237
21237
|
return e + this.input.slice(r, this.pos);
|
|
21238
21238
|
};
|
|
21239
|
-
|
|
21239
|
+
he.readWord = function() {
|
|
21240
21240
|
var e = this.readWord1(), t = l.name;
|
|
21241
21241
|
return this.keywords.test(e) && (t = Ii[e]), this.finishToken(t, e);
|
|
21242
21242
|
};
|
|
@@ -21262,20 +21262,20 @@ qe.acorn = {
|
|
|
21262
21262
|
lineBreakG: gd,
|
|
21263
21263
|
nonASCIIwhitespace: zo
|
|
21264
21264
|
};
|
|
21265
|
-
function
|
|
21265
|
+
function _1(e, t) {
|
|
21266
21266
|
return qe.parse(e, t);
|
|
21267
21267
|
}
|
|
21268
21268
|
function As(e, t, r, s, i) {
|
|
21269
21269
|
r || (r = P), function o(c, u, f) {
|
|
21270
|
-
var
|
|
21271
|
-
|
|
21270
|
+
var p = f || c.type;
|
|
21271
|
+
S1(r, p, c, u, o), t[p] && t[p](c, u);
|
|
21272
21272
|
}(e, s, i);
|
|
21273
21273
|
}
|
|
21274
21274
|
function Yd(e, t, r, s, i) {
|
|
21275
21275
|
var o = [];
|
|
21276
|
-
r || (r = P), function c(u, f,
|
|
21277
|
-
var m =
|
|
21278
|
-
x && o.push(u),
|
|
21276
|
+
r || (r = P), function c(u, f, p) {
|
|
21277
|
+
var m = p || u.type, x = u !== o[o.length - 1];
|
|
21278
|
+
x && o.push(u), S1(r, m, u, f, c), t[m] && t[m](u, f || o, o), x && o.pop();
|
|
21279
21279
|
}(e, s, i);
|
|
21280
21280
|
}
|
|
21281
21281
|
function Li(e, t, r) {
|
|
@@ -21283,7 +21283,7 @@ function Li(e, t, r) {
|
|
|
21283
21283
|
}
|
|
21284
21284
|
function fr(e, t, r) {
|
|
21285
21285
|
}
|
|
21286
|
-
function
|
|
21286
|
+
function S1(e, t, r, s, i) {
|
|
21287
21287
|
if (e[t] == null)
|
|
21288
21288
|
throw new Error("No walker function defined for node type " + t);
|
|
21289
21289
|
e[t](r, s, i);
|
|
@@ -21494,7 +21494,7 @@ P.MethodDefinition = P.PropertyDefinition = P.Property = function(e, t, r) {
|
|
|
21494
21494
|
e.computed && r(e.key, t, "Expression"), e.value && r(e.value, t, "Expression");
|
|
21495
21495
|
};
|
|
21496
21496
|
let Qr = 0;
|
|
21497
|
-
const
|
|
21497
|
+
const I1 = /* @__PURE__ */ new Set([
|
|
21498
21498
|
// React (available via JSX runtime)
|
|
21499
21499
|
"React",
|
|
21500
21500
|
"Fragment",
|
|
@@ -21605,7 +21605,7 @@ const Ic = /* @__PURE__ */ new Set([
|
|
|
21605
21605
|
"StepWizard"
|
|
21606
21606
|
]);
|
|
21607
21607
|
function Kd(e) {
|
|
21608
|
-
const t = new Set(
|
|
21608
|
+
const t = new Set(I1), r = /import\s*\{([^}]+)\}\s*from\s*['"][^'"]+['"]/g;
|
|
21609
21609
|
let s;
|
|
21610
21610
|
for (; s = r.exec(e); )
|
|
21611
21611
|
for (const N of s[1].split(",")) {
|
|
@@ -21629,8 +21629,8 @@ function Kd(e) {
|
|
|
21629
21629
|
const f = /class\s+(\w+)/g;
|
|
21630
21630
|
for (; s = f.exec(e); )
|
|
21631
21631
|
t.add(s[1]);
|
|
21632
|
-
const
|
|
21633
|
-
for (; s =
|
|
21632
|
+
const p = /enum\s+(\w+)/g;
|
|
21633
|
+
for (; s = p.exec(e); )
|
|
21634
21634
|
t.add(s[1]);
|
|
21635
21635
|
const m = /(?:type|interface)\s+(\w+)/g;
|
|
21636
21636
|
for (; s = m.exec(e); )
|
|
@@ -21649,7 +21649,7 @@ function Kd(e) {
|
|
|
21649
21649
|
function Qd(e, t) {
|
|
21650
21650
|
let r;
|
|
21651
21651
|
try {
|
|
21652
|
-
r =
|
|
21652
|
+
r = _1(e, {
|
|
21653
21653
|
ecmaVersion: "latest",
|
|
21654
21654
|
sourceType: "module",
|
|
21655
21655
|
locations: !0
|
|
@@ -21657,7 +21657,7 @@ function Qd(e, t) {
|
|
|
21657
21657
|
} catch {
|
|
21658
21658
|
return [];
|
|
21659
21659
|
}
|
|
21660
|
-
const s = new Set(
|
|
21660
|
+
const s = new Set(I1);
|
|
21661
21661
|
As(r, {
|
|
21662
21662
|
// import { x } from '...' / import x from '...' / import * as x from '...'
|
|
21663
21663
|
ImportDeclaration(c) {
|
|
@@ -21711,13 +21711,13 @@ function Qd(e, t) {
|
|
|
21711
21711
|
}), Yd(r, {
|
|
21712
21712
|
Identifier(c, u, f) {
|
|
21713
21713
|
var y, N;
|
|
21714
|
-
const
|
|
21715
|
-
if (s.has(
|
|
21714
|
+
const p = c.name;
|
|
21715
|
+
if (s.has(p) || o.has(p)) return;
|
|
21716
21716
|
const m = f[f.length - 2];
|
|
21717
21717
|
if (!m || m.type === "MemberExpression" && m.property === c && !m.computed || m.type === "Property" && m.key === c && !m.computed || m.type === "ImportSpecifier" || m.type === "ImportDefaultSpecifier" || m.type === "ImportNamespaceSpecifier" || m.type === "VariableDeclarator" && m.id === c || m.type === "FunctionDeclaration" && m.id === c || m.type === "ClassDeclaration" && m.id === c || m.type === "LabeledStatement" && m.label === c || (m.type === "BreakStatement" || m.type === "ContinueStatement") && m.label === c || m.type === "MethodDefinition" && m.key === c || m.type === "JSXAttribute" && m.name === c || m.type === "JSXOpeningElement" && m.name === c || m.type === "JSXClosingElement" && m.name === c) return;
|
|
21718
|
-
o.add(
|
|
21718
|
+
o.add(p);
|
|
21719
21719
|
const x = ((N = (y = c.loc) == null ? void 0 : y.start) == null ? void 0 : N.line) ?? 1, _ = Math.min(x, t);
|
|
21720
|
-
i.push({ name:
|
|
21720
|
+
i.push({ name: p, line: _ });
|
|
21721
21721
|
}
|
|
21722
21722
|
}), i;
|
|
21723
21723
|
}
|
|
@@ -21758,14 +21758,14 @@ function Vn(e, t) {
|
|
|
21758
21758
|
for (let u = Math.min(t - 1, r.length - 1); u >= 0; u--) {
|
|
21759
21759
|
const f = r[u];
|
|
21760
21760
|
if (!i) {
|
|
21761
|
-
const
|
|
21762
|
-
|
|
21761
|
+
const p = f.match(/^(\s*)(export\s+default\s+)?function\s+(\w+)/);
|
|
21762
|
+
p && (i = { name: p[3], line: u + 1 });
|
|
21763
21763
|
const m = f.match(/^(\s*)(export\s+default\s+)?const\s+(\w+)\s*=\s*(\([^)]*\)|[^=])*=>/);
|
|
21764
21764
|
m && (i = { name: m[3], line: u + 1 });
|
|
21765
21765
|
}
|
|
21766
21766
|
if (!o) {
|
|
21767
|
-
const
|
|
21768
|
-
|
|
21767
|
+
const p = f.match(/activePage\s*===\s*['"](\w+)['"]/);
|
|
21768
|
+
p && (o = { page: p[1], line: u + 1 });
|
|
21769
21769
|
}
|
|
21770
21770
|
if (i && o) break;
|
|
21771
21771
|
}
|
|
@@ -21806,9 +21806,9 @@ function Ri(e, t = {}) {
|
|
|
21806
21806
|
const { filename: r = "App.tsx", isTypeScript: s, isJSX: i } = t, o = ((m = r.split(".").pop()) == null ? void 0 : m.toLowerCase()) ?? "", c = [];
|
|
21807
21807
|
(s ?? (o === "tsx" || o === "ts")) && c.push("typescript"), (i ?? (o === "tsx" || o === "jsx")) && c.push("jsx");
|
|
21808
21808
|
const u = [], f = Jd(e);
|
|
21809
|
-
let
|
|
21809
|
+
let p = "";
|
|
21810
21810
|
try {
|
|
21811
|
-
|
|
21811
|
+
p = ld(e, {
|
|
21812
21812
|
transforms: c,
|
|
21813
21813
|
jsxRuntime: "automatic",
|
|
21814
21814
|
production: !1,
|
|
@@ -21819,7 +21819,7 @@ function Ri(e, t = {}) {
|
|
|
21819
21819
|
return u.push(_), { code: "", error: _, errors: u, sections: f };
|
|
21820
21820
|
}
|
|
21821
21821
|
try {
|
|
21822
|
-
|
|
21822
|
+
_1(p, { ecmaVersion: "latest", sourceType: "module" });
|
|
21823
21823
|
} catch (x) {
|
|
21824
21824
|
const _ = (x.message || "").toLowerCase();
|
|
21825
21825
|
if (_.includes("export") || _.includes("import")) {
|
|
@@ -21849,7 +21849,7 @@ function Ri(e, t = {}) {
|
|
|
21849
21849
|
}
|
|
21850
21850
|
if (o === "tsx" || o === "jsx" || o === "ts" || o === "js") {
|
|
21851
21851
|
const x = e.split(`
|
|
21852
|
-
`).length, _ = Qd(
|
|
21852
|
+
`).length, _ = Qd(p, x);
|
|
21853
21853
|
for (const { name: y, line: N } of _)
|
|
21854
21854
|
u.some((R) => R.message.includes(`"${y}"`)) || u.push({
|
|
21855
21855
|
id: `scope-${++Qr}`,
|
|
@@ -21863,7 +21863,7 @@ function Ri(e, t = {}) {
|
|
|
21863
21863
|
});
|
|
21864
21864
|
}
|
|
21865
21865
|
return {
|
|
21866
|
-
code:
|
|
21866
|
+
code: p,
|
|
21867
21867
|
error: u.length > 0 ? u[0] : null,
|
|
21868
21868
|
errors: u,
|
|
21869
21869
|
sections: f
|
|
@@ -21887,14 +21887,14 @@ function Zd(e, t, r) {
|
|
|
21887
21887
|
};
|
|
21888
21888
|
}
|
|
21889
21889
|
function em(e, t) {
|
|
21890
|
-
var
|
|
21890
|
+
var p, m;
|
|
21891
21891
|
const r = e.message || "Transpilation failed";
|
|
21892
21892
|
let s, i;
|
|
21893
21893
|
const o = r.match(/\((\d+):(\d+)\)/);
|
|
21894
21894
|
if (o && (s = parseInt(o[1], 10), i = parseInt(o[2], 10)), !s && typeof e.pos == "number") {
|
|
21895
21895
|
const x = t.substring(0, e.pos).split(`
|
|
21896
21896
|
`);
|
|
21897
|
-
s = x.length, i = (((
|
|
21897
|
+
s = x.length, i = (((p = x[x.length - 1]) == null ? void 0 : p.length) ?? 0) + 1;
|
|
21898
21898
|
}
|
|
21899
21899
|
const c = s ? $n(t, s) : void 0, u = s ? Vn(t, s) : void 0;
|
|
21900
21900
|
let f = "";
|
|
@@ -21927,8 +21927,8 @@ function em(e, t) {
|
|
|
21927
21927
|
function tm(e) {
|
|
21928
21928
|
const t = { "(": ")", "[": "]", "{": "}" }, r = /* @__PURE__ */ new Set([")", "]", "}"]), s = [];
|
|
21929
21929
|
let i = !1, o = "", c = !1, u = !1, f = !1;
|
|
21930
|
-
for (let
|
|
21931
|
-
const m = e[
|
|
21930
|
+
for (let p = 0; p < e.length; p++) {
|
|
21931
|
+
const m = e[p], x = e[p + 1];
|
|
21932
21932
|
if (m === `
|
|
21933
21933
|
`) {
|
|
21934
21934
|
u = !1;
|
|
@@ -21936,12 +21936,12 @@ function tm(e) {
|
|
|
21936
21936
|
}
|
|
21937
21937
|
if (!u) {
|
|
21938
21938
|
if (f) {
|
|
21939
|
-
m === "*" && x === "/" && (f = !1,
|
|
21939
|
+
m === "*" && x === "/" && (f = !1, p++);
|
|
21940
21940
|
continue;
|
|
21941
21941
|
}
|
|
21942
21942
|
if (i) {
|
|
21943
21943
|
if (m === "\\") {
|
|
21944
|
-
|
|
21944
|
+
p++;
|
|
21945
21945
|
continue;
|
|
21946
21946
|
}
|
|
21947
21947
|
m === o && (i = !1);
|
|
@@ -21949,18 +21949,18 @@ function tm(e) {
|
|
|
21949
21949
|
}
|
|
21950
21950
|
if (c) {
|
|
21951
21951
|
if (m === "\\") {
|
|
21952
|
-
|
|
21952
|
+
p++;
|
|
21953
21953
|
continue;
|
|
21954
21954
|
}
|
|
21955
21955
|
m === "`" && (c = !1);
|
|
21956
21956
|
continue;
|
|
21957
21957
|
}
|
|
21958
21958
|
if (m === "/" && x === "/") {
|
|
21959
|
-
u = !0,
|
|
21959
|
+
u = !0, p++;
|
|
21960
21960
|
continue;
|
|
21961
21961
|
}
|
|
21962
21962
|
if (m === "/" && x === "*") {
|
|
21963
|
-
f = !0,
|
|
21963
|
+
f = !0, p++;
|
|
21964
21964
|
continue;
|
|
21965
21965
|
}
|
|
21966
21966
|
if (m === "'" || m === '"') {
|
|
@@ -21978,7 +21978,7 @@ function tm(e) {
|
|
|
21978
21978
|
}
|
|
21979
21979
|
function rm(e, t) {
|
|
21980
21980
|
const r = { "(": ")", "[": "]", "{": "}" }, s = { ")": "(", "]": "[", "}": "{" }, i = [];
|
|
21981
|
-
let o = !1, c = "", u = !1, f = !1,
|
|
21981
|
+
let o = !1, c = "", u = !1, f = !1, p = !1, m = 1, x = null;
|
|
21982
21982
|
for (let _ = 0; _ < e.length; _++) {
|
|
21983
21983
|
const y = e[_], N = e[_ + 1];
|
|
21984
21984
|
if (y === `
|
|
@@ -21987,8 +21987,8 @@ function rm(e, t) {
|
|
|
21987
21987
|
continue;
|
|
21988
21988
|
}
|
|
21989
21989
|
if (!f) {
|
|
21990
|
-
if (
|
|
21991
|
-
y === "*" && N === "/" && (
|
|
21990
|
+
if (p) {
|
|
21991
|
+
y === "*" && N === "/" && (p = !1, _++);
|
|
21992
21992
|
continue;
|
|
21993
21993
|
}
|
|
21994
21994
|
if (o) {
|
|
@@ -22012,7 +22012,7 @@ function rm(e, t) {
|
|
|
22012
22012
|
continue;
|
|
22013
22013
|
}
|
|
22014
22014
|
if (y === "/" && N === "*") {
|
|
22015
|
-
|
|
22015
|
+
p = !0, _++;
|
|
22016
22016
|
continue;
|
|
22017
22017
|
}
|
|
22018
22018
|
if (y === "'" || y === '"') {
|
|
@@ -22038,8 +22038,8 @@ function Mm(e) {
|
|
|
22038
22038
|
return t;
|
|
22039
22039
|
}
|
|
22040
22040
|
const sm = "https://esm.sh";
|
|
22041
|
-
function
|
|
22042
|
-
var f,
|
|
22041
|
+
function C1(e = {}) {
|
|
22042
|
+
var f, p;
|
|
22043
22043
|
const t = e.cdnBase || sm, r = "18.2.0", s = "?external=react,react-dom", i = {
|
|
22044
22044
|
// ── Core React (single instance) ────────────────────────────────
|
|
22045
22045
|
react: `${t}/react@${r}`,
|
|
@@ -22213,11 +22213,11 @@ function Cc(e = {}) {
|
|
|
22213
22213
|
imports: c,
|
|
22214
22214
|
scopes: {
|
|
22215
22215
|
[`${t}/`]: u,
|
|
22216
|
-
...((
|
|
22216
|
+
...((p = e.overrides) == null ? void 0 : p.scopes) || {}
|
|
22217
22217
|
}
|
|
22218
22218
|
};
|
|
22219
22219
|
}
|
|
22220
|
-
function
|
|
22220
|
+
function E1(e) {
|
|
22221
22221
|
return `<script type="importmap">${JSON.stringify(e, null, 2)}<\/script>`;
|
|
22222
22222
|
}
|
|
22223
22223
|
function im() {
|
|
@@ -22263,7 +22263,7 @@ function Ns(e) {
|
|
|
22263
22263
|
themeCSS: c,
|
|
22264
22264
|
componentsPreamble: u
|
|
22265
22265
|
} = e;
|
|
22266
|
-
return r === "html" ? om(t, { tailwindCdn: i, externalResources: o }) : r === "markdown" ? lm(t, { tailwindCdn: i, externalResources: o }) : r === "mermaid" ? um(t) : r === "svg" ?
|
|
22266
|
+
return r === "html" ? om(t, { tailwindCdn: i, externalResources: o }) : r === "markdown" ? lm(t, { tailwindCdn: i, externalResources: o }) : r === "mermaid" ? um(t) : r === "svg" ? hm(t) : r === "csv" ? pm(t) : r === "json" ? fm(t) : r === "architecture" ? dm(t) : r === "dot" ? mm(t) : r === "latex" ? gm(t) : xm(t, {
|
|
22267
22267
|
importMap: s,
|
|
22268
22268
|
tailwindCdn: i,
|
|
22269
22269
|
externalResources: o,
|
|
@@ -22596,7 +22596,7 @@ function um(e) {
|
|
|
22596
22596
|
</body>
|
|
22597
22597
|
</html>`;
|
|
22598
22598
|
}
|
|
22599
|
-
function
|
|
22599
|
+
function hm(e) {
|
|
22600
22600
|
return `<!DOCTYPE html>
|
|
22601
22601
|
<html lang="en">
|
|
22602
22602
|
<head>
|
|
@@ -22660,7 +22660,7 @@ function pm(e) {
|
|
|
22660
22660
|
</body>
|
|
22661
22661
|
</html>`;
|
|
22662
22662
|
}
|
|
22663
|
-
function
|
|
22663
|
+
function pm(e) {
|
|
22664
22664
|
const t = e.replace(/\\/g, "\\\\").replace(/`/g, "\\`").replace(/\$\{/g, "\\${");
|
|
22665
22665
|
return `<!DOCTYPE html>
|
|
22666
22666
|
<html lang="en">
|
|
@@ -23147,18 +23147,18 @@ function xm(e, t) {
|
|
|
23147
23147
|
const { importMap: r, tailwindCdn: s, externalResources: i = [], themeCSS: o, componentsPreamble: c } = t, u = i.map(
|
|
23148
23148
|
(x) => x.endsWith(".css") ? `<link rel="stylesheet" href="${x}">` : `<script src="${x}"><\/script>`
|
|
23149
23149
|
).join(`
|
|
23150
|
-
`), f = s ? `<script src="${s}"><\/script>` : "",
|
|
23150
|
+
`), f = s ? `<script src="${s}"><\/script>` : "", p = o ? `<style data-theme>${o}</style>` : "", m = c ? c + `
|
|
23151
23151
|
` + e : e;
|
|
23152
23152
|
return `<!DOCTYPE html>
|
|
23153
23153
|
<html lang="en">
|
|
23154
23154
|
<head>
|
|
23155
23155
|
<meta charset="UTF-8">
|
|
23156
23156
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
23157
|
-
${
|
|
23157
|
+
${E1(r)}
|
|
23158
23158
|
${f}
|
|
23159
23159
|
${u}
|
|
23160
23160
|
${Lt()}
|
|
23161
|
-
${
|
|
23161
|
+
${p}
|
|
23162
23162
|
<style>
|
|
23163
23163
|
* { box-sizing: border-box; }
|
|
23164
23164
|
body {
|
|
@@ -23324,18 +23324,18 @@ const ym = Pt(function({
|
|
|
23324
23324
|
tailwindCdn: c,
|
|
23325
23325
|
externalResources: u,
|
|
23326
23326
|
files: f,
|
|
23327
|
-
onError:
|
|
23327
|
+
onError: p,
|
|
23328
23328
|
onLoad: m,
|
|
23329
23329
|
theme: x = "dark",
|
|
23330
23330
|
showLoader: _ = !0,
|
|
23331
23331
|
loader: y
|
|
23332
23332
|
}) {
|
|
23333
|
-
const N = fe(null), [R, M] = He(!0), Y = fe(
|
|
23333
|
+
const N = fe(null), [R, M] = He(!0), Y = fe(p), T = fe(m);
|
|
23334
23334
|
Ne(() => {
|
|
23335
|
-
Y.current =
|
|
23336
|
-
}, [
|
|
23335
|
+
Y.current = p, T.current = m;
|
|
23336
|
+
}, [p, m]);
|
|
23337
23337
|
const O = Os(
|
|
23338
|
-
() =>
|
|
23338
|
+
() => C1({ cdnBase: o, dependencies: i, overrides: s }),
|
|
23339
23339
|
[o, i, s]
|
|
23340
23340
|
);
|
|
23341
23341
|
Ne(() => {
|
|
@@ -23393,7 +23393,7 @@ const ym = Pt(function({
|
|
|
23393
23393
|
L !== H.current && (M(!0), H.current = L);
|
|
23394
23394
|
}, [L]);
|
|
23395
23395
|
const G = x === "dark" ? "#09090b" : "#ffffff";
|
|
23396
|
-
return /* @__PURE__ */
|
|
23396
|
+
return /* @__PURE__ */ pe("div", { style: { ...Rs.container, backgroundColor: G }, children: [
|
|
23397
23397
|
_ && R && /* @__PURE__ */ F("div", { style: { ...Rs.overlay, backgroundColor: G }, children: y || /* @__PURE__ */ F(Ia, { size: "lg", label: "Building preview..." }) }),
|
|
23398
23398
|
/* @__PURE__ */ F(
|
|
23399
23399
|
"iframe",
|
|
@@ -23476,7 +23476,7 @@ const Rs = {
|
|
|
23476
23476
|
isStreaming: c = !1,
|
|
23477
23477
|
isFullscreen: u = !1,
|
|
23478
23478
|
onFullscreenToggle: f,
|
|
23479
|
-
onDownload:
|
|
23479
|
+
onDownload: p,
|
|
23480
23480
|
downloadOptions: m,
|
|
23481
23481
|
onClose: x,
|
|
23482
23482
|
hideSplit: _ = !1
|
|
@@ -23512,29 +23512,29 @@ const Rs = {
|
|
|
23512
23512
|
}, $ = Xe((C, j) => {
|
|
23513
23513
|
switch (C) {
|
|
23514
23514
|
case "code":
|
|
23515
|
-
return /* @__PURE__ */
|
|
23516
|
-
/* @__PURE__ */
|
|
23515
|
+
return /* @__PURE__ */ pe("span", { style: { display: "flex", alignItems: "center", gap: 3 }, children: [
|
|
23516
|
+
/* @__PURE__ */ pe("svg", { width: "11", height: "11", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
23517
23517
|
/* @__PURE__ */ F("polyline", { points: "5 4 1 8 5 12" }),
|
|
23518
23518
|
/* @__PURE__ */ F("polyline", { points: "11 4 15 8 11 12" })
|
|
23519
23519
|
] }),
|
|
23520
23520
|
"Code"
|
|
23521
23521
|
] });
|
|
23522
23522
|
case "split":
|
|
23523
|
-
return /* @__PURE__ */
|
|
23524
|
-
/* @__PURE__ */
|
|
23523
|
+
return /* @__PURE__ */ pe("span", { style: { display: "flex", alignItems: "center", gap: 3 }, children: [
|
|
23524
|
+
/* @__PURE__ */ pe("svg", { width: "11", height: "11", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", children: [
|
|
23525
23525
|
/* @__PURE__ */ F("rect", { x: "1", y: "2", width: "14", height: "12", rx: "1.5" }),
|
|
23526
23526
|
/* @__PURE__ */ F("line", { x1: "8", y1: "2", x2: "8", y2: "14" })
|
|
23527
23527
|
] }),
|
|
23528
23528
|
"Split"
|
|
23529
23529
|
] });
|
|
23530
23530
|
case "preview":
|
|
23531
|
-
return /* @__PURE__ */
|
|
23531
|
+
return /* @__PURE__ */ pe("span", { style: { display: "flex", alignItems: "center", gap: 3 }, children: [
|
|
23532
23532
|
/* @__PURE__ */ F("svg", { width: "10", height: "10", viewBox: "0 0 16 16", fill: j ? "#22c55e" : "currentColor", stroke: "none", children: /* @__PURE__ */ F("path", { d: "M4 2.5v11l9-5.5z" }) }),
|
|
23533
23533
|
"Preview"
|
|
23534
23534
|
] });
|
|
23535
23535
|
}
|
|
23536
23536
|
}, []);
|
|
23537
|
-
return /* @__PURE__ */
|
|
23537
|
+
return /* @__PURE__ */ pe("div", { style: {
|
|
23538
23538
|
display: "flex",
|
|
23539
23539
|
alignItems: "center",
|
|
23540
23540
|
justifyContent: "space-between",
|
|
@@ -23583,7 +23583,7 @@ const Rs = {
|
|
|
23583
23583
|
);
|
|
23584
23584
|
}) }),
|
|
23585
23585
|
/* @__PURE__ */ F("div", {}),
|
|
23586
|
-
/* @__PURE__ */
|
|
23586
|
+
/* @__PURE__ */ pe("div", { style: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
23587
23587
|
/* @__PURE__ */ F(
|
|
23588
23588
|
"button",
|
|
23589
23589
|
{
|
|
@@ -23592,24 +23592,24 @@ const Rs = {
|
|
|
23592
23592
|
style: L,
|
|
23593
23593
|
onMouseEnter: (C) => H(C, !0),
|
|
23594
23594
|
onMouseLeave: (C) => H(C, !1),
|
|
23595
|
-
children: /* @__PURE__ */
|
|
23595
|
+
children: /* @__PURE__ */ pe("svg", { width: "13", height: "13", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", children: [
|
|
23596
23596
|
/* @__PURE__ */ F("path", { d: "M2 8a6 6 0 0 1 10.3-4.2M14 2v4h-4" }),
|
|
23597
23597
|
/* @__PURE__ */ F("path", { d: "M14 8a6 6 0 0 1-10.3 4.2M2 14v-4h4" })
|
|
23598
23598
|
] })
|
|
23599
23599
|
}
|
|
23600
23600
|
),
|
|
23601
|
-
(
|
|
23601
|
+
(p || m && m.length > 0) && /* @__PURE__ */ pe("div", { style: { position: "relative" }, children: [
|
|
23602
23602
|
/* @__PURE__ */ F(
|
|
23603
23603
|
"button",
|
|
23604
23604
|
{
|
|
23605
23605
|
onClick: () => {
|
|
23606
|
-
m && m.length > 0 ? T(!Y) :
|
|
23606
|
+
m && m.length > 0 ? T(!Y) : p == null || p();
|
|
23607
23607
|
},
|
|
23608
23608
|
title: "Download",
|
|
23609
23609
|
style: L,
|
|
23610
23610
|
onMouseEnter: (C) => H(C, !0),
|
|
23611
23611
|
onMouseLeave: (C) => H(C, !1),
|
|
23612
|
-
children: /* @__PURE__ */
|
|
23612
|
+
children: /* @__PURE__ */ pe("svg", { width: "13", height: "13", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
23613
23613
|
/* @__PURE__ */ F("path", { d: "M8 2v8m0 0l-3-3m3 3l3-3" }),
|
|
23614
23614
|
/* @__PURE__ */ F("path", { d: "M2 12v1.5a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V12" })
|
|
23615
23615
|
] })
|
|
@@ -23664,12 +23664,12 @@ const Rs = {
|
|
|
23664
23664
|
style: L,
|
|
23665
23665
|
onMouseEnter: (C) => H(C, !0),
|
|
23666
23666
|
onMouseLeave: (C) => H(C, !1),
|
|
23667
|
-
children: u ? /* @__PURE__ */
|
|
23667
|
+
children: u ? /* @__PURE__ */ pe("svg", { width: "13", height: "13", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
23668
23668
|
/* @__PURE__ */ F("polyline", { points: "4 14 4 10 0 10" }),
|
|
23669
23669
|
/* @__PURE__ */ F("polyline", { points: "12 2 12 6 16 6" }),
|
|
23670
23670
|
/* @__PURE__ */ F("line", { x1: "0", y1: "16", x2: "4", y2: "10" }),
|
|
23671
23671
|
/* @__PURE__ */ F("line", { x1: "16", y1: "0", x2: "12", y2: "6" })
|
|
23672
|
-
] }) : /* @__PURE__ */
|
|
23672
|
+
] }) : /* @__PURE__ */ pe("svg", { width: "13", height: "13", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
23673
23673
|
/* @__PURE__ */ F("polyline", { points: "10 2 14 2 14 6" }),
|
|
23674
23674
|
/* @__PURE__ */ F("polyline", { points: "6 14 2 14 2 10" }),
|
|
23675
23675
|
/* @__PURE__ */ F("line", { x1: "14", y1: "2", x2: "10", y2: "6" }),
|
|
@@ -23677,7 +23677,7 @@ const Rs = {
|
|
|
23677
23677
|
] })
|
|
23678
23678
|
}
|
|
23679
23679
|
),
|
|
23680
|
-
x && /* @__PURE__ */
|
|
23680
|
+
x && /* @__PURE__ */ pe(Ds, { children: [
|
|
23681
23681
|
/* @__PURE__ */ F("div", { style: {
|
|
23682
23682
|
width: 1,
|
|
23683
23683
|
height: 14,
|
|
@@ -23692,7 +23692,7 @@ const Rs = {
|
|
|
23692
23692
|
style: L,
|
|
23693
23693
|
onMouseEnter: (C) => G(C, !0),
|
|
23694
23694
|
onMouseLeave: (C) => G(C, !1),
|
|
23695
|
-
children: /* @__PURE__ */
|
|
23695
|
+
children: /* @__PURE__ */ pe("svg", { width: "13", height: "13", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", children: [
|
|
23696
23696
|
/* @__PURE__ */ F("line", { x1: "4", y1: "4", x2: "12", y2: "12" }),
|
|
23697
23697
|
/* @__PURE__ */ F("line", { x1: "12", y1: "4", x2: "4", y2: "12" })
|
|
23698
23698
|
] })
|
|
@@ -23711,7 +23711,7 @@ const Rs = {
|
|
|
23711
23711
|
footerSlot: u,
|
|
23712
23712
|
view: f
|
|
23713
23713
|
}) {
|
|
23714
|
-
const
|
|
23714
|
+
const p = o === "dark", m = t.filter((C) => C.severity === "error").length, x = t.filter((C) => C.severity === "warning").length, _ = f === "preview" || f === "split", [y, N] = He(!1), [R, M] = He(!1), Y = fe(), T = fe(null);
|
|
23715
23715
|
Ne(() => () => {
|
|
23716
23716
|
clearTimeout(Y.current);
|
|
23717
23717
|
}, []), Ne(() => {
|
|
@@ -23721,27 +23721,27 @@ const Rs = {
|
|
|
23721
23721
|
};
|
|
23722
23722
|
return document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
|
|
23723
23723
|
}, [R]);
|
|
23724
|
-
let O = "Ready", L =
|
|
23724
|
+
let O = "Ready", L = p ? "#71717a" : "#a1a1aa";
|
|
23725
23725
|
s ? (O = "⟳ Streaming...", L = "#818cf8") : m > 0 ? (O = `✕ ${m} error${m > 1 ? "s" : ""}`, L = "#ef4444") : r && _ && (O = "◌ Building...", L = "#f59e0b");
|
|
23726
23726
|
const H = Xe(() => {
|
|
23727
23727
|
const C = new CustomEvent("codeviz:copy-request");
|
|
23728
23728
|
window.dispatchEvent(C), N(!0), clearTimeout(Y.current), Y.current = setTimeout(() => N(!1), In.COPY_CONFIRMATION_MS);
|
|
23729
|
-
}, []), G =
|
|
23730
|
-
return /* @__PURE__ */
|
|
23729
|
+
}, []), G = p ? "#52525b" : "#a1a1aa", $ = p ? "#a1a1aa" : "#71717a";
|
|
23730
|
+
return /* @__PURE__ */ pe("div", { style: {
|
|
23731
23731
|
display: "flex",
|
|
23732
23732
|
alignItems: "center",
|
|
23733
23733
|
justifyContent: "space-between",
|
|
23734
23734
|
height: 24,
|
|
23735
23735
|
padding: "0 8px",
|
|
23736
|
-
backgroundColor:
|
|
23737
|
-
borderTop: `1px solid ${
|
|
23736
|
+
backgroundColor: p ? "#18181b" : "#f4f4f5",
|
|
23737
|
+
borderTop: `1px solid ${p ? "#27272a" : "#e4e4e7"}`,
|
|
23738
23738
|
fontSize: 11,
|
|
23739
23739
|
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace',
|
|
23740
23740
|
flexShrink: 0,
|
|
23741
23741
|
userSelect: "none",
|
|
23742
23742
|
position: "relative"
|
|
23743
23743
|
}, children: [
|
|
23744
|
-
/* @__PURE__ */
|
|
23744
|
+
/* @__PURE__ */ pe(
|
|
23745
23745
|
"div",
|
|
23746
23746
|
{
|
|
23747
23747
|
ref: T,
|
|
@@ -23760,7 +23760,7 @@ const Rs = {
|
|
|
23760
23760
|
children: O
|
|
23761
23761
|
}
|
|
23762
23762
|
),
|
|
23763
|
-
x > 0 && /* @__PURE__ */
|
|
23763
|
+
x > 0 && /* @__PURE__ */ pe("span", { style: { color: "#f59e0b" }, children: [
|
|
23764
23764
|
"⚠ ",
|
|
23765
23765
|
x
|
|
23766
23766
|
] }),
|
|
@@ -23772,18 +23772,18 @@ const Rs = {
|
|
|
23772
23772
|
width: 320,
|
|
23773
23773
|
maxHeight: 180,
|
|
23774
23774
|
overflowY: "auto",
|
|
23775
|
-
backgroundColor:
|
|
23776
|
-
border: `1px solid ${
|
|
23775
|
+
backgroundColor: p ? "#1e1e2e" : "#ffffff",
|
|
23776
|
+
border: `1px solid ${p ? "#3f3f50" : "#d4d4d8"}`,
|
|
23777
23777
|
borderRadius: 4,
|
|
23778
|
-
boxShadow:
|
|
23778
|
+
boxShadow: p ? "0 2px 8px rgba(0,0,0,0.4)" : "0 2px 8px rgba(0,0,0,0.1)",
|
|
23779
23779
|
zIndex: 50,
|
|
23780
23780
|
padding: 0
|
|
23781
|
-
}, children: t.map((C, j) => /* @__PURE__ */
|
|
23781
|
+
}, children: t.map((C, j) => /* @__PURE__ */ pe(
|
|
23782
23782
|
"div",
|
|
23783
23783
|
{
|
|
23784
23784
|
style: {
|
|
23785
23785
|
padding: "3px 8px",
|
|
23786
|
-
borderBottom: j < t.length - 1 ? `1px solid ${
|
|
23786
|
+
borderBottom: j < t.length - 1 ? `1px solid ${p ? "#27272a" : "#f4f4f5"}` : "none",
|
|
23787
23787
|
fontSize: 10,
|
|
23788
23788
|
lineHeight: 1.4,
|
|
23789
23789
|
display: "flex",
|
|
@@ -23798,12 +23798,12 @@ const Rs = {
|
|
|
23798
23798
|
textTransform: "uppercase",
|
|
23799
23799
|
flexShrink: 0
|
|
23800
23800
|
}, children: C.category }),
|
|
23801
|
-
C.line && /* @__PURE__ */
|
|
23801
|
+
C.line && /* @__PURE__ */ pe("span", { style: { color: p ? "#71717a" : "#a1a1aa", fontSize: 9, flexShrink: 0 }, children: [
|
|
23802
23802
|
"L",
|
|
23803
23803
|
C.line
|
|
23804
23804
|
] }),
|
|
23805
23805
|
/* @__PURE__ */ F("span", { style: {
|
|
23806
|
-
color:
|
|
23806
|
+
color: p ? "#d4d4d8" : "#3f3f46",
|
|
23807
23807
|
overflow: "hidden",
|
|
23808
23808
|
textOverflow: "ellipsis",
|
|
23809
23809
|
whiteSpace: "nowrap",
|
|
@@ -23817,7 +23817,7 @@ const Rs = {
|
|
|
23817
23817
|
]
|
|
23818
23818
|
}
|
|
23819
23819
|
),
|
|
23820
|
-
c && /* @__PURE__ */
|
|
23820
|
+
c && /* @__PURE__ */ pe("div", { style: {
|
|
23821
23821
|
flex: 1,
|
|
23822
23822
|
display: "flex",
|
|
23823
23823
|
alignItems: "center",
|
|
@@ -23826,7 +23826,7 @@ const Rs = {
|
|
|
23826
23826
|
overflow: "hidden",
|
|
23827
23827
|
whiteSpace: "nowrap",
|
|
23828
23828
|
textOverflow: "ellipsis",
|
|
23829
|
-
color:
|
|
23829
|
+
color: p ? "#71717a" : "#a1a1aa",
|
|
23830
23830
|
padding: "0 8px"
|
|
23831
23831
|
}, children: [
|
|
23832
23832
|
s && /* @__PURE__ */ F("div", { style: {
|
|
@@ -23839,7 +23839,7 @@ const Rs = {
|
|
|
23839
23839
|
} }),
|
|
23840
23840
|
c
|
|
23841
23841
|
] }),
|
|
23842
|
-
/* @__PURE__ */
|
|
23842
|
+
/* @__PURE__ */ pe("div", { style: { display: "flex", alignItems: "center", gap: 8, flex: "0 0 auto" }, children: [
|
|
23843
23843
|
/* @__PURE__ */ F(
|
|
23844
23844
|
"button",
|
|
23845
23845
|
{
|
|
@@ -23864,11 +23864,11 @@ const Rs = {
|
|
|
23864
23864
|
onMouseLeave: (C) => {
|
|
23865
23865
|
y || (C.currentTarget.style.color = G);
|
|
23866
23866
|
},
|
|
23867
|
-
children: y ? /* @__PURE__ */
|
|
23867
|
+
children: y ? /* @__PURE__ */ pe(Ds, { children: [
|
|
23868
23868
|
/* @__PURE__ */ F("svg", { width: "11", height: "11", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ F("polyline", { points: "3 8 7 12 13 4" }) }),
|
|
23869
23869
|
"Copied"
|
|
23870
|
-
] }) : /* @__PURE__ */
|
|
23871
|
-
/* @__PURE__ */
|
|
23870
|
+
] }) : /* @__PURE__ */ pe(Ds, { children: [
|
|
23871
|
+
/* @__PURE__ */ pe("svg", { width: "11", height: "11", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
23872
23872
|
/* @__PURE__ */ F("rect", { x: "5", y: "5", width: "9", height: "9", rx: "1.5" }),
|
|
23873
23873
|
/* @__PURE__ */ F("path", { d: "M3 11V3a1.5 1.5 0 011.5-1.5H11" })
|
|
23874
23874
|
] }),
|
|
@@ -23882,7 +23882,7 @@ const Rs = {
|
|
|
23882
23882
|
] });
|
|
23883
23883
|
}), Im = Pt(function({ errors: t, theme: r }) {
|
|
23884
23884
|
const s = r === "dark", i = t.filter((c) => c.severity === "error").length, o = t.filter((c) => c.severity === "warning").length;
|
|
23885
|
-
return /* @__PURE__ */
|
|
23885
|
+
return /* @__PURE__ */ pe("div", { style: {
|
|
23886
23886
|
width: "100%",
|
|
23887
23887
|
height: "100%",
|
|
23888
23888
|
overflow: "auto",
|
|
@@ -23890,7 +23890,7 @@ const Rs = {
|
|
|
23890
23890
|
padding: "24px 20px",
|
|
23891
23891
|
fontFamily: '"SF Mono", Menlo, Consolas, monospace'
|
|
23892
23892
|
}, children: [
|
|
23893
|
-
/* @__PURE__ */
|
|
23893
|
+
/* @__PURE__ */ pe("div", { style: {
|
|
23894
23894
|
display: "flex",
|
|
23895
23895
|
alignItems: "center",
|
|
23896
23896
|
gap: 8,
|
|
@@ -23898,23 +23898,23 @@ const Rs = {
|
|
|
23898
23898
|
paddingBottom: 12,
|
|
23899
23899
|
borderBottom: `1px solid ${s ? "#27272a" : "#e4e4e7"}`
|
|
23900
23900
|
}, children: [
|
|
23901
|
-
/* @__PURE__ */
|
|
23901
|
+
/* @__PURE__ */ pe("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: [
|
|
23902
23902
|
/* @__PURE__ */ F("circle", { cx: "8", cy: "8", r: "7", stroke: "#ef4444", strokeWidth: "1.5" }),
|
|
23903
23903
|
/* @__PURE__ */ F("line", { x1: "8", y1: "4.5", x2: "8", y2: "8.5", stroke: "#ef4444", strokeWidth: "1.5", strokeLinecap: "round" }),
|
|
23904
23904
|
/* @__PURE__ */ F("circle", { cx: "8", cy: "11", r: "0.75", fill: "#ef4444" })
|
|
23905
23905
|
] }),
|
|
23906
|
-
/* @__PURE__ */
|
|
23906
|
+
/* @__PURE__ */ pe("span", { style: { color: "#ef4444", fontWeight: 600, fontSize: 13 }, children: [
|
|
23907
23907
|
i,
|
|
23908
23908
|
" error",
|
|
23909
23909
|
i !== 1 ? "s" : ""
|
|
23910
23910
|
] }),
|
|
23911
|
-
o > 0 && /* @__PURE__ */
|
|
23911
|
+
o > 0 && /* @__PURE__ */ pe("span", { style: { color: "#f59e0b", fontSize: 12 }, children: [
|
|
23912
23912
|
o,
|
|
23913
23913
|
" warning",
|
|
23914
23914
|
o !== 1 ? "s" : ""
|
|
23915
23915
|
] })
|
|
23916
23916
|
] }),
|
|
23917
|
-
t.map((c) => /* @__PURE__ */
|
|
23917
|
+
t.map((c) => /* @__PURE__ */ pe(
|
|
23918
23918
|
"div",
|
|
23919
23919
|
{
|
|
23920
23920
|
style: {
|
|
@@ -23925,7 +23925,7 @@ const Rs = {
|
|
|
23925
23925
|
border: `1px solid ${s ? c.severity === "error" ? "rgba(239,68,68,0.2)" : "rgba(245,158,11,0.2)" : c.severity === "error" ? "rgba(239,68,68,0.15)" : "rgba(245,158,11,0.15)"}`
|
|
23926
23926
|
},
|
|
23927
23927
|
children: [
|
|
23928
|
-
/* @__PURE__ */
|
|
23928
|
+
/* @__PURE__ */ pe("div", { style: { display: "flex", alignItems: "center", gap: 6, marginBottom: 3 }, children: [
|
|
23929
23929
|
/* @__PURE__ */ F("span", { style: {
|
|
23930
23930
|
color: c.severity === "error" ? "#ef4444" : "#f59e0b",
|
|
23931
23931
|
fontWeight: 600,
|
|
@@ -23933,7 +23933,7 @@ const Rs = {
|
|
|
23933
23933
|
textTransform: "uppercase",
|
|
23934
23934
|
letterSpacing: 0.5
|
|
23935
23935
|
}, children: c.category }),
|
|
23936
|
-
c.line && /* @__PURE__ */
|
|
23936
|
+
c.line && /* @__PURE__ */ pe("span", { style: {
|
|
23937
23937
|
color: s ? "#71717a" : "#a1a1aa",
|
|
23938
23938
|
fontSize: 10
|
|
23939
23939
|
}, children: [
|
|
@@ -23998,10 +23998,10 @@ function zm(e, t) {
|
|
|
23998
23998
|
const r = e.toLowerCase(), s = Object.keys(tt);
|
|
23999
23999
|
let o = t ?? s[0] ?? "", c = 0;
|
|
24000
24000
|
for (const [u, f] of Object.entries(tt)) {
|
|
24001
|
-
let
|
|
24001
|
+
let p = 0;
|
|
24002
24002
|
for (const m of f.keywords)
|
|
24003
|
-
r.includes(m) && (
|
|
24004
|
-
|
|
24003
|
+
r.includes(m) && (p += m.length);
|
|
24004
|
+
p > c && (c = p, o = u);
|
|
24005
24005
|
}
|
|
24006
24006
|
return o;
|
|
24007
24007
|
}
|
|
@@ -24078,14 +24078,14 @@ function Am(e, t, r) {
|
|
|
24078
24078
|
});
|
|
24079
24079
|
if (s.error)
|
|
24080
24080
|
return { filename: `component.${r === "jsx" || r === "js" ? "jsx" : "tsx"}`, content: e, mime: "text/plain" };
|
|
24081
|
-
const i =
|
|
24081
|
+
const i = C1({}), o = s.code.replace(/\\/g, "\\\\").replace(/`/g, "\\`").replace(/\$\{/g, "\\${");
|
|
24082
24082
|
return { filename: "preview.html", content: `<!DOCTYPE html>
|
|
24083
24083
|
<html lang="en">
|
|
24084
24084
|
<head>
|
|
24085
24085
|
<meta charset="UTF-8">
|
|
24086
24086
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
24087
24087
|
<title>CodeViz Export</title>
|
|
24088
|
-
${
|
|
24088
|
+
${E1(i)}
|
|
24089
24089
|
<script src="https://cdn.tailwindcss.com/3.4.16?plugins=forms,typography"><\/script>
|
|
24090
24090
|
<style>
|
|
24091
24091
|
* { box-sizing: border-box; }
|
|
@@ -24123,7 +24123,7 @@ const Pm = `export default function App() {
|
|
|
24123
24123
|
</div>
|
|
24124
24124
|
);
|
|
24125
24125
|
}`, Hm = Pt(
|
|
24126
|
-
|
|
24126
|
+
z1(function({
|
|
24127
24127
|
code: t,
|
|
24128
24128
|
language: r = "tsx",
|
|
24129
24129
|
template: s = "react-ts",
|
|
@@ -24132,7 +24132,7 @@ const Pm = `export default function App() {
|
|
|
24132
24132
|
dependencies: c,
|
|
24133
24133
|
cdnBase: u,
|
|
24134
24134
|
externalResources: f,
|
|
24135
|
-
tailwindCdn:
|
|
24135
|
+
tailwindCdn: p,
|
|
24136
24136
|
onChange: m,
|
|
24137
24137
|
onError: x,
|
|
24138
24138
|
onLoad: _,
|
|
@@ -24245,7 +24245,7 @@ const Pm = `export default function App() {
|
|
|
24245
24245
|
const K = Re.current ?? !1;
|
|
24246
24246
|
!ae && !K && ee && S === "code" && !Ee.current && I("preview"), _ == null || _();
|
|
24247
24247
|
}, [_, ae, ee, S]);
|
|
24248
|
-
|
|
24248
|
+
H1(oe, () => ({
|
|
24249
24249
|
getCode: () => Be.current,
|
|
24250
24250
|
setCode: (K) => {
|
|
24251
24251
|
nt.current = !0, $t(le), be(K), dt(K), Be.current = K, Rt.current = K, b([]), queueMicrotask(() => {
|
|
@@ -24312,7 +24312,7 @@ const Pm = `export default function App() {
|
|
|
24312
24312
|
width: 1,
|
|
24313
24313
|
backgroundColor: Zt ? "#27272a" : "#e4e4e7"
|
|
24314
24314
|
}, qr = $e === "react-ts" ? "react-ts" : $e;
|
|
24315
|
-
return /* @__PURE__ */
|
|
24315
|
+
return /* @__PURE__ */ pe("div", { ref: je, className: O, style: Br, children: [
|
|
24316
24316
|
U && /* @__PURE__ */ F(
|
|
24317
24317
|
_m,
|
|
24318
24318
|
{
|
|
@@ -24332,7 +24332,7 @@ const Pm = `export default function App() {
|
|
|
24332
24332
|
hideSplit: Ue
|
|
24333
24333
|
}
|
|
24334
24334
|
),
|
|
24335
|
-
/* @__PURE__ */
|
|
24335
|
+
/* @__PURE__ */ pe("div", { style: Vr, children: [
|
|
24336
24336
|
yr && /* @__PURE__ */ F("div", { style: er, children: /* @__PURE__ */ F(
|
|
24337
24337
|
rl,
|
|
24338
24338
|
{
|
|
@@ -24364,7 +24364,7 @@ const Pm = `export default function App() {
|
|
|
24364
24364
|
importMap: o,
|
|
24365
24365
|
dependencies: c,
|
|
24366
24366
|
cdnBase: u,
|
|
24367
|
-
tailwindCdn:
|
|
24367
|
+
tailwindCdn: p,
|
|
24368
24368
|
externalResources: f,
|
|
24369
24369
|
files: void 0,
|
|
24370
24370
|
onError: Mr,
|
|
@@ -24936,13 +24936,63 @@ function StepWizard({ steps = [], onComplete }) {
|
|
|
24936
24936
|
);
|
|
24937
24937
|
}
|
|
24938
24938
|
|
|
24939
|
+
/**
|
|
24940
|
+
* Logo — Ranger/Illuma brand logo SVG.
|
|
24941
|
+
* Adapts to dark/light theme via the dark prop.
|
|
24942
|
+
* Templates use this as a one-liner: <Logo dark={dark} />
|
|
24943
|
+
*
|
|
24944
|
+
* @param dark - Whether to render in dark mode (white text) or light mode (navy text)
|
|
24945
|
+
*/
|
|
24946
|
+
function Logo({ dark }) {
|
|
24947
|
+
const f = dark ? '#fff' : '#003';
|
|
24948
|
+
return (
|
|
24949
|
+
<svg xmlns="http://www.w3.org/2000/svg" width={140} height={43} viewBox="0 0 643.9 200" className="flex-shrink-0">
|
|
24950
|
+
<polygon fill={f} points="101.7,92.4 75.8,92.4 67.8,67.8 59.8,92.4 33.9,92.4 54.8,107.7 46.8,132.3 67.8,117.1 88.8,132.3 80.8,107.7"/>
|
|
24951
|
+
<circle cx="67.5" cy="100.3" r="51.5" fill="none" stroke="#C00" strokeWidth="4.4"/>
|
|
24952
|
+
<path fill={f} d="M190.4,70.2h-53.1l-.5,19l1.5,.1c5.6-11.6,11-17,17.1-17h3.2v51.3c0,3.6-2.9,5.2-10,5.5v1.5h30.8V129c-7.1-.2-10-1.8-10-5.5V72.3h3.2c6,0,11.5,5.4,17.2,17l1.5-.1L190.4,70.2z"/>
|
|
24953
|
+
<path fill={f} d="M222.8,120c-3.5,4.6-6.6,7.2-12,7.2c-8.3,0-13.3-6.3-13.3-16.9v-1.9h26.4c.4-5.4-1.1-10.3-4.2-13.6c-3-3.2-7.4-4.9-12.7-4.9c-11,0-19.6,9.3-19.6,21.2c0,11.9,8.1,20.2,19.6,20.2c7.4,0,12.8-3.2,17.1-10.1L222.8,120z M197.5,106.6c.6-9.5,3.7-14.7,8.7-14.7c2.2,0,4,.7,5.2,2.1c2.1,2.3,2.9,6.5,2.3,12.7H197.5z"/>
|
|
24954
|
+
<path fill={f} d="M268.5,129.1c-3.6-.7-4.9-1.7-8.7-7l-10.1-14l6.6-8.2c4.5-5.5,6.9-7.2,11.7-8v-1.4h-17v1.4c2.3,.4,3.6,1.2,4.1,2.3c.5,1.4-.2,3.3-2.3,6l-4.7,6.1l-6.2-9.1c-1.2-1.8-1.8-3-1.5-3.8c.3-.7,1.5-1.2,3.8-1.5v-1.4h-20.9v1.4c4,.6,5.3,1.6,9.1,6.9l9.5,13.1l-7.7,9.4c-4.3,5.2-6.8,7-11,7.8v1.4h17.2v-1.4c-2.8-.4-4.4-1.2-4.9-2.4c-.5-1.3,.2-3.1,2.2-5.7l5.8-7.3l6.8,10c1.2,1.8,1.9,3,1.5,3.9c-.3,.8-1.7,1.3-4.3,1.6v1.4h20.9v-1.4z"/>
|
|
24955
|
+
<path fill={f} d="M309.5,126.7c-2.3,1-3.9,1.1-4.9,.4c-.9-.6-1.4-2-1.4-4.2v-20c0-8.6-4.9-12.8-15.1-12.8c-9.7,0-16.2,3.6-16.2,9c0,3.1,2.2,5.3,5.2,5.3c3.3,0,5.4-2,5.4-5.3c0-1.6-.8-3.2-2.2-4.6c1.5-1.4,4.1-2.3,6.8-2.3c4.7,0,6.8,2.8,6.8,9.3v6.1c-.7,.3-2.2,.5-4.1,.9c-4,.7-10,1.7-14.2,4.1c-3.3,1.8-5.3,5.1-5.3,8.9c0,2.6,1,5,2.7,6.7c2,2,4.9,3,8.5,3c4.6,0,8.8-2.2,12.7-6.8h.1c.6,4.8,2.6,6.6,7.3,6.6c3.1,0,5.3-1,8.4-3l.1-.1l-.5-1.2z M293.9,109.5V122c-2.1,2.9-4.9,4.7-7.4,4.7c-4,0-6.2-2.4-6.2-6.8C280.4,114.5,282.3,111.8,293.9,109.5z"/>
|
|
24956
|
+
<path fill={f} d="M329.6,105.4c-7.2-1.9-9.9-3.8-9.9-7.1c0-3.7,2.8-6.4,6.8-6.4c5.2,0,7.7,3.2,12.5,11.1h1.5V89.8h-1.2l-2.1,2.6c-2.8-1.6-6.4-2.6-9.7-2.6c-8.8,0-14.7,5.2-14.7,12.8c0,6.9,4.4,9.5,12.6,11.8c8.2,2.3,10.8,4.3,10.8,8.3c0,3.2-2.5,6.4-7.2,6.4c-5.9,0-9.1-2.7-14.8-12.5h-1.5v14.7h1.2l2.8-3c2.7,1.7,8.2,3,11.3,3c10.2,0,14.7-6.7,14.7-13.4C342.7,110.5,337.7,107.6,329.6,105.4z"/>
|
|
24957
|
+
<path fill={f} d="M418.6,114c-4.2,9.2-11.5,14.3-20.4,14.3c-15.5,0-20.9-15.1-20.9-28c0-14.3,4.9-29.5,18.7-29.5c8.6,0,15,5.9,19.9,18.6h1.5V68.3h-1.1l-3.7,4c-4.6-2.3-9.8-3.5-15.4-3.5c-18,0-31.6,14-31.6,32.5c0,9.1,2.8,16.9,8.1,22.3c5.3,5.5,12.7,8.4,21.4,8.4c15.5,0,22.5-10.7,25.3-17l-1.8-1z"/>
|
|
24958
|
+
<path fill={f} d="M464.7,127.8l-.5-1.2c-2.3,1-3.9,1.1-4.9,.4c-.9-.6-1.4-2-1.4-4.2v-20c0-8.6-4.9-12.8-15.1-12.8c-9.7,0-16.2,3.6-16.2,9c0,3.1,2.2,5.3,5.2,5.3c3.3,0,5.4-2,5.4-5.3c0-1.6-.8-3.2-2.2-4.6c1.5-1.4,4.1-2.3,6.8-2.3c4.7,0,6.8,2.8,6.8,9.3v6.1c-.7,.3-2.2,.5-4.1,.9c-4,.7-10,1.7-14.2,4.1c-3.3,1.8-5.3,5.1-5.3,8.9c0,2.6,1,5,2.7,6.7c2,2,4.9,3,8.5,3c4.6,0,8.8-2.2,12.7-6.8h.1c.6,4.8,2.6,6.6,7.3,6.6c3.1,0,5.3-1,8.4-3z M448.4,109.5V122c-2.1,2.9-4.9,4.7-7.4,4.7c-4,0-6.2-2.4-6.2-6.8C434.9,114.5,436.8,111.8,448.4,109.5z"/>
|
|
24959
|
+
<path fill={f} d="M490.7,89.8c-4.6,0-8.8,1.9-12.9,5.9v-5.4L462.5,91v1.4c4.9,.1,5.9,1.7,5.9,4.1v46c0,2.5-.9,3-5.9,3.1v1.4h23.7v-1.4c-6.6-.1-8-.6-8-3.1v-13.6c3.3,1.7,6.2,2.4,10.1,2.4c10.8,0,18.4-8.7,18.4-21.3C506.6,97.7,500.4,89.8,490.7,89.8z M478,97.9c2.8-2.9,5.4-4.2,8.4-4.2c6.1,0,10,6.6,10,16.7c0,12.4-3.3,18.7-9.8,18.7c-4.2,0-7-2.1-8.7-6.4V97.9z"/>
|
|
24960
|
+
<path fill={f} d="M520.2,83.4c3.5,0,5.9-2.4,5.9-6c0-3.6-2.3-5.9-5.9-5.9c-3.5,0-5.8,2.5-5.8,6.1C514.4,81.1,516.7,83.4,520.2,83.4z"/>
|
|
24961
|
+
<path fill={f} d="M525.4,126V90.3L509.7,91v1.4c5.3,.1,6.1,2,6.1,4.1V126c0,2.4-1.1,3-6.1,3.1v1.4h22v-1.4C526.1,129,525.4,128.4,525.4,126z"/>
|
|
24962
|
+
<path fill={f} d="M560.5,121.8c-2.1,3.8-4.4,5.7-7,5.7c-3.4,0-4.8-1.9-4.8-6.9V93.9h12.2v-3.1h-12.2V76.4l-9.4,3.4v10.9l-8,1.9V94h8v25.7c0,7.8,3.4,11.6,10.5,11.6c5.3,0,9.2-2.8,12.1-8.7l-1.4-.9z"/>
|
|
24963
|
+
<path fill={f} d="M603.2,126.7c-2.3,1-3.9,1.1-4.9,.4c-.9-.6-1.4-2-1.4-4.2v-20c0-8.6-4.9-12.8-15.1-12.8c-9.7,0-16.2,3.6-16.2,9c0,3.1,2.2,5.3,5.2,5.3c3.3,0,5.4-2,5.4-5.3c0-1.6-.8-3.2-2.2-4.6c1.5-1.4,4.1-2.3,6.8-2.3c4.7,0,6.8,2.8,6.8,9.3v6.1c-.7,.3-2.2,.5-4.1,.9c-4,.7-10,1.7-14.2,4.1c-3.3,1.8-5.3,5.1-5.3,8.9c0,2.6,1,5,2.7,6.7c2,2,4.9,3,8.5,3c4.6,0,8.8-2.2,12.7-6.8h.1c.6,4.8,2.6,6.6,7.3,6.6c3.1,0,5.3-1,8.4-3l-.5-1.2z M587.6,109.5V122c-2.1,2.9-4.9,4.7-7.4,4.7c-4,0-6.2-2.4-6.2-6.8C574.1,114.5,576,111.8,587.6,109.5z"/>
|
|
24964
|
+
<path fill={f} d="M620.9,126V68.5L604.8,69v1.4c6,.2,6.7,1.5,6.7,4.2V126c0,2.3-.8,3-6,3.1v1.4H627v-1.4C621.7,129,620.9,128.3,620.9,126z"/>
|
|
24965
|
+
</svg>
|
|
24966
|
+
);
|
|
24967
|
+
}
|
|
24968
|
+
|
|
24969
|
+
/**
|
|
24970
|
+
* Avatar — User avatar circle with initials.
|
|
24971
|
+
* Default initials "RA" for Ranger. Adapts to dark/light theme.
|
|
24972
|
+
*
|
|
24973
|
+
* @param initials - Two-letter initials to display (default: "RA")
|
|
24974
|
+
* @param dark - Whether to render in dark mode
|
|
24975
|
+
*/
|
|
24976
|
+
function Avatar({ initials = 'RA', dark }) {
|
|
24977
|
+
return (
|
|
24978
|
+
<div className={cn(
|
|
24979
|
+
'flex items-center justify-center w-7 h-7 rounded-full text-xs font-semibold flex-shrink-0',
|
|
24980
|
+
dark ? 'bg-[#00C1D5]/20 text-[#00C1D5]' : 'bg-[#000033]/10 text-[#000033]'
|
|
24981
|
+
)}>
|
|
24982
|
+
{initials}
|
|
24983
|
+
</div>
|
|
24984
|
+
);
|
|
24985
|
+
}
|
|
24986
|
+
|
|
24939
24987
|
// ── End built-in components ─────────────────────────────────────────────────
|
|
24940
24988
|
`, Km = [
|
|
24941
24989
|
"DataTable",
|
|
24942
24990
|
"MetricCard",
|
|
24943
24991
|
"StatusBadge",
|
|
24944
24992
|
"DetailCard",
|
|
24945
|
-
"StepWizard"
|
|
24993
|
+
"StepWizard",
|
|
24994
|
+
"Logo",
|
|
24995
|
+
"Avatar"
|
|
24946
24996
|
];
|
|
24947
24997
|
export {
|
|
24948
24998
|
Xm as BANKING_THEME_CSS,
|
|
@@ -24960,7 +25010,7 @@ export {
|
|
|
24960
25010
|
In as TIMINGS,
|
|
24961
25011
|
_m as Toolbar,
|
|
24962
25012
|
Am as buildDownload,
|
|
24963
|
-
|
|
25013
|
+
C1 as buildImportMap,
|
|
24964
25014
|
Ns as buildPreviewHtml,
|
|
24965
25015
|
Vm as clearTemplates,
|
|
24966
25016
|
Gm as getAgentSystemPrompt,
|
|
@@ -24971,7 +25021,7 @@ export {
|
|
|
24971
25021
|
Cm as getTemplateSummary,
|
|
24972
25022
|
Um as getTemplates,
|
|
24973
25023
|
Em as hasPreviewSupport,
|
|
24974
|
-
|
|
25024
|
+
E1 as importMapToScript,
|
|
24975
25025
|
Tm as inferTemplate,
|
|
24976
25026
|
zm as pickTemplate,
|
|
24977
25027
|
Fm as registerTemplate,
|