@deot/docs-client 1.1.7 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/chunks/{compile-CM_OyqYN-rhv4v6Tt.js → compile-BHlM2G35-gLGYT56A.js} +10 -10
- package/dist/chunks/{css-DleINdoA-Brc23sJ9.js → css-C25yWQa_-B6uwKgDA.js} +1301 -1271
- package/dist/eval/chunks/{compile-CM_OyqYN-rhv4v6Tt.js → compile-BHlM2G35-gLGYT56A.js} +3 -3
- package/dist/eval/chunks/css-C25yWQa_-B6uwKgDA.js +8 -0
- package/dist/eval/index.js +16 -16
- package/dist/eval/index.style.css +1 -1
- package/dist/index.cjs +23 -11376
- package/dist/index.d.ts +5 -0
- package/dist/index.js +56782 -56735
- package/package.json +6 -6
- package/dist/eval/chunks/css-DleINdoA-Brc23sJ9.js +0 -8
|
@@ -198,48 +198,48 @@ var s = class {
|
|
|
198
198
|
//#endregion
|
|
199
199
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/parser/traverser/base.js
|
|
200
200
|
var d, f, p, m, h, ee;
|
|
201
|
-
function
|
|
201
|
+
function g() {
|
|
202
202
|
return ee++;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function te(e) {
|
|
205
205
|
if ("pos" in e) {
|
|
206
|
-
let t =
|
|
206
|
+
let t = re(e.pos);
|
|
207
207
|
e.message += ` (${t.line}:${t.column})`, e.loc = t;
|
|
208
208
|
}
|
|
209
209
|
return e;
|
|
210
210
|
}
|
|
211
|
-
var
|
|
211
|
+
var ne = class {
|
|
212
212
|
constructor(e, t) {
|
|
213
213
|
this.line = e, this.column = t;
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
|
-
function
|
|
216
|
+
function re(e) {
|
|
217
217
|
let t = 1, n = 1;
|
|
218
218
|
for (let r = 0; r < e; r++) h.charCodeAt(r) === u.lineFeed ? (t++, n = 1) : n++;
|
|
219
|
-
return new
|
|
219
|
+
return new ne(t, n);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function ie(e, t, n, r) {
|
|
222
222
|
h = e, m = new l(), ee = 1, d = t, f = n, p = r;
|
|
223
223
|
}
|
|
224
224
|
//#endregion
|
|
225
225
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/parser/traverser/util.js
|
|
226
|
-
function
|
|
226
|
+
function _(e) {
|
|
227
227
|
return m.contextualKeyword === e;
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
let t =
|
|
229
|
+
function ae(e) {
|
|
230
|
+
let t = Se();
|
|
231
231
|
return t.type === a.name && t.contextualKeyword === e;
|
|
232
232
|
}
|
|
233
|
-
function _(e) {
|
|
234
|
-
return m.contextualKeyword === e && P(a.name);
|
|
235
|
-
}
|
|
236
233
|
function v(e) {
|
|
237
|
-
|
|
234
|
+
return m.contextualKeyword === e && F(a.name);
|
|
238
235
|
}
|
|
239
|
-
function y() {
|
|
240
|
-
|
|
236
|
+
function y(e) {
|
|
237
|
+
v(e) || T();
|
|
241
238
|
}
|
|
242
239
|
function b() {
|
|
240
|
+
return I(a.eof) || I(a.braceR) || x();
|
|
241
|
+
}
|
|
242
|
+
function x() {
|
|
243
243
|
let e = m.tokens[m.tokens.length - 1], t = e ? e.end : 0;
|
|
244
244
|
for (let e = t; e < m.start; e++) {
|
|
245
245
|
let t = h.charCodeAt(e);
|
|
@@ -247,31 +247,31 @@ function b() {
|
|
|
247
247
|
}
|
|
248
248
|
return !1;
|
|
249
249
|
}
|
|
250
|
-
function
|
|
251
|
-
let e =
|
|
250
|
+
function oe() {
|
|
251
|
+
let e = Ce();
|
|
252
252
|
for (let t = m.end; t < e; t++) {
|
|
253
253
|
let e = h.charCodeAt(t);
|
|
254
254
|
if (e === u.lineFeed || e === u.carriageReturn || e === 8232 || e === 8233) return !0;
|
|
255
255
|
}
|
|
256
256
|
return !1;
|
|
257
257
|
}
|
|
258
|
-
function x() {
|
|
259
|
-
return P(a.semi) || y();
|
|
260
|
-
}
|
|
261
258
|
function S() {
|
|
262
|
-
|
|
259
|
+
return F(a.semi) || b();
|
|
263
260
|
}
|
|
264
|
-
function C(
|
|
265
|
-
|
|
261
|
+
function C() {
|
|
262
|
+
S() || T("Unexpected token, expected \";\"");
|
|
266
263
|
}
|
|
267
|
-
function w(e
|
|
264
|
+
function w(e) {
|
|
265
|
+
F(e) || T(`Unexpected token, expected "${o(e)}"`);
|
|
266
|
+
}
|
|
267
|
+
function T(e = "Unexpected token", t = m.start) {
|
|
268
268
|
if (m.error) return;
|
|
269
269
|
let n = SyntaxError(e);
|
|
270
|
-
n.pos = t, m.error = n, m.pos = h.length,
|
|
270
|
+
n.pos = t, m.error = n, m.pos = h.length, R(a.eof);
|
|
271
271
|
}
|
|
272
272
|
//#endregion
|
|
273
273
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/parser/util/whitespace.js
|
|
274
|
-
var
|
|
274
|
+
var se = [
|
|
275
275
|
9,
|
|
276
276
|
11,
|
|
277
277
|
12,
|
|
@@ -293,11 +293,11 @@ var ce = [
|
|
|
293
293
|
8287,
|
|
294
294
|
12288,
|
|
295
295
|
65279
|
|
296
|
-
],
|
|
297
|
-
for (let e of
|
|
296
|
+
], E = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, ce = /* @__PURE__ */ new Uint8Array(65536);
|
|
297
|
+
for (let e of se) ce[e] = 1;
|
|
298
298
|
//#endregion
|
|
299
299
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/parser/util/identifier.js
|
|
300
|
-
function
|
|
300
|
+
function le(e) {
|
|
301
301
|
if (e < 48) return e === 36;
|
|
302
302
|
if (e < 58) return !0;
|
|
303
303
|
if (e < 65) return !1;
|
|
@@ -307,16 +307,16 @@ function ue(e) {
|
|
|
307
307
|
if (e < 128) return !1;
|
|
308
308
|
throw Error("Should not be called with non-ASCII char code.");
|
|
309
309
|
}
|
|
310
|
-
var
|
|
311
|
-
for (let e = 0; e < 128; e++)
|
|
312
|
-
for (let e = 128; e < 65536; e++)
|
|
313
|
-
for (let e of
|
|
314
|
-
|
|
315
|
-
var
|
|
316
|
-
for (let e = u.digit0; e <= u.digit9; e++)
|
|
310
|
+
var D = /* @__PURE__ */ new Uint8Array(65536);
|
|
311
|
+
for (let e = 0; e < 128; e++) D[e] = +!!le(e);
|
|
312
|
+
for (let e = 128; e < 65536; e++) D[e] = 1;
|
|
313
|
+
for (let e of se) D[e] = 0;
|
|
314
|
+
D[8232] = 0, D[8233] = 0;
|
|
315
|
+
var O = D.slice();
|
|
316
|
+
for (let e = u.digit0; e <= u.digit9; e++) O[e] = 0;
|
|
317
317
|
//#endregion
|
|
318
318
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/parser/tokenizer/readWordTree.js
|
|
319
|
-
var
|
|
319
|
+
var ue = new Int32Array([
|
|
320
320
|
-1,
|
|
321
321
|
27,
|
|
322
322
|
783,
|
|
@@ -9284,19 +9284,19 @@ var de = new Int32Array([
|
|
|
9284
9284
|
]);
|
|
9285
9285
|
//#endregion
|
|
9286
9286
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/parser/tokenizer/readWord.js
|
|
9287
|
-
function
|
|
9287
|
+
function de() {
|
|
9288
9288
|
let e = 0, t = 0, n = m.pos;
|
|
9289
9289
|
for (; n < h.length && (t = h.charCodeAt(n), !(t < u.lowercaseA || t > u.lowercaseZ));) {
|
|
9290
|
-
let r =
|
|
9290
|
+
let r = ue[e + (t - u.lowercaseA) + 1];
|
|
9291
9291
|
if (r === -1) break;
|
|
9292
9292
|
e = r, n++;
|
|
9293
9293
|
}
|
|
9294
|
-
let r =
|
|
9295
|
-
if (r > -1 && !
|
|
9294
|
+
let r = ue[e];
|
|
9295
|
+
if (r > -1 && !D[t]) m.pos = n, r & 1 ? R(r >>> 1) : R(a.name, r >>> 1);
|
|
9296
9296
|
else {
|
|
9297
9297
|
for (; n < h.length;) {
|
|
9298
9298
|
let e = h.charCodeAt(n);
|
|
9299
|
-
if (
|
|
9299
|
+
if (D[e]) n++;
|
|
9300
9300
|
else if (e === u.backslash) {
|
|
9301
9301
|
if (n += 2, h.charCodeAt(n) === u.leftCurlyBrace) {
|
|
9302
9302
|
for (; n < h.length && h.charCodeAt(n) !== u.rightCurlyBrace;) n++;
|
|
@@ -9305,121 +9305,121 @@ function fe() {
|
|
|
9305
9305
|
} else if (e === u.atSign && h.charCodeAt(n + 1) === u.atSign) n += 2;
|
|
9306
9306
|
else break;
|
|
9307
9307
|
}
|
|
9308
|
-
m.pos = n,
|
|
9308
|
+
m.pos = n, R(a.name);
|
|
9309
9309
|
}
|
|
9310
9310
|
}
|
|
9311
9311
|
//#endregion
|
|
9312
9312
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/parser/tokenizer/index.js
|
|
9313
|
-
var
|
|
9313
|
+
var k;
|
|
9314
9314
|
(function(e) {
|
|
9315
9315
|
e[e.Access = 0] = "Access", e[e.ExportAccess = 1] = "ExportAccess", e[e.TopLevelDeclaration = 2] = "TopLevelDeclaration", e[e.FunctionScopedDeclaration = 3] = "FunctionScopedDeclaration", e[e.BlockScopedDeclaration = 4] = "BlockScopedDeclaration", e[e.ObjectShorthandTopLevelDeclaration = 5] = "ObjectShorthandTopLevelDeclaration", e[e.ObjectShorthandFunctionScopedDeclaration = 6] = "ObjectShorthandFunctionScopedDeclaration", e[e.ObjectShorthandBlockScopedDeclaration = 7] = "ObjectShorthandBlockScopedDeclaration", e[e.ObjectShorthand = 8] = "ObjectShorthand", e[e.ImportDeclaration = 9] = "ImportDeclaration", e[e.ObjectKey = 10] = "ObjectKey", e[e.ImportAccess = 11] = "ImportAccess";
|
|
9316
|
-
})(
|
|
9317
|
-
var
|
|
9316
|
+
})(k ||= {});
|
|
9317
|
+
var A;
|
|
9318
9318
|
(function(e) {
|
|
9319
9319
|
e[e.NoChildren = 0] = "NoChildren", e[e.OneChild = 1] = "OneChild", e[e.StaticChildren = 2] = "StaticChildren", e[e.KeyAfterPropSpread = 3] = "KeyAfterPropSpread";
|
|
9320
|
-
})(
|
|
9320
|
+
})(A ||= {});
|
|
9321
|
+
function fe(e) {
|
|
9322
|
+
let t = e.identifierRole;
|
|
9323
|
+
return t === k.TopLevelDeclaration || t === k.FunctionScopedDeclaration || t === k.BlockScopedDeclaration || t === k.ObjectShorthandTopLevelDeclaration || t === k.ObjectShorthandFunctionScopedDeclaration || t === k.ObjectShorthandBlockScopedDeclaration;
|
|
9324
|
+
}
|
|
9321
9325
|
function pe(e) {
|
|
9322
9326
|
let t = e.identifierRole;
|
|
9323
|
-
return t ===
|
|
9327
|
+
return t === k.FunctionScopedDeclaration || t === k.BlockScopedDeclaration || t === k.ObjectShorthandFunctionScopedDeclaration || t === k.ObjectShorthandBlockScopedDeclaration;
|
|
9324
9328
|
}
|
|
9325
9329
|
function me(e) {
|
|
9326
9330
|
let t = e.identifierRole;
|
|
9327
|
-
return t ===
|
|
9331
|
+
return t === k.TopLevelDeclaration || t === k.ObjectShorthandTopLevelDeclaration || t === k.ImportDeclaration;
|
|
9328
9332
|
}
|
|
9329
9333
|
function he(e) {
|
|
9330
9334
|
let t = e.identifierRole;
|
|
9331
|
-
return t ===
|
|
9335
|
+
return t === k.TopLevelDeclaration || t === k.BlockScopedDeclaration || t === k.ObjectShorthandTopLevelDeclaration || t === k.ObjectShorthandBlockScopedDeclaration;
|
|
9332
9336
|
}
|
|
9333
9337
|
function ge(e) {
|
|
9334
9338
|
let t = e.identifierRole;
|
|
9335
|
-
return t ===
|
|
9339
|
+
return t === k.FunctionScopedDeclaration || t === k.ObjectShorthandFunctionScopedDeclaration;
|
|
9336
9340
|
}
|
|
9337
9341
|
function _e(e) {
|
|
9338
|
-
|
|
9339
|
-
return t === O.FunctionScopedDeclaration || t === O.ObjectShorthandFunctionScopedDeclaration;
|
|
9342
|
+
return e.identifierRole === k.ObjectShorthandTopLevelDeclaration || e.identifierRole === k.ObjectShorthandBlockScopedDeclaration || e.identifierRole === k.ObjectShorthandFunctionScopedDeclaration;
|
|
9340
9343
|
}
|
|
9341
|
-
|
|
9342
|
-
return e.identifierRole === O.ObjectShorthandTopLevelDeclaration || e.identifierRole === O.ObjectShorthandBlockScopedDeclaration || e.identifierRole === O.ObjectShorthandFunctionScopedDeclaration;
|
|
9343
|
-
}
|
|
9344
|
-
var ye = class {
|
|
9344
|
+
var ve = class {
|
|
9345
9345
|
constructor() {
|
|
9346
9346
|
this.type = m.type, this.contextualKeyword = m.contextualKeyword, this.start = m.start, this.end = m.end, this.scopeDepth = m.scopeDepth, this.isType = m.isType, this.identifierRole = null, this.jsxRole = null, this.shadowsGlobal = !1, this.isAsyncOperation = !1, this.contextId = null, this.rhsEndIndex = null, this.isExpression = !1, this.numNullishCoalesceStarts = 0, this.numNullishCoalesceEnds = 0, this.isOptionalChainStart = !1, this.isOptionalChainEnd = !1, this.subscriptStartIndex = null, this.nullishStartIndex = null;
|
|
9347
9347
|
}
|
|
9348
9348
|
};
|
|
9349
|
-
function A() {
|
|
9350
|
-
m.tokens.push(new ye()), De();
|
|
9351
|
-
}
|
|
9352
9349
|
function j() {
|
|
9353
|
-
m.tokens.push(new
|
|
9350
|
+
m.tokens.push(new ve()), Ee();
|
|
9354
9351
|
}
|
|
9355
|
-
function
|
|
9356
|
-
m.
|
|
9352
|
+
function M() {
|
|
9353
|
+
m.tokens.push(new ve()), m.start = m.pos, Je();
|
|
9357
9354
|
}
|
|
9358
|
-
function
|
|
9355
|
+
function ye() {
|
|
9356
|
+
m.type === a.assign && --m.pos, Ue();
|
|
9357
|
+
}
|
|
9358
|
+
function N(e) {
|
|
9359
9359
|
for (let t = m.tokens.length - e; t < m.tokens.length; t++) m.tokens[t].isType = !0;
|
|
9360
9360
|
let t = m.isType;
|
|
9361
9361
|
return m.isType = !0, t;
|
|
9362
9362
|
}
|
|
9363
|
-
function
|
|
9363
|
+
function P(e) {
|
|
9364
9364
|
m.isType = e;
|
|
9365
9365
|
}
|
|
9366
|
-
function
|
|
9367
|
-
return
|
|
9366
|
+
function F(e) {
|
|
9367
|
+
return I(e) ? (j(), !0) : !1;
|
|
9368
9368
|
}
|
|
9369
|
-
function
|
|
9369
|
+
function be(e) {
|
|
9370
9370
|
let t = m.isType;
|
|
9371
|
-
m.isType = !0,
|
|
9371
|
+
m.isType = !0, F(e), m.isType = t;
|
|
9372
9372
|
}
|
|
9373
|
-
function
|
|
9373
|
+
function I(e) {
|
|
9374
9374
|
return m.type === e;
|
|
9375
9375
|
}
|
|
9376
|
-
function
|
|
9376
|
+
function L() {
|
|
9377
9377
|
let e = m.snapshot();
|
|
9378
|
-
|
|
9378
|
+
j();
|
|
9379
9379
|
let t = m.type;
|
|
9380
9380
|
return m.restoreFromSnapshot(e), t;
|
|
9381
9381
|
}
|
|
9382
|
-
var
|
|
9382
|
+
var xe = class {
|
|
9383
9383
|
constructor(e, t) {
|
|
9384
9384
|
this.type = e, this.contextualKeyword = t;
|
|
9385
9385
|
}
|
|
9386
9386
|
};
|
|
9387
|
-
function
|
|
9387
|
+
function Se() {
|
|
9388
9388
|
let e = m.snapshot();
|
|
9389
|
-
|
|
9389
|
+
j();
|
|
9390
9390
|
let t = m.type, n = m.contextualKeyword;
|
|
9391
|
-
return m.restoreFromSnapshot(e), new
|
|
9391
|
+
return m.restoreFromSnapshot(e), new xe(t, n);
|
|
9392
|
+
}
|
|
9393
|
+
function Ce() {
|
|
9394
|
+
return we(m.pos);
|
|
9392
9395
|
}
|
|
9393
|
-
function we() {
|
|
9394
|
-
return
|
|
9396
|
+
function we(e) {
|
|
9397
|
+
return E.lastIndex = e, e + E.exec(h)[0].length;
|
|
9395
9398
|
}
|
|
9396
|
-
function Te(
|
|
9397
|
-
return
|
|
9399
|
+
function Te() {
|
|
9400
|
+
return h.charCodeAt(Ce());
|
|
9398
9401
|
}
|
|
9399
9402
|
function Ee() {
|
|
9400
|
-
|
|
9401
|
-
}
|
|
9402
|
-
function De() {
|
|
9403
|
-
if (je(), m.start = m.pos, m.pos >= h.length) {
|
|
9403
|
+
if (Ae(), m.start = m.pos, m.pos >= h.length) {
|
|
9404
9404
|
let e = m.tokens;
|
|
9405
|
-
e.length >= 2 && e[e.length - 1].start >= h.length && e[e.length - 2].start >= h.length &&
|
|
9406
|
-
} else
|
|
9405
|
+
e.length >= 2 && e[e.length - 1].start >= h.length && e[e.length - 2].start >= h.length && T("Unexpectedly reached the end of input."), R(a.eof);
|
|
9406
|
+
} else De(h.charCodeAt(m.pos));
|
|
9407
9407
|
}
|
|
9408
|
-
function
|
|
9409
|
-
|
|
9408
|
+
function De(e) {
|
|
9409
|
+
O[e] || e === u.backslash || e === u.atSign && h.charCodeAt(m.pos + 1) === u.atSign ? de() : He(e);
|
|
9410
9410
|
}
|
|
9411
|
-
function
|
|
9411
|
+
function Oe() {
|
|
9412
9412
|
for (; h.charCodeAt(m.pos) !== u.asterisk || h.charCodeAt(m.pos + 1) !== u.slash;) if (m.pos++, m.pos > h.length) {
|
|
9413
|
-
|
|
9413
|
+
T("Unterminated comment", m.pos - 2);
|
|
9414
9414
|
return;
|
|
9415
9415
|
}
|
|
9416
9416
|
m.pos += 2;
|
|
9417
9417
|
}
|
|
9418
|
-
function
|
|
9418
|
+
function ke(e) {
|
|
9419
9419
|
let t = h.charCodeAt(m.pos += e);
|
|
9420
9420
|
if (m.pos < h.length) for (; t !== u.lineFeed && t !== u.carriageReturn && t !== u.lineSeparator && t !== u.paragraphSeparator && ++m.pos < h.length;) t = h.charCodeAt(m.pos);
|
|
9421
9421
|
}
|
|
9422
|
-
function
|
|
9422
|
+
function Ae() {
|
|
9423
9423
|
for (; m.pos < h.length;) {
|
|
9424
9424
|
let e = h.charCodeAt(m.pos);
|
|
9425
9425
|
switch (e) {
|
|
@@ -9432,141 +9432,141 @@ function je() {
|
|
|
9432
9432
|
case u.slash:
|
|
9433
9433
|
switch (h.charCodeAt(m.pos + 1)) {
|
|
9434
9434
|
case u.asterisk:
|
|
9435
|
-
m.pos += 2,
|
|
9435
|
+
m.pos += 2, Oe();
|
|
9436
9436
|
break;
|
|
9437
9437
|
case u.slash:
|
|
9438
|
-
|
|
9438
|
+
ke(2);
|
|
9439
9439
|
break;
|
|
9440
9440
|
default: return;
|
|
9441
9441
|
}
|
|
9442
9442
|
break;
|
|
9443
|
-
default: if (
|
|
9443
|
+
default: if (ce[e]) ++m.pos;
|
|
9444
9444
|
else return;
|
|
9445
9445
|
}
|
|
9446
9446
|
}
|
|
9447
9447
|
}
|
|
9448
|
-
function
|
|
9448
|
+
function R(e, t = i.NONE) {
|
|
9449
9449
|
m.end = m.pos, m.type = e, m.contextualKeyword = t;
|
|
9450
9450
|
}
|
|
9451
|
-
function
|
|
9451
|
+
function je() {
|
|
9452
9452
|
let e = h.charCodeAt(m.pos + 1);
|
|
9453
|
-
e >= u.digit0 && e <= u.digit9 ?
|
|
9453
|
+
e >= u.digit0 && e <= u.digit9 ? Ke(!0) : e === u.dot && h.charCodeAt(m.pos + 2) === u.dot ? (m.pos += 3, R(a.ellipsis)) : (++m.pos, R(a.dot));
|
|
9454
9454
|
}
|
|
9455
|
-
function
|
|
9456
|
-
h.charCodeAt(m.pos + 1) === u.equalsTo ?
|
|
9455
|
+
function Me() {
|
|
9456
|
+
h.charCodeAt(m.pos + 1) === u.equalsTo ? z(a.assign, 2) : z(a.slash, 1);
|
|
9457
9457
|
}
|
|
9458
|
-
function
|
|
9458
|
+
function Ne(e) {
|
|
9459
9459
|
let t = e === u.asterisk ? a.star : a.modulo, n = 1, r = h.charCodeAt(m.pos + 1);
|
|
9460
|
-
e === u.asterisk && r === u.asterisk && (n++, r = h.charCodeAt(m.pos + 2), t = a.exponent), r === u.equalsTo && h.charCodeAt(m.pos + 2) !== u.greaterThan && (n++, t = a.assign),
|
|
9460
|
+
e === u.asterisk && r === u.asterisk && (n++, r = h.charCodeAt(m.pos + 2), t = a.exponent), r === u.equalsTo && h.charCodeAt(m.pos + 2) !== u.greaterThan && (n++, t = a.assign), z(t, n);
|
|
9461
9461
|
}
|
|
9462
|
-
function
|
|
9462
|
+
function Pe(e) {
|
|
9463
9463
|
let t = h.charCodeAt(m.pos + 1);
|
|
9464
|
-
if (t === e) h.charCodeAt(m.pos + 2) === u.equalsTo ?
|
|
9464
|
+
if (t === e) h.charCodeAt(m.pos + 2) === u.equalsTo ? z(a.assign, 3) : z(e === u.verticalBar ? a.logicalOR : a.logicalAND, 2);
|
|
9465
9465
|
else {
|
|
9466
9466
|
if (e === u.verticalBar) {
|
|
9467
9467
|
if (t === u.greaterThan) {
|
|
9468
|
-
|
|
9468
|
+
z(a.pipeline, 2);
|
|
9469
9469
|
return;
|
|
9470
9470
|
}
|
|
9471
9471
|
if (t === u.rightCurlyBrace && p) {
|
|
9472
|
-
|
|
9472
|
+
z(a.braceBarR, 2);
|
|
9473
9473
|
return;
|
|
9474
9474
|
}
|
|
9475
9475
|
}
|
|
9476
|
-
t === u.equalsTo ?
|
|
9476
|
+
t === u.equalsTo ? z(a.assign, 2) : z(e === u.verticalBar ? a.bitwiseOR : a.bitwiseAND, 1);
|
|
9477
9477
|
}
|
|
9478
9478
|
}
|
|
9479
|
-
function
|
|
9480
|
-
h.charCodeAt(m.pos + 1) === u.equalsTo ?
|
|
9479
|
+
function Fe() {
|
|
9480
|
+
h.charCodeAt(m.pos + 1) === u.equalsTo ? z(a.assign, 2) : z(a.bitwiseXOR, 1);
|
|
9481
9481
|
}
|
|
9482
|
-
function
|
|
9482
|
+
function Ie(e) {
|
|
9483
9483
|
let t = h.charCodeAt(m.pos + 1);
|
|
9484
|
-
t === e ?
|
|
9484
|
+
t === e ? z(a.preIncDec, 2) : t === u.equalsTo ? z(a.assign, 2) : e === u.plusSign ? z(a.plus, 1) : z(a.minus, 1);
|
|
9485
9485
|
}
|
|
9486
|
-
function
|
|
9486
|
+
function Le() {
|
|
9487
9487
|
let e = h.charCodeAt(m.pos + 1);
|
|
9488
9488
|
if (e === u.lessThan) {
|
|
9489
9489
|
if (h.charCodeAt(m.pos + 2) === u.equalsTo) {
|
|
9490
|
-
|
|
9490
|
+
z(a.assign, 3);
|
|
9491
9491
|
return;
|
|
9492
9492
|
}
|
|
9493
|
-
m.isType ?
|
|
9494
|
-
} else e === u.equalsTo ?
|
|
9493
|
+
m.isType ? z(a.lessThan, 1) : z(a.bitShiftL, 2);
|
|
9494
|
+
} else e === u.equalsTo ? z(a.relationalOrEqual, 2) : z(a.lessThan, 1);
|
|
9495
9495
|
}
|
|
9496
|
-
function
|
|
9496
|
+
function Re() {
|
|
9497
9497
|
if (m.isType) {
|
|
9498
|
-
|
|
9498
|
+
z(a.greaterThan, 1);
|
|
9499
9499
|
return;
|
|
9500
9500
|
}
|
|
9501
9501
|
let e = h.charCodeAt(m.pos + 1);
|
|
9502
9502
|
if (e === u.greaterThan) {
|
|
9503
9503
|
let e = h.charCodeAt(m.pos + 2) === u.greaterThan ? 3 : 2;
|
|
9504
9504
|
if (h.charCodeAt(m.pos + e) === u.equalsTo) {
|
|
9505
|
-
|
|
9505
|
+
z(a.assign, e + 1);
|
|
9506
9506
|
return;
|
|
9507
9507
|
}
|
|
9508
|
-
|
|
9509
|
-
} else e === u.equalsTo ?
|
|
9508
|
+
z(a.bitShiftR, e);
|
|
9509
|
+
} else e === u.equalsTo ? z(a.relationalOrEqual, 2) : z(a.greaterThan, 1);
|
|
9510
9510
|
}
|
|
9511
|
-
function
|
|
9512
|
-
m.type === a.greaterThan && (--m.pos,
|
|
9511
|
+
function ze() {
|
|
9512
|
+
m.type === a.greaterThan && (--m.pos, Re());
|
|
9513
9513
|
}
|
|
9514
|
-
function
|
|
9514
|
+
function Be(e) {
|
|
9515
9515
|
let t = h.charCodeAt(m.pos + 1);
|
|
9516
|
-
t === u.equalsTo ?
|
|
9516
|
+
t === u.equalsTo ? z(a.equality, h.charCodeAt(m.pos + 2) === u.equalsTo ? 3 : 2) : e === u.equalsTo && t === u.greaterThan ? (m.pos += 2, R(a.arrow)) : z(e === u.equalsTo ? a.eq : a.bang, 1);
|
|
9517
9517
|
}
|
|
9518
|
-
function
|
|
9518
|
+
function Ve() {
|
|
9519
9519
|
let e = h.charCodeAt(m.pos + 1), t = h.charCodeAt(m.pos + 2);
|
|
9520
|
-
e === u.questionMark && !(p && m.isType) ? t === u.equalsTo ?
|
|
9520
|
+
e === u.questionMark && !(p && m.isType) ? t === u.equalsTo ? z(a.assign, 3) : z(a.nullishCoalescing, 2) : e === u.dot && !(t >= u.digit0 && t <= u.digit9) ? (m.pos += 2, R(a.questionDot)) : (++m.pos, R(a.question));
|
|
9521
9521
|
}
|
|
9522
|
-
function
|
|
9522
|
+
function He(e) {
|
|
9523
9523
|
switch (e) {
|
|
9524
9524
|
case u.numberSign:
|
|
9525
|
-
++m.pos,
|
|
9525
|
+
++m.pos, R(a.hash);
|
|
9526
9526
|
return;
|
|
9527
9527
|
case u.dot:
|
|
9528
|
-
|
|
9528
|
+
je();
|
|
9529
9529
|
return;
|
|
9530
9530
|
case u.leftParenthesis:
|
|
9531
|
-
++m.pos,
|
|
9531
|
+
++m.pos, R(a.parenL);
|
|
9532
9532
|
return;
|
|
9533
9533
|
case u.rightParenthesis:
|
|
9534
|
-
++m.pos,
|
|
9534
|
+
++m.pos, R(a.parenR);
|
|
9535
9535
|
return;
|
|
9536
9536
|
case u.semicolon:
|
|
9537
|
-
++m.pos,
|
|
9537
|
+
++m.pos, R(a.semi);
|
|
9538
9538
|
return;
|
|
9539
9539
|
case u.comma:
|
|
9540
|
-
++m.pos,
|
|
9540
|
+
++m.pos, R(a.comma);
|
|
9541
9541
|
return;
|
|
9542
9542
|
case u.leftSquareBracket:
|
|
9543
|
-
++m.pos,
|
|
9543
|
+
++m.pos, R(a.bracketL);
|
|
9544
9544
|
return;
|
|
9545
9545
|
case u.rightSquareBracket:
|
|
9546
|
-
++m.pos,
|
|
9546
|
+
++m.pos, R(a.bracketR);
|
|
9547
9547
|
return;
|
|
9548
9548
|
case u.leftCurlyBrace:
|
|
9549
|
-
p && h.charCodeAt(m.pos + 1) === u.verticalBar ?
|
|
9549
|
+
p && h.charCodeAt(m.pos + 1) === u.verticalBar ? z(a.braceBarL, 2) : (++m.pos, R(a.braceL));
|
|
9550
9550
|
return;
|
|
9551
9551
|
case u.rightCurlyBrace:
|
|
9552
|
-
++m.pos,
|
|
9552
|
+
++m.pos, R(a.braceR);
|
|
9553
9553
|
return;
|
|
9554
9554
|
case u.colon:
|
|
9555
|
-
h.charCodeAt(m.pos + 1) === u.colon ?
|
|
9555
|
+
h.charCodeAt(m.pos + 1) === u.colon ? z(a.doubleColon, 2) : (++m.pos, R(a.colon));
|
|
9556
9556
|
return;
|
|
9557
9557
|
case u.questionMark:
|
|
9558
|
-
|
|
9558
|
+
Ve();
|
|
9559
9559
|
return;
|
|
9560
9560
|
case u.atSign:
|
|
9561
|
-
++m.pos,
|
|
9561
|
+
++m.pos, R(a.at);
|
|
9562
9562
|
return;
|
|
9563
9563
|
case u.graveAccent:
|
|
9564
|
-
++m.pos,
|
|
9564
|
+
++m.pos, R(a.backQuote);
|
|
9565
9565
|
return;
|
|
9566
9566
|
case u.digit0: {
|
|
9567
9567
|
let e = h.charCodeAt(m.pos + 1);
|
|
9568
9568
|
if (e === u.lowercaseX || e === u.uppercaseX || e === u.lowercaseO || e === u.uppercaseO || e === u.lowercaseB || e === u.uppercaseB) {
|
|
9569
|
-
|
|
9569
|
+
Ge();
|
|
9570
9570
|
return;
|
|
9571
9571
|
}
|
|
9572
9572
|
}
|
|
@@ -9579,54 +9579,54 @@ function Ue(e) {
|
|
|
9579
9579
|
case u.digit7:
|
|
9580
9580
|
case u.digit8:
|
|
9581
9581
|
case u.digit9:
|
|
9582
|
-
|
|
9582
|
+
Ke(!1);
|
|
9583
9583
|
return;
|
|
9584
9584
|
case u.quotationMark:
|
|
9585
9585
|
case u.apostrophe:
|
|
9586
|
-
|
|
9586
|
+
qe(e);
|
|
9587
9587
|
return;
|
|
9588
9588
|
case u.slash:
|
|
9589
|
-
|
|
9589
|
+
Me();
|
|
9590
9590
|
return;
|
|
9591
9591
|
case u.percentSign:
|
|
9592
9592
|
case u.asterisk:
|
|
9593
|
-
|
|
9593
|
+
Ne(e);
|
|
9594
9594
|
return;
|
|
9595
9595
|
case u.verticalBar:
|
|
9596
9596
|
case u.ampersand:
|
|
9597
|
-
|
|
9597
|
+
Pe(e);
|
|
9598
9598
|
return;
|
|
9599
9599
|
case u.caret:
|
|
9600
|
-
|
|
9600
|
+
Fe();
|
|
9601
9601
|
return;
|
|
9602
9602
|
case u.plusSign:
|
|
9603
9603
|
case u.dash:
|
|
9604
|
-
|
|
9604
|
+
Ie(e);
|
|
9605
9605
|
return;
|
|
9606
9606
|
case u.lessThan:
|
|
9607
|
-
|
|
9607
|
+
Le();
|
|
9608
9608
|
return;
|
|
9609
9609
|
case u.greaterThan:
|
|
9610
|
-
|
|
9610
|
+
Re();
|
|
9611
9611
|
return;
|
|
9612
9612
|
case u.equalsTo:
|
|
9613
9613
|
case u.exclamationMark:
|
|
9614
|
-
|
|
9614
|
+
Be(e);
|
|
9615
9615
|
return;
|
|
9616
9616
|
case u.tilde:
|
|
9617
|
-
|
|
9617
|
+
z(a.tilde, 1);
|
|
9618
9618
|
return;
|
|
9619
9619
|
}
|
|
9620
|
-
|
|
9620
|
+
T(`Unexpected character '${String.fromCharCode(e)}'`, m.pos);
|
|
9621
9621
|
}
|
|
9622
|
-
function
|
|
9623
|
-
m.pos += t,
|
|
9622
|
+
function z(e, t) {
|
|
9623
|
+
m.pos += t, R(e);
|
|
9624
9624
|
}
|
|
9625
|
-
function
|
|
9625
|
+
function Ue() {
|
|
9626
9626
|
let e = m.pos, t = !1, n = !1;
|
|
9627
9627
|
for (;;) {
|
|
9628
9628
|
if (m.pos >= h.length) {
|
|
9629
|
-
|
|
9629
|
+
T("Unterminated regular expression", e);
|
|
9630
9630
|
return;
|
|
9631
9631
|
}
|
|
9632
9632
|
let r = h.charCodeAt(m.pos);
|
|
@@ -9639,33 +9639,33 @@ function We() {
|
|
|
9639
9639
|
}
|
|
9640
9640
|
++m.pos;
|
|
9641
9641
|
}
|
|
9642
|
-
++m.pos,
|
|
9642
|
+
++m.pos, Ye(), R(a.regexp);
|
|
9643
9643
|
}
|
|
9644
|
-
function
|
|
9644
|
+
function We() {
|
|
9645
9645
|
for (;;) {
|
|
9646
9646
|
let e = h.charCodeAt(m.pos);
|
|
9647
9647
|
if (e >= u.digit0 && e <= u.digit9 || e === u.underscore) m.pos++;
|
|
9648
9648
|
else break;
|
|
9649
9649
|
}
|
|
9650
9650
|
}
|
|
9651
|
-
function
|
|
9651
|
+
function Ge() {
|
|
9652
9652
|
for (m.pos += 2;;) {
|
|
9653
9653
|
let e = h.charCodeAt(m.pos);
|
|
9654
9654
|
if (e >= u.digit0 && e <= u.digit9 || e >= u.lowercaseA && e <= u.lowercaseF || e >= u.uppercaseA && e <= u.uppercaseF || e === u.underscore) m.pos++;
|
|
9655
9655
|
else break;
|
|
9656
9656
|
}
|
|
9657
|
-
h.charCodeAt(m.pos) === u.lowercaseN ? (++m.pos,
|
|
9657
|
+
h.charCodeAt(m.pos) === u.lowercaseN ? (++m.pos, R(a.bigint)) : R(a.num);
|
|
9658
9658
|
}
|
|
9659
|
-
function
|
|
9659
|
+
function Ke(e) {
|
|
9660
9660
|
let t = !1, n = !1;
|
|
9661
|
-
e ||
|
|
9661
|
+
e || We();
|
|
9662
9662
|
let r = h.charCodeAt(m.pos);
|
|
9663
|
-
r === u.dot && (++m.pos,
|
|
9663
|
+
r === u.dot && (++m.pos, We(), r = h.charCodeAt(m.pos)), (r === u.uppercaseE || r === u.lowercaseE) && (r = h.charCodeAt(++m.pos), (r === u.plusSign || r === u.dash) && ++m.pos, We(), r = h.charCodeAt(m.pos)), r === u.lowercaseN ? (++m.pos, t = !0) : r === u.lowercaseM && (++m.pos, n = !0), R(t ? a.bigint : n ? a.decimal : a.num);
|
|
9664
9664
|
}
|
|
9665
|
-
function
|
|
9665
|
+
function qe(e) {
|
|
9666
9666
|
for (m.pos++;;) {
|
|
9667
9667
|
if (m.pos >= h.length) {
|
|
9668
|
-
|
|
9668
|
+
T("Unterminated string constant");
|
|
9669
9669
|
return;
|
|
9670
9670
|
}
|
|
9671
9671
|
let t = h.charCodeAt(m.pos);
|
|
@@ -9673,34 +9673,34 @@ function Je(e) {
|
|
|
9673
9673
|
else if (t === e) break;
|
|
9674
9674
|
m.pos++;
|
|
9675
9675
|
}
|
|
9676
|
-
m.pos++,
|
|
9676
|
+
m.pos++, R(a.string);
|
|
9677
9677
|
}
|
|
9678
|
-
function
|
|
9678
|
+
function Je() {
|
|
9679
9679
|
for (;;) {
|
|
9680
9680
|
if (m.pos >= h.length) {
|
|
9681
|
-
|
|
9681
|
+
T("Unterminated template");
|
|
9682
9682
|
return;
|
|
9683
9683
|
}
|
|
9684
9684
|
let e = h.charCodeAt(m.pos);
|
|
9685
9685
|
if (e === u.graveAccent || e === u.dollarSign && h.charCodeAt(m.pos + 1) === u.leftCurlyBrace) {
|
|
9686
|
-
if (m.pos === m.start &&
|
|
9686
|
+
if (m.pos === m.start && I(a.template)) {
|
|
9687
9687
|
if (e === u.dollarSign) {
|
|
9688
|
-
m.pos += 2,
|
|
9688
|
+
m.pos += 2, R(a.dollarBraceL);
|
|
9689
9689
|
return;
|
|
9690
9690
|
}
|
|
9691
|
-
++m.pos,
|
|
9691
|
+
++m.pos, R(a.backQuote);
|
|
9692
9692
|
return;
|
|
9693
9693
|
}
|
|
9694
|
-
|
|
9694
|
+
R(a.template);
|
|
9695
9695
|
return;
|
|
9696
9696
|
}
|
|
9697
9697
|
e === u.backslash && m.pos++, m.pos++;
|
|
9698
9698
|
}
|
|
9699
9699
|
}
|
|
9700
|
-
function
|
|
9700
|
+
function Ye() {
|
|
9701
9701
|
for (; m.pos < h.length;) {
|
|
9702
9702
|
let e = h.charCodeAt(m.pos);
|
|
9703
|
-
if (
|
|
9703
|
+
if (D[e]) m.pos++;
|
|
9704
9704
|
else if (e === u.backslash) {
|
|
9705
9705
|
if (m.pos += 2, h.charCodeAt(m.pos) === u.leftCurlyBrace) {
|
|
9706
9706
|
for (; m.pos < h.length && h.charCodeAt(m.pos) !== u.rightCurlyBrace;) m.pos++;
|
|
@@ -9711,9 +9711,9 @@ function Xe() {
|
|
|
9711
9711
|
}
|
|
9712
9712
|
//#endregion
|
|
9713
9713
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/util/getImportExportSpecifierInfo.js
|
|
9714
|
-
function
|
|
9714
|
+
function Xe(e, t = e.currentIndex()) {
|
|
9715
9715
|
let n = t + 1;
|
|
9716
|
-
if (
|
|
9716
|
+
if (Ze(e, n)) {
|
|
9717
9717
|
let r = e.identifierNameAtIndex(t);
|
|
9718
9718
|
return {
|
|
9719
9719
|
isType: !1,
|
|
@@ -9722,19 +9722,19 @@ function Ze(e, t = e.currentIndex()) {
|
|
|
9722
9722
|
endIndex: n
|
|
9723
9723
|
};
|
|
9724
9724
|
}
|
|
9725
|
-
if (n++,
|
|
9725
|
+
if (n++, Ze(e, n)) return {
|
|
9726
9726
|
isType: !0,
|
|
9727
9727
|
leftName: null,
|
|
9728
9728
|
rightName: null,
|
|
9729
9729
|
endIndex: n
|
|
9730
9730
|
};
|
|
9731
|
-
if (n++,
|
|
9731
|
+
if (n++, Ze(e, n)) return {
|
|
9732
9732
|
isType: !1,
|
|
9733
9733
|
leftName: e.identifierNameAtIndex(t),
|
|
9734
9734
|
rightName: e.identifierNameAtIndex(t + 2),
|
|
9735
9735
|
endIndex: n
|
|
9736
9736
|
};
|
|
9737
|
-
if (n++,
|
|
9737
|
+
if (n++, Ze(e, n)) return {
|
|
9738
9738
|
isType: !0,
|
|
9739
9739
|
leftName: null,
|
|
9740
9740
|
rightName: null,
|
|
@@ -9742,13 +9742,13 @@ function Ze(e, t = e.currentIndex()) {
|
|
|
9742
9742
|
};
|
|
9743
9743
|
throw Error(`Unexpected import/export specifier at ${t}`);
|
|
9744
9744
|
}
|
|
9745
|
-
function
|
|
9745
|
+
function Ze(e, t) {
|
|
9746
9746
|
let n = e.tokens[t];
|
|
9747
9747
|
return n.type === a.braceR || n.type === a.comma;
|
|
9748
9748
|
}
|
|
9749
9749
|
//#endregion
|
|
9750
9750
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/parser/plugins/jsx/xhtml.js
|
|
9751
|
-
var
|
|
9751
|
+
var Qe = /* @__PURE__ */ new Map([
|
|
9752
9752
|
["quot", "\""],
|
|
9753
9753
|
["amp", "&"],
|
|
9754
9754
|
["apos", "'"],
|
|
@@ -10005,8 +10005,8 @@ var $e = /* @__PURE__ */ new Map([
|
|
|
10005
10005
|
]);
|
|
10006
10006
|
//#endregion
|
|
10007
10007
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/util/getJSXPragmaInfo.js
|
|
10008
|
-
function
|
|
10009
|
-
let [t, n] =
|
|
10008
|
+
function $e(e) {
|
|
10009
|
+
let [t, n] = et(e.jsxPragma || "React.createElement"), [r, i] = et(e.jsxFragmentPragma || "React.Fragment");
|
|
10010
10010
|
return {
|
|
10011
10011
|
base: t,
|
|
10012
10012
|
suffix: n,
|
|
@@ -10014,13 +10014,13 @@ function et(e) {
|
|
|
10014
10014
|
fragmentSuffix: i
|
|
10015
10015
|
};
|
|
10016
10016
|
}
|
|
10017
|
-
function
|
|
10017
|
+
function et(e) {
|
|
10018
10018
|
let t = e.indexOf(".");
|
|
10019
10019
|
return t === -1 && (t = e.length), [e.slice(0, t), e.slice(t)];
|
|
10020
10020
|
}
|
|
10021
10021
|
//#endregion
|
|
10022
10022
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/transformers/Transformer.js
|
|
10023
|
-
var
|
|
10023
|
+
var B = class {
|
|
10024
10024
|
getPrefixCode() {
|
|
10025
10025
|
return "";
|
|
10026
10026
|
}
|
|
@@ -10030,7 +10030,7 @@ var z = class {
|
|
|
10030
10030
|
getSuffixCode() {
|
|
10031
10031
|
return "";
|
|
10032
10032
|
}
|
|
10033
|
-
},
|
|
10033
|
+
}, tt = class e extends B {
|
|
10034
10034
|
__init() {
|
|
10035
10035
|
this.lastLineNumber = 1;
|
|
10036
10036
|
}
|
|
@@ -10047,7 +10047,7 @@ var z = class {
|
|
|
10047
10047
|
this.cjsAutomaticModuleNameResolutions = {};
|
|
10048
10048
|
}
|
|
10049
10049
|
constructor(t, n, r, i, a) {
|
|
10050
|
-
super(), this.rootTransformer = t, this.tokens = n, this.importProcessor = r, this.nameManager = i, this.options = a, e.prototype.__init.call(this), e.prototype.__init2.call(this), e.prototype.__init3.call(this), e.prototype.__init4.call(this), e.prototype.__init5.call(this), this.jsxPragmaInfo =
|
|
10050
|
+
super(), this.rootTransformer = t, this.tokens = n, this.importProcessor = r, this.nameManager = i, this.options = a, e.prototype.__init.call(this), e.prototype.__init2.call(this), e.prototype.__init3.call(this), e.prototype.__init4.call(this), e.prototype.__init5.call(this), this.jsxPragmaInfo = $e(a), this.isAutomaticRuntime = a.jsxRuntime === "automatic", this.jsxImportSource = a.jsxImportSource || "react";
|
|
10051
10051
|
}
|
|
10052
10052
|
process() {
|
|
10053
10053
|
return this.tokens.matches1(a.jsxTagStart) ? (this.processJSXTag(), !0) : !1;
|
|
@@ -10070,7 +10070,7 @@ var z = class {
|
|
|
10070
10070
|
}
|
|
10071
10071
|
processJSXTag() {
|
|
10072
10072
|
let { jsxRole: e, start: t } = this.tokens.currentToken(), n = this.options.production ? null : this.getElementLocationCode(t);
|
|
10073
|
-
this.isAutomaticRuntime && e !==
|
|
10073
|
+
this.isAutomaticRuntime && e !== A.KeyAfterPropSpread ? this.transformTagToJSXFunc(n, e) : this.transformTagToCreateElement(n);
|
|
10074
10074
|
}
|
|
10075
10075
|
getElementLocationCode(e) {
|
|
10076
10076
|
return `lineNumber: ${this.getLineNumberForIndex(e)}`;
|
|
@@ -10081,7 +10081,7 @@ var z = class {
|
|
|
10081
10081
|
return this.lastLineNumber;
|
|
10082
10082
|
}
|
|
10083
10083
|
transformTagToJSXFunc(e, t) {
|
|
10084
|
-
let n = t ===
|
|
10084
|
+
let n = t === A.StaticChildren;
|
|
10085
10085
|
this.tokens.replaceToken(this.getJSXFuncInvocationCode(n));
|
|
10086
10086
|
let r = null;
|
|
10087
10087
|
if (this.tokens.matches1(a.jsxTagEnd)) this.tokens.replaceToken(`${this.getFragmentCode()}, {`), this.processAutomaticChildrenAndEndProps(t);
|
|
@@ -10136,7 +10136,7 @@ var z = class {
|
|
|
10136
10136
|
for (; this.tokens.tokens[e].isType || !this.tokens.matches2AtIndex(e - 1, a.jsxName, a.jsxName) && !this.tokens.matches2AtIndex(e - 1, a.greaterThan, a.jsxName) && !this.tokens.matches1AtIndex(e, a.braceL) && !this.tokens.matches1AtIndex(e, a.jsxTagEnd) && !this.tokens.matches2AtIndex(e, a.slash, a.jsxTagEnd);) e++;
|
|
10137
10137
|
if (e === this.tokens.currentIndex() + 1) {
|
|
10138
10138
|
let e = this.tokens.identifierName();
|
|
10139
|
-
|
|
10139
|
+
nt(e) && this.tokens.replaceToken(`'${e}'`);
|
|
10140
10140
|
}
|
|
10141
10141
|
for (; this.tokens.currentIndex() < e;) this.rootTransformer.processToken();
|
|
10142
10142
|
}
|
|
@@ -10172,11 +10172,11 @@ var z = class {
|
|
|
10172
10172
|
this.tokens.matches1(a.braceL) ? (this.tokens.replaceToken(""), this.rootTransformer.processBalancedCode(), this.tokens.replaceToken("")) : this.tokens.matches1(a.jsxTagStart) ? this.processJSXTag() : this.processStringPropValue();
|
|
10173
10173
|
}
|
|
10174
10174
|
processStringPropValue() {
|
|
10175
|
-
let e = this.tokens.currentToken(), t = this.tokens.code.slice(e.start + 1, e.end - 1), n =
|
|
10175
|
+
let e = this.tokens.currentToken(), t = this.tokens.code.slice(e.start + 1, e.end - 1), n = it(t), r = at(t);
|
|
10176
10176
|
this.tokens.replaceToken(r + n);
|
|
10177
10177
|
}
|
|
10178
10178
|
processAutomaticChildrenAndEndProps(e) {
|
|
10179
|
-
e ===
|
|
10179
|
+
e === A.StaticChildren ? (this.tokens.appendCode(" children: ["), this.processChildren(!1), this.tokens.appendCode("]}")) : (e === A.OneChild && this.tokens.appendCode(" children: "), this.processChildren(!1), this.tokens.appendCode("}"));
|
|
10180
10180
|
}
|
|
10181
10181
|
processChildren(e) {
|
|
10182
10182
|
let t = e;
|
|
@@ -10191,7 +10191,7 @@ var z = class {
|
|
|
10191
10191
|
}
|
|
10192
10192
|
}
|
|
10193
10193
|
processChildTextElement(e) {
|
|
10194
|
-
let t = this.tokens.currentToken(), n = this.tokens.code.slice(t.start, t.end), r =
|
|
10194
|
+
let t = this.tokens.currentToken(), n = this.tokens.code.slice(t.start, t.end), r = it(n), i = rt(n);
|
|
10195
10195
|
return i === "\"\"" ? (this.tokens.replaceToken(r), !1) : (this.tokens.replaceToken(`${e ? ", " : ""}${i}${r}`), !0);
|
|
10196
10196
|
}
|
|
10197
10197
|
getDevSource(e) {
|
|
@@ -10201,11 +10201,11 @@ var z = class {
|
|
|
10201
10201
|
return this.filenameVarName ||= this.nameManager.claimFreeName("_jsxFileName"), this.filenameVarName;
|
|
10202
10202
|
}
|
|
10203
10203
|
};
|
|
10204
|
-
function
|
|
10204
|
+
function nt(e) {
|
|
10205
10205
|
let t = e.charCodeAt(0);
|
|
10206
10206
|
return t >= u.lowercaseA && t <= u.lowercaseZ;
|
|
10207
10207
|
}
|
|
10208
|
-
function
|
|
10208
|
+
function rt(e) {
|
|
10209
10209
|
let t = "", n = "", r = !1, i = !1;
|
|
10210
10210
|
for (let a = 0; a < e.length; a++) {
|
|
10211
10211
|
let o = e[a];
|
|
@@ -10213,7 +10213,7 @@ function it(e) {
|
|
|
10213
10213
|
else if (o === "\n") n = "", r = !0;
|
|
10214
10214
|
else {
|
|
10215
10215
|
if (i && r && (t += " "), t += n, n = "", o === "&") {
|
|
10216
|
-
let { entity: n, newI: r } =
|
|
10216
|
+
let { entity: n, newI: r } = ot(e, a + 1);
|
|
10217
10217
|
a = r - 1, t += n;
|
|
10218
10218
|
} else t += o;
|
|
10219
10219
|
i = !0, r = !1;
|
|
@@ -10221,12 +10221,12 @@ function it(e) {
|
|
|
10221
10221
|
}
|
|
10222
10222
|
return r || (t += n), JSON.stringify(t);
|
|
10223
10223
|
}
|
|
10224
|
-
function
|
|
10224
|
+
function it(e) {
|
|
10225
10225
|
let t = 0, n = 0;
|
|
10226
10226
|
for (let r of e) r === "\n" ? (t++, n = 0) : r === " " && n++;
|
|
10227
10227
|
return "\n".repeat(t) + " ".repeat(n);
|
|
10228
10228
|
}
|
|
10229
|
-
function
|
|
10229
|
+
function at(e) {
|
|
10230
10230
|
let t = "";
|
|
10231
10231
|
for (let n = 0; n < e.length; n++) {
|
|
10232
10232
|
let r = e[n];
|
|
@@ -10234,20 +10234,20 @@ function ot(e) {
|
|
|
10234
10234
|
if (/\s/.test(e[n + 1])) for (t += " "; n < e.length && /\s/.test(e[n + 1]);) n++;
|
|
10235
10235
|
else t += "\n";
|
|
10236
10236
|
} else if (r === "&") {
|
|
10237
|
-
let { entity: r, newI: i } =
|
|
10237
|
+
let { entity: r, newI: i } = ot(e, n + 1);
|
|
10238
10238
|
t += r, n = i - 1;
|
|
10239
10239
|
} else t += r;
|
|
10240
10240
|
}
|
|
10241
10241
|
return JSON.stringify(t);
|
|
10242
10242
|
}
|
|
10243
|
-
function
|
|
10243
|
+
function ot(e, t) {
|
|
10244
10244
|
let n = "", r = 0, i, a = t;
|
|
10245
10245
|
if (e[a] === "#") {
|
|
10246
10246
|
let t = 10;
|
|
10247
10247
|
a++;
|
|
10248
10248
|
let n;
|
|
10249
|
-
if (e[a] === "x") for (t = 16, a++, n = a; a < e.length &&
|
|
10250
|
-
else for (n = a; a < e.length &&
|
|
10249
|
+
if (e[a] === "x") for (t = 16, a++, n = a; a < e.length && ct(e.charCodeAt(a));) a++;
|
|
10250
|
+
else for (n = a; a < e.length && st(e.charCodeAt(a));) a++;
|
|
10251
10251
|
if (e[a] === ";") {
|
|
10252
10252
|
let r = e.slice(n, a);
|
|
10253
10253
|
r && (a++, i = String.fromCodePoint(parseInt(r, t)));
|
|
@@ -10255,7 +10255,7 @@ function st(e, t) {
|
|
|
10255
10255
|
} else for (; a < e.length && r++ < 10;) {
|
|
10256
10256
|
let t = e[a];
|
|
10257
10257
|
if (a++, t === ";") {
|
|
10258
|
-
i =
|
|
10258
|
+
i = Qe.get(n);
|
|
10259
10259
|
break;
|
|
10260
10260
|
}
|
|
10261
10261
|
n += t;
|
|
@@ -10268,25 +10268,25 @@ function st(e, t) {
|
|
|
10268
10268
|
newI: t
|
|
10269
10269
|
};
|
|
10270
10270
|
}
|
|
10271
|
-
function
|
|
10271
|
+
function st(e) {
|
|
10272
10272
|
return e >= u.digit0 && e <= u.digit9;
|
|
10273
10273
|
}
|
|
10274
|
-
function
|
|
10274
|
+
function ct(e) {
|
|
10275
10275
|
return e >= u.digit0 && e <= u.digit9 || e >= u.lowercaseA && e <= u.lowercaseF || e >= u.uppercaseA && e <= u.uppercaseF;
|
|
10276
10276
|
}
|
|
10277
10277
|
//#endregion
|
|
10278
10278
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/util/getNonTypeIdentifiers.js
|
|
10279
|
-
function
|
|
10280
|
-
let n =
|
|
10279
|
+
function lt(e, t) {
|
|
10280
|
+
let n = $e(t), r = /* @__PURE__ */ new Set();
|
|
10281
10281
|
for (let t = 0; t < e.tokens.length; t++) {
|
|
10282
10282
|
let i = e.tokens[t];
|
|
10283
|
-
i.type === a.name && !i.isType && (i.identifierRole ===
|
|
10283
|
+
i.type === a.name && !i.isType && (i.identifierRole === k.Access || i.identifierRole === k.ObjectShorthand || i.identifierRole === k.ExportAccess) && !i.shadowsGlobal && r.add(e.identifierNameForToken(i)), i.type === a.jsxTagStart && r.add(n.base), i.type === a.jsxTagStart && t + 1 < e.tokens.length && e.tokens[t + 1].type === a.jsxTagEnd && (r.add(n.base), r.add(n.fragmentBase)), i.type === a.jsxName && i.identifierRole === k.Access && (!nt(e.identifierNameForToken(i)) || e.tokens[t + 1].type === a.dot) && r.add(e.identifierNameForToken(i));
|
|
10284
10284
|
}
|
|
10285
10285
|
return r;
|
|
10286
10286
|
}
|
|
10287
10287
|
//#endregion
|
|
10288
10288
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/CJSImportProcessor.js
|
|
10289
|
-
var
|
|
10289
|
+
var ut = class e {
|
|
10290
10290
|
__init() {
|
|
10291
10291
|
this.nonTypeIdentifiers = /* @__PURE__ */ new Set();
|
|
10292
10292
|
}
|
|
@@ -10310,7 +10310,7 @@ var dt = class e {
|
|
|
10310
10310
|
this.generateImportReplacements();
|
|
10311
10311
|
}
|
|
10312
10312
|
pruneTypeOnlyImports() {
|
|
10313
|
-
this.nonTypeIdentifiers =
|
|
10313
|
+
this.nonTypeIdentifiers = lt(this.tokens, this.options);
|
|
10314
10314
|
for (let [e, t] of this.importInfoByPath.entries()) t.hasBareImport || t.hasStarExport || t.exportStarNames.length > 0 || t.namedExports.length > 0 || [
|
|
10315
10315
|
...t.defaultNames,
|
|
10316
10316
|
...t.wildcardNames,
|
|
@@ -10379,7 +10379,7 @@ var dt = class e {
|
|
|
10379
10379
|
n = e - 1;
|
|
10380
10380
|
} else {
|
|
10381
10381
|
let e = this.tokens.tokens[n];
|
|
10382
|
-
if (
|
|
10382
|
+
if (fe(e)) {
|
|
10383
10383
|
let e = this.tokens.identifierNameAtIndex(n);
|
|
10384
10384
|
this.identifierReplacements.set(e, `exports.${e}`);
|
|
10385
10385
|
}
|
|
@@ -10410,7 +10410,7 @@ var dt = class e {
|
|
|
10410
10410
|
e++;
|
|
10411
10411
|
break;
|
|
10412
10412
|
}
|
|
10413
|
-
let n =
|
|
10413
|
+
let n = Xe(this.tokens, e);
|
|
10414
10414
|
if (e = n.endIndex, n.isType || t.push({
|
|
10415
10415
|
importedName: n.leftName,
|
|
10416
10416
|
localName: n.rightName
|
|
@@ -10461,48 +10461,48 @@ var dt = class e {
|
|
|
10461
10461
|
getGlobalNames() {
|
|
10462
10462
|
return /* @__PURE__ */ new Set([...this.identifierReplacements.keys(), ...this.exportBindingsByLocalName.keys()]);
|
|
10463
10463
|
}
|
|
10464
|
-
},
|
|
10465
|
-
for (let e = 0; e <
|
|
10466
|
-
let t =
|
|
10467
|
-
|
|
10464
|
+
}, dt = 44, ft = 59, pt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", mt = /* @__PURE__ */ new Uint8Array(64), ht = /* @__PURE__ */ new Uint8Array(128);
|
|
10465
|
+
for (let e = 0; e < pt.length; e++) {
|
|
10466
|
+
let t = pt.charCodeAt(e);
|
|
10467
|
+
mt[e] = t, ht[t] = e;
|
|
10468
10468
|
}
|
|
10469
|
-
function
|
|
10469
|
+
function gt(e, t) {
|
|
10470
10470
|
do {
|
|
10471
10471
|
let n = t & 31;
|
|
10472
|
-
t >>>= 5, t > 0 && (n |= 32), e.write(
|
|
10472
|
+
t >>>= 5, t > 0 && (n |= 32), e.write(mt[n]);
|
|
10473
10473
|
} while (t > 0);
|
|
10474
10474
|
}
|
|
10475
|
-
function
|
|
10475
|
+
function _t(e) {
|
|
10476
10476
|
return e < 0 ? -e << 1 | 1 : e << 1;
|
|
10477
10477
|
}
|
|
10478
|
-
var
|
|
10478
|
+
var vt = 16384, yt = typeof TextDecoder < "u" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer < "u" ? { decode(e) {
|
|
10479
10479
|
return Buffer.from(e.buffer, e.byteOffset, e.byteLength).toString();
|
|
10480
10480
|
} } : { decode(e) {
|
|
10481
10481
|
let t = "";
|
|
10482
10482
|
for (let n = 0; n < e.length; n++) t += String.fromCharCode(e[n]);
|
|
10483
10483
|
return t;
|
|
10484
|
-
} },
|
|
10484
|
+
} }, bt = class {
|
|
10485
10485
|
constructor() {
|
|
10486
|
-
this.pos = 0, this.out = "", this.buffer = new Uint8Array(
|
|
10486
|
+
this.pos = 0, this.out = "", this.buffer = new Uint8Array(vt);
|
|
10487
10487
|
}
|
|
10488
10488
|
write(e) {
|
|
10489
10489
|
let { buffer: t } = this;
|
|
10490
|
-
t[this.pos++] = e, this.pos ===
|
|
10490
|
+
t[this.pos++] = e, this.pos === vt && (this.out += yt.decode(t), this.pos = 0);
|
|
10491
10491
|
}
|
|
10492
10492
|
flush() {
|
|
10493
10493
|
let { buffer: e, out: t, pos: n } = this;
|
|
10494
|
-
return n > 0 ? t +
|
|
10494
|
+
return n > 0 ? t + yt.decode(e.subarray(0, n)) : t;
|
|
10495
10495
|
}
|
|
10496
10496
|
};
|
|
10497
|
-
function
|
|
10498
|
-
let t = new
|
|
10497
|
+
function xt(e) {
|
|
10498
|
+
let t = new bt(), n = 0, r = 0, i = 0, a = 0;
|
|
10499
10499
|
for (let o = 0; o < e.length; o++) {
|
|
10500
10500
|
let s = e[o];
|
|
10501
|
-
if (o > 0 && t.write(
|
|
10501
|
+
if (o > 0 && t.write(ft), s.length === 0) continue;
|
|
10502
10502
|
let c = 0;
|
|
10503
10503
|
for (let e = 0; e < s.length; e++) {
|
|
10504
10504
|
let o = s[e];
|
|
10505
|
-
e > 0 && t.write(
|
|
10505
|
+
e > 0 && t.write(dt), gt(t, _t(o[0] - c)), c = o[0], o.length !== 1 && (gt(t, _t(o[1] - n)), gt(t, _t(o[2] - r)), gt(t, _t(o[3] - i)), n = o[1], r = o[2], i = o[3], o.length !== 4 && (gt(t, _t(o[4] - a)), a = o[4]));
|
|
10506
10506
|
}
|
|
10507
10507
|
}
|
|
10508
10508
|
return t.flush();
|
|
@@ -10612,35 +10612,35 @@ function St(e) {
|
|
|
10612
10612
|
})))();
|
|
10613
10613
|
//#endregion
|
|
10614
10614
|
//#region node_modules/.pnpm/@jridgewell+gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs
|
|
10615
|
-
var
|
|
10615
|
+
var St = class {
|
|
10616
10616
|
constructor() {
|
|
10617
10617
|
this._indexes = { __proto__: null }, this.array = [];
|
|
10618
10618
|
}
|
|
10619
10619
|
};
|
|
10620
|
-
function
|
|
10620
|
+
function Ct(e) {
|
|
10621
10621
|
return e;
|
|
10622
10622
|
}
|
|
10623
|
-
function
|
|
10624
|
-
return
|
|
10623
|
+
function wt(e, t) {
|
|
10624
|
+
return Ct(e)._indexes[t];
|
|
10625
10625
|
}
|
|
10626
|
-
function
|
|
10627
|
-
let n =
|
|
10626
|
+
function Tt(e, t) {
|
|
10627
|
+
let n = wt(e, t);
|
|
10628
10628
|
if (n !== void 0) return n;
|
|
10629
|
-
let { array: r, _indexes: i } =
|
|
10629
|
+
let { array: r, _indexes: i } = Ct(e);
|
|
10630
10630
|
return i[t] = r.push(t) - 1;
|
|
10631
10631
|
}
|
|
10632
|
-
var
|
|
10632
|
+
var Et = 0, Dt = 1, Ot = 2, kt = 3, At = 4, jt = -1, Mt = class {
|
|
10633
10633
|
constructor({ file: e, sourceRoot: t } = {}) {
|
|
10634
|
-
this._names = new
|
|
10634
|
+
this._names = new St(), this._sources = new St(), this._sourcesContent = [], this._mappings = [], this.file = e, this.sourceRoot = t, this._ignoreList = new St();
|
|
10635
10635
|
}
|
|
10636
10636
|
};
|
|
10637
|
-
function
|
|
10637
|
+
function Nt(e) {
|
|
10638
10638
|
return e;
|
|
10639
10639
|
}
|
|
10640
|
-
var
|
|
10641
|
-
function
|
|
10642
|
-
let { _mappings: t, _sources: n, _sourcesContent: r, _names: i, _ignoreList: a } =
|
|
10643
|
-
return
|
|
10640
|
+
var Pt = (e, t, n, r, i, a, o, s) => Lt(!0, e, t, n, r, i, a, o, s);
|
|
10641
|
+
function Ft(e) {
|
|
10642
|
+
let { _mappings: t, _sources: n, _sourcesContent: r, _names: i, _ignoreList: a } = Nt(e);
|
|
10643
|
+
return Vt(t), {
|
|
10644
10644
|
version: 3,
|
|
10645
10645
|
file: e.file || void 0,
|
|
10646
10646
|
names: i.array,
|
|
@@ -10651,15 +10651,15 @@ function It(e) {
|
|
|
10651
10651
|
ignoreList: a.array
|
|
10652
10652
|
};
|
|
10653
10653
|
}
|
|
10654
|
-
function
|
|
10655
|
-
let t =
|
|
10656
|
-
return Object.assign({}, t, { mappings:
|
|
10657
|
-
}
|
|
10658
|
-
function
|
|
10659
|
-
let { _mappings: l, _sources: u, _sourcesContent: d, _names: f } =
|
|
10660
|
-
if (!i) return e &&
|
|
10661
|
-
let h =
|
|
10662
|
-
if (h === d.length && (d[h] = c ?? null), !(e &&
|
|
10654
|
+
function It(e) {
|
|
10655
|
+
let t = Ft(e);
|
|
10656
|
+
return Object.assign({}, t, { mappings: xt(t.mappings) });
|
|
10657
|
+
}
|
|
10658
|
+
function Lt(e, t, n, r, i, a, o, s, c) {
|
|
10659
|
+
let { _mappings: l, _sources: u, _sourcesContent: d, _names: f } = Nt(t), p = Rt(l, n), m = zt(p, r);
|
|
10660
|
+
if (!i) return e && Ht(p, m) ? void 0 : Bt(p, m, [r]);
|
|
10661
|
+
let h = Tt(u, i), ee = s ? Tt(f, s) : jt;
|
|
10662
|
+
if (h === d.length && (d[h] = c ?? null), !(e && Ut(p, m, h, a, o, ee))) return Bt(p, m, s ? [
|
|
10663
10663
|
r,
|
|
10664
10664
|
h,
|
|
10665
10665
|
a,
|
|
@@ -10672,57 +10672,57 @@ function Rt(e, t, n, r, i, a, o, s, c) {
|
|
|
10672
10672
|
o
|
|
10673
10673
|
]);
|
|
10674
10674
|
}
|
|
10675
|
-
function
|
|
10675
|
+
function Rt(e, t) {
|
|
10676
10676
|
for (let n = e.length; n <= t; n++) e[n] = [];
|
|
10677
10677
|
return e[t];
|
|
10678
10678
|
}
|
|
10679
|
-
function
|
|
10679
|
+
function zt(e, t) {
|
|
10680
10680
|
let n = e.length;
|
|
10681
|
-
for (let r = n - 1; r >= 0 && !(t >= e[r][
|
|
10681
|
+
for (let r = n - 1; r >= 0 && !(t >= e[r][Et]); n = r--);
|
|
10682
10682
|
return n;
|
|
10683
10683
|
}
|
|
10684
|
-
function
|
|
10684
|
+
function Bt(e, t, n) {
|
|
10685
10685
|
for (let n = e.length; n > t; n--) e[n] = e[n - 1];
|
|
10686
10686
|
e[t] = n;
|
|
10687
10687
|
}
|
|
10688
|
-
function
|
|
10688
|
+
function Vt(e) {
|
|
10689
10689
|
let { length: t } = e, n = t;
|
|
10690
10690
|
for (let t = n - 1; t >= 0 && !(e[t].length > 0); n = t, t--);
|
|
10691
10691
|
n < t && (e.length = n);
|
|
10692
10692
|
}
|
|
10693
|
-
function
|
|
10693
|
+
function Ht(e, t) {
|
|
10694
10694
|
return t === 0 || e[t - 1].length === 1;
|
|
10695
10695
|
}
|
|
10696
|
-
function
|
|
10696
|
+
function Ut(e, t, n, r, i, a) {
|
|
10697
10697
|
if (t === 0) return !1;
|
|
10698
10698
|
let o = e[t - 1];
|
|
10699
|
-
return o.length !== 1 && n === o[
|
|
10699
|
+
return o.length !== 1 && n === o[Dt] && r === o[Ot] && i === o[kt] && a === (o.length === 5 ? o[At] : jt);
|
|
10700
10700
|
}
|
|
10701
10701
|
//#endregion
|
|
10702
10702
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/computeSourceMap.js
|
|
10703
|
-
function
|
|
10704
|
-
let o =
|
|
10703
|
+
function Wt({ code: e, mappings: t }, n, r, i, a) {
|
|
10704
|
+
let o = Gt(i, a), s = new Mt({ file: r.compiledFilename }), c = 0, l = t[0];
|
|
10705
10705
|
for (; l === void 0 && c < t.length - 1;) c++, l = t[c];
|
|
10706
10706
|
let d = 0, f = 0;
|
|
10707
|
-
l !== f &&
|
|
10707
|
+
l !== f && Pt(s, d, 0, n, d, 0);
|
|
10708
10708
|
for (let r = 0; r < e.length; r++) {
|
|
10709
10709
|
if (r === l) {
|
|
10710
10710
|
let e = l - f, i = o[c];
|
|
10711
|
-
for (
|
|
10711
|
+
for (Pt(s, d, e, n, d, i); (l === r || l === void 0) && c < t.length - 1;) c++, l = t[c];
|
|
10712
10712
|
}
|
|
10713
|
-
e.charCodeAt(r) === u.lineFeed && (d++, f = r + 1, l !== f &&
|
|
10713
|
+
e.charCodeAt(r) === u.lineFeed && (d++, f = r + 1, l !== f && Pt(s, d, 0, n, d, 0));
|
|
10714
10714
|
}
|
|
10715
|
-
let { sourceRoot: p, sourcesContent: m, ...h } =
|
|
10715
|
+
let { sourceRoot: p, sourcesContent: m, ...h } = It(s);
|
|
10716
10716
|
return h;
|
|
10717
10717
|
}
|
|
10718
|
-
function
|
|
10718
|
+
function Gt(e, t) {
|
|
10719
10719
|
let n = Array(t.length), r = 0, i = t[r].start, a = 0;
|
|
10720
10720
|
for (let o = 0; o < e.length; o++) o === i && (n[r] = i - a, r++, i = t[r].start), e.charCodeAt(o) === u.lineFeed && (a = o + 1);
|
|
10721
10721
|
return n;
|
|
10722
10722
|
}
|
|
10723
10723
|
//#endregion
|
|
10724
10724
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/HelperManager.js
|
|
10725
|
-
var
|
|
10725
|
+
var Kt = {
|
|
10726
10726
|
require: "\n import {createRequire as CREATE_REQUIRE_NAME} from \"module\";\n const require = CREATE_REQUIRE_NAME(import.meta.url);\n ",
|
|
10727
10727
|
interopRequireWildcard: "\n function interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n newObj[key] = obj[key];\n }\n }\n }\n newObj.default = obj;\n return newObj;\n }\n }\n ",
|
|
10728
10728
|
interopRequireDefault: "\n function interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n }\n ",
|
|
@@ -10734,7 +10734,7 @@ var qt = {
|
|
|
10734
10734
|
asyncOptionalChain: "\n async function asyncOptionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = await fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = await fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n ",
|
|
10735
10735
|
optionalChainDelete: "\n function optionalChainDelete(ops) {\n const result = OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n ",
|
|
10736
10736
|
asyncOptionalChainDelete: "\n async function asyncOptionalChainDelete(ops) {\n const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n "
|
|
10737
|
-
},
|
|
10737
|
+
}, qt = class e {
|
|
10738
10738
|
__init() {
|
|
10739
10739
|
this.helperNames = {};
|
|
10740
10740
|
}
|
|
@@ -10751,7 +10751,7 @@ var qt = {
|
|
|
10751
10751
|
emitHelpers() {
|
|
10752
10752
|
let e = "";
|
|
10753
10753
|
this.helperNames.optionalChainDelete && this.getHelperName("optionalChain"), this.helperNames.asyncOptionalChainDelete && this.getHelperName("asyncOptionalChain");
|
|
10754
|
-
for (let [t, n] of Object.entries(
|
|
10754
|
+
for (let [t, n] of Object.entries(Kt)) {
|
|
10755
10755
|
let r = this.helperNames[t], i = n;
|
|
10756
10756
|
t === "optionalChainDelete" ? i = i.replace("OPTIONAL_CHAIN_NAME", this.helperNames.optionalChain) : t === "asyncOptionalChainDelete" ? i = i.replace("ASYNC_OPTIONAL_CHAIN_NAME", this.helperNames.asyncOptionalChain) : t === "require" && (this.createRequireName === null && (this.createRequireName = this.nameManager.claimFreeName("_createRequire")), i = i.replace(/CREATE_REQUIRE_NAME/g, this.createRequireName)), r && (e += " ", e += i.replace(t, r).replace(/\s+/g, " ").trim());
|
|
10757
10757
|
}
|
|
@@ -10760,14 +10760,14 @@ var qt = {
|
|
|
10760
10760
|
};
|
|
10761
10761
|
//#endregion
|
|
10762
10762
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/identifyShadowedGlobals.js
|
|
10763
|
-
function
|
|
10764
|
-
|
|
10763
|
+
function Jt(e, t, n) {
|
|
10764
|
+
Yt(e, n) && Xt(e, t, n);
|
|
10765
10765
|
}
|
|
10766
|
-
function
|
|
10767
|
-
for (let n of e.tokens) if (n.type === a.name && !n.isType &&
|
|
10766
|
+
function Yt(e, t) {
|
|
10767
|
+
for (let n of e.tokens) if (n.type === a.name && !n.isType && pe(n) && t.has(e.identifierNameForToken(n))) return !0;
|
|
10768
10768
|
return !1;
|
|
10769
10769
|
}
|
|
10770
|
-
function
|
|
10770
|
+
function Xt(e, t, n) {
|
|
10771
10771
|
let r = [], i = t.length - 1;
|
|
10772
10772
|
for (let o = e.tokens.length - 1;; o--) {
|
|
10773
10773
|
for (; r.length > 0 && r[r.length - 1].startTokenIndex === o + 1;) r.pop();
|
|
@@ -10775,18 +10775,18 @@ function Zt(e, t, n) {
|
|
|
10775
10775
|
if (o < 0) break;
|
|
10776
10776
|
let s = e.tokens[o], c = e.identifierNameForToken(s);
|
|
10777
10777
|
if (r.length > 1 && !s.isType && s.type === a.name && n.has(c)) {
|
|
10778
|
-
if (
|
|
10779
|
-
else if (
|
|
10778
|
+
if (he(s)) Zt(r[r.length - 1], e, c);
|
|
10779
|
+
else if (ge(s)) {
|
|
10780
10780
|
let t = r.length - 1;
|
|
10781
10781
|
for (; t > 0 && !r[t].isFunctionScope;) t--;
|
|
10782
10782
|
if (t < 0) throw Error("Did not find parent function scope.");
|
|
10783
|
-
|
|
10783
|
+
Zt(r[t], e, c);
|
|
10784
10784
|
}
|
|
10785
10785
|
}
|
|
10786
10786
|
}
|
|
10787
10787
|
if (r.length > 0) throw Error("Expected empty scope stack after processing file.");
|
|
10788
10788
|
}
|
|
10789
|
-
function
|
|
10789
|
+
function Zt(e, t, n) {
|
|
10790
10790
|
for (let r = e.startTokenIndex; r < e.endTokenIndex; r++) {
|
|
10791
10791
|
let e = t.tokens[r];
|
|
10792
10792
|
(e.type === a.name || e.type === a.jsxName) && t.identifierNameForToken(e) === n && (e.shadowsGlobal = !0);
|
|
@@ -10794,19 +10794,19 @@ function Qt(e, t, n) {
|
|
|
10794
10794
|
}
|
|
10795
10795
|
//#endregion
|
|
10796
10796
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/util/getIdentifierNames.js
|
|
10797
|
-
function
|
|
10797
|
+
function Qt(e, t) {
|
|
10798
10798
|
let n = [];
|
|
10799
10799
|
for (let r of t) r.type === a.name && n.push(e.slice(r.start, r.end));
|
|
10800
10800
|
return n;
|
|
10801
10801
|
}
|
|
10802
10802
|
//#endregion
|
|
10803
10803
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/NameManager.js
|
|
10804
|
-
var
|
|
10804
|
+
var $t = class e {
|
|
10805
10805
|
__init() {
|
|
10806
10806
|
this.usedNames = /* @__PURE__ */ new Set();
|
|
10807
10807
|
}
|
|
10808
10808
|
constructor(t, n) {
|
|
10809
|
-
e.prototype.__init.call(this), this.usedNames = new Set(
|
|
10809
|
+
e.prototype.__init.call(this), this.usedNames = new Set(Qt(t, n));
|
|
10810
10810
|
}
|
|
10811
10811
|
claimFreeName(e) {
|
|
10812
10812
|
let t = this.findFreeName(e);
|
|
@@ -10818,7 +10818,7 @@ var en = class e {
|
|
|
10818
10818
|
for (; this.usedNames.has(e + String(t));) t++;
|
|
10819
10819
|
return e + String(t);
|
|
10820
10820
|
}
|
|
10821
|
-
},
|
|
10821
|
+
}, en = /* @__PURE__ */ t(((e) => {
|
|
10822
10822
|
var t = e && e.__extends || (function() {
|
|
10823
10823
|
var e = function(t, n) {
|
|
10824
10824
|
return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
@@ -10900,7 +10900,7 @@ var en = class e {
|
|
|
10900
10900
|
return this.contexts.push(e), e;
|
|
10901
10901
|
}, e;
|
|
10902
10902
|
}();
|
|
10903
|
-
})),
|
|
10903
|
+
})), tn = /* @__PURE__ */ t(((e) => {
|
|
10904
10904
|
var t = e && e.__extends || (function() {
|
|
10905
10905
|
var e = function(t, n) {
|
|
10906
10906
|
return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
@@ -10918,7 +10918,7 @@ var en = class e {
|
|
|
10918
10918
|
};
|
|
10919
10919
|
})();
|
|
10920
10920
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.basicTypes = e.BasicType = e.TParamList = e.TParam = e.param = e.TFunc = e.func = e.TProp = e.TOptional = e.opt = e.TIface = e.iface = e.TEnumLiteral = e.enumlit = e.TEnumType = e.enumtype = e.TIntersection = e.intersection = e.TUnion = e.union = e.TTuple = e.tuple = e.TArray = e.array = e.TLiteral = e.lit = e.TName = e.name = e.TType = void 0;
|
|
10921
|
-
var n =
|
|
10921
|
+
var n = en(), r = function() {
|
|
10922
10922
|
function e() {}
|
|
10923
10923
|
return e;
|
|
10924
10924
|
}();
|
|
@@ -10943,7 +10943,7 @@ var en = class e {
|
|
|
10943
10943
|
}
|
|
10944
10944
|
return n.prototype.getChecker = function(e, t, r) {
|
|
10945
10945
|
var i = this, o = a(e, this.name), s = o.getChecker(e, t, r);
|
|
10946
|
-
return o instanceof
|
|
10946
|
+
return o instanceof E || o instanceof n ? s : function(e, t) {
|
|
10947
10947
|
return s(e, t) ? !0 : t.fail(null, i._failMsg, 0);
|
|
10948
10948
|
};
|
|
10949
10949
|
}, n;
|
|
@@ -11043,12 +11043,12 @@ var en = class e {
|
|
|
11043
11043
|
}(r);
|
|
11044
11044
|
e.TUnion = h;
|
|
11045
11045
|
function ee() {
|
|
11046
|
-
return new
|
|
11046
|
+
return new g([...arguments].map(function(e) {
|
|
11047
11047
|
return i(e);
|
|
11048
11048
|
}));
|
|
11049
11049
|
}
|
|
11050
11050
|
e.intersection = ee;
|
|
11051
|
-
var
|
|
11051
|
+
var g = function(e) {
|
|
11052
11052
|
t(n, e);
|
|
11053
11053
|
function n(t) {
|
|
11054
11054
|
var n = e.call(this) || this;
|
|
@@ -11065,12 +11065,12 @@ var en = class e {
|
|
|
11065
11065
|
};
|
|
11066
11066
|
}, n;
|
|
11067
11067
|
}(r);
|
|
11068
|
-
e.TIntersection =
|
|
11069
|
-
function
|
|
11070
|
-
return new
|
|
11068
|
+
e.TIntersection = g;
|
|
11069
|
+
function te(e) {
|
|
11070
|
+
return new ne(e);
|
|
11071
11071
|
}
|
|
11072
|
-
e.enumtype =
|
|
11073
|
-
var
|
|
11072
|
+
e.enumtype = te;
|
|
11073
|
+
var ne = function(e) {
|
|
11074
11074
|
t(n, e);
|
|
11075
11075
|
function n(t) {
|
|
11076
11076
|
var n = e.call(this) || this;
|
|
@@ -11085,12 +11085,12 @@ var en = class e {
|
|
|
11085
11085
|
};
|
|
11086
11086
|
}, n;
|
|
11087
11087
|
}(r);
|
|
11088
|
-
e.TEnumType =
|
|
11089
|
-
function
|
|
11090
|
-
return new
|
|
11088
|
+
e.TEnumType = ne;
|
|
11089
|
+
function re(e, t) {
|
|
11090
|
+
return new ie(e, t);
|
|
11091
11091
|
}
|
|
11092
|
-
e.enumlit =
|
|
11093
|
-
var
|
|
11092
|
+
e.enumlit = re;
|
|
11093
|
+
var ie = function(e) {
|
|
11094
11094
|
t(n, e);
|
|
11095
11095
|
function n(t, n) {
|
|
11096
11096
|
var r = e.call(this) || this;
|
|
@@ -11098,7 +11098,7 @@ var en = class e {
|
|
|
11098
11098
|
}
|
|
11099
11099
|
return n.prototype.getChecker = function(e, t) {
|
|
11100
11100
|
var n = this, r = a(e, this.enumName);
|
|
11101
|
-
if (!(r instanceof
|
|
11101
|
+
if (!(r instanceof ne)) throw Error("Type " + this.enumName + " used in enumlit is not an enum type");
|
|
11102
11102
|
var i = r.members[this.prop];
|
|
11103
11103
|
if (!r.members.hasOwnProperty(this.prop)) throw Error("Unknown value " + this.enumName + "." + this.prop + " used in enumlit");
|
|
11104
11104
|
return function(e, t) {
|
|
@@ -11106,20 +11106,20 @@ var en = class e {
|
|
|
11106
11106
|
};
|
|
11107
11107
|
}, n;
|
|
11108
11108
|
}(r);
|
|
11109
|
-
e.TEnumLiteral =
|
|
11110
|
-
function
|
|
11109
|
+
e.TEnumLiteral = ie;
|
|
11110
|
+
function _(e) {
|
|
11111
11111
|
return Object.keys(e).map(function(t) {
|
|
11112
|
-
return
|
|
11112
|
+
return ae(t, e[t]);
|
|
11113
11113
|
});
|
|
11114
11114
|
}
|
|
11115
|
-
function
|
|
11116
|
-
return t instanceof
|
|
11115
|
+
function ae(e, t) {
|
|
11116
|
+
return t instanceof x ? new oe(e, t.ttype, !0) : new oe(e, i(t), !1);
|
|
11117
11117
|
}
|
|
11118
|
-
function
|
|
11119
|
-
return new
|
|
11118
|
+
function v(e, t) {
|
|
11119
|
+
return new y(e, _(t));
|
|
11120
11120
|
}
|
|
11121
|
-
e.iface =
|
|
11122
|
-
var
|
|
11121
|
+
e.iface = v;
|
|
11122
|
+
var y = function(e) {
|
|
11123
11123
|
t(r, e);
|
|
11124
11124
|
function r(t, n) {
|
|
11125
11125
|
var r = e.call(this) || this;
|
|
@@ -11156,12 +11156,12 @@ var en = class e {
|
|
|
11156
11156
|
};
|
|
11157
11157
|
}, r;
|
|
11158
11158
|
}(r);
|
|
11159
|
-
e.TIface =
|
|
11160
|
-
function
|
|
11161
|
-
return new
|
|
11159
|
+
e.TIface = y;
|
|
11160
|
+
function b(e) {
|
|
11161
|
+
return new x(i(e));
|
|
11162
11162
|
}
|
|
11163
|
-
e.opt =
|
|
11164
|
-
var
|
|
11163
|
+
e.opt = b;
|
|
11164
|
+
var x = function(e) {
|
|
11165
11165
|
t(n, e);
|
|
11166
11166
|
function n(t) {
|
|
11167
11167
|
var n = e.call(this) || this;
|
|
@@ -11174,19 +11174,19 @@ var en = class e {
|
|
|
11174
11174
|
};
|
|
11175
11175
|
}, n;
|
|
11176
11176
|
}(r);
|
|
11177
|
-
e.TOptional =
|
|
11178
|
-
var
|
|
11177
|
+
e.TOptional = x;
|
|
11178
|
+
var oe = function() {
|
|
11179
11179
|
function e(e, t, n) {
|
|
11180
11180
|
this.name = e, this.ttype = t, this.isOpt = n;
|
|
11181
11181
|
}
|
|
11182
11182
|
return e;
|
|
11183
11183
|
}();
|
|
11184
|
-
e.TProp =
|
|
11185
|
-
function
|
|
11186
|
-
return new
|
|
11184
|
+
e.TProp = oe;
|
|
11185
|
+
function S(e) {
|
|
11186
|
+
return new C(new se([...arguments].slice(1)), i(e));
|
|
11187
11187
|
}
|
|
11188
|
-
e.func =
|
|
11189
|
-
var
|
|
11188
|
+
e.func = S;
|
|
11189
|
+
var C = function(e) {
|
|
11190
11190
|
t(n, e);
|
|
11191
11191
|
function n(t, n) {
|
|
11192
11192
|
var r = e.call(this) || this;
|
|
@@ -11198,19 +11198,19 @@ var en = class e {
|
|
|
11198
11198
|
};
|
|
11199
11199
|
}, n;
|
|
11200
11200
|
}(r);
|
|
11201
|
-
e.TFunc =
|
|
11202
|
-
function
|
|
11203
|
-
return new
|
|
11201
|
+
e.TFunc = C;
|
|
11202
|
+
function w(e, t, n) {
|
|
11203
|
+
return new T(e, i(t), !!n);
|
|
11204
11204
|
}
|
|
11205
|
-
e.param =
|
|
11206
|
-
var
|
|
11205
|
+
e.param = w;
|
|
11206
|
+
var T = function() {
|
|
11207
11207
|
function e(e, t, n) {
|
|
11208
11208
|
this.name = e, this.ttype = t, this.isOpt = n;
|
|
11209
11209
|
}
|
|
11210
11210
|
return e;
|
|
11211
11211
|
}();
|
|
11212
|
-
e.TParam =
|
|
11213
|
-
var
|
|
11212
|
+
e.TParam = T;
|
|
11213
|
+
var se = function(e) {
|
|
11214
11214
|
t(r, e);
|
|
11215
11215
|
function r(t) {
|
|
11216
11216
|
var n = e.call(this) || this;
|
|
@@ -11236,8 +11236,8 @@ var en = class e {
|
|
|
11236
11236
|
} : s;
|
|
11237
11237
|
}, r;
|
|
11238
11238
|
}(r);
|
|
11239
|
-
e.TParamList =
|
|
11240
|
-
var
|
|
11239
|
+
e.TParamList = se;
|
|
11240
|
+
var E = function(e) {
|
|
11241
11241
|
t(n, e);
|
|
11242
11242
|
function n(t, n) {
|
|
11243
11243
|
var r = e.call(this) || this;
|
|
@@ -11250,54 +11250,54 @@ var en = class e {
|
|
|
11250
11250
|
};
|
|
11251
11251
|
}, n;
|
|
11252
11252
|
}(r);
|
|
11253
|
-
e.BasicType =
|
|
11254
|
-
any: new
|
|
11253
|
+
e.BasicType = E, e.basicTypes = {
|
|
11254
|
+
any: new E(function(e) {
|
|
11255
11255
|
return !0;
|
|
11256
11256
|
}, "is invalid"),
|
|
11257
|
-
number: new
|
|
11257
|
+
number: new E(function(e) {
|
|
11258
11258
|
return typeof e == "number";
|
|
11259
11259
|
}, "is not a number"),
|
|
11260
|
-
object: new
|
|
11260
|
+
object: new E(function(e) {
|
|
11261
11261
|
return typeof e == "object" && e;
|
|
11262
11262
|
}, "is not an object"),
|
|
11263
|
-
boolean: new
|
|
11263
|
+
boolean: new E(function(e) {
|
|
11264
11264
|
return typeof e == "boolean";
|
|
11265
11265
|
}, "is not a boolean"),
|
|
11266
|
-
string: new
|
|
11266
|
+
string: new E(function(e) {
|
|
11267
11267
|
return typeof e == "string";
|
|
11268
11268
|
}, "is not a string"),
|
|
11269
|
-
symbol: new
|
|
11269
|
+
symbol: new E(function(e) {
|
|
11270
11270
|
return typeof e == "symbol";
|
|
11271
11271
|
}, "is not a symbol"),
|
|
11272
|
-
void: new
|
|
11272
|
+
void: new E(function(e) {
|
|
11273
11273
|
return e == null;
|
|
11274
11274
|
}, "is not void"),
|
|
11275
|
-
undefined: new
|
|
11275
|
+
undefined: new E(function(e) {
|
|
11276
11276
|
return e === void 0;
|
|
11277
11277
|
}, "is not undefined"),
|
|
11278
|
-
null: new
|
|
11278
|
+
null: new E(function(e) {
|
|
11279
11279
|
return e === null;
|
|
11280
11280
|
}, "is not null"),
|
|
11281
|
-
never: new
|
|
11281
|
+
never: new E(function(e) {
|
|
11282
11282
|
return !1;
|
|
11283
11283
|
}, "is unexpected"),
|
|
11284
|
-
Date: new
|
|
11285
|
-
RegExp: new
|
|
11284
|
+
Date: new E(le("[object Date]"), "is not a Date"),
|
|
11285
|
+
RegExp: new E(le("[object RegExp]"), "is not a RegExp")
|
|
11286
11286
|
};
|
|
11287
|
-
var
|
|
11288
|
-
function
|
|
11287
|
+
var ce = Object.prototype.toString;
|
|
11288
|
+
function le(e) {
|
|
11289
11289
|
return function(t) {
|
|
11290
|
-
return typeof t == "object" && t &&
|
|
11290
|
+
return typeof t == "object" && t && ce.call(t) === e;
|
|
11291
11291
|
};
|
|
11292
11292
|
}
|
|
11293
|
-
typeof Buffer < "u" && (e.basicTypes.Buffer = new
|
|
11293
|
+
typeof Buffer < "u" && (e.basicTypes.Buffer = new E(function(e) {
|
|
11294
11294
|
return Buffer.isBuffer(e);
|
|
11295
11295
|
}, "is not a Buffer"));
|
|
11296
|
-
for (var
|
|
11297
|
-
e.basicTypes[t.name] = new
|
|
11296
|
+
for (var D = function(t) {
|
|
11297
|
+
e.basicTypes[t.name] = new E(function(e) {
|
|
11298
11298
|
return e instanceof t;
|
|
11299
11299
|
}, "is not a " + t.name);
|
|
11300
|
-
},
|
|
11300
|
+
}, O = 0, ue = [
|
|
11301
11301
|
Int8Array,
|
|
11302
11302
|
Uint8Array,
|
|
11303
11303
|
Uint8ClampedArray,
|
|
@@ -11308,18 +11308,18 @@ var en = class e {
|
|
|
11308
11308
|
Float32Array,
|
|
11309
11309
|
Float64Array,
|
|
11310
11310
|
ArrayBuffer
|
|
11311
|
-
];
|
|
11312
|
-
var
|
|
11313
|
-
|
|
11311
|
+
]; O < ue.length; O++) {
|
|
11312
|
+
var de = ue[O];
|
|
11313
|
+
D(de);
|
|
11314
11314
|
}
|
|
11315
|
-
})),
|
|
11315
|
+
})), V = /* @__PURE__ */ e((/* @__PURE__ */ t(((e) => {
|
|
11316
11316
|
var t = e && e.__spreadArrays || function() {
|
|
11317
11317
|
for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
|
|
11318
11318
|
for (var r = Array(e), i = 0, t = 0; t < n; t++) for (var a = arguments[t], o = 0, s = a.length; o < s; o++, i++) r[i] = a[o];
|
|
11319
11319
|
return r;
|
|
11320
11320
|
};
|
|
11321
11321
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.Checker = e.createCheckers = void 0;
|
|
11322
|
-
var n =
|
|
11322
|
+
var n = tn(), r = en(), i = tn();
|
|
11323
11323
|
Object.defineProperty(e, "TArray", {
|
|
11324
11324
|
enumerable: !0,
|
|
11325
11325
|
get: function() {
|
|
@@ -11461,7 +11461,7 @@ var en = class e {
|
|
|
11461
11461
|
return i.BasicType;
|
|
11462
11462
|
}
|
|
11463
11463
|
});
|
|
11464
|
-
var a =
|
|
11464
|
+
var a = en();
|
|
11465
11465
|
Object.defineProperty(e, "VError", {
|
|
11466
11466
|
enumerable: !0,
|
|
11467
11467
|
get: function() {
|
|
@@ -11533,114 +11533,114 @@ var en = class e {
|
|
|
11533
11533
|
}, e;
|
|
11534
11534
|
}();
|
|
11535
11535
|
e.Checker = s;
|
|
11536
|
-
})))()),
|
|
11537
|
-
Transform:
|
|
11538
|
-
SourceMapOptions:
|
|
11539
|
-
Options:
|
|
11540
|
-
transforms:
|
|
11541
|
-
disableESTransforms:
|
|
11542
|
-
jsxRuntime:
|
|
11543
|
-
production:
|
|
11544
|
-
jsxImportSource:
|
|
11545
|
-
jsxPragma:
|
|
11546
|
-
jsxFragmentPragma:
|
|
11547
|
-
keepUnusedImports:
|
|
11548
|
-
preserveDynamicImport:
|
|
11549
|
-
injectCreateRequireForImportRequire:
|
|
11550
|
-
enableLegacyTypeScriptModuleInterop:
|
|
11551
|
-
enableLegacyBabel5ModuleInterop:
|
|
11552
|
-
sourceMapOptions:
|
|
11553
|
-
filePath:
|
|
11536
|
+
})))()), nn = {
|
|
11537
|
+
Transform: V.union(V.lit("jsx"), V.lit("typescript"), V.lit("flow"), V.lit("imports"), V.lit("react-hot-loader"), V.lit("jest")),
|
|
11538
|
+
SourceMapOptions: V.iface([], { compiledFilename: "string" }),
|
|
11539
|
+
Options: V.iface([], {
|
|
11540
|
+
transforms: V.array("Transform"),
|
|
11541
|
+
disableESTransforms: V.opt("boolean"),
|
|
11542
|
+
jsxRuntime: V.opt(V.union(V.lit("classic"), V.lit("automatic"), V.lit("preserve"))),
|
|
11543
|
+
production: V.opt("boolean"),
|
|
11544
|
+
jsxImportSource: V.opt("string"),
|
|
11545
|
+
jsxPragma: V.opt("string"),
|
|
11546
|
+
jsxFragmentPragma: V.opt("string"),
|
|
11547
|
+
keepUnusedImports: V.opt("boolean"),
|
|
11548
|
+
preserveDynamicImport: V.opt("boolean"),
|
|
11549
|
+
injectCreateRequireForImportRequire: V.opt("boolean"),
|
|
11550
|
+
enableLegacyTypeScriptModuleInterop: V.opt("boolean"),
|
|
11551
|
+
enableLegacyBabel5ModuleInterop: V.opt("boolean"),
|
|
11552
|
+
sourceMapOptions: V.opt("SourceMapOptions"),
|
|
11553
|
+
filePath: V.opt("string")
|
|
11554
11554
|
})
|
|
11555
|
-
}, { Options:
|
|
11556
|
-
function
|
|
11557
|
-
|
|
11555
|
+
}, { Options: rn } = (0, V.createCheckers)(nn);
|
|
11556
|
+
function an(e) {
|
|
11557
|
+
rn.strictCheck(e);
|
|
11558
11558
|
}
|
|
11559
11559
|
//#endregion
|
|
11560
11560
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/parser/traverser/lval.js
|
|
11561
|
-
function
|
|
11562
|
-
|
|
11561
|
+
function on() {
|
|
11562
|
+
j(), G(!1);
|
|
11563
11563
|
}
|
|
11564
|
-
function
|
|
11565
|
-
|
|
11564
|
+
function sn(e) {
|
|
11565
|
+
j(), dn(e);
|
|
11566
11566
|
}
|
|
11567
|
-
function
|
|
11568
|
-
J(),
|
|
11567
|
+
function cn(e) {
|
|
11568
|
+
J(), un(e);
|
|
11569
11569
|
}
|
|
11570
|
-
function
|
|
11571
|
-
J(), m.tokens[m.tokens.length - 1].identifierRole =
|
|
11570
|
+
function ln() {
|
|
11571
|
+
J(), m.tokens[m.tokens.length - 1].identifierRole = k.ImportDeclaration;
|
|
11572
11572
|
}
|
|
11573
|
-
function
|
|
11573
|
+
function un(e) {
|
|
11574
11574
|
let t;
|
|
11575
|
-
t = m.scopeDepth === 0 ?
|
|
11575
|
+
t = m.scopeDepth === 0 ? k.TopLevelDeclaration : e ? k.BlockScopedDeclaration : k.FunctionScopedDeclaration, m.tokens[m.tokens.length - 1].identifierRole = t;
|
|
11576
11576
|
}
|
|
11577
|
-
function
|
|
11577
|
+
function dn(e) {
|
|
11578
11578
|
switch (m.type) {
|
|
11579
11579
|
case a._this: {
|
|
11580
|
-
let e =
|
|
11581
|
-
|
|
11580
|
+
let e = N(0);
|
|
11581
|
+
j(), P(e);
|
|
11582
11582
|
return;
|
|
11583
11583
|
}
|
|
11584
11584
|
case a._yield:
|
|
11585
11585
|
case a.name:
|
|
11586
|
-
m.type = a.name,
|
|
11586
|
+
m.type = a.name, cn(e);
|
|
11587
11587
|
return;
|
|
11588
11588
|
case a.bracketL:
|
|
11589
|
-
|
|
11589
|
+
j(), fn(a.bracketR, e, !0);
|
|
11590
11590
|
return;
|
|
11591
11591
|
case a.braceL:
|
|
11592
11592
|
Ji(!0, e);
|
|
11593
11593
|
return;
|
|
11594
|
-
default:
|
|
11594
|
+
default: T();
|
|
11595
11595
|
}
|
|
11596
11596
|
}
|
|
11597
|
-
function
|
|
11597
|
+
function fn(e, t, n = !1, r = !1, i = 0) {
|
|
11598
11598
|
let o = !0, s = !1, c = m.tokens.length;
|
|
11599
|
-
for (; !
|
|
11600
|
-
if (
|
|
11601
|
-
if (
|
|
11602
|
-
|
|
11599
|
+
for (; !F(e) && !m.error;) if (o ? o = !1 : (w(a.comma), m.tokens[m.tokens.length - 1].contextId = i, !s && m.tokens[c].isType && (m.tokens[m.tokens.length - 1].isType = !0, s = !0)), !(n && I(a.comma))) {
|
|
11600
|
+
if (F(e)) break;
|
|
11601
|
+
if (I(a.ellipsis)) {
|
|
11602
|
+
sn(t), mn(), F(a.comma), w(e);
|
|
11603
11603
|
break;
|
|
11604
11604
|
}
|
|
11605
|
-
|
|
11605
|
+
pn(r, t);
|
|
11606
11606
|
}
|
|
11607
11607
|
}
|
|
11608
|
-
function
|
|
11609
|
-
e &&
|
|
11608
|
+
function pn(e, t) {
|
|
11609
|
+
e && yn([
|
|
11610
11610
|
i._public,
|
|
11611
11611
|
i._protected,
|
|
11612
11612
|
i._private,
|
|
11613
11613
|
i._readonly,
|
|
11614
11614
|
i._override
|
|
11615
|
-
]),
|
|
11615
|
+
]), hn(t), mn(), hn(t, !0);
|
|
11616
11616
|
}
|
|
11617
|
-
function
|
|
11618
|
-
p ? mo() : f &&
|
|
11617
|
+
function mn() {
|
|
11618
|
+
p ? mo() : f && ri();
|
|
11619
11619
|
}
|
|
11620
|
-
function
|
|
11621
|
-
if (t ||
|
|
11620
|
+
function hn(e, t = !1) {
|
|
11621
|
+
if (t || dn(e), !F(a.eq)) return;
|
|
11622
11622
|
let n = m.tokens.length - 1;
|
|
11623
|
-
|
|
11623
|
+
G(), m.tokens[n].rhsEndIndex = m.tokens.length;
|
|
11624
11624
|
}
|
|
11625
11625
|
//#endregion
|
|
11626
11626
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/parser/plugins/typescript.js
|
|
11627
|
+
function gn() {
|
|
11628
|
+
return I(a.name);
|
|
11629
|
+
}
|
|
11627
11630
|
function _n() {
|
|
11628
|
-
return
|
|
11631
|
+
return I(a.name) || !!(m.type & a.IS_KEYWORD) || I(a.string) || I(a.num) || I(a.bigint) || I(a.decimal);
|
|
11629
11632
|
}
|
|
11630
11633
|
function vn() {
|
|
11631
|
-
return F(a.name) || !!(m.type & a.IS_KEYWORD) || F(a.string) || F(a.num) || F(a.bigint) || F(a.decimal);
|
|
11632
|
-
}
|
|
11633
|
-
function yn() {
|
|
11634
11634
|
let e = m.snapshot();
|
|
11635
|
-
return
|
|
11635
|
+
return j(), (I(a.bracketL) || I(a.braceL) || I(a.star) || I(a.ellipsis) || I(a.hash) || _n()) && !x() ? !0 : (m.restoreFromSnapshot(e), !1);
|
|
11636
11636
|
}
|
|
11637
|
-
function
|
|
11638
|
-
for (;
|
|
11637
|
+
function yn(e) {
|
|
11638
|
+
for (; bn(e) !== null;);
|
|
11639
11639
|
}
|
|
11640
|
-
function
|
|
11641
|
-
if (!
|
|
11640
|
+
function bn(e) {
|
|
11641
|
+
if (!I(a.name)) return null;
|
|
11642
11642
|
let t = m.contextualKeyword;
|
|
11643
|
-
if (e.indexOf(t) !== -1 &&
|
|
11643
|
+
if (e.indexOf(t) !== -1 && vn()) {
|
|
11644
11644
|
switch (t) {
|
|
11645
11645
|
case i._readonly:
|
|
11646
11646
|
m.tokens[m.tokens.length - 1].type = a._readonly;
|
|
@@ -11669,125 +11669,125 @@ function xn(e) {
|
|
|
11669
11669
|
}
|
|
11670
11670
|
return null;
|
|
11671
11671
|
}
|
|
11672
|
+
function xn() {
|
|
11673
|
+
for (J(); F(a.dot);) J();
|
|
11674
|
+
}
|
|
11672
11675
|
function Sn() {
|
|
11673
|
-
|
|
11676
|
+
xn(), !x() && I(a.lessThan) && Ir();
|
|
11674
11677
|
}
|
|
11675
11678
|
function Cn() {
|
|
11676
|
-
|
|
11679
|
+
j(), dr();
|
|
11677
11680
|
}
|
|
11678
11681
|
function wn() {
|
|
11679
|
-
|
|
11682
|
+
j();
|
|
11680
11683
|
}
|
|
11681
11684
|
function Tn() {
|
|
11682
|
-
|
|
11685
|
+
w(a._typeof), I(a._import) ? En() : xn(), !x() && I(a.lessThan) && Ir();
|
|
11683
11686
|
}
|
|
11684
11687
|
function En() {
|
|
11685
|
-
|
|
11688
|
+
w(a._import), w(a.parenL), w(a.string), w(a.parenR), F(a.dot) && xn(), I(a.lessThan) && Ir();
|
|
11686
11689
|
}
|
|
11687
11690
|
function Dn() {
|
|
11688
|
-
|
|
11691
|
+
F(a._const);
|
|
11692
|
+
let e = F(a._in), t = v(i._out);
|
|
11693
|
+
F(a._const), (e || t) && !I(a.name) ? m.tokens[m.tokens.length - 1].type = a.name : J(), F(a._extends) && H(), F(a.eq) && H();
|
|
11689
11694
|
}
|
|
11690
11695
|
function On() {
|
|
11691
|
-
|
|
11692
|
-
let e = P(a._in), t = _(i._out);
|
|
11693
|
-
P(a._const), (e || t) && !F(a.name) ? m.tokens[m.tokens.length - 1].type = a.name : J(), P(a._extends) && V(), P(a.eq) && V();
|
|
11696
|
+
I(a.lessThan) && kn();
|
|
11694
11697
|
}
|
|
11695
11698
|
function kn() {
|
|
11696
|
-
|
|
11699
|
+
let e = N(0);
|
|
11700
|
+
for (I(a.lessThan) || I(a.typeParameterStart) ? j() : T(); !F(a.greaterThan) && !m.error;) Dn(), F(a.comma);
|
|
11701
|
+
P(e);
|
|
11697
11702
|
}
|
|
11698
|
-
function An() {
|
|
11699
|
-
let
|
|
11700
|
-
|
|
11701
|
-
N(e);
|
|
11703
|
+
function An(e) {
|
|
11704
|
+
let t = e === a.arrow;
|
|
11705
|
+
On(), w(a.parenL), m.scopeDepth++, jn(!1), m.scopeDepth--, (t || I(e)) && or(e);
|
|
11702
11706
|
}
|
|
11703
11707
|
function jn(e) {
|
|
11704
|
-
|
|
11705
|
-
kn(), C(a.parenL), m.scopeDepth++, Mn(!1), m.scopeDepth--, (t || F(e)) && sr(e);
|
|
11708
|
+
fn(a.parenR, e);
|
|
11706
11709
|
}
|
|
11707
|
-
function Mn(
|
|
11708
|
-
|
|
11710
|
+
function Mn() {
|
|
11711
|
+
F(a.comma) || C();
|
|
11709
11712
|
}
|
|
11710
11713
|
function Nn() {
|
|
11711
|
-
|
|
11714
|
+
An(a.colon), Mn();
|
|
11712
11715
|
}
|
|
11713
11716
|
function Pn() {
|
|
11714
|
-
jn(a.colon), Nn();
|
|
11715
|
-
}
|
|
11716
|
-
function Fn() {
|
|
11717
11717
|
let e = m.snapshot();
|
|
11718
|
-
|
|
11719
|
-
let t =
|
|
11718
|
+
j();
|
|
11719
|
+
let t = F(a.name) && I(a.colon);
|
|
11720
11720
|
return m.restoreFromSnapshot(e), t;
|
|
11721
11721
|
}
|
|
11722
|
-
function
|
|
11723
|
-
if (!(
|
|
11724
|
-
let e =
|
|
11725
|
-
return
|
|
11722
|
+
function Fn() {
|
|
11723
|
+
if (!(I(a.bracketL) && Pn())) return !1;
|
|
11724
|
+
let e = N(0);
|
|
11725
|
+
return w(a.bracketL), J(), dr(), w(a.bracketR), cr(), Mn(), P(e), !0;
|
|
11726
11726
|
}
|
|
11727
|
-
function
|
|
11728
|
-
|
|
11727
|
+
function In(e) {
|
|
11728
|
+
F(a.question), !e && (I(a.parenL) || I(a.lessThan)) ? (An(a.colon), Mn()) : (cr(), Mn());
|
|
11729
11729
|
}
|
|
11730
|
-
function
|
|
11731
|
-
if (
|
|
11732
|
-
|
|
11730
|
+
function Ln() {
|
|
11731
|
+
if (I(a.parenL) || I(a.lessThan)) {
|
|
11732
|
+
Nn();
|
|
11733
11733
|
return;
|
|
11734
11734
|
}
|
|
11735
|
-
if (
|
|
11736
|
-
|
|
11735
|
+
if (I(a._new)) {
|
|
11736
|
+
j(), I(a.parenL) || I(a.lessThan) ? Nn() : In(!1);
|
|
11737
11737
|
return;
|
|
11738
11738
|
}
|
|
11739
|
-
let e = !!
|
|
11740
|
-
|
|
11739
|
+
let e = !!bn([i._readonly]);
|
|
11740
|
+
Fn() || ((_(i._get) || _(i._set)) && vn(), $i(-1), In(e));
|
|
11741
|
+
}
|
|
11742
|
+
function Rn() {
|
|
11743
|
+
zn();
|
|
11741
11744
|
}
|
|
11742
11745
|
function zn() {
|
|
11743
|
-
|
|
11746
|
+
for (w(a.braceL); !F(a.braceR) && !m.error;) Ln();
|
|
11744
11747
|
}
|
|
11745
11748
|
function Bn() {
|
|
11746
|
-
|
|
11749
|
+
let e = m.snapshot(), t = Vn();
|
|
11750
|
+
return m.restoreFromSnapshot(e), t;
|
|
11747
11751
|
}
|
|
11748
11752
|
function Vn() {
|
|
11749
|
-
|
|
11750
|
-
return m.restoreFromSnapshot(e), t;
|
|
11753
|
+
return j(), F(a.plus) || F(a.minus) ? _(i._readonly) : (_(i._readonly) && j(), !I(a.bracketL) || (j(), !gn()) ? !1 : (j(), I(a._in)));
|
|
11751
11754
|
}
|
|
11752
11755
|
function Hn() {
|
|
11753
|
-
|
|
11756
|
+
J(), w(a._in), H();
|
|
11754
11757
|
}
|
|
11755
11758
|
function Un() {
|
|
11756
|
-
|
|
11759
|
+
w(a.braceL), I(a.plus) || I(a.minus) ? (j(), y(i._readonly)) : v(i._readonly), w(a.bracketL), Hn(), v(i._as) && H(), w(a.bracketR), I(a.plus) || I(a.minus) ? (j(), w(a.question)) : F(a.question), lr(), C(), w(a.braceR);
|
|
11757
11760
|
}
|
|
11758
11761
|
function Wn() {
|
|
11759
|
-
|
|
11762
|
+
for (w(a.bracketL); !F(a.bracketR) && !m.error;) Gn(), F(a.comma);
|
|
11760
11763
|
}
|
|
11761
11764
|
function Gn() {
|
|
11762
|
-
|
|
11765
|
+
F(a.ellipsis) ? H() : (H(), F(a.question)), F(a.colon) && H();
|
|
11763
11766
|
}
|
|
11764
11767
|
function Kn() {
|
|
11765
|
-
|
|
11768
|
+
w(a.parenL), H(), w(a.parenR);
|
|
11766
11769
|
}
|
|
11767
11770
|
function qn() {
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
function Jn() {
|
|
11771
|
-
for (j(), j(); !F(a.backQuote) && !m.error;) C(a.dollarBraceL), V(), j(), j();
|
|
11772
|
-
A();
|
|
11771
|
+
for (M(), M(); !I(a.backQuote) && !m.error;) w(a.dollarBraceL), H(), M(), M();
|
|
11772
|
+
j();
|
|
11773
11773
|
}
|
|
11774
|
-
var
|
|
11774
|
+
var Jn;
|
|
11775
11775
|
(function(e) {
|
|
11776
11776
|
e[e.TSFunctionType = 0] = "TSFunctionType", e[e.TSConstructorType = 1] = "TSConstructorType", e[e.TSAbstractConstructorType = 2] = "TSAbstractConstructorType";
|
|
11777
|
-
})(
|
|
11778
|
-
function
|
|
11779
|
-
e ===
|
|
11777
|
+
})(Jn ||= {});
|
|
11778
|
+
function Yn(e) {
|
|
11779
|
+
e === Jn.TSAbstractConstructorType && y(i._abstract), (e === Jn.TSConstructorType || e === Jn.TSAbstractConstructorType) && w(a._new);
|
|
11780
11780
|
let t = m.inDisallowConditionalTypesContext;
|
|
11781
|
-
m.inDisallowConditionalTypesContext = !1,
|
|
11781
|
+
m.inDisallowConditionalTypesContext = !1, An(a.arrow), m.inDisallowConditionalTypesContext = t;
|
|
11782
11782
|
}
|
|
11783
|
-
function
|
|
11783
|
+
function Xn() {
|
|
11784
11784
|
switch (m.type) {
|
|
11785
11785
|
case a.name:
|
|
11786
|
-
|
|
11786
|
+
Sn();
|
|
11787
11787
|
return;
|
|
11788
11788
|
case a._void:
|
|
11789
11789
|
case a._null:
|
|
11790
|
-
|
|
11790
|
+
j();
|
|
11791
11791
|
return;
|
|
11792
11792
|
case a.string:
|
|
11793
11793
|
case a.num:
|
|
@@ -11798,268 +11798,268 @@ function Zn() {
|
|
|
11798
11798
|
zi();
|
|
11799
11799
|
return;
|
|
11800
11800
|
case a.minus:
|
|
11801
|
-
|
|
11801
|
+
j(), zi();
|
|
11802
11802
|
return;
|
|
11803
11803
|
case a._this:
|
|
11804
|
-
|
|
11804
|
+
wn(), _(i._is) && !x() && Cn();
|
|
11805
11805
|
return;
|
|
11806
11806
|
case a._typeof:
|
|
11807
|
-
|
|
11807
|
+
Tn();
|
|
11808
11808
|
return;
|
|
11809
11809
|
case a._import:
|
|
11810
|
-
|
|
11810
|
+
En();
|
|
11811
11811
|
return;
|
|
11812
11812
|
case a.braceL:
|
|
11813
|
-
|
|
11813
|
+
Bn() ? Un() : Rn();
|
|
11814
11814
|
return;
|
|
11815
11815
|
case a.bracketL:
|
|
11816
|
-
|
|
11816
|
+
Wn();
|
|
11817
11817
|
return;
|
|
11818
11818
|
case a.parenL:
|
|
11819
|
-
|
|
11819
|
+
Kn();
|
|
11820
11820
|
return;
|
|
11821
11821
|
case a.backQuote:
|
|
11822
|
-
|
|
11822
|
+
qn();
|
|
11823
11823
|
return;
|
|
11824
11824
|
default: if (m.type & a.IS_KEYWORD) {
|
|
11825
|
-
|
|
11825
|
+
j(), m.tokens[m.tokens.length - 1].type = a.name;
|
|
11826
11826
|
return;
|
|
11827
11827
|
}
|
|
11828
11828
|
}
|
|
11829
|
-
|
|
11829
|
+
T();
|
|
11830
11830
|
}
|
|
11831
|
-
function
|
|
11832
|
-
for (
|
|
11831
|
+
function Zn() {
|
|
11832
|
+
for (Xn(); !x() && F(a.bracketL);) F(a.bracketR) || (H(), w(a.bracketR));
|
|
11833
11833
|
}
|
|
11834
|
-
function
|
|
11835
|
-
if (
|
|
11834
|
+
function Qn() {
|
|
11835
|
+
if (y(i._infer), J(), I(a._extends)) {
|
|
11836
11836
|
let e = m.snapshot();
|
|
11837
|
-
|
|
11837
|
+
w(a._extends);
|
|
11838
11838
|
let t = m.inDisallowConditionalTypesContext;
|
|
11839
|
-
m.inDisallowConditionalTypesContext = !0,
|
|
11839
|
+
m.inDisallowConditionalTypesContext = !0, H(), m.inDisallowConditionalTypesContext = t, (m.error || !m.inDisallowConditionalTypesContext && I(a.question)) && m.restoreFromSnapshot(e);
|
|
11840
11840
|
}
|
|
11841
11841
|
}
|
|
11842
|
-
function
|
|
11843
|
-
if (
|
|
11844
|
-
else if (
|
|
11842
|
+
function $n() {
|
|
11843
|
+
if (_(i._keyof) || _(i._unique) || _(i._readonly)) j(), $n();
|
|
11844
|
+
else if (_(i._infer)) Qn();
|
|
11845
11845
|
else {
|
|
11846
11846
|
let e = m.inDisallowConditionalTypesContext;
|
|
11847
|
-
m.inDisallowConditionalTypesContext = !1,
|
|
11847
|
+
m.inDisallowConditionalTypesContext = !1, Zn(), m.inDisallowConditionalTypesContext = e;
|
|
11848
11848
|
}
|
|
11849
11849
|
}
|
|
11850
|
+
function er() {
|
|
11851
|
+
if (F(a.bitwiseAND), $n(), I(a.bitwiseAND)) for (; F(a.bitwiseAND);) $n();
|
|
11852
|
+
}
|
|
11850
11853
|
function tr() {
|
|
11851
|
-
if (
|
|
11854
|
+
if (F(a.bitwiseOR), er(), I(a.bitwiseOR)) for (; F(a.bitwiseOR);) er();
|
|
11852
11855
|
}
|
|
11853
11856
|
function nr() {
|
|
11854
|
-
|
|
11857
|
+
return I(a.lessThan) ? !0 : I(a.parenL) && ir();
|
|
11855
11858
|
}
|
|
11856
11859
|
function rr() {
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
function ir() {
|
|
11860
|
-
if (F(a.name) || F(a._this)) return A(), !0;
|
|
11861
|
-
if (F(a.braceL) || F(a.bracketL)) {
|
|
11860
|
+
if (I(a.name) || I(a._this)) return j(), !0;
|
|
11861
|
+
if (I(a.braceL) || I(a.bracketL)) {
|
|
11862
11862
|
let e = 1;
|
|
11863
|
-
for (
|
|
11863
|
+
for (j(); e > 0 && !m.error;) I(a.braceL) || I(a.bracketL) ? e++ : (I(a.braceR) || I(a.bracketR)) && e--, j();
|
|
11864
11864
|
return !0;
|
|
11865
11865
|
}
|
|
11866
11866
|
return !1;
|
|
11867
11867
|
}
|
|
11868
|
-
function
|
|
11869
|
-
let e = m.snapshot(), t =
|
|
11868
|
+
function ir() {
|
|
11869
|
+
let e = m.snapshot(), t = ar();
|
|
11870
11870
|
return m.restoreFromSnapshot(e), t;
|
|
11871
11871
|
}
|
|
11872
|
-
function
|
|
11873
|
-
return
|
|
11872
|
+
function ar() {
|
|
11873
|
+
return j(), !!(I(a.parenR) || I(a.ellipsis) || rr() && (I(a.colon) || I(a.comma) || I(a.question) || I(a.eq) || I(a.parenR) && (j(), I(a.arrow))));
|
|
11874
|
+
}
|
|
11875
|
+
function or(e) {
|
|
11876
|
+
let t = N(0);
|
|
11877
|
+
w(e), ur() || H(), P(t);
|
|
11874
11878
|
}
|
|
11875
|
-
function sr(
|
|
11876
|
-
|
|
11877
|
-
C(e), dr() || V(), N(t);
|
|
11879
|
+
function sr() {
|
|
11880
|
+
I(a.colon) && or(a.colon);
|
|
11878
11881
|
}
|
|
11879
11882
|
function cr() {
|
|
11880
|
-
|
|
11883
|
+
I(a.colon) && dr();
|
|
11881
11884
|
}
|
|
11882
11885
|
function lr() {
|
|
11883
|
-
F(a.colon) &&
|
|
11886
|
+
F(a.colon) && H();
|
|
11884
11887
|
}
|
|
11885
11888
|
function ur() {
|
|
11886
|
-
P(a.colon) && V();
|
|
11887
|
-
}
|
|
11888
|
-
function dr() {
|
|
11889
11889
|
let e = m.snapshot();
|
|
11890
|
-
return
|
|
11890
|
+
return _(i._asserts) ? (j(), v(i._is) ? (H(), !0) : gn() || I(a._this) ? (j(), v(i._is) && H(), !0) : (m.restoreFromSnapshot(e), !1)) : gn() || I(a._this) ? (j(), _(i._is) && !x() ? (j(), H(), !0) : (m.restoreFromSnapshot(e), !1)) : !1;
|
|
11891
11891
|
}
|
|
11892
|
-
function
|
|
11893
|
-
let e =
|
|
11894
|
-
|
|
11892
|
+
function dr() {
|
|
11893
|
+
let e = N(0);
|
|
11894
|
+
w(a.colon), H(), P(e);
|
|
11895
11895
|
}
|
|
11896
|
-
function
|
|
11897
|
-
if (
|
|
11896
|
+
function H() {
|
|
11897
|
+
if (pr(), m.inDisallowConditionalTypesContext || x() || !F(a._extends)) return;
|
|
11898
11898
|
let e = m.inDisallowConditionalTypesContext;
|
|
11899
|
-
m.inDisallowConditionalTypesContext = !0,
|
|
11899
|
+
m.inDisallowConditionalTypesContext = !0, pr(), m.inDisallowConditionalTypesContext = e, w(a.question), H(), w(a.colon), H();
|
|
11900
|
+
}
|
|
11901
|
+
function fr() {
|
|
11902
|
+
return _(i._abstract) && L() === a._new;
|
|
11900
11903
|
}
|
|
11901
11904
|
function pr() {
|
|
11902
|
-
|
|
11905
|
+
nr() ? Yn(Jn.TSFunctionType) : I(a._new) ? Yn(Jn.TSConstructorType) : fr() ? Yn(Jn.TSAbstractConstructorType) : tr();
|
|
11903
11906
|
}
|
|
11904
11907
|
function mr() {
|
|
11905
|
-
|
|
11908
|
+
let e = N(1);
|
|
11909
|
+
H(), w(a.greaterThan), P(e), Ei();
|
|
11906
11910
|
}
|
|
11907
11911
|
function hr() {
|
|
11908
|
-
|
|
11909
|
-
V(), C(a.greaterThan), N(e), Di();
|
|
11910
|
-
}
|
|
11911
|
-
function gr() {
|
|
11912
|
-
if (P(a.jsxTagStart)) {
|
|
11912
|
+
if (F(a.jsxTagStart)) {
|
|
11913
11913
|
m.tokens[m.tokens.length - 1].type = a.typeParameterStart;
|
|
11914
|
-
let e =
|
|
11915
|
-
for (; !
|
|
11916
|
-
|
|
11914
|
+
let e = N(1);
|
|
11915
|
+
for (; !I(a.greaterThan) && !m.error;) H(), F(a.comma);
|
|
11916
|
+
U(), P(e);
|
|
11917
11917
|
}
|
|
11918
11918
|
}
|
|
11919
|
+
function gr() {
|
|
11920
|
+
for (; !I(a.braceL) && !m.error;) _r(), F(a.comma);
|
|
11921
|
+
}
|
|
11919
11922
|
function _r() {
|
|
11920
|
-
|
|
11923
|
+
xn(), I(a.lessThan) && Ir();
|
|
11921
11924
|
}
|
|
11922
11925
|
function vr() {
|
|
11923
|
-
|
|
11926
|
+
cn(!1), On(), F(a._extends) && gr(), zn();
|
|
11924
11927
|
}
|
|
11925
11928
|
function yr() {
|
|
11926
|
-
|
|
11929
|
+
cn(!1), On(), w(a.eq), H(), C();
|
|
11927
11930
|
}
|
|
11928
11931
|
function br() {
|
|
11929
|
-
|
|
11930
|
-
}
|
|
11931
|
-
function xr() {
|
|
11932
|
-
if (F(a.string) ? zi() : J(), P(a.eq)) {
|
|
11932
|
+
if (I(a.string) ? zi() : J(), F(a.eq)) {
|
|
11933
11933
|
let e = m.tokens.length - 1;
|
|
11934
|
-
|
|
11934
|
+
G(), m.tokens[e].rhsEndIndex = m.tokens.length;
|
|
11935
11935
|
}
|
|
11936
11936
|
}
|
|
11937
|
+
function xr() {
|
|
11938
|
+
for (cn(!1), w(a.braceL); !F(a.braceR) && !m.error;) br(), F(a.comma);
|
|
11939
|
+
}
|
|
11937
11940
|
function Sr() {
|
|
11938
|
-
|
|
11941
|
+
w(a.braceL), es(a.braceR);
|
|
11939
11942
|
}
|
|
11940
11943
|
function Cr() {
|
|
11941
|
-
|
|
11944
|
+
cn(!1), F(a.dot) ? Cr() : Sr();
|
|
11942
11945
|
}
|
|
11943
11946
|
function wr() {
|
|
11944
|
-
|
|
11947
|
+
_(i._global) ? J() : I(a.string) ? Ii() : T(), I(a.braceL) ? Sr() : C();
|
|
11945
11948
|
}
|
|
11946
11949
|
function Tr() {
|
|
11947
|
-
|
|
11950
|
+
ln(), w(a.eq), Dr(), C();
|
|
11948
11951
|
}
|
|
11949
11952
|
function Er() {
|
|
11950
|
-
|
|
11953
|
+
return _(i._require) && L() === a.parenL;
|
|
11951
11954
|
}
|
|
11952
11955
|
function Dr() {
|
|
11953
|
-
|
|
11956
|
+
Er() ? Or() : xn();
|
|
11954
11957
|
}
|
|
11955
11958
|
function Or() {
|
|
11956
|
-
|
|
11959
|
+
y(i._require), w(a.parenL), I(a.string) || T(), zi(), w(a.parenR);
|
|
11957
11960
|
}
|
|
11958
11961
|
function kr() {
|
|
11959
|
-
|
|
11960
|
-
}
|
|
11961
|
-
function Ar() {
|
|
11962
|
-
if (x()) return !1;
|
|
11962
|
+
if (S()) return !1;
|
|
11963
11963
|
switch (m.type) {
|
|
11964
11964
|
case a._function: {
|
|
11965
|
-
let e =
|
|
11966
|
-
|
|
11965
|
+
let e = N(1);
|
|
11966
|
+
j();
|
|
11967
11967
|
let t = m.start;
|
|
11968
|
-
return as(t, !0),
|
|
11968
|
+
return as(t, !0), P(e), !0;
|
|
11969
11969
|
}
|
|
11970
11970
|
case a._class: {
|
|
11971
|
-
let e =
|
|
11972
|
-
return ss(!0, !1),
|
|
11971
|
+
let e = N(1);
|
|
11972
|
+
return ss(!0, !1), P(e), !0;
|
|
11973
11973
|
}
|
|
11974
|
-
case a._const: if (
|
|
11975
|
-
let e =
|
|
11976
|
-
return
|
|
11974
|
+
case a._const: if (I(a._const) && ae(i._enum)) {
|
|
11975
|
+
let e = N(1);
|
|
11976
|
+
return w(a._const), y(i._enum), m.tokens[m.tokens.length - 1].type = a._enum, xr(), P(e), !0;
|
|
11977
11977
|
}
|
|
11978
11978
|
case a._var:
|
|
11979
11979
|
case a._let: {
|
|
11980
|
-
let e =
|
|
11981
|
-
return Jo(m.type !== a._var),
|
|
11980
|
+
let e = N(1);
|
|
11981
|
+
return Jo(m.type !== a._var), P(e), !0;
|
|
11982
11982
|
}
|
|
11983
11983
|
case a.name: {
|
|
11984
|
-
let e =
|
|
11985
|
-
return t === i._global ? (
|
|
11984
|
+
let e = N(1), t = m.contextualKeyword, n = !1;
|
|
11985
|
+
return t === i._global ? (wr(), n = !0) : n = Mr(t, !0), P(e), n;
|
|
11986
11986
|
}
|
|
11987
11987
|
default: return !1;
|
|
11988
11988
|
}
|
|
11989
11989
|
}
|
|
11990
|
-
function
|
|
11991
|
-
return
|
|
11990
|
+
function Ar() {
|
|
11991
|
+
return Mr(m.contextualKeyword, !0);
|
|
11992
11992
|
}
|
|
11993
|
-
function
|
|
11993
|
+
function jr(e) {
|
|
11994
11994
|
switch (e) {
|
|
11995
11995
|
case i._declare: {
|
|
11996
11996
|
let e = m.tokens.length - 1;
|
|
11997
|
-
if (
|
|
11997
|
+
if (kr()) return m.tokens[e].type = a._declare, !0;
|
|
11998
11998
|
break;
|
|
11999
11999
|
}
|
|
12000
12000
|
case i._global:
|
|
12001
|
-
if (
|
|
12001
|
+
if (I(a.braceL)) return Sr(), !0;
|
|
12002
12002
|
break;
|
|
12003
|
-
default: return
|
|
12003
|
+
default: return Mr(e, !1);
|
|
12004
12004
|
}
|
|
12005
12005
|
return !1;
|
|
12006
12006
|
}
|
|
12007
|
-
function
|
|
12007
|
+
function Mr(e, t) {
|
|
12008
12008
|
switch (e) {
|
|
12009
12009
|
case i._abstract:
|
|
12010
|
-
if (
|
|
12010
|
+
if (Nr(t) && I(a._class)) return m.tokens[m.tokens.length - 1].type = a._abstract, ss(!0, !1), !0;
|
|
12011
12011
|
break;
|
|
12012
12012
|
case i._enum:
|
|
12013
|
-
if (
|
|
12013
|
+
if (Nr(t) && I(a.name)) return m.tokens[m.tokens.length - 1].type = a._enum, xr(), !0;
|
|
12014
12014
|
break;
|
|
12015
12015
|
case i._interface:
|
|
12016
|
-
if (
|
|
12017
|
-
let e =
|
|
12018
|
-
return
|
|
12016
|
+
if (Nr(t) && I(a.name)) {
|
|
12017
|
+
let e = N(t ? 2 : 1);
|
|
12018
|
+
return vr(), P(e), !0;
|
|
12019
12019
|
}
|
|
12020
12020
|
break;
|
|
12021
12021
|
case i._module:
|
|
12022
|
-
if (
|
|
12023
|
-
if (
|
|
12024
|
-
let e =
|
|
12025
|
-
return
|
|
12022
|
+
if (Nr(t)) {
|
|
12023
|
+
if (I(a.string)) {
|
|
12024
|
+
let e = N(t ? 2 : 1);
|
|
12025
|
+
return wr(), P(e), !0;
|
|
12026
12026
|
}
|
|
12027
|
-
if (
|
|
12028
|
-
let e =
|
|
12029
|
-
return
|
|
12027
|
+
if (I(a.name)) {
|
|
12028
|
+
let e = N(t ? 2 : 1);
|
|
12029
|
+
return Cr(), P(e), !0;
|
|
12030
12030
|
}
|
|
12031
12031
|
}
|
|
12032
12032
|
break;
|
|
12033
12033
|
case i._namespace:
|
|
12034
|
-
if (
|
|
12035
|
-
let e =
|
|
12036
|
-
return
|
|
12034
|
+
if (Nr(t) && I(a.name)) {
|
|
12035
|
+
let e = N(t ? 2 : 1);
|
|
12036
|
+
return Cr(), P(e), !0;
|
|
12037
12037
|
}
|
|
12038
12038
|
break;
|
|
12039
|
-
case i._type: if (
|
|
12040
|
-
let e =
|
|
12041
|
-
return
|
|
12039
|
+
case i._type: if (Nr(t) && I(a.name)) {
|
|
12040
|
+
let e = N(t ? 2 : 1);
|
|
12041
|
+
return yr(), P(e), !0;
|
|
12042
12042
|
}
|
|
12043
12043
|
}
|
|
12044
12044
|
return !1;
|
|
12045
12045
|
}
|
|
12046
|
-
function
|
|
12047
|
-
return e ? (
|
|
12046
|
+
function Nr(e) {
|
|
12047
|
+
return e ? (j(), !0) : !S();
|
|
12048
12048
|
}
|
|
12049
|
-
function
|
|
12049
|
+
function Pr() {
|
|
12050
12050
|
let e = m.snapshot();
|
|
12051
|
-
return
|
|
12051
|
+
return kn(), os(), sr(), w(a.arrow), m.error ? (m.restoreFromSnapshot(e), !1) : (ra(!0), !0);
|
|
12052
|
+
}
|
|
12053
|
+
function Fr() {
|
|
12054
|
+
m.type === a.bitShiftL && (--m.pos, R(a.lessThan)), Ir();
|
|
12052
12055
|
}
|
|
12053
12056
|
function Ir() {
|
|
12054
|
-
|
|
12057
|
+
let e = N(0);
|
|
12058
|
+
for (w(a.lessThan); !I(a.greaterThan) && !m.error;) H(), F(a.comma);
|
|
12059
|
+
e ? (w(a.greaterThan), P(e)) : (P(e), ze(), w(a.greaterThan), m.tokens[m.tokens.length - 1].isType = !0);
|
|
12055
12060
|
}
|
|
12056
12061
|
function Lr() {
|
|
12057
|
-
|
|
12058
|
-
for (C(a.lessThan); !F(a.greaterThan) && !m.error;) V(), P(a.comma);
|
|
12059
|
-
e ? (C(a.greaterThan), N(e)) : (N(e), Be(), C(a.greaterThan), m.tokens[m.tokens.length - 1].isType = !0);
|
|
12060
|
-
}
|
|
12061
|
-
function Rr() {
|
|
12062
|
-
if (F(a.name)) switch (m.contextualKeyword) {
|
|
12062
|
+
if (I(a.name)) switch (m.contextualKeyword) {
|
|
12063
12063
|
case i._abstract:
|
|
12064
12064
|
case i._declare:
|
|
12065
12065
|
case i._enum:
|
|
@@ -12070,58 +12070,58 @@ function Rr() {
|
|
|
12070
12070
|
}
|
|
12071
12071
|
return !1;
|
|
12072
12072
|
}
|
|
12073
|
-
function
|
|
12074
|
-
if (
|
|
12073
|
+
function Rr(e, t) {
|
|
12074
|
+
if (I(a.colon) && or(a.colon), !I(a.braceL) && S()) {
|
|
12075
12075
|
let t = m.tokens.length - 1;
|
|
12076
12076
|
for (; t >= 0 && (m.tokens[t].start >= e || m.tokens[t].type === a._default || m.tokens[t].type === a._export);) m.tokens[t].isType = !0, t--;
|
|
12077
12077
|
} else ra(!1, t);
|
|
12078
12078
|
}
|
|
12079
|
-
function
|
|
12080
|
-
if (!
|
|
12079
|
+
function zr(e, t, n) {
|
|
12080
|
+
if (!x() && F(a.bang)) m.tokens[m.tokens.length - 1].type = a.nonNullAssertion;
|
|
12081
12081
|
else {
|
|
12082
|
-
if (
|
|
12082
|
+
if (I(a.lessThan) || I(a.bitShiftL)) {
|
|
12083
12083
|
let n = m.snapshot();
|
|
12084
|
-
if (!t &&
|
|
12085
|
-
if (
|
|
12084
|
+
if (!t && Mi() && Pr()) return;
|
|
12085
|
+
if (Fr(), !t && F(a.parenL) ? (m.tokens[m.tokens.length - 1].subscriptStartIndex = e, q()) : I(a.backQuote) ? qi() : (m.type === a.greaterThan || m.type !== a.parenL && m.type & a.IS_EXPRESSION_START && !x()) && T(), m.error) m.restoreFromSnapshot(n);
|
|
12086
12086
|
else return;
|
|
12087
|
-
} else !t &&
|
|
12088
|
-
|
|
12087
|
+
} else !t && I(a.questionDot) && L() === a.lessThan && (j(), m.tokens[e].isOptionalChainStart = !0, m.tokens[m.tokens.length - 1].subscriptStartIndex = e, Ir(), w(a.parenL), q());
|
|
12088
|
+
ji(e, t, n);
|
|
12089
12089
|
}
|
|
12090
12090
|
}
|
|
12091
|
-
function
|
|
12092
|
-
if (
|
|
12093
|
-
if (
|
|
12094
|
-
if (
|
|
12095
|
-
if (
|
|
12096
|
-
let e =
|
|
12097
|
-
(e === a.braceL || e === a.star) &&
|
|
12091
|
+
function Br() {
|
|
12092
|
+
if (F(a._import)) return _(i._type) && L() !== a.eq && y(i._type), Tr(), !0;
|
|
12093
|
+
if (F(a.eq)) return W(), C(), !0;
|
|
12094
|
+
if (v(i._as)) return y(i._namespace), J(), C(), !0;
|
|
12095
|
+
if (_(i._type)) {
|
|
12096
|
+
let e = L();
|
|
12097
|
+
(e === a.braceL || e === a.star) && j();
|
|
12098
12098
|
}
|
|
12099
12099
|
return !1;
|
|
12100
12100
|
}
|
|
12101
|
+
function Vr() {
|
|
12102
|
+
J(), I(a.comma) || I(a.braceR) ? m.tokens[m.tokens.length - 1].identifierRole = k.ImportDeclaration : (J(), I(a.comma) || I(a.braceR) ? (m.tokens[m.tokens.length - 1].identifierRole = k.ImportDeclaration, m.tokens[m.tokens.length - 2].isType = !0, m.tokens[m.tokens.length - 1].isType = !0) : (J(), I(a.comma) || I(a.braceR) ? (m.tokens[m.tokens.length - 3].identifierRole = k.ImportAccess, m.tokens[m.tokens.length - 1].identifierRole = k.ImportDeclaration) : (J(), m.tokens[m.tokens.length - 3].identifierRole = k.ImportAccess, m.tokens[m.tokens.length - 1].identifierRole = k.ImportDeclaration, m.tokens[m.tokens.length - 4].isType = !0, m.tokens[m.tokens.length - 3].isType = !0, m.tokens[m.tokens.length - 2].isType = !0, m.tokens[m.tokens.length - 1].isType = !0)));
|
|
12103
|
+
}
|
|
12101
12104
|
function Hr() {
|
|
12102
|
-
J(),
|
|
12105
|
+
J(), I(a.comma) || I(a.braceR) ? m.tokens[m.tokens.length - 1].identifierRole = k.ExportAccess : (J(), I(a.comma) || I(a.braceR) ? (m.tokens[m.tokens.length - 1].identifierRole = k.ExportAccess, m.tokens[m.tokens.length - 2].isType = !0, m.tokens[m.tokens.length - 1].isType = !0) : (J(), I(a.comma) || I(a.braceR) ? m.tokens[m.tokens.length - 3].identifierRole = k.ExportAccess : (J(), m.tokens[m.tokens.length - 3].identifierRole = k.ExportAccess, m.tokens[m.tokens.length - 4].isType = !0, m.tokens[m.tokens.length - 3].isType = !0, m.tokens[m.tokens.length - 2].isType = !0, m.tokens[m.tokens.length - 1].isType = !0)));
|
|
12103
12106
|
}
|
|
12104
12107
|
function Ur() {
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
if (g(i._interface)) {
|
|
12110
|
-
let e = M(2);
|
|
12111
|
-
return Nr(i._interface, !0), N(e), !0;
|
|
12108
|
+
if (_(i._abstract) && L() === a._class) return m.type = a._abstract, j(), ss(!0, !0), !0;
|
|
12109
|
+
if (_(i._interface)) {
|
|
12110
|
+
let e = N(2);
|
|
12111
|
+
return Mr(i._interface, !0), P(e), !0;
|
|
12112
12112
|
}
|
|
12113
12113
|
return !1;
|
|
12114
12114
|
}
|
|
12115
|
-
function
|
|
12115
|
+
function Wr() {
|
|
12116
12116
|
if (m.type === a._const) {
|
|
12117
|
-
let e =
|
|
12118
|
-
if (e.type === a.name && e.contextualKeyword === i._enum) return
|
|
12117
|
+
let e = Se();
|
|
12118
|
+
if (e.type === a.name && e.contextualKeyword === i._enum) return w(a._const), y(i._enum), m.tokens[m.tokens.length - 1].type = a._enum, xr(), !0;
|
|
12119
12119
|
}
|
|
12120
12120
|
return !1;
|
|
12121
12121
|
}
|
|
12122
|
-
function
|
|
12122
|
+
function Gr(e) {
|
|
12123
12123
|
let t = m.tokens.length;
|
|
12124
|
-
|
|
12124
|
+
yn([
|
|
12125
12125
|
i._abstract,
|
|
12126
12126
|
i._readonly,
|
|
12127
12127
|
i._declare,
|
|
@@ -12129,115 +12129,115 @@ function Kr(e) {
|
|
|
12129
12129
|
i._override
|
|
12130
12130
|
]);
|
|
12131
12131
|
let n = m.tokens.length;
|
|
12132
|
-
if (
|
|
12132
|
+
if (Fn()) {
|
|
12133
12133
|
let r = e ? t - 1 : t;
|
|
12134
12134
|
for (let e = r; e < n; e++) m.tokens[e].isType = !0;
|
|
12135
12135
|
return !0;
|
|
12136
12136
|
}
|
|
12137
12137
|
return !1;
|
|
12138
12138
|
}
|
|
12139
|
-
function
|
|
12140
|
-
|
|
12139
|
+
function Kr(e) {
|
|
12140
|
+
jr(e) || C();
|
|
12141
12141
|
}
|
|
12142
|
-
function
|
|
12143
|
-
let e =
|
|
12142
|
+
function qr() {
|
|
12143
|
+
let e = v(i._declare);
|
|
12144
12144
|
e && (m.tokens[m.tokens.length - 1].type = a._declare);
|
|
12145
12145
|
let t = !1;
|
|
12146
|
-
if (
|
|
12146
|
+
if (I(a.name)) {
|
|
12147
12147
|
if (e) {
|
|
12148
|
-
let e =
|
|
12149
|
-
t =
|
|
12150
|
-
} else t =
|
|
12148
|
+
let e = N(2);
|
|
12149
|
+
t = Ar(), P(e);
|
|
12150
|
+
} else t = Ar();
|
|
12151
12151
|
}
|
|
12152
12152
|
if (!t) {
|
|
12153
12153
|
if (e) {
|
|
12154
|
-
let e =
|
|
12155
|
-
Q(!0),
|
|
12154
|
+
let e = N(2);
|
|
12155
|
+
Q(!0), P(e);
|
|
12156
12156
|
} else Q(!0);
|
|
12157
12157
|
}
|
|
12158
12158
|
}
|
|
12159
|
-
function
|
|
12160
|
-
if (e && (
|
|
12159
|
+
function Jr(e) {
|
|
12160
|
+
if (e && (I(a.lessThan) || I(a.bitShiftL)) && Fr(), v(i._implements)) {
|
|
12161
12161
|
m.tokens[m.tokens.length - 1].type = a._implements;
|
|
12162
|
-
let e =
|
|
12163
|
-
|
|
12162
|
+
let e = N(1);
|
|
12163
|
+
gr(), P(e);
|
|
12164
12164
|
}
|
|
12165
12165
|
}
|
|
12166
|
+
function Yr() {
|
|
12167
|
+
On();
|
|
12168
|
+
}
|
|
12166
12169
|
function Xr() {
|
|
12167
|
-
|
|
12170
|
+
On();
|
|
12168
12171
|
}
|
|
12169
12172
|
function Zr() {
|
|
12170
|
-
|
|
12173
|
+
let e = N(0);
|
|
12174
|
+
x() || F(a.bang), cr(), P(e);
|
|
12171
12175
|
}
|
|
12172
12176
|
function Qr() {
|
|
12173
|
-
|
|
12174
|
-
b() || P(a.bang), lr(), N(e);
|
|
12177
|
+
I(a.colon) && dr();
|
|
12175
12178
|
}
|
|
12176
|
-
function $r() {
|
|
12177
|
-
|
|
12179
|
+
function $r(e, t) {
|
|
12180
|
+
return d ? ei(e, t) : ti(e, t);
|
|
12178
12181
|
}
|
|
12179
12182
|
function ei(e, t) {
|
|
12180
|
-
|
|
12181
|
-
|
|
12182
|
-
function ti(e, t) {
|
|
12183
|
-
if (!F(a.lessThan)) return G(e, t);
|
|
12184
|
-
let n = m.snapshot(), r = G(e, t);
|
|
12183
|
+
if (!I(a.lessThan)) return K(e, t);
|
|
12184
|
+
let n = m.snapshot(), r = K(e, t);
|
|
12185
12185
|
if (m.error) m.restoreFromSnapshot(n);
|
|
12186
12186
|
else return r;
|
|
12187
|
-
return m.type = a.typeParameterStart,
|
|
12187
|
+
return m.type = a.typeParameterStart, kn(), r = K(e, t), r || T(), r;
|
|
12188
12188
|
}
|
|
12189
|
-
function
|
|
12190
|
-
if (!
|
|
12189
|
+
function ti(e, t) {
|
|
12190
|
+
if (!I(a.lessThan)) return K(e, t);
|
|
12191
12191
|
let n = m.snapshot();
|
|
12192
|
-
|
|
12193
|
-
let r =
|
|
12194
|
-
if (r ||
|
|
12192
|
+
kn();
|
|
12193
|
+
let r = K(e, t);
|
|
12194
|
+
if (r || T(), m.error) m.restoreFromSnapshot(n);
|
|
12195
12195
|
else return r;
|
|
12196
|
-
return
|
|
12196
|
+
return K(e, t);
|
|
12197
12197
|
}
|
|
12198
|
-
function
|
|
12199
|
-
if (
|
|
12198
|
+
function ni() {
|
|
12199
|
+
if (I(a.colon)) {
|
|
12200
12200
|
let e = m.snapshot();
|
|
12201
|
-
|
|
12201
|
+
or(a.colon), b() && T(), I(a.arrow) || T(), m.error && m.restoreFromSnapshot(e);
|
|
12202
12202
|
}
|
|
12203
|
-
return
|
|
12203
|
+
return F(a.arrow);
|
|
12204
12204
|
}
|
|
12205
|
-
function
|
|
12206
|
-
let e =
|
|
12207
|
-
|
|
12205
|
+
function ri() {
|
|
12206
|
+
let e = N(0);
|
|
12207
|
+
F(a.question), cr(), P(e);
|
|
12208
12208
|
}
|
|
12209
|
-
function
|
|
12210
|
-
(
|
|
12209
|
+
function ii() {
|
|
12210
|
+
(I(a.lessThan) || I(a.bitShiftL)) && Fr(), Po();
|
|
12211
12211
|
}
|
|
12212
12212
|
//#endregion
|
|
12213
12213
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/parser/plugins/jsx/index.js
|
|
12214
|
-
function
|
|
12214
|
+
function ai() {
|
|
12215
12215
|
let e = !1, t = !1;
|
|
12216
12216
|
for (;;) {
|
|
12217
12217
|
if (m.pos >= h.length) {
|
|
12218
|
-
|
|
12218
|
+
T("Unterminated JSX contents");
|
|
12219
12219
|
return;
|
|
12220
12220
|
}
|
|
12221
12221
|
let n = h.charCodeAt(m.pos);
|
|
12222
12222
|
if (n === u.lessThan || n === u.leftCurlyBrace) {
|
|
12223
12223
|
if (m.pos === m.start) {
|
|
12224
12224
|
if (n === u.lessThan) {
|
|
12225
|
-
m.pos++,
|
|
12225
|
+
m.pos++, R(a.jsxTagStart);
|
|
12226
12226
|
return;
|
|
12227
12227
|
}
|
|
12228
|
-
|
|
12228
|
+
He(n);
|
|
12229
12229
|
return;
|
|
12230
12230
|
}
|
|
12231
|
-
|
|
12231
|
+
R(e && !t ? a.jsxEmptyText : a.jsxText);
|
|
12232
12232
|
return;
|
|
12233
12233
|
}
|
|
12234
12234
|
n === u.lineFeed ? e = !0 : n !== u.space && n !== u.carriageReturn && n !== u.tab && (t = !0), m.pos++;
|
|
12235
12235
|
}
|
|
12236
12236
|
}
|
|
12237
|
-
function
|
|
12237
|
+
function oi(e) {
|
|
12238
12238
|
for (m.pos++;;) {
|
|
12239
12239
|
if (m.pos >= h.length) {
|
|
12240
|
-
|
|
12240
|
+
T("Unterminated string constant");
|
|
12241
12241
|
return;
|
|
12242
12242
|
}
|
|
12243
12243
|
if (h.charCodeAt(m.pos) === e) {
|
|
@@ -12246,260 +12246,260 @@ function si(e) {
|
|
|
12246
12246
|
}
|
|
12247
12247
|
m.pos++;
|
|
12248
12248
|
}
|
|
12249
|
-
|
|
12249
|
+
R(a.string);
|
|
12250
12250
|
}
|
|
12251
|
-
function
|
|
12251
|
+
function si() {
|
|
12252
12252
|
let e;
|
|
12253
12253
|
do {
|
|
12254
12254
|
if (m.pos > h.length) {
|
|
12255
|
-
|
|
12255
|
+
T("Unexpectedly reached the end of input.");
|
|
12256
12256
|
return;
|
|
12257
12257
|
}
|
|
12258
12258
|
e = h.charCodeAt(++m.pos);
|
|
12259
|
-
} while (
|
|
12260
|
-
|
|
12259
|
+
} while (D[e] || e === u.dash);
|
|
12260
|
+
R(a.jsxName);
|
|
12261
12261
|
}
|
|
12262
|
-
function
|
|
12263
|
-
|
|
12262
|
+
function ci() {
|
|
12263
|
+
U();
|
|
12264
12264
|
}
|
|
12265
|
-
function
|
|
12266
|
-
|
|
12265
|
+
function li(e) {
|
|
12266
|
+
ci(), F(a.colon) ? ci() : m.tokens[m.tokens.length - 1].identifierRole = e;
|
|
12267
12267
|
}
|
|
12268
|
-
function
|
|
12268
|
+
function ui() {
|
|
12269
12269
|
let e = m.tokens.length;
|
|
12270
|
-
|
|
12270
|
+
li(k.Access);
|
|
12271
12271
|
let t = !1;
|
|
12272
|
-
for (;
|
|
12272
|
+
for (; I(a.dot);) t = !0, U(), ci();
|
|
12273
12273
|
if (!t) {
|
|
12274
12274
|
let t = m.tokens[e], n = h.charCodeAt(t.start);
|
|
12275
12275
|
n >= u.lowercaseA && n <= u.lowercaseZ && (t.identifierRole = null);
|
|
12276
12276
|
}
|
|
12277
12277
|
}
|
|
12278
|
-
function
|
|
12278
|
+
function di() {
|
|
12279
12279
|
switch (m.type) {
|
|
12280
12280
|
case a.braceL:
|
|
12281
|
-
|
|
12281
|
+
j(), W(), U();
|
|
12282
12282
|
return;
|
|
12283
12283
|
case a.jsxTagStart:
|
|
12284
|
-
|
|
12284
|
+
gi(), U();
|
|
12285
12285
|
return;
|
|
12286
12286
|
case a.string:
|
|
12287
|
-
|
|
12287
|
+
U();
|
|
12288
12288
|
return;
|
|
12289
|
-
default:
|
|
12289
|
+
default: T("JSX value should be either an expression or a quoted JSX text");
|
|
12290
12290
|
}
|
|
12291
12291
|
}
|
|
12292
|
-
function
|
|
12293
|
-
|
|
12292
|
+
function fi() {
|
|
12293
|
+
w(a.ellipsis), W();
|
|
12294
12294
|
}
|
|
12295
|
-
function
|
|
12296
|
-
if (
|
|
12297
|
-
|
|
12295
|
+
function pi(e) {
|
|
12296
|
+
if (I(a.jsxTagEnd)) return !1;
|
|
12297
|
+
ui(), f && hr();
|
|
12298
12298
|
let t = !1;
|
|
12299
|
-
for (; !
|
|
12300
|
-
let n =
|
|
12301
|
-
return n &&
|
|
12299
|
+
for (; !I(a.slash) && !I(a.jsxTagEnd) && !m.error;) F(a.braceL) ? (t = !0, w(a.ellipsis), G(), U()) : (t && m.end - m.start === 3 && h.charCodeAt(m.start) === u.lowercaseK && h.charCodeAt(m.start + 1) === u.lowercaseE && h.charCodeAt(m.start + 2) === u.lowercaseY && (m.tokens[e].jsxRole = A.KeyAfterPropSpread), li(k.ObjectKey), I(a.eq) && (U(), di()));
|
|
12300
|
+
let n = I(a.slash);
|
|
12301
|
+
return n && U(), n;
|
|
12302
12302
|
}
|
|
12303
|
-
function
|
|
12304
|
-
|
|
12303
|
+
function mi() {
|
|
12304
|
+
I(a.jsxTagEnd) || ui();
|
|
12305
12305
|
}
|
|
12306
|
-
function
|
|
12306
|
+
function hi() {
|
|
12307
12307
|
let e = m.tokens.length - 1;
|
|
12308
|
-
m.tokens[e].jsxRole =
|
|
12308
|
+
m.tokens[e].jsxRole = A.NoChildren;
|
|
12309
12309
|
let t = 0;
|
|
12310
|
-
if (!
|
|
12310
|
+
if (!pi(e)) for (_i();;) switch (m.type) {
|
|
12311
12311
|
case a.jsxTagStart:
|
|
12312
|
-
if (
|
|
12313
|
-
|
|
12312
|
+
if (U(), I(a.slash)) {
|
|
12313
|
+
U(), mi(), m.tokens[e].jsxRole !== A.KeyAfterPropSpread && (t === 1 ? m.tokens[e].jsxRole = A.OneChild : t > 1 && (m.tokens[e].jsxRole = A.StaticChildren));
|
|
12314
12314
|
return;
|
|
12315
12315
|
}
|
|
12316
|
-
t++,
|
|
12316
|
+
t++, hi(), _i();
|
|
12317
12317
|
break;
|
|
12318
12318
|
case a.jsxText:
|
|
12319
|
-
t++,
|
|
12319
|
+
t++, _i();
|
|
12320
12320
|
break;
|
|
12321
12321
|
case a.jsxEmptyText:
|
|
12322
|
-
|
|
12322
|
+
_i();
|
|
12323
12323
|
break;
|
|
12324
12324
|
case a.braceL:
|
|
12325
|
-
|
|
12325
|
+
j(), I(a.ellipsis) ? (fi(), _i(), t += 2) : (I(a.braceR) || (t++, W()), _i());
|
|
12326
12326
|
break;
|
|
12327
12327
|
// istanbul ignore next - should never happen
|
|
12328
12328
|
default:
|
|
12329
|
-
|
|
12329
|
+
T();
|
|
12330
12330
|
return;
|
|
12331
12331
|
}
|
|
12332
12332
|
}
|
|
12333
|
-
function
|
|
12334
|
-
|
|
12333
|
+
function gi() {
|
|
12334
|
+
U(), hi();
|
|
12335
12335
|
}
|
|
12336
|
-
function
|
|
12337
|
-
m.tokens.push(new
|
|
12336
|
+
function U() {
|
|
12337
|
+
m.tokens.push(new ve()), Ae(), m.start = m.pos;
|
|
12338
12338
|
let e = h.charCodeAt(m.pos);
|
|
12339
|
-
if (
|
|
12340
|
-
else if (e === u.quotationMark || e === u.apostrophe)
|
|
12339
|
+
if (O[e]) si();
|
|
12340
|
+
else if (e === u.quotationMark || e === u.apostrophe) oi(e);
|
|
12341
12341
|
else switch (++m.pos, e) {
|
|
12342
12342
|
case u.greaterThan:
|
|
12343
|
-
|
|
12343
|
+
R(a.jsxTagEnd);
|
|
12344
12344
|
break;
|
|
12345
12345
|
case u.lessThan:
|
|
12346
|
-
|
|
12346
|
+
R(a.jsxTagStart);
|
|
12347
12347
|
break;
|
|
12348
12348
|
case u.slash:
|
|
12349
|
-
|
|
12349
|
+
R(a.slash);
|
|
12350
12350
|
break;
|
|
12351
12351
|
case u.equalsTo:
|
|
12352
|
-
|
|
12352
|
+
R(a.eq);
|
|
12353
12353
|
break;
|
|
12354
12354
|
case u.leftCurlyBrace:
|
|
12355
|
-
|
|
12355
|
+
R(a.braceL);
|
|
12356
12356
|
break;
|
|
12357
12357
|
case u.dot:
|
|
12358
|
-
|
|
12358
|
+
R(a.dot);
|
|
12359
12359
|
break;
|
|
12360
12360
|
case u.colon:
|
|
12361
|
-
|
|
12361
|
+
R(a.colon);
|
|
12362
12362
|
break;
|
|
12363
|
-
default:
|
|
12363
|
+
default: T();
|
|
12364
12364
|
}
|
|
12365
12365
|
}
|
|
12366
|
-
function
|
|
12367
|
-
m.tokens.push(new
|
|
12366
|
+
function _i() {
|
|
12367
|
+
m.tokens.push(new ve()), m.start = m.pos, ai();
|
|
12368
12368
|
}
|
|
12369
12369
|
//#endregion
|
|
12370
12370
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/parser/plugins/types.js
|
|
12371
|
-
function
|
|
12372
|
-
if (
|
|
12373
|
-
let e =
|
|
12371
|
+
function vi(e) {
|
|
12372
|
+
if (I(a.question)) {
|
|
12373
|
+
let e = L();
|
|
12374
12374
|
if (e === a.colon || e === a.comma || e === a.parenR) return;
|
|
12375
12375
|
}
|
|
12376
|
-
|
|
12376
|
+
Ci(e);
|
|
12377
12377
|
}
|
|
12378
|
-
function
|
|
12379
|
-
|
|
12378
|
+
function yi() {
|
|
12379
|
+
be(a.question), I(a.colon) && (f ? dr() : p && Za());
|
|
12380
12380
|
}
|
|
12381
12381
|
//#endregion
|
|
12382
12382
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/parser/traverser/expression.js
|
|
12383
|
-
var
|
|
12383
|
+
var bi = class {
|
|
12384
12384
|
constructor(e) {
|
|
12385
12385
|
this.stop = e;
|
|
12386
12386
|
}
|
|
12387
12387
|
};
|
|
12388
|
-
function
|
|
12389
|
-
if (
|
|
12388
|
+
function W(e = !1) {
|
|
12389
|
+
if (G(e), I(a.comma)) for (; F(a.comma);) G(e);
|
|
12390
|
+
}
|
|
12391
|
+
function G(e = !1, t = !1) {
|
|
12392
|
+
return f ? $r(e, t) : p ? bo(e, t) : K(e, t);
|
|
12390
12393
|
}
|
|
12391
|
-
function
|
|
12392
|
-
|
|
12394
|
+
function K(e, t) {
|
|
12395
|
+
if (I(a._yield)) return sa(), !1;
|
|
12396
|
+
(I(a.parenL) || I(a.name) || I(a._yield)) && (m.potentialArrowAt = m.start);
|
|
12397
|
+
let n = xi(e);
|
|
12398
|
+
return t && Wi(), m.type & a.IS_ASSIGN ? (j(), G(e), !1) : n;
|
|
12393
12399
|
}
|
|
12394
|
-
function
|
|
12395
|
-
|
|
12396
|
-
(F(a.parenL) || F(a.name) || F(a._yield)) && (m.potentialArrowAt = m.start);
|
|
12397
|
-
let n = Si(e);
|
|
12398
|
-
return t && Wi(), m.type & a.IS_ASSIGN ? (A(), W(e), !1) : n;
|
|
12400
|
+
function xi(e) {
|
|
12401
|
+
return wi(e) ? !0 : (Si(e), !1);
|
|
12399
12402
|
}
|
|
12400
12403
|
function Si(e) {
|
|
12401
|
-
|
|
12404
|
+
f || p ? vi(e) : Ci(e);
|
|
12402
12405
|
}
|
|
12403
12406
|
function Ci(e) {
|
|
12404
|
-
|
|
12407
|
+
F(a.question) && (G(), w(a.colon), G(e));
|
|
12405
12408
|
}
|
|
12406
12409
|
function wi(e) {
|
|
12407
|
-
P(a.question) && (W(), C(a.colon), W(e));
|
|
12408
|
-
}
|
|
12409
|
-
function Ti(e) {
|
|
12410
12410
|
let t = m.tokens.length;
|
|
12411
|
-
return
|
|
12411
|
+
return Ei() ? !0 : (Ti(t, -1, e), !1);
|
|
12412
12412
|
}
|
|
12413
|
-
function
|
|
12414
|
-
if (f && (a._in & a.PRECEDENCE_MASK) > t && !
|
|
12415
|
-
let r =
|
|
12416
|
-
|
|
12413
|
+
function Ti(e, t, n) {
|
|
12414
|
+
if (f && (a._in & a.PRECEDENCE_MASK) > t && !x() && (v(i._as) || v(i._satisfies))) {
|
|
12415
|
+
let r = N(1);
|
|
12416
|
+
H(), P(r), ze(), Ti(e, t, n);
|
|
12417
12417
|
return;
|
|
12418
12418
|
}
|
|
12419
12419
|
let r = m.type & a.PRECEDENCE_MASK;
|
|
12420
|
-
if (r > 0 && (!n || !
|
|
12420
|
+
if (r > 0 && (!n || !I(a._in)) && r > t) {
|
|
12421
12421
|
let i = m.type;
|
|
12422
|
-
|
|
12422
|
+
j(), i === a.nullishCoalescing && (m.tokens[m.tokens.length - 1].nullishStartIndex = e);
|
|
12423
12423
|
let o = m.tokens.length;
|
|
12424
|
-
|
|
12424
|
+
Ei(), Ti(o, i & a.IS_RIGHT_ASSOCIATIVE ? r - 1 : r, n), i === a.nullishCoalescing && (m.tokens[e].numNullishCoalesceStarts++, m.tokens[m.tokens.length - 1].numNullishCoalesceEnds++), Ti(e, t, n);
|
|
12425
12425
|
}
|
|
12426
12426
|
}
|
|
12427
|
-
function
|
|
12428
|
-
if (f && !d &&
|
|
12429
|
-
if (
|
|
12430
|
-
if (m.type & a.IS_PREFIX) return
|
|
12431
|
-
if (
|
|
12432
|
-
for (; m.type & a.IS_POSTFIX && !
|
|
12427
|
+
function Ei() {
|
|
12428
|
+
if (f && !d && F(a.lessThan)) return mr(), !1;
|
|
12429
|
+
if (_(i._module) && Te() === u.leftCurlyBrace && !oe()) return ca(), !1;
|
|
12430
|
+
if (m.type & a.IS_PREFIX) return j(), Ei(), !1;
|
|
12431
|
+
if (Di()) return !0;
|
|
12432
|
+
for (; m.type & a.IS_POSTFIX && !b();) m.type === a.preIncDec && (m.type = a.postIncDec), j();
|
|
12433
12433
|
return !1;
|
|
12434
12434
|
}
|
|
12435
|
-
function
|
|
12435
|
+
function Di() {
|
|
12436
12436
|
let e = m.tokens.length;
|
|
12437
|
-
return
|
|
12437
|
+
return Ii() ? !0 : (Oi(e), m.tokens.length > e && m.tokens[e].isOptionalChainStart && (m.tokens[m.tokens.length - 1].isOptionalChainEnd = !0), !1);
|
|
12438
12438
|
}
|
|
12439
|
-
function
|
|
12440
|
-
p ? So(e, t) :
|
|
12439
|
+
function Oi(e, t = !1) {
|
|
12440
|
+
p ? So(e, t) : ki(e, t);
|
|
12441
12441
|
}
|
|
12442
|
-
function
|
|
12443
|
-
let n = new
|
|
12442
|
+
function ki(e, t = !1) {
|
|
12443
|
+
let n = new bi(!1);
|
|
12444
12444
|
do
|
|
12445
|
-
|
|
12445
|
+
Ai(e, t, n);
|
|
12446
12446
|
while (!n.stop && !m.error);
|
|
12447
12447
|
}
|
|
12448
|
-
function
|
|
12449
|
-
f ?
|
|
12448
|
+
function Ai(e, t, n) {
|
|
12449
|
+
f ? zr(e, t, n) : p ? to(e, t, n) : ji(e, t, n);
|
|
12450
12450
|
}
|
|
12451
|
-
function
|
|
12452
|
-
if (!t &&
|
|
12453
|
-
else if (
|
|
12454
|
-
if (m.tokens[e].isOptionalChainStart = !0, t &&
|
|
12451
|
+
function ji(e, t, n) {
|
|
12452
|
+
if (!t && F(a.doubleColon)) Fi(), n.stop = !0, Oi(e, t);
|
|
12453
|
+
else if (I(a.questionDot)) {
|
|
12454
|
+
if (m.tokens[e].isOptionalChainStart = !0, t && L() === a.parenL) {
|
|
12455
12455
|
n.stop = !0;
|
|
12456
12456
|
return;
|
|
12457
12457
|
}
|
|
12458
|
-
|
|
12459
|
-
} else if (
|
|
12460
|
-
else if (
|
|
12461
|
-
else if (!t &&
|
|
12462
|
-
if (
|
|
12458
|
+
j(), m.tokens[m.tokens.length - 1].subscriptStartIndex = e, F(a.bracketL) ? (W(), w(a.bracketR)) : F(a.parenL) ? q() : Li();
|
|
12459
|
+
} else if (F(a.dot)) m.tokens[m.tokens.length - 1].subscriptStartIndex = e, Li();
|
|
12460
|
+
else if (F(a.bracketL)) m.tokens[m.tokens.length - 1].subscriptStartIndex = e, W(), w(a.bracketR);
|
|
12461
|
+
else if (!t && I(a.parenL)) {
|
|
12462
|
+
if (Mi()) {
|
|
12463
12463
|
let t = m.snapshot(), r = m.tokens.length;
|
|
12464
|
-
|
|
12465
|
-
let i =
|
|
12466
|
-
m.tokens[m.tokens.length - 1].contextId = i,
|
|
12464
|
+
j(), m.tokens[m.tokens.length - 1].subscriptStartIndex = e;
|
|
12465
|
+
let i = g();
|
|
12466
|
+
m.tokens[m.tokens.length - 1].contextId = i, q(), m.tokens[m.tokens.length - 1].contextId = i, Ni() && (m.restoreFromSnapshot(t), n.stop = !0, m.scopeDepth++, os(), Pi(r));
|
|
12467
12467
|
} else {
|
|
12468
|
-
|
|
12469
|
-
let t =
|
|
12470
|
-
m.tokens[m.tokens.length - 1].contextId = t,
|
|
12468
|
+
j(), m.tokens[m.tokens.length - 1].subscriptStartIndex = e;
|
|
12469
|
+
let t = g();
|
|
12470
|
+
m.tokens[m.tokens.length - 1].contextId = t, q(), m.tokens[m.tokens.length - 1].contextId = t;
|
|
12471
12471
|
}
|
|
12472
|
-
} else
|
|
12472
|
+
} else I(a.backQuote) ? qi() : n.stop = !0;
|
|
12473
12473
|
}
|
|
12474
|
-
function
|
|
12475
|
-
return m.tokens[m.tokens.length - 1].contextualKeyword === i._async && !
|
|
12474
|
+
function Mi() {
|
|
12475
|
+
return m.tokens[m.tokens.length - 1].contextualKeyword === i._async && !b();
|
|
12476
12476
|
}
|
|
12477
|
-
function
|
|
12477
|
+
function q() {
|
|
12478
12478
|
let e = !0;
|
|
12479
|
-
for (; !
|
|
12479
|
+
for (; !F(a.parenR) && !m.error;) {
|
|
12480
12480
|
if (e) e = !1;
|
|
12481
|
-
else if (
|
|
12481
|
+
else if (w(a.comma), F(a.parenR)) break;
|
|
12482
12482
|
aa(!1);
|
|
12483
12483
|
}
|
|
12484
12484
|
}
|
|
12485
|
-
function
|
|
12486
|
-
return
|
|
12485
|
+
function Ni() {
|
|
12486
|
+
return I(a.colon) || I(a.arrow);
|
|
12487
12487
|
}
|
|
12488
|
-
function
|
|
12489
|
-
f ?
|
|
12488
|
+
function Pi(e) {
|
|
12489
|
+
f ? Qr() : p && yo(), w(a.arrow), ta(e);
|
|
12490
12490
|
}
|
|
12491
|
-
function
|
|
12491
|
+
function Fi() {
|
|
12492
12492
|
let e = m.tokens.length;
|
|
12493
|
-
|
|
12493
|
+
Ii(), Oi(e, !0);
|
|
12494
12494
|
}
|
|
12495
|
-
function
|
|
12496
|
-
if (
|
|
12497
|
-
if (
|
|
12498
|
-
if (
|
|
12495
|
+
function Ii() {
|
|
12496
|
+
if (F(a.modulo)) return J(), !1;
|
|
12497
|
+
if (I(a.jsxText) || I(a.jsxEmptyText)) return zi(), !1;
|
|
12498
|
+
if (I(a.lessThan) && d) return m.type = a.jsxTagStart, gi(), j(), !1;
|
|
12499
12499
|
let e = m.potentialArrowAt === m.start;
|
|
12500
12500
|
switch (m.type) {
|
|
12501
12501
|
case a.slash:
|
|
12502
|
-
case a.assign:
|
|
12502
|
+
case a.assign: ye();
|
|
12503
12503
|
case a._super:
|
|
12504
12504
|
case a._this:
|
|
12505
12505
|
case a.regexp:
|
|
@@ -12509,112 +12509,112 @@ function q() {
|
|
|
12509
12509
|
case a.string:
|
|
12510
12510
|
case a._null:
|
|
12511
12511
|
case a._true:
|
|
12512
|
-
case a._false: return
|
|
12513
|
-
case a._import: return
|
|
12512
|
+
case a._false: return j(), !1;
|
|
12513
|
+
case a._import: return j(), I(a.dot) && (m.tokens[m.tokens.length - 1].type = a.name, j(), J()), !1;
|
|
12514
12514
|
case a.name: {
|
|
12515
12515
|
let t = m.tokens.length, n = m.start, r = m.contextualKeyword;
|
|
12516
|
-
return J(), r === i._await ? (oa(), !1) : r === i._async &&
|
|
12516
|
+
return J(), r === i._await ? (oa(), !1) : r === i._async && I(a._function) && !b() ? (j(), as(n, !1), !1) : e && r === i._async && !b() && I(a.name) ? (m.scopeDepth++, cn(!1), w(a.arrow), ta(t), !0) : I(a._do) && !b() ? (j(), $o(), !1) : e && !b() && I(a.arrow) ? (m.scopeDepth++, un(!1), w(a.arrow), ta(t), !0) : (m.tokens[m.tokens.length - 1].identifierRole = k.Access, !1);
|
|
12517
12517
|
}
|
|
12518
|
-
case a._do: return
|
|
12518
|
+
case a._do: return j(), $o(), !1;
|
|
12519
12519
|
case a.parenL: return Vi(e);
|
|
12520
|
-
case a.bracketL: return
|
|
12520
|
+
case a.bracketL: return j(), ia(a.bracketR, !0), !1;
|
|
12521
12521
|
case a.braceL: return Ji(!1, !1), !1;
|
|
12522
12522
|
case a._function: return Ri(), !1;
|
|
12523
12523
|
case a.at: jo();
|
|
12524
12524
|
case a._class: return ss(!1), !1;
|
|
12525
12525
|
case a._new: return Gi(), !1;
|
|
12526
12526
|
case a.backQuote: return qi(), !1;
|
|
12527
|
-
case a.doubleColon: return
|
|
12527
|
+
case a.doubleColon: return j(), Fi(), !1;
|
|
12528
12528
|
case a.hash: {
|
|
12529
|
-
let e =
|
|
12530
|
-
return
|
|
12529
|
+
let e = Te();
|
|
12530
|
+
return O[e] || e === u.backslash ? Li() : j(), !1;
|
|
12531
12531
|
}
|
|
12532
|
-
default: return
|
|
12532
|
+
default: return T(), !1;
|
|
12533
12533
|
}
|
|
12534
12534
|
}
|
|
12535
12535
|
function Li() {
|
|
12536
|
-
|
|
12536
|
+
F(a.hash), J();
|
|
12537
12537
|
}
|
|
12538
12538
|
function Ri() {
|
|
12539
12539
|
let e = m.start;
|
|
12540
|
-
J(),
|
|
12540
|
+
J(), F(a.dot) && J(), as(e, !1);
|
|
12541
12541
|
}
|
|
12542
12542
|
function zi() {
|
|
12543
|
-
|
|
12543
|
+
j();
|
|
12544
12544
|
}
|
|
12545
12545
|
function Bi() {
|
|
12546
|
-
|
|
12546
|
+
w(a.parenL), W(), w(a.parenR);
|
|
12547
12547
|
}
|
|
12548
12548
|
function Vi(e) {
|
|
12549
12549
|
let t = m.snapshot(), n = m.tokens.length;
|
|
12550
|
-
|
|
12550
|
+
w(a.parenL);
|
|
12551
12551
|
let r = !0;
|
|
12552
|
-
for (; !
|
|
12552
|
+
for (; !I(a.parenR) && !m.error;) {
|
|
12553
12553
|
if (r) r = !1;
|
|
12554
|
-
else if (
|
|
12555
|
-
if (
|
|
12556
|
-
|
|
12554
|
+
else if (w(a.comma), I(a.parenR)) break;
|
|
12555
|
+
if (I(a.ellipsis)) {
|
|
12556
|
+
sn(!1), Wi();
|
|
12557
12557
|
break;
|
|
12558
12558
|
}
|
|
12559
|
-
|
|
12559
|
+
G(!1, !0);
|
|
12560
12560
|
}
|
|
12561
|
-
return
|
|
12561
|
+
return w(a.parenR), e && Hi() && Ui() ? (m.restoreFromSnapshot(t), m.scopeDepth++, os(), Ui(), ta(n), !m.error || (m.restoreFromSnapshot(t), Vi(!1), !1)) : !1;
|
|
12562
12562
|
}
|
|
12563
12563
|
function Hi() {
|
|
12564
|
-
return
|
|
12564
|
+
return I(a.colon) || !b();
|
|
12565
12565
|
}
|
|
12566
12566
|
function Ui() {
|
|
12567
|
-
return f ?
|
|
12567
|
+
return f ? ni() : p ? xo() : F(a.arrow);
|
|
12568
12568
|
}
|
|
12569
12569
|
function Wi() {
|
|
12570
|
-
(f || p) &&
|
|
12570
|
+
(f || p) && yi();
|
|
12571
12571
|
}
|
|
12572
12572
|
function Gi() {
|
|
12573
|
-
|
|
12573
|
+
w(a._new), F(a.dot) ? J() : (Ki(), p && no(), F(a.parenL) && ia(a.parenR));
|
|
12574
12574
|
}
|
|
12575
12575
|
function Ki() {
|
|
12576
|
-
|
|
12576
|
+
Fi(), F(a.questionDot);
|
|
12577
12577
|
}
|
|
12578
12578
|
function qi() {
|
|
12579
|
-
for (
|
|
12580
|
-
|
|
12579
|
+
for (M(), M(); !I(a.backQuote) && !m.error;) w(a.dollarBraceL), W(), M(), M();
|
|
12580
|
+
j();
|
|
12581
12581
|
}
|
|
12582
12582
|
function Ji(e, t) {
|
|
12583
|
-
let n =
|
|
12584
|
-
for (
|
|
12583
|
+
let n = g(), r = !0;
|
|
12584
|
+
for (j(), m.tokens[m.tokens.length - 1].contextId = n; !F(a.braceR) && !m.error;) {
|
|
12585
12585
|
if (r) r = !1;
|
|
12586
|
-
else if (
|
|
12586
|
+
else if (w(a.comma), F(a.braceR)) break;
|
|
12587
12587
|
let o = !1;
|
|
12588
|
-
if (
|
|
12588
|
+
if (I(a.ellipsis)) {
|
|
12589
12589
|
let n = m.tokens.length;
|
|
12590
|
-
if (
|
|
12591
|
-
} else e || (o =
|
|
12590
|
+
if (on(), e && (m.tokens.length === n + 2 && un(t), F(a.braceR))) break;
|
|
12591
|
+
} else e || (o = F(a.star)), !e && _(i._async) ? (o && T(), J(), I(a.colon) || I(a.parenL) || I(a.braceR) || I(a.eq) || I(a.comma) || (I(a.star) && (j(), o = !0), $i(n))) : $i(n), Qi(e, t, n);
|
|
12592
12592
|
}
|
|
12593
12593
|
m.tokens[m.tokens.length - 1].contextId = n;
|
|
12594
12594
|
}
|
|
12595
12595
|
function Yi(e) {
|
|
12596
|
-
return !e && (
|
|
12596
|
+
return !e && (I(a.string) || I(a.num) || I(a.bracketL) || I(a.name) || !!(m.type & a.IS_KEYWORD));
|
|
12597
12597
|
}
|
|
12598
12598
|
function Xi(e, t) {
|
|
12599
12599
|
let n = m.start;
|
|
12600
|
-
return
|
|
12600
|
+
return I(a.parenL) ? (e && T(), ea(n, !1), !0) : Yi(e) ? ($i(t), ea(n, !1), !0) : !1;
|
|
12601
12601
|
}
|
|
12602
12602
|
function Zi(e, t) {
|
|
12603
|
-
if (
|
|
12604
|
-
e ?
|
|
12603
|
+
if (F(a.colon)) {
|
|
12604
|
+
e ? hn(t) : G(!1);
|
|
12605
12605
|
return;
|
|
12606
12606
|
}
|
|
12607
12607
|
let n;
|
|
12608
|
-
n = e ? m.scopeDepth === 0 ?
|
|
12608
|
+
n = e ? m.scopeDepth === 0 ? k.ObjectShorthandTopLevelDeclaration : t ? k.ObjectShorthandBlockScopedDeclaration : k.ObjectShorthandFunctionScopedDeclaration : k.ObjectShorthand, m.tokens[m.tokens.length - 1].identifierRole = n, hn(t, !0);
|
|
12609
12609
|
}
|
|
12610
12610
|
function Qi(e, t, n) {
|
|
12611
|
-
f ?
|
|
12611
|
+
f ? Yr() : p && po(), Xi(e, n) || Zi(e, t);
|
|
12612
12612
|
}
|
|
12613
12613
|
function $i(e) {
|
|
12614
|
-
p && $a(),
|
|
12614
|
+
p && $a(), F(a.bracketL) ? (m.tokens[m.tokens.length - 1].contextId = e, G(), w(a.bracketR), m.tokens[m.tokens.length - 1].contextId = e) : (I(a.num) || I(a.string) || I(a.bigint) || I(a.decimal) ? Ii() : Li(), m.tokens[m.tokens.length - 1].identifierRole = k.ObjectKey, m.tokens[m.tokens.length - 1].contextId = e);
|
|
12615
12615
|
}
|
|
12616
12616
|
function ea(e, t) {
|
|
12617
|
-
let n =
|
|
12617
|
+
let n = g();
|
|
12618
12618
|
m.scopeDepth++;
|
|
12619
12619
|
let r = m.tokens.length;
|
|
12620
12620
|
os(t, n), na(e, n);
|
|
@@ -12627,33 +12627,33 @@ function ta(e) {
|
|
|
12627
12627
|
m.scopes.push(new s(e, t, !0)), m.scopeDepth--;
|
|
12628
12628
|
}
|
|
12629
12629
|
function na(e, t = 0) {
|
|
12630
|
-
f ?
|
|
12630
|
+
f ? Rr(e, t) : p ? eo(t) : ra(!1, t);
|
|
12631
12631
|
}
|
|
12632
12632
|
function ra(e, t = 0) {
|
|
12633
|
-
e && !
|
|
12633
|
+
e && !I(a.braceL) ? G() : $o(!0, t);
|
|
12634
12634
|
}
|
|
12635
12635
|
function ia(e, t = !1) {
|
|
12636
12636
|
let n = !0;
|
|
12637
|
-
for (; !
|
|
12637
|
+
for (; !F(e) && !m.error;) {
|
|
12638
12638
|
if (n) n = !1;
|
|
12639
|
-
else if (
|
|
12639
|
+
else if (w(a.comma), F(e)) break;
|
|
12640
12640
|
aa(t);
|
|
12641
12641
|
}
|
|
12642
12642
|
}
|
|
12643
12643
|
function aa(e) {
|
|
12644
|
-
e &&
|
|
12644
|
+
e && I(a.comma) || (I(a.ellipsis) ? (on(), Wi()) : I(a.question) ? j() : G(!1, !0));
|
|
12645
12645
|
}
|
|
12646
12646
|
function J() {
|
|
12647
|
-
|
|
12647
|
+
j(), m.tokens[m.tokens.length - 1].type = a.name;
|
|
12648
12648
|
}
|
|
12649
12649
|
function oa() {
|
|
12650
|
-
|
|
12650
|
+
Ei();
|
|
12651
12651
|
}
|
|
12652
12652
|
function sa() {
|
|
12653
|
-
|
|
12653
|
+
j(), !I(a.semi) && !b() && (F(a.star), G());
|
|
12654
12654
|
}
|
|
12655
12655
|
function ca() {
|
|
12656
|
-
|
|
12656
|
+
y(i._module), w(a.braceL), es(a.braceR);
|
|
12657
12657
|
}
|
|
12658
12658
|
//#endregion
|
|
12659
12659
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/parser/plugins/flow.js
|
|
@@ -12661,67 +12661,67 @@ function la(e) {
|
|
|
12661
12661
|
return (e.type === a.name || !!(e.type & a.IS_KEYWORD)) && e.contextualKeyword !== i._from;
|
|
12662
12662
|
}
|
|
12663
12663
|
function Y(e) {
|
|
12664
|
-
let t =
|
|
12665
|
-
|
|
12664
|
+
let t = N(0);
|
|
12665
|
+
w(e || a.colon), Z(), P(t);
|
|
12666
12666
|
}
|
|
12667
12667
|
function ua() {
|
|
12668
|
-
|
|
12668
|
+
w(a.modulo), y(i._checks), F(a.parenL) && (W(), w(a.parenR));
|
|
12669
12669
|
}
|
|
12670
12670
|
function da() {
|
|
12671
|
-
let e =
|
|
12672
|
-
|
|
12671
|
+
let e = N(0);
|
|
12672
|
+
w(a.colon), I(a.modulo) ? ua() : (Z(), I(a.modulo) && ua()), P(e);
|
|
12673
12673
|
}
|
|
12674
12674
|
function fa() {
|
|
12675
|
-
|
|
12675
|
+
j(), Sa(!0);
|
|
12676
12676
|
}
|
|
12677
12677
|
function pa() {
|
|
12678
|
-
|
|
12678
|
+
j(), J(), I(a.lessThan) && X(), w(a.parenL), Wa(), w(a.parenR), da(), C();
|
|
12679
12679
|
}
|
|
12680
12680
|
function ma() {
|
|
12681
|
-
|
|
12681
|
+
I(a._class) ? fa() : I(a._function) ? pa() : I(a._var) ? ha() : v(i._module) ? F(a.dot) ? va() : ga() : _(i._type) ? ya() : _(i._opaque) ? ba() : _(i._interface) ? xa() : I(a._export) ? _a() : T();
|
|
12682
12682
|
}
|
|
12683
12683
|
function ha() {
|
|
12684
|
-
|
|
12684
|
+
j(), Qa(), C();
|
|
12685
12685
|
}
|
|
12686
12686
|
function ga() {
|
|
12687
|
-
for (
|
|
12688
|
-
|
|
12687
|
+
for (I(a.string) ? Ii() : J(), w(a.braceL); !I(a.braceR) && !m.error;) I(a._import) ? (j(), Ps()) : T();
|
|
12688
|
+
w(a.braceR);
|
|
12689
12689
|
}
|
|
12690
12690
|
function _a() {
|
|
12691
|
-
|
|
12691
|
+
w(a._export), F(a._default) ? I(a._function) || I(a._class) ? ma() : (Z(), C()) : I(a._var) || I(a._function) || I(a._class) || _(i._opaque) ? ma() : I(a.star) || I(a.braceL) || _(i._interface) || _(i._type) || _(i._opaque) ? ys() : T();
|
|
12692
12692
|
}
|
|
12693
12693
|
function va() {
|
|
12694
|
-
|
|
12694
|
+
y(i._exports), Za(), C();
|
|
12695
12695
|
}
|
|
12696
12696
|
function ya() {
|
|
12697
|
-
|
|
12697
|
+
j(), Ea();
|
|
12698
12698
|
}
|
|
12699
12699
|
function ba() {
|
|
12700
|
-
|
|
12700
|
+
j(), Da(!0);
|
|
12701
12701
|
}
|
|
12702
12702
|
function xa() {
|
|
12703
|
-
|
|
12703
|
+
j(), Sa();
|
|
12704
12704
|
}
|
|
12705
12705
|
function Sa(e = !1) {
|
|
12706
|
-
if (Ta(),
|
|
12706
|
+
if (Ta(), I(a.lessThan) && X(), F(a._extends)) do
|
|
12707
12707
|
Ca();
|
|
12708
|
-
while (!e &&
|
|
12709
|
-
if (
|
|
12710
|
-
|
|
12708
|
+
while (!e && F(a.comma));
|
|
12709
|
+
if (_(i._mixins)) {
|
|
12710
|
+
j();
|
|
12711
12711
|
do
|
|
12712
12712
|
Ca();
|
|
12713
|
-
while (
|
|
12713
|
+
while (F(a.comma));
|
|
12714
12714
|
}
|
|
12715
|
-
if (
|
|
12716
|
-
|
|
12715
|
+
if (_(i._implements)) {
|
|
12716
|
+
j();
|
|
12717
12717
|
do
|
|
12718
12718
|
Ca();
|
|
12719
|
-
while (
|
|
12719
|
+
while (F(a.comma));
|
|
12720
12720
|
}
|
|
12721
12721
|
Ia(e, !1, e);
|
|
12722
12722
|
}
|
|
12723
12723
|
function Ca() {
|
|
12724
|
-
za(!1),
|
|
12724
|
+
za(!1), I(a.lessThan) && ka();
|
|
12725
12725
|
}
|
|
12726
12726
|
function wa() {
|
|
12727
12727
|
Sa();
|
|
@@ -12730,109 +12730,109 @@ function Ta() {
|
|
|
12730
12730
|
J();
|
|
12731
12731
|
}
|
|
12732
12732
|
function Ea() {
|
|
12733
|
-
Ta(),
|
|
12733
|
+
Ta(), I(a.lessThan) && X(), Y(a.eq), C();
|
|
12734
12734
|
}
|
|
12735
12735
|
function Da(e) {
|
|
12736
|
-
|
|
12736
|
+
y(i._type), Ta(), I(a.lessThan) && X(), I(a.colon) && Y(a.colon), e || Y(a.eq), C();
|
|
12737
12737
|
}
|
|
12738
12738
|
function Oa() {
|
|
12739
|
-
$a(), Qa(),
|
|
12739
|
+
$a(), Qa(), F(a.eq) && Z();
|
|
12740
12740
|
}
|
|
12741
12741
|
function X() {
|
|
12742
|
-
let e =
|
|
12742
|
+
let e = N(0);
|
|
12743
12743
|
// istanbul ignore else: this condition is already checked at all call sites
|
|
12744
|
-
|
|
12744
|
+
I(a.lessThan) || I(a.typeParameterStart) ? j() : T();
|
|
12745
12745
|
do
|
|
12746
|
-
Oa(),
|
|
12747
|
-
while (!
|
|
12748
|
-
|
|
12746
|
+
Oa(), I(a.greaterThan) || w(a.comma);
|
|
12747
|
+
while (!I(a.greaterThan) && !m.error);
|
|
12748
|
+
w(a.greaterThan), P(e);
|
|
12749
12749
|
}
|
|
12750
12750
|
function ka() {
|
|
12751
|
-
let e =
|
|
12752
|
-
for (
|
|
12753
|
-
|
|
12751
|
+
let e = N(0);
|
|
12752
|
+
for (w(a.lessThan); !I(a.greaterThan) && !m.error;) Z(), I(a.greaterThan) || w(a.comma);
|
|
12753
|
+
w(a.greaterThan), P(e);
|
|
12754
12754
|
}
|
|
12755
12755
|
function Aa() {
|
|
12756
|
-
if (
|
|
12756
|
+
if (y(i._interface), F(a._extends)) do
|
|
12757
12757
|
Ca();
|
|
12758
|
-
while (
|
|
12758
|
+
while (F(a.comma));
|
|
12759
12759
|
Ia(!1, !1, !1);
|
|
12760
12760
|
}
|
|
12761
12761
|
function ja() {
|
|
12762
|
-
|
|
12762
|
+
I(a.num) || I(a.string) ? Ii() : J();
|
|
12763
12763
|
}
|
|
12764
12764
|
function Ma() {
|
|
12765
|
-
|
|
12765
|
+
L() === a.colon ? (ja(), Y()) : Z(), w(a.bracketR), Y();
|
|
12766
12766
|
}
|
|
12767
12767
|
function Na() {
|
|
12768
|
-
ja(),
|
|
12768
|
+
ja(), w(a.bracketR), w(a.bracketR), I(a.lessThan) || I(a.parenL) ? Pa() : (F(a.question), Y());
|
|
12769
12769
|
}
|
|
12770
12770
|
function Pa() {
|
|
12771
|
-
for (
|
|
12772
|
-
|
|
12771
|
+
for (I(a.lessThan) && X(), w(a.parenL); !I(a.parenR) && !I(a.ellipsis) && !m.error;) Ua(), I(a.parenR) || w(a.comma);
|
|
12772
|
+
F(a.ellipsis) && Ua(), w(a.parenR), Y();
|
|
12773
12773
|
}
|
|
12774
12774
|
function Fa() {
|
|
12775
12775
|
Pa();
|
|
12776
12776
|
}
|
|
12777
12777
|
function Ia(e, t, n) {
|
|
12778
12778
|
let r;
|
|
12779
|
-
for (t &&
|
|
12780
|
-
if (n &&
|
|
12781
|
-
let t =
|
|
12782
|
-
t !== a.colon && t !== a.question && (
|
|
12779
|
+
for (t && I(a.braceBarL) ? (w(a.braceBarL), r = a.braceBarR) : (w(a.braceL), r = a.braceR); !I(r) && !m.error;) {
|
|
12780
|
+
if (n && _(i._proto)) {
|
|
12781
|
+
let t = L();
|
|
12782
|
+
t !== a.colon && t !== a.question && (j(), e = !1);
|
|
12783
12783
|
}
|
|
12784
|
-
if (e &&
|
|
12785
|
-
let e =
|
|
12786
|
-
e !== a.colon && e !== a.question &&
|
|
12784
|
+
if (e && _(i._static)) {
|
|
12785
|
+
let e = L();
|
|
12786
|
+
e !== a.colon && e !== a.question && j();
|
|
12787
12787
|
}
|
|
12788
|
-
if ($a(),
|
|
12789
|
-
else if (
|
|
12788
|
+
if ($a(), F(a.bracketL)) F(a.bracketL) ? Na() : Ma();
|
|
12789
|
+
else if (I(a.parenL) || I(a.lessThan)) Fa();
|
|
12790
12790
|
else {
|
|
12791
|
-
if (
|
|
12792
|
-
let e =
|
|
12793
|
-
(e === a.name || e === a.string || e === a.num) &&
|
|
12791
|
+
if (_(i._get) || _(i._set)) {
|
|
12792
|
+
let e = L();
|
|
12793
|
+
(e === a.name || e === a.string || e === a.num) && j();
|
|
12794
12794
|
}
|
|
12795
12795
|
La();
|
|
12796
12796
|
}
|
|
12797
12797
|
Ra();
|
|
12798
12798
|
}
|
|
12799
|
-
|
|
12799
|
+
w(r);
|
|
12800
12800
|
}
|
|
12801
12801
|
function La() {
|
|
12802
|
-
if (
|
|
12803
|
-
if (
|
|
12802
|
+
if (I(a.ellipsis)) {
|
|
12803
|
+
if (w(a.ellipsis), F(a.comma) || F(a.semi), I(a.braceR)) return;
|
|
12804
12804
|
Z();
|
|
12805
|
-
} else ja(),
|
|
12805
|
+
} else ja(), I(a.lessThan) || I(a.parenL) ? Pa() : (F(a.question), Y());
|
|
12806
12806
|
}
|
|
12807
12807
|
function Ra() {
|
|
12808
|
-
!
|
|
12808
|
+
!F(a.semi) && !F(a.comma) && !I(a.braceR) && !I(a.braceBarR) && T();
|
|
12809
12809
|
}
|
|
12810
12810
|
function za(e) {
|
|
12811
|
-
for (e || J();
|
|
12811
|
+
for (e || J(); F(a.dot);) J();
|
|
12812
12812
|
}
|
|
12813
12813
|
function Ba() {
|
|
12814
|
-
za(!0),
|
|
12814
|
+
za(!0), I(a.lessThan) && ka();
|
|
12815
12815
|
}
|
|
12816
12816
|
function Va() {
|
|
12817
|
-
|
|
12817
|
+
w(a._typeof), Ga();
|
|
12818
12818
|
}
|
|
12819
12819
|
function Ha() {
|
|
12820
|
-
for (
|
|
12821
|
-
|
|
12820
|
+
for (w(a.bracketL); m.pos < h.length && !I(a.bracketR) && (Z(), !I(a.bracketR));) w(a.comma);
|
|
12821
|
+
w(a.bracketR);
|
|
12822
12822
|
}
|
|
12823
12823
|
function Ua() {
|
|
12824
|
-
let e =
|
|
12825
|
-
e === a.colon || e === a.question ? (J(),
|
|
12824
|
+
let e = L();
|
|
12825
|
+
e === a.colon || e === a.question ? (J(), F(a.question), Y()) : Z();
|
|
12826
12826
|
}
|
|
12827
12827
|
function Wa() {
|
|
12828
|
-
for (; !
|
|
12829
|
-
|
|
12828
|
+
for (; !I(a.parenR) && !I(a.ellipsis) && !m.error;) Ua(), I(a.parenR) || w(a.comma);
|
|
12829
|
+
F(a.ellipsis) && Ua();
|
|
12830
12830
|
}
|
|
12831
12831
|
function Ga() {
|
|
12832
12832
|
let e = !1, t = m.noAnonFunctionType;
|
|
12833
12833
|
switch (m.type) {
|
|
12834
12834
|
case a.name:
|
|
12835
|
-
if (
|
|
12835
|
+
if (_(i._interface)) {
|
|
12836
12836
|
Aa();
|
|
12837
12837
|
return;
|
|
12838
12838
|
}
|
|
@@ -12848,26 +12848,26 @@ function Ga() {
|
|
|
12848
12848
|
Ha();
|
|
12849
12849
|
return;
|
|
12850
12850
|
case a.lessThan:
|
|
12851
|
-
X(),
|
|
12851
|
+
X(), w(a.parenL), Wa(), w(a.parenR), w(a.arrow), Z();
|
|
12852
12852
|
return;
|
|
12853
12853
|
case a.parenL:
|
|
12854
|
-
if (
|
|
12855
|
-
if (
|
|
12856
|
-
let t =
|
|
12854
|
+
if (j(), !I(a.parenR) && !I(a.ellipsis)) {
|
|
12855
|
+
if (I(a.name)) {
|
|
12856
|
+
let t = L();
|
|
12857
12857
|
e = t !== a.question && t !== a.colon;
|
|
12858
12858
|
} else e = !0;
|
|
12859
12859
|
}
|
|
12860
12860
|
if (e) {
|
|
12861
|
-
if (m.noAnonFunctionType = !1, Z(), m.noAnonFunctionType = t, m.noAnonFunctionType || !(
|
|
12862
|
-
|
|
12861
|
+
if (m.noAnonFunctionType = !1, Z(), m.noAnonFunctionType = t, m.noAnonFunctionType || !(I(a.comma) || I(a.parenR) && L() === a.arrow)) {
|
|
12862
|
+
w(a.parenR);
|
|
12863
12863
|
return;
|
|
12864
12864
|
}
|
|
12865
|
-
|
|
12865
|
+
F(a.comma);
|
|
12866
12866
|
}
|
|
12867
|
-
Wa(),
|
|
12867
|
+
Wa(), w(a.parenR), w(a.arrow), Z();
|
|
12868
12868
|
return;
|
|
12869
12869
|
case a.minus:
|
|
12870
|
-
|
|
12870
|
+
j(), zi();
|
|
12871
12871
|
return;
|
|
12872
12872
|
case a.string:
|
|
12873
12873
|
case a.num:
|
|
@@ -12877,7 +12877,7 @@ function Ga() {
|
|
|
12877
12877
|
case a._this:
|
|
12878
12878
|
case a._void:
|
|
12879
12879
|
case a.star:
|
|
12880
|
-
|
|
12880
|
+
j();
|
|
12881
12881
|
return;
|
|
12882
12882
|
default:
|
|
12883
12883
|
if (m.type === a._typeof) {
|
|
@@ -12885,26 +12885,26 @@ function Ga() {
|
|
|
12885
12885
|
return;
|
|
12886
12886
|
}
|
|
12887
12887
|
if (m.type & a.IS_KEYWORD) {
|
|
12888
|
-
|
|
12888
|
+
j(), m.tokens[m.tokens.length - 1].type = a.name;
|
|
12889
12889
|
return;
|
|
12890
12890
|
}
|
|
12891
12891
|
}
|
|
12892
|
-
|
|
12892
|
+
T();
|
|
12893
12893
|
}
|
|
12894
12894
|
function Ka() {
|
|
12895
|
-
for (Ga(); !
|
|
12895
|
+
for (Ga(); !b() && (I(a.bracketL) || I(a.questionDot));) F(a.questionDot), w(a.bracketL), F(a.bracketR) || (Z(), w(a.bracketR));
|
|
12896
12896
|
}
|
|
12897
12897
|
function qa() {
|
|
12898
|
-
|
|
12898
|
+
F(a.question) ? qa() : Ka();
|
|
12899
12899
|
}
|
|
12900
12900
|
function Ja() {
|
|
12901
|
-
qa(), !m.noAnonFunctionType &&
|
|
12901
|
+
qa(), !m.noAnonFunctionType && F(a.arrow) && Z();
|
|
12902
12902
|
}
|
|
12903
12903
|
function Ya() {
|
|
12904
|
-
for (
|
|
12904
|
+
for (F(a.bitwiseAND), Ja(); F(a.bitwiseAND);) Ja();
|
|
12905
12905
|
}
|
|
12906
12906
|
function Xa() {
|
|
12907
|
-
for (
|
|
12907
|
+
for (F(a.bitwiseOR), Ya(); F(a.bitwiseOR);) Ya();
|
|
12908
12908
|
}
|
|
12909
12909
|
function Z() {
|
|
12910
12910
|
Xa();
|
|
@@ -12913,160 +12913,160 @@ function Za() {
|
|
|
12913
12913
|
Y();
|
|
12914
12914
|
}
|
|
12915
12915
|
function Qa() {
|
|
12916
|
-
J(),
|
|
12916
|
+
J(), I(a.colon) && Za();
|
|
12917
12917
|
}
|
|
12918
12918
|
function $a() {
|
|
12919
|
-
(
|
|
12919
|
+
(I(a.plus) || I(a.minus)) && (j(), m.tokens[m.tokens.length - 1].isType = !0);
|
|
12920
12920
|
}
|
|
12921
12921
|
function eo(e) {
|
|
12922
|
-
|
|
12922
|
+
I(a.colon) && da(), ra(!1, e);
|
|
12923
12923
|
}
|
|
12924
12924
|
function to(e, t, n) {
|
|
12925
|
-
if (
|
|
12925
|
+
if (I(a.questionDot) && L() === a.lessThan) {
|
|
12926
12926
|
if (t) {
|
|
12927
12927
|
n.stop = !0;
|
|
12928
12928
|
return;
|
|
12929
12929
|
}
|
|
12930
|
-
|
|
12930
|
+
j(), ka(), w(a.parenL), q();
|
|
12931
12931
|
} else {
|
|
12932
|
-
if (!t &&
|
|
12932
|
+
if (!t && I(a.lessThan)) {
|
|
12933
12933
|
let e = m.snapshot();
|
|
12934
|
-
if (ka(),
|
|
12934
|
+
if (ka(), w(a.parenL), q(), m.error) m.restoreFromSnapshot(e);
|
|
12935
12935
|
else return;
|
|
12936
12936
|
}
|
|
12937
|
-
|
|
12937
|
+
ji(e, t, n);
|
|
12938
12938
|
}
|
|
12939
12939
|
}
|
|
12940
12940
|
function no() {
|
|
12941
|
-
if (
|
|
12941
|
+
if (I(a.lessThan)) {
|
|
12942
12942
|
let e = m.snapshot();
|
|
12943
12943
|
ka(), m.error && m.restoreFromSnapshot(e);
|
|
12944
12944
|
}
|
|
12945
12945
|
}
|
|
12946
12946
|
function ro() {
|
|
12947
|
-
if (
|
|
12948
|
-
let e =
|
|
12949
|
-
return
|
|
12947
|
+
if (I(a.name) && m.contextualKeyword === i._interface) {
|
|
12948
|
+
let e = N(0);
|
|
12949
|
+
return j(), wa(), P(e), !0;
|
|
12950
12950
|
}
|
|
12951
|
-
return
|
|
12951
|
+
return _(i._enum) ? (wo(), !0) : !1;
|
|
12952
12952
|
}
|
|
12953
12953
|
function io() {
|
|
12954
|
-
return
|
|
12954
|
+
return _(i._enum) ? (wo(), !0) : !1;
|
|
12955
12955
|
}
|
|
12956
12956
|
function ao(e) {
|
|
12957
12957
|
if (e === i._declare) {
|
|
12958
|
-
if (
|
|
12959
|
-
let e =
|
|
12960
|
-
ma(),
|
|
12958
|
+
if (I(a._class) || I(a.name) || I(a._function) || I(a._var) || I(a._export)) {
|
|
12959
|
+
let e = N(1);
|
|
12960
|
+
ma(), P(e);
|
|
12961
12961
|
}
|
|
12962
|
-
} else if (
|
|
12962
|
+
} else if (I(a.name)) {
|
|
12963
12963
|
if (e === i._interface) {
|
|
12964
|
-
let e =
|
|
12965
|
-
wa(),
|
|
12964
|
+
let e = N(1);
|
|
12965
|
+
wa(), P(e);
|
|
12966
12966
|
} else if (e === i._type) {
|
|
12967
|
-
let e =
|
|
12968
|
-
Ea(),
|
|
12967
|
+
let e = N(1);
|
|
12968
|
+
Ea(), P(e);
|
|
12969
12969
|
} else if (e === i._opaque) {
|
|
12970
|
-
let e =
|
|
12971
|
-
Da(!1),
|
|
12970
|
+
let e = N(1);
|
|
12971
|
+
Da(!1), P(e);
|
|
12972
12972
|
}
|
|
12973
12973
|
}
|
|
12974
|
-
|
|
12974
|
+
C();
|
|
12975
12975
|
}
|
|
12976
12976
|
function oo() {
|
|
12977
|
-
return
|
|
12977
|
+
return _(i._type) || _(i._interface) || _(i._opaque) || _(i._enum);
|
|
12978
12978
|
}
|
|
12979
12979
|
function so() {
|
|
12980
|
-
return
|
|
12980
|
+
return I(a.name) && (m.contextualKeyword === i._type || m.contextualKeyword === i._interface || m.contextualKeyword === i._opaque || m.contextualKeyword === i._enum);
|
|
12981
12981
|
}
|
|
12982
12982
|
function co() {
|
|
12983
|
-
if (
|
|
12984
|
-
let e =
|
|
12985
|
-
|
|
12986
|
-
} else if (
|
|
12987
|
-
let e =
|
|
12988
|
-
|
|
12989
|
-
} else if (
|
|
12990
|
-
let e =
|
|
12991
|
-
|
|
12983
|
+
if (_(i._type)) {
|
|
12984
|
+
let e = N(1);
|
|
12985
|
+
j(), I(a.braceL) ? (As(), ws()) : Ea(), P(e);
|
|
12986
|
+
} else if (_(i._opaque)) {
|
|
12987
|
+
let e = N(1);
|
|
12988
|
+
j(), Da(!1), P(e);
|
|
12989
|
+
} else if (_(i._interface)) {
|
|
12990
|
+
let e = N(1);
|
|
12991
|
+
j(), wa(), P(e);
|
|
12992
12992
|
} else Q(!0);
|
|
12993
12993
|
}
|
|
12994
12994
|
function lo() {
|
|
12995
|
-
return
|
|
12995
|
+
return I(a.star) || _(i._type) && L() === a.star;
|
|
12996
12996
|
}
|
|
12997
12997
|
function uo() {
|
|
12998
|
-
if (
|
|
12999
|
-
let e =
|
|
13000
|
-
Ds(),
|
|
12998
|
+
if (v(i._type)) {
|
|
12999
|
+
let e = N(2);
|
|
13000
|
+
Ds(), P(e);
|
|
13001
13001
|
} else Ds();
|
|
13002
13002
|
}
|
|
13003
13003
|
function fo(e) {
|
|
13004
|
-
if (e &&
|
|
13005
|
-
let e =
|
|
13006
|
-
|
|
13004
|
+
if (e && I(a.lessThan) && ka(), _(i._implements)) {
|
|
13005
|
+
let e = N(0);
|
|
13006
|
+
j(), m.tokens[m.tokens.length - 1].type = a._implements;
|
|
13007
13007
|
do
|
|
13008
|
-
Ta(),
|
|
13009
|
-
while (
|
|
13010
|
-
|
|
13008
|
+
Ta(), I(a.lessThan) && ka();
|
|
13009
|
+
while (F(a.comma));
|
|
13010
|
+
P(e);
|
|
13011
13011
|
}
|
|
13012
13012
|
}
|
|
13013
13013
|
function po() {
|
|
13014
|
-
|
|
13014
|
+
I(a.lessThan) && (X(), I(a.parenL) || T());
|
|
13015
13015
|
}
|
|
13016
13016
|
function mo() {
|
|
13017
|
-
let e =
|
|
13018
|
-
|
|
13017
|
+
let e = N(0);
|
|
13018
|
+
F(a.question), I(a.colon) && Za(), P(e);
|
|
13019
13019
|
}
|
|
13020
13020
|
function ho() {
|
|
13021
|
-
if (
|
|
13022
|
-
let e =
|
|
13023
|
-
(la(e) || e.type === a.braceL || e.type === a.star) &&
|
|
13021
|
+
if (I(a._typeof) || _(i._type)) {
|
|
13022
|
+
let e = Se();
|
|
13023
|
+
(la(e) || e.type === a.braceL || e.type === a.star) && j();
|
|
13024
13024
|
}
|
|
13025
13025
|
}
|
|
13026
13026
|
function go() {
|
|
13027
13027
|
let e = m.contextualKeyword === i._type || m.type === a._typeof;
|
|
13028
|
-
e ?
|
|
13028
|
+
e ? j() : J(), _(i._as) && !ae(i._as) ? (J(), e && !I(a.name) && !(m.type & a.IS_KEYWORD) || J()) : (e && (I(a.name) || m.type & a.IS_KEYWORD) && J(), v(i._as) && J());
|
|
13029
13029
|
}
|
|
13030
13030
|
function _o() {
|
|
13031
|
-
if (
|
|
13032
|
-
let e =
|
|
13033
|
-
X(),
|
|
13031
|
+
if (I(a.lessThan)) {
|
|
13032
|
+
let e = N(0);
|
|
13033
|
+
X(), P(e);
|
|
13034
13034
|
}
|
|
13035
13035
|
}
|
|
13036
13036
|
function vo() {
|
|
13037
|
-
|
|
13037
|
+
I(a.colon) && Za();
|
|
13038
13038
|
}
|
|
13039
13039
|
function yo() {
|
|
13040
|
-
if (
|
|
13040
|
+
if (I(a.colon)) {
|
|
13041
13041
|
let e = m.noAnonFunctionType;
|
|
13042
13042
|
m.noAnonFunctionType = !0, Za(), m.noAnonFunctionType = e;
|
|
13043
13043
|
}
|
|
13044
13044
|
}
|
|
13045
13045
|
function bo(e, t) {
|
|
13046
|
-
if (
|
|
13047
|
-
let n = m.snapshot(), r =
|
|
13046
|
+
if (I(a.lessThan)) {
|
|
13047
|
+
let n = m.snapshot(), r = K(e, t);
|
|
13048
13048
|
if (m.error) m.restoreFromSnapshot(n), m.type = a.typeParameterStart;
|
|
13049
13049
|
else return r;
|
|
13050
|
-
let i =
|
|
13051
|
-
if (X(),
|
|
13052
|
-
|
|
13050
|
+
let i = N(0);
|
|
13051
|
+
if (X(), P(i), r = K(e, t), r) return !0;
|
|
13052
|
+
T();
|
|
13053
13053
|
}
|
|
13054
|
-
return
|
|
13054
|
+
return K(e, t);
|
|
13055
13055
|
}
|
|
13056
13056
|
function xo() {
|
|
13057
|
-
if (
|
|
13058
|
-
let e =
|
|
13059
|
-
m.noAnonFunctionType = !0, da(), m.noAnonFunctionType = n,
|
|
13057
|
+
if (I(a.colon)) {
|
|
13058
|
+
let e = N(0), t = m.snapshot(), n = m.noAnonFunctionType;
|
|
13059
|
+
m.noAnonFunctionType = !0, da(), m.noAnonFunctionType = n, b() && T(), I(a.arrow) || T(), m.error && m.restoreFromSnapshot(t), P(e);
|
|
13060
13060
|
}
|
|
13061
|
-
return
|
|
13061
|
+
return F(a.arrow);
|
|
13062
13062
|
}
|
|
13063
13063
|
function So(e, t = !1) {
|
|
13064
|
-
if (m.tokens[m.tokens.length - 1].contextualKeyword === i._async &&
|
|
13064
|
+
if (m.tokens[m.tokens.length - 1].contextualKeyword === i._async && I(a.lessThan)) {
|
|
13065
13065
|
let e = m.snapshot();
|
|
13066
13066
|
if (Co() && !m.error) return;
|
|
13067
13067
|
m.restoreFromSnapshot(e);
|
|
13068
13068
|
}
|
|
13069
|
-
|
|
13069
|
+
ki(e, t);
|
|
13070
13070
|
}
|
|
13071
13071
|
function Co() {
|
|
13072
13072
|
m.scopeDepth++;
|
|
@@ -13074,16 +13074,16 @@ function Co() {
|
|
|
13074
13074
|
return os(), Ui() ? (ta(e), !0) : !1;
|
|
13075
13075
|
}
|
|
13076
13076
|
function wo() {
|
|
13077
|
-
|
|
13077
|
+
y(i._enum), m.tokens[m.tokens.length - 1].type = a._enum, J(), To();
|
|
13078
13078
|
}
|
|
13079
13079
|
function To() {
|
|
13080
|
-
|
|
13080
|
+
v(i._of) && j(), w(a.braceL), Eo(), w(a.braceR);
|
|
13081
13081
|
}
|
|
13082
13082
|
function Eo() {
|
|
13083
|
-
for (; !
|
|
13083
|
+
for (; !I(a.braceR) && !m.error && !F(a.ellipsis);) Do(), I(a.braceR) || w(a.comma);
|
|
13084
13084
|
}
|
|
13085
13085
|
function Do() {
|
|
13086
|
-
J(),
|
|
13086
|
+
J(), F(a.eq) && j();
|
|
13087
13087
|
}
|
|
13088
13088
|
//#endregion
|
|
13089
13089
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/parser/traverser/statement.js
|
|
@@ -13092,10 +13092,10 @@ function Oo() {
|
|
|
13092
13092
|
return new Vs(m.tokens, m.scopes);
|
|
13093
13093
|
}
|
|
13094
13094
|
function Q(e) {
|
|
13095
|
-
p && ro() || (
|
|
13095
|
+
p && ro() || (I(a.at) && jo(), ko(e));
|
|
13096
13096
|
}
|
|
13097
13097
|
function ko(e) {
|
|
13098
|
-
if (f &&
|
|
13098
|
+
if (f && Wr()) return;
|
|
13099
13099
|
let t = m.type;
|
|
13100
13100
|
switch (t) {
|
|
13101
13101
|
case a._break:
|
|
@@ -13112,11 +13112,11 @@ function ko(e) {
|
|
|
13112
13112
|
Ro();
|
|
13113
13113
|
return;
|
|
13114
13114
|
case a._function:
|
|
13115
|
-
if (
|
|
13116
|
-
e ||
|
|
13115
|
+
if (L() === a.dot) break;
|
|
13116
|
+
e || T(), Vo();
|
|
13117
13117
|
return;
|
|
13118
13118
|
case a._class:
|
|
13119
|
-
e ||
|
|
13119
|
+
e || T(), ss(!0);
|
|
13120
13120
|
return;
|
|
13121
13121
|
case a._if:
|
|
13122
13122
|
Ho();
|
|
@@ -13134,7 +13134,7 @@ function ko(e) {
|
|
|
13134
13134
|
qo();
|
|
13135
13135
|
return;
|
|
13136
13136
|
case a._let:
|
|
13137
|
-
case a._const: e ||
|
|
13137
|
+
case a._const: e || T();
|
|
13138
13138
|
case a._var:
|
|
13139
13139
|
Jo(t !== a._var);
|
|
13140
13140
|
return;
|
|
@@ -13149,64 +13149,64 @@ function ko(e) {
|
|
|
13149
13149
|
return;
|
|
13150
13150
|
case a._export:
|
|
13151
13151
|
case a._import: {
|
|
13152
|
-
let e =
|
|
13152
|
+
let e = L();
|
|
13153
13153
|
if (e === a.parenL || e === a.dot) break;
|
|
13154
|
-
|
|
13154
|
+
j(), t === a._import ? Ps() : ys();
|
|
13155
13155
|
return;
|
|
13156
13156
|
}
|
|
13157
13157
|
case a.name: if (m.contextualKeyword === i._async) {
|
|
13158
13158
|
let e = m.start, t = m.snapshot();
|
|
13159
|
-
if (
|
|
13160
|
-
|
|
13159
|
+
if (j(), I(a._function) && !b()) {
|
|
13160
|
+
w(a._function), as(e, !0);
|
|
13161
13161
|
return;
|
|
13162
13162
|
}
|
|
13163
13163
|
m.restoreFromSnapshot(t);
|
|
13164
|
-
} else if (m.contextualKeyword === i._using && !
|
|
13164
|
+
} else if (m.contextualKeyword === i._using && !oe() && L() === a.name) {
|
|
13165
13165
|
Jo(!0);
|
|
13166
13166
|
return;
|
|
13167
13167
|
} else if (Ao()) {
|
|
13168
|
-
|
|
13168
|
+
y(i._await), Jo(!0);
|
|
13169
13169
|
return;
|
|
13170
13170
|
}
|
|
13171
13171
|
}
|
|
13172
13172
|
let n = m.tokens.length;
|
|
13173
|
-
|
|
13173
|
+
W();
|
|
13174
13174
|
let r = null;
|
|
13175
13175
|
if (m.tokens.length === n + 1) {
|
|
13176
13176
|
let e = m.tokens[m.tokens.length - 1];
|
|
13177
13177
|
e.type === a.name && (r = e.contextualKeyword);
|
|
13178
13178
|
}
|
|
13179
|
-
r == null ?
|
|
13179
|
+
r == null ? C() : F(a.colon) ? Zo() : Qo(r);
|
|
13180
13180
|
}
|
|
13181
13181
|
function Ao() {
|
|
13182
|
-
if (!
|
|
13182
|
+
if (!_(i._await)) return !1;
|
|
13183
13183
|
let e = m.snapshot();
|
|
13184
|
-
return
|
|
13184
|
+
return j(), !_(i._using) || x() || (j(), !I(a.name) || x()) ? (m.restoreFromSnapshot(e), !1) : (m.restoreFromSnapshot(e), !0);
|
|
13185
13185
|
}
|
|
13186
13186
|
function jo() {
|
|
13187
|
-
for (;
|
|
13187
|
+
for (; I(a.at);) Mo();
|
|
13188
13188
|
}
|
|
13189
13189
|
function Mo() {
|
|
13190
|
-
if (
|
|
13190
|
+
if (j(), F(a.parenL)) W(), w(a.parenR);
|
|
13191
13191
|
else {
|
|
13192
|
-
for (J();
|
|
13192
|
+
for (J(); F(a.dot);) J();
|
|
13193
13193
|
No();
|
|
13194
13194
|
}
|
|
13195
13195
|
}
|
|
13196
13196
|
function No() {
|
|
13197
|
-
f ?
|
|
13197
|
+
f ? ii() : Po();
|
|
13198
13198
|
}
|
|
13199
13199
|
function Po() {
|
|
13200
|
-
|
|
13200
|
+
F(a.parenL) && q();
|
|
13201
13201
|
}
|
|
13202
13202
|
function Fo() {
|
|
13203
|
-
|
|
13203
|
+
j(), S() || (J(), C());
|
|
13204
13204
|
}
|
|
13205
13205
|
function Io() {
|
|
13206
|
-
|
|
13206
|
+
j(), C();
|
|
13207
13207
|
}
|
|
13208
13208
|
function Lo() {
|
|
13209
|
-
|
|
13209
|
+
j(), Q(!1), w(a._while), Bi(), F(a.semi);
|
|
13210
13210
|
}
|
|
13211
13211
|
function Ro() {
|
|
13212
13212
|
m.scopeDepth++;
|
|
@@ -13216,119 +13216,119 @@ function Ro() {
|
|
|
13216
13216
|
m.scopes.push(new s(e, t, !1)), m.scopeDepth--;
|
|
13217
13217
|
}
|
|
13218
13218
|
function zo() {
|
|
13219
|
-
return !(!
|
|
13219
|
+
return !(!_(i._using) || ae(i._of));
|
|
13220
13220
|
}
|
|
13221
13221
|
function Bo() {
|
|
13222
|
-
|
|
13222
|
+
j();
|
|
13223
13223
|
let e = !1;
|
|
13224
|
-
if (
|
|
13225
|
-
e &&
|
|
13224
|
+
if (_(i._await) && (e = !0, j()), w(a.parenL), I(a.semi)) {
|
|
13225
|
+
e && T(), ts();
|
|
13226
13226
|
return;
|
|
13227
13227
|
}
|
|
13228
13228
|
let t = Ao();
|
|
13229
|
-
if (t ||
|
|
13230
|
-
if (t &&
|
|
13229
|
+
if (t || I(a._var) || I(a._let) || I(a._const) || zo()) {
|
|
13230
|
+
if (t && y(i._await), j(), rs(!0, m.type !== a._var), I(a._in) || _(i._of)) {
|
|
13231
13231
|
ns(e);
|
|
13232
13232
|
return;
|
|
13233
13233
|
}
|
|
13234
13234
|
ts();
|
|
13235
|
-
} else
|
|
13235
|
+
} else W(!0), I(a._in) || _(i._of) ? ns(e) : (e && T(), ts());
|
|
13236
13236
|
}
|
|
13237
13237
|
function Vo() {
|
|
13238
13238
|
let e = m.start;
|
|
13239
|
-
|
|
13239
|
+
j(), as(e, !0);
|
|
13240
13240
|
}
|
|
13241
13241
|
function Ho() {
|
|
13242
|
-
|
|
13242
|
+
j(), Bi(), Q(!1), F(a._else) && Q(!1);
|
|
13243
13243
|
}
|
|
13244
13244
|
function Uo() {
|
|
13245
|
-
|
|
13245
|
+
j(), S() || (W(), C());
|
|
13246
13246
|
}
|
|
13247
13247
|
function Wo() {
|
|
13248
|
-
|
|
13248
|
+
j(), Bi(), m.scopeDepth++;
|
|
13249
13249
|
let e = m.tokens.length;
|
|
13250
|
-
for (
|
|
13251
|
-
let e =
|
|
13252
|
-
|
|
13250
|
+
for (w(a.braceL); !I(a.braceR) && !m.error;) if (I(a._case) || I(a._default)) {
|
|
13251
|
+
let e = I(a._case);
|
|
13252
|
+
j(), e && W(), w(a.colon);
|
|
13253
13253
|
} else Q(!0);
|
|
13254
|
-
|
|
13254
|
+
j();
|
|
13255
13255
|
let t = m.tokens.length;
|
|
13256
13256
|
m.scopes.push(new s(e, t, !1)), m.scopeDepth--;
|
|
13257
13257
|
}
|
|
13258
13258
|
function Go() {
|
|
13259
|
-
|
|
13259
|
+
j(), W(), C();
|
|
13260
13260
|
}
|
|
13261
13261
|
function Ko() {
|
|
13262
|
-
|
|
13262
|
+
dn(!0), f && cr();
|
|
13263
13263
|
}
|
|
13264
13264
|
function qo() {
|
|
13265
|
-
if (
|
|
13266
|
-
|
|
13265
|
+
if (j(), $o(), I(a._catch)) {
|
|
13266
|
+
j();
|
|
13267
13267
|
let e = null;
|
|
13268
|
-
if (
|
|
13268
|
+
if (I(a.parenL) && (m.scopeDepth++, e = m.tokens.length, w(a.parenL), Ko(), w(a.parenR)), $o(), e != null) {
|
|
13269
13269
|
let t = m.tokens.length;
|
|
13270
13270
|
m.scopes.push(new s(e, t, !1)), m.scopeDepth--;
|
|
13271
13271
|
}
|
|
13272
13272
|
}
|
|
13273
|
-
|
|
13273
|
+
F(a._finally) && $o();
|
|
13274
13274
|
}
|
|
13275
13275
|
function Jo(e) {
|
|
13276
|
-
|
|
13276
|
+
j(), rs(!1, e), C();
|
|
13277
13277
|
}
|
|
13278
13278
|
function Yo() {
|
|
13279
|
-
|
|
13279
|
+
j(), Bi(), Q(!1);
|
|
13280
13280
|
}
|
|
13281
13281
|
function Xo() {
|
|
13282
|
-
|
|
13282
|
+
j();
|
|
13283
13283
|
}
|
|
13284
13284
|
function Zo() {
|
|
13285
13285
|
Q(!0);
|
|
13286
13286
|
}
|
|
13287
13287
|
function Qo(e) {
|
|
13288
|
-
f ?
|
|
13288
|
+
f ? Kr(e) : p ? ao(e) : C();
|
|
13289
13289
|
}
|
|
13290
13290
|
function $o(e = !1, t = 0) {
|
|
13291
13291
|
let n = m.tokens.length;
|
|
13292
|
-
m.scopeDepth++,
|
|
13292
|
+
m.scopeDepth++, w(a.braceL), t && (m.tokens[m.tokens.length - 1].contextId = t), es(a.braceR), t && (m.tokens[m.tokens.length - 1].contextId = t);
|
|
13293
13293
|
let r = m.tokens.length;
|
|
13294
13294
|
m.scopes.push(new s(n, r, e)), m.scopeDepth--;
|
|
13295
13295
|
}
|
|
13296
13296
|
function es(e) {
|
|
13297
|
-
for (; !
|
|
13297
|
+
for (; !F(e) && !m.error;) Q(!0);
|
|
13298
13298
|
}
|
|
13299
13299
|
function ts() {
|
|
13300
|
-
|
|
13300
|
+
w(a.semi), I(a.semi) || W(), w(a.semi), I(a.parenR) || W(), w(a.parenR), Q(!1);
|
|
13301
13301
|
}
|
|
13302
13302
|
function ns(e) {
|
|
13303
|
-
e ?
|
|
13303
|
+
e ? v(i._of) : j(), W(), w(a.parenR), Q(!1);
|
|
13304
13304
|
}
|
|
13305
13305
|
function rs(e, t) {
|
|
13306
13306
|
for (;;) {
|
|
13307
|
-
if (is(t),
|
|
13307
|
+
if (is(t), F(a.eq)) {
|
|
13308
13308
|
let t = m.tokens.length - 1;
|
|
13309
|
-
|
|
13309
|
+
G(e), m.tokens[t].rhsEndIndex = m.tokens.length;
|
|
13310
13310
|
}
|
|
13311
|
-
if (!
|
|
13311
|
+
if (!F(a.comma)) break;
|
|
13312
13312
|
}
|
|
13313
13313
|
}
|
|
13314
13314
|
function is(e) {
|
|
13315
|
-
|
|
13315
|
+
dn(e), f ? Zr() : p && vo();
|
|
13316
13316
|
}
|
|
13317
13317
|
function as(e, t, n = !1) {
|
|
13318
|
-
|
|
13318
|
+
I(a.star) && j(), t && !n && !I(a.name) && !I(a._yield) && T();
|
|
13319
13319
|
let r = null;
|
|
13320
|
-
|
|
13320
|
+
I(a.name) && (t || (r = m.tokens.length, m.scopeDepth++), cn(!1));
|
|
13321
13321
|
let i = m.tokens.length;
|
|
13322
13322
|
m.scopeDepth++, os(), na(e);
|
|
13323
13323
|
let o = m.tokens.length;
|
|
13324
13324
|
m.scopes.push(new s(i, o, !0)), m.scopeDepth--, r !== null && (m.scopes.push(new s(r, o, !0)), m.scopeDepth--);
|
|
13325
13325
|
}
|
|
13326
13326
|
function os(e = !1, t = 0) {
|
|
13327
|
-
f ?
|
|
13327
|
+
f ? Xr() : p && _o(), w(a.parenL), t && (m.tokens[m.tokens.length - 1].contextId = t), fn(a.parenR, !1, !1, e, t), t && (m.tokens[m.tokens.length - 1].contextId = t);
|
|
13328
13328
|
}
|
|
13329
13329
|
function ss(e, t = !1) {
|
|
13330
|
-
let n =
|
|
13331
|
-
|
|
13330
|
+
let n = g();
|
|
13331
|
+
j(), m.tokens[m.tokens.length - 1].contextId = n, m.tokens[m.tokens.length - 1].isExpression = !e;
|
|
13332
13332
|
let r = null;
|
|
13333
13333
|
e || (r = m.tokens.length, m.scopeDepth++), _s(e, t), vs();
|
|
13334
13334
|
let i = m.tokens.length;
|
|
@@ -13338,15 +13338,15 @@ function ss(e, t = !1) {
|
|
|
13338
13338
|
}
|
|
13339
13339
|
}
|
|
13340
13340
|
function cs() {
|
|
13341
|
-
return
|
|
13341
|
+
return I(a.eq) || I(a.semi) || I(a.braceR) || I(a.bang) || I(a.colon);
|
|
13342
13342
|
}
|
|
13343
13343
|
function ls() {
|
|
13344
|
-
return
|
|
13344
|
+
return I(a.parenL) || I(a.lessThan);
|
|
13345
13345
|
}
|
|
13346
13346
|
function us(e) {
|
|
13347
|
-
for (
|
|
13348
|
-
if (
|
|
13349
|
-
if (
|
|
13347
|
+
for (w(a.braceL); !F(a.braceR) && !m.error;) {
|
|
13348
|
+
if (F(a.semi)) continue;
|
|
13349
|
+
if (I(a.at)) {
|
|
13350
13350
|
Mo();
|
|
13351
13351
|
continue;
|
|
13352
13352
|
}
|
|
@@ -13355,7 +13355,7 @@ function us(e) {
|
|
|
13355
13355
|
}
|
|
13356
13356
|
}
|
|
13357
13357
|
function ds(e, t) {
|
|
13358
|
-
f &&
|
|
13358
|
+
f && yn([
|
|
13359
13359
|
i._declare,
|
|
13360
13360
|
i._public,
|
|
13361
13361
|
i._protected,
|
|
@@ -13363,7 +13363,7 @@ function ds(e, t) {
|
|
|
13363
13363
|
i._override
|
|
13364
13364
|
]);
|
|
13365
13365
|
let n = !1;
|
|
13366
|
-
if (
|
|
13366
|
+
if (I(a.name) && m.contextualKeyword === i._static) {
|
|
13367
13367
|
if (J(), ls()) {
|
|
13368
13368
|
ps(e, !1);
|
|
13369
13369
|
return;
|
|
@@ -13372,7 +13372,7 @@ function ds(e, t) {
|
|
|
13372
13372
|
gs();
|
|
13373
13373
|
return;
|
|
13374
13374
|
}
|
|
13375
|
-
if (m.tokens[m.tokens.length - 1].type = a._static, n = !0,
|
|
13375
|
+
if (m.tokens[m.tokens.length - 1].type = a._static, n = !0, I(a.braceL)) {
|
|
13376
13376
|
m.tokens[m.tokens.length - 1].contextId = t, $o();
|
|
13377
13377
|
return;
|
|
13378
13378
|
}
|
|
@@ -13380,147 +13380,147 @@ function ds(e, t) {
|
|
|
13380
13380
|
fs(e, n, t);
|
|
13381
13381
|
}
|
|
13382
13382
|
function fs(e, t, n) {
|
|
13383
|
-
if (f &&
|
|
13384
|
-
if (
|
|
13383
|
+
if (f && Gr(t)) return;
|
|
13384
|
+
if (F(a.star)) {
|
|
13385
13385
|
ms(n), ps(e, !1);
|
|
13386
13386
|
return;
|
|
13387
13387
|
}
|
|
13388
13388
|
ms(n);
|
|
13389
13389
|
let r = !1, o = m.tokens[m.tokens.length - 1];
|
|
13390
|
-
o.contextualKeyword === i._constructor && (r = !0), hs(), ls() ? ps(e, r) : cs() ? gs() : o.contextualKeyword === i._async && !
|
|
13390
|
+
o.contextualKeyword === i._constructor && (r = !0), hs(), ls() ? ps(e, r) : cs() ? gs() : o.contextualKeyword === i._async && !S() ? (m.tokens[m.tokens.length - 1].type = a._async, I(a.star) && j(), ms(n), hs(), ps(e, !1)) : (o.contextualKeyword === i._get || o.contextualKeyword === i._set) && !(S() && I(a.star)) ? (o.contextualKeyword === i._get ? m.tokens[m.tokens.length - 1].type = a._get : m.tokens[m.tokens.length - 1].type = a._set, ms(n), ps(e, !1)) : o.contextualKeyword === i._accessor && !S() ? (ms(n), gs()) : S() ? gs() : T();
|
|
13391
13391
|
}
|
|
13392
13392
|
function ps(e, t) {
|
|
13393
|
-
f ?
|
|
13393
|
+
f ? On() : p && I(a.lessThan) && X(), ea(e, t);
|
|
13394
13394
|
}
|
|
13395
13395
|
function ms(e) {
|
|
13396
13396
|
$i(e);
|
|
13397
13397
|
}
|
|
13398
13398
|
function hs() {
|
|
13399
13399
|
if (f) {
|
|
13400
|
-
let e =
|
|
13401
|
-
|
|
13400
|
+
let e = N(0);
|
|
13401
|
+
F(a.question), P(e);
|
|
13402
13402
|
}
|
|
13403
13403
|
}
|
|
13404
13404
|
function gs() {
|
|
13405
|
-
if (f ? (
|
|
13405
|
+
if (f ? (be(a.bang), cr()) : p && I(a.colon) && Za(), I(a.eq)) {
|
|
13406
13406
|
let e = m.tokens.length;
|
|
13407
|
-
|
|
13407
|
+
j(), G(), m.tokens[e].rhsEndIndex = m.tokens.length;
|
|
13408
13408
|
}
|
|
13409
|
-
|
|
13409
|
+
C();
|
|
13410
13410
|
}
|
|
13411
13411
|
function _s(e, t = !1) {
|
|
13412
|
-
(!f || e && !t || !
|
|
13412
|
+
(!f || e && !t || !_(i._implements)) && (I(a.name) && cn(!0), f ? On() : p && I(a.lessThan) && X());
|
|
13413
13413
|
}
|
|
13414
13414
|
function vs() {
|
|
13415
13415
|
let e = !1;
|
|
13416
|
-
|
|
13416
|
+
F(a._extends) ? (Di(), e = !0) : e = !1, f ? Jr(e) : p && fo(e);
|
|
13417
13417
|
}
|
|
13418
13418
|
function ys() {
|
|
13419
13419
|
let e = m.tokens.length - 1;
|
|
13420
|
-
f &&
|
|
13420
|
+
f && Br() || (Ts() ? Es() : Ss() ? (J(), I(a.comma) && L() === a.star ? (w(a.comma), w(a.star), y(i._as), J()) : Cs(), ws()) : F(a._default) ? bs() : ks() ? xs() : (As(), ws()), m.tokens[e].rhsEndIndex = m.tokens.length);
|
|
13421
13421
|
}
|
|
13422
13422
|
function bs() {
|
|
13423
|
-
if (f &&
|
|
13423
|
+
if (f && Ur() || p && io()) return;
|
|
13424
13424
|
let e = m.start;
|
|
13425
|
-
|
|
13425
|
+
F(a._function) ? as(e, !0, !0) : _(i._async) && L() === a._function ? (v(i._async), F(a._function), as(e, !0, !0)) : I(a._class) ? ss(!0, !0) : I(a.at) ? (jo(), ss(!0, !0)) : (G(), C());
|
|
13426
13426
|
}
|
|
13427
13427
|
function xs() {
|
|
13428
|
-
f ?
|
|
13428
|
+
f ? qr() : p ? co() : Q(!0);
|
|
13429
13429
|
}
|
|
13430
13430
|
function Ss() {
|
|
13431
|
-
if (f &&
|
|
13432
|
-
if (
|
|
13433
|
-
if (!
|
|
13434
|
-
let e =
|
|
13431
|
+
if (f && Lr() || p && so()) return !1;
|
|
13432
|
+
if (I(a.name)) return m.contextualKeyword !== i._async;
|
|
13433
|
+
if (!I(a._default)) return !1;
|
|
13434
|
+
let e = Ce(), t = Se(), n = t.type === a.name && t.contextualKeyword === i._from;
|
|
13435
13435
|
if (t.type === a.comma) return !0;
|
|
13436
13436
|
if (n) {
|
|
13437
|
-
let t = h.charCodeAt(
|
|
13437
|
+
let t = h.charCodeAt(we(e + 4));
|
|
13438
13438
|
return t === u.quotationMark || t === u.apostrophe;
|
|
13439
13439
|
}
|
|
13440
13440
|
return !1;
|
|
13441
13441
|
}
|
|
13442
13442
|
function Cs() {
|
|
13443
|
-
|
|
13443
|
+
F(a.comma) && As();
|
|
13444
13444
|
}
|
|
13445
13445
|
function ws() {
|
|
13446
|
-
|
|
13446
|
+
v(i._from) && (Ii(), zs()), C();
|
|
13447
13447
|
}
|
|
13448
13448
|
function Ts() {
|
|
13449
|
-
return p ? lo() :
|
|
13449
|
+
return p ? lo() : I(a.star);
|
|
13450
13450
|
}
|
|
13451
13451
|
function Es() {
|
|
13452
13452
|
p ? uo() : Ds();
|
|
13453
13453
|
}
|
|
13454
13454
|
function Ds() {
|
|
13455
|
-
|
|
13455
|
+
w(a.star), _(i._as) ? Os() : ws();
|
|
13456
13456
|
}
|
|
13457
13457
|
function Os() {
|
|
13458
|
-
|
|
13458
|
+
j(), m.tokens[m.tokens.length - 1].type = a._as, J(), Cs(), ws();
|
|
13459
13459
|
}
|
|
13460
13460
|
function ks() {
|
|
13461
|
-
return f &&
|
|
13461
|
+
return f && Lr() || p && oo() || m.type === a._var || m.type === a._const || m.type === a._let || m.type === a._function || m.type === a._class || _(i._async) || I(a.at);
|
|
13462
13462
|
}
|
|
13463
13463
|
function As() {
|
|
13464
13464
|
let e = !0;
|
|
13465
|
-
for (
|
|
13465
|
+
for (w(a.braceL); !F(a.braceR) && !m.error;) {
|
|
13466
13466
|
if (e) e = !1;
|
|
13467
|
-
else if (
|
|
13467
|
+
else if (w(a.comma), F(a.braceR)) break;
|
|
13468
13468
|
js();
|
|
13469
13469
|
}
|
|
13470
13470
|
}
|
|
13471
13471
|
function js() {
|
|
13472
|
-
f ?
|
|
13472
|
+
f ? Hr() : (J(), m.tokens[m.tokens.length - 1].identifierRole = k.ExportAccess, v(i._as) && J());
|
|
13473
13473
|
}
|
|
13474
13474
|
function Ms() {
|
|
13475
13475
|
let e = m.snapshot();
|
|
13476
|
-
return
|
|
13476
|
+
return y(i._module), v(i._from) ? _(i._from) ? (m.restoreFromSnapshot(e), !0) : (m.restoreFromSnapshot(e), !1) : I(a.comma) ? (m.restoreFromSnapshot(e), !1) : (m.restoreFromSnapshot(e), !0);
|
|
13477
13477
|
}
|
|
13478
13478
|
function Ns() {
|
|
13479
|
-
|
|
13479
|
+
_(i._module) && Ms() && j();
|
|
13480
13480
|
}
|
|
13481
13481
|
function Ps() {
|
|
13482
|
-
if (f &&
|
|
13482
|
+
if (f && I(a.name) && L() === a.eq) Tr();
|
|
13483
13483
|
else {
|
|
13484
|
-
if (f &&
|
|
13485
|
-
let e =
|
|
13484
|
+
if (f && _(i._type)) {
|
|
13485
|
+
let e = Se();
|
|
13486
13486
|
if (e.type === a.name && e.contextualKeyword !== i._from) {
|
|
13487
|
-
if (
|
|
13488
|
-
|
|
13487
|
+
if (y(i._type), L() === a.eq) {
|
|
13488
|
+
Tr();
|
|
13489
13489
|
return;
|
|
13490
13490
|
}
|
|
13491
|
-
} else (e.type === a.star || e.type === a.braceL) &&
|
|
13491
|
+
} else (e.type === a.star || e.type === a.braceL) && y(i._type);
|
|
13492
13492
|
}
|
|
13493
|
-
|
|
13493
|
+
I(a.string) || (Ns(), Ls(), y(i._from)), Ii(), zs(), C();
|
|
13494
13494
|
}
|
|
13495
13495
|
}
|
|
13496
13496
|
function Fs() {
|
|
13497
|
-
return
|
|
13497
|
+
return I(a.name);
|
|
13498
13498
|
}
|
|
13499
13499
|
function Is() {
|
|
13500
|
-
|
|
13500
|
+
ln();
|
|
13501
13501
|
}
|
|
13502
13502
|
function Ls() {
|
|
13503
13503
|
p && ho();
|
|
13504
13504
|
let e = !0;
|
|
13505
|
-
if (!(Fs() && (Is(), !
|
|
13506
|
-
if (
|
|
13507
|
-
else for (
|
|
13505
|
+
if (!(Fs() && (Is(), !F(a.comma)))) {
|
|
13506
|
+
if (I(a.star)) j(), y(i._as), Is();
|
|
13507
|
+
else for (w(a.braceL); !F(a.braceR) && !m.error;) {
|
|
13508
13508
|
if (e) e = !1;
|
|
13509
|
-
else if (
|
|
13509
|
+
else if (F(a.colon) && T("ES2015 named imports do not destructure. Use another statement for destructuring after the import."), w(a.comma), F(a.braceR)) break;
|
|
13510
13510
|
Rs();
|
|
13511
13511
|
}
|
|
13512
13512
|
}
|
|
13513
13513
|
}
|
|
13514
13514
|
function Rs() {
|
|
13515
|
-
f ?
|
|
13515
|
+
f ? Vr() : p ? go() : (ln(), _(i._as) && (m.tokens[m.tokens.length - 1].identifierRole = k.ImportAccess, j(), ln()));
|
|
13516
13516
|
}
|
|
13517
13517
|
function zs() {
|
|
13518
|
-
(
|
|
13518
|
+
(I(a._with) || _(i._assert) && !x()) && (j(), Ji(!1, !1));
|
|
13519
13519
|
}
|
|
13520
13520
|
//#endregion
|
|
13521
13521
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/parser/traverser/index.js
|
|
13522
13522
|
function Bs() {
|
|
13523
|
-
return m.pos === 0 && h.charCodeAt(0) === u.numberSign && h.charCodeAt(1) === u.exclamationMark &&
|
|
13523
|
+
return m.pos === 0 && h.charCodeAt(0) === u.numberSign && h.charCodeAt(1) === u.exclamationMark && ke(2), Ee(), Oo();
|
|
13524
13524
|
}
|
|
13525
13525
|
//#endregion
|
|
13526
13526
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/parser/index.js
|
|
@@ -13531,9 +13531,9 @@ var Vs = class {
|
|
|
13531
13531
|
};
|
|
13532
13532
|
function Hs(e, t, n, r) {
|
|
13533
13533
|
if (r && n) throw Error("Cannot combine flow and typescript plugins.");
|
|
13534
|
-
|
|
13534
|
+
ie(e, t, n, r);
|
|
13535
13535
|
let i = Bs();
|
|
13536
|
-
if (m.error) throw
|
|
13536
|
+
if (m.error) throw te(m.error);
|
|
13537
13537
|
return i;
|
|
13538
13538
|
}
|
|
13539
13539
|
//#endregion
|
|
@@ -13739,7 +13739,7 @@ function Gs(e, t, n, r) {
|
|
|
13739
13739
|
({constructorInitializerStatements: c, constructorInsertPos: d} = Js(t));
|
|
13740
13740
|
continue;
|
|
13741
13741
|
}
|
|
13742
|
-
let
|
|
13742
|
+
let g = t.currentIndex();
|
|
13743
13743
|
if (Xs(t), t.matches1(a.lessThan) || t.matches1(a.parenL)) {
|
|
13744
13744
|
Ks(t, m);
|
|
13745
13745
|
continue;
|
|
@@ -13753,7 +13753,7 @@ function Gs(e, t, n, r) {
|
|
|
13753
13753
|
s ? (a = n.claimFreeName("__initStatic"), u.push(a)) : (a = n.claimFreeName("__init"), l.push(a)), f.push({
|
|
13754
13754
|
initializerName: a,
|
|
13755
13755
|
equalsIndex: r,
|
|
13756
|
-
start:
|
|
13756
|
+
start: g,
|
|
13757
13757
|
end: t.currentIndex()
|
|
13758
13758
|
});
|
|
13759
13759
|
} else (!r || ee) && p.push({
|
|
@@ -13870,7 +13870,7 @@ function $s(e) {
|
|
|
13870
13870
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
|
|
13871
13871
|
for (let r = 0; r < e.tokens.length; r++) {
|
|
13872
13872
|
let i = e.tokens[r];
|
|
13873
|
-
i.type === a.name &&
|
|
13873
|
+
i.type === a.name && me(i) && (i.isType ? t.add(e.identifierNameForToken(i)) : n.add(e.identifierNameForToken(i)));
|
|
13874
13874
|
}
|
|
13875
13875
|
return {
|
|
13876
13876
|
typeDeclarations: t,
|
|
@@ -13904,7 +13904,7 @@ function nc(e, t, n, r) {
|
|
|
13904
13904
|
}
|
|
13905
13905
|
//#endregion
|
|
13906
13906
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/transformers/CJSImportTransformer.js
|
|
13907
|
-
var rc = class e extends
|
|
13907
|
+
var rc = class e extends B {
|
|
13908
13908
|
__init() {
|
|
13909
13909
|
this.hadExport = !1;
|
|
13910
13910
|
}
|
|
@@ -13966,8 +13966,8 @@ var rc = class e extends z {
|
|
|
13966
13966
|
processIdentifier() {
|
|
13967
13967
|
let e = this.tokens.currentToken();
|
|
13968
13968
|
if (e.shadowsGlobal) return !1;
|
|
13969
|
-
if (e.identifierRole ===
|
|
13970
|
-
if (e.identifierRole !==
|
|
13969
|
+
if (e.identifierRole === k.ObjectShorthand) return this.processObjectShorthand();
|
|
13970
|
+
if (e.identifierRole !== k.Access) return !1;
|
|
13971
13971
|
let t = this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(e));
|
|
13972
13972
|
if (!t) return !1;
|
|
13973
13973
|
let n = this.tokens.currentIndex() + 1;
|
|
@@ -14084,10 +14084,10 @@ var rc = class e extends z {
|
|
|
14084
14084
|
for (; this.tokens.currentIndex() < e;) this.rootTransformer.processToken();
|
|
14085
14085
|
} else {
|
|
14086
14086
|
let e = this.tokens.currentToken();
|
|
14087
|
-
if (
|
|
14087
|
+
if (fe(e)) {
|
|
14088
14088
|
let t = this.tokens.identifierName(), n = this.importProcessor.getIdentifierReplacement(t);
|
|
14089
14089
|
if (n === null) throw Error(`Expected a replacement for ${t} in \`export var\` syntax.`);
|
|
14090
|
-
|
|
14090
|
+
_e(e) && (n = `${t}: ${n}`), this.tokens.replaceToken(n);
|
|
14091
14091
|
} else this.rootTransformer.processToken();
|
|
14092
14092
|
}
|
|
14093
14093
|
if (e) {
|
|
@@ -14126,7 +14126,7 @@ var rc = class e extends z {
|
|
|
14126
14126
|
this.tokens.removeToken();
|
|
14127
14127
|
break;
|
|
14128
14128
|
}
|
|
14129
|
-
let n =
|
|
14129
|
+
let n = Xe(this.tokens);
|
|
14130
14130
|
for (; this.tokens.currentIndex() < n.endIndex;) this.tokens.removeToken();
|
|
14131
14131
|
if (!(n.isType || !e && this.shouldElideExportedIdentifier(n.leftName))) {
|
|
14132
14132
|
let e = n.rightName;
|
|
@@ -14160,9 +14160,9 @@ var rc = class e extends z {
|
|
|
14160
14160
|
shouldElideExportedIdentifier(e) {
|
|
14161
14161
|
return this.isTypeScriptTransformEnabled && !this.keepUnusedImports && !this.declarationInfo.valueDeclarations.has(e);
|
|
14162
14162
|
}
|
|
14163
|
-
}, ic = class extends
|
|
14163
|
+
}, ic = class extends B {
|
|
14164
14164
|
constructor(e, t, n, r, i, a, o, s) {
|
|
14165
|
-
super(), this.tokens = e, this.nameManager = t, this.helperManager = n, this.reactHotLoaderTransformer = r, this.isTypeScriptTransformEnabled = i, this.isFlowTransformEnabled = a, this.keepUnusedImports = o, this.nonTypeIdentifiers = i && !o ?
|
|
14165
|
+
super(), this.tokens = e, this.nameManager = t, this.helperManager = n, this.reactHotLoaderTransformer = r, this.isTypeScriptTransformEnabled = i, this.isFlowTransformEnabled = a, this.keepUnusedImports = o, this.nonTypeIdentifiers = i && !o ? lt(e, s) : /* @__PURE__ */ new Set(), this.declarationInfo = i && !o ? $s(e) : Qs, this.injectCreateRequireForImportRequire = !!s.injectCreateRequireForImportRequire;
|
|
14166
14166
|
}
|
|
14167
14167
|
process() {
|
|
14168
14168
|
if (this.tokens.matches3(a._import, a.name, a.eq)) return this.processImportEquals();
|
|
@@ -14211,7 +14211,7 @@ var rc = class e extends z {
|
|
|
14211
14211
|
else if (this.tokens.matches1(a.braceL)) {
|
|
14212
14212
|
for (n && this.tokens.appendCode(","), this.tokens.copyToken(); !this.tokens.matches1(a.braceR);) {
|
|
14213
14213
|
t = !0;
|
|
14214
|
-
let n =
|
|
14214
|
+
let n = Xe(this.tokens);
|
|
14215
14215
|
if (n.isType || this.shouldAutomaticallyElideImportedName(n.rightName)) {
|
|
14216
14216
|
for (; this.tokens.currentIndex() < n.endIndex;) this.tokens.removeToken();
|
|
14217
14217
|
this.tokens.matches1(a.comma) && this.tokens.removeToken();
|
|
@@ -14240,7 +14240,7 @@ var rc = class e extends z {
|
|
|
14240
14240
|
this.tokens.copyExpectedToken(a._export), this.tokens.copyExpectedToken(a.braceL);
|
|
14241
14241
|
let e = ec(this.tokens), t = !1;
|
|
14242
14242
|
for (; !this.tokens.matches1(a.braceR);) {
|
|
14243
|
-
let n =
|
|
14243
|
+
let n = Xe(this.tokens);
|
|
14244
14244
|
if (n.isType || !e && this.shouldElideExportedName(n.leftName)) {
|
|
14245
14245
|
for (; this.tokens.currentIndex() < n.endIndex;) this.tokens.removeToken();
|
|
14246
14246
|
this.tokens.matches1(a.comma) && this.tokens.removeToken();
|
|
@@ -14254,7 +14254,7 @@ var rc = class e extends z {
|
|
|
14254
14254
|
shouldElideExportedName(e) {
|
|
14255
14255
|
return this.isTypeScriptTransformEnabled && !this.keepUnusedImports && this.declarationInfo.typeDeclarations.has(e) && !this.declarationInfo.valueDeclarations.has(e);
|
|
14256
14256
|
}
|
|
14257
|
-
}, ac = class extends
|
|
14257
|
+
}, ac = class extends B {
|
|
14258
14258
|
constructor(e, t, n) {
|
|
14259
14259
|
super(), this.rootTransformer = e, this.tokens = t, this.isImportsTransformEnabled = n;
|
|
14260
14260
|
}
|
|
@@ -14312,7 +14312,7 @@ var sc = "jest", cc = [
|
|
|
14312
14312
|
"unmock",
|
|
14313
14313
|
"enableAutomock",
|
|
14314
14314
|
"disableAutomock"
|
|
14315
|
-
], lc = class e extends
|
|
14315
|
+
], lc = class e extends B {
|
|
14316
14316
|
__init() {
|
|
14317
14317
|
this.hoistedFunctionNames = [];
|
|
14318
14318
|
}
|
|
@@ -14349,7 +14349,7 @@ var sc = "jest", cc = [
|
|
|
14349
14349
|
}
|
|
14350
14350
|
return !0;
|
|
14351
14351
|
}
|
|
14352
|
-
}, uc = class extends
|
|
14352
|
+
}, uc = class extends B {
|
|
14353
14353
|
constructor(e) {
|
|
14354
14354
|
super(), this.tokens = e;
|
|
14355
14355
|
}
|
|
@@ -14360,14 +14360,14 @@ var sc = "jest", cc = [
|
|
|
14360
14360
|
}
|
|
14361
14361
|
return !1;
|
|
14362
14362
|
}
|
|
14363
|
-
}, dc = class extends
|
|
14363
|
+
}, dc = class extends B {
|
|
14364
14364
|
constructor(e, t) {
|
|
14365
14365
|
super(), this.tokens = e, this.nameManager = t;
|
|
14366
14366
|
}
|
|
14367
14367
|
process() {
|
|
14368
14368
|
return this.tokens.matches2(a._catch, a.braceL) ? (this.tokens.copyToken(), this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`), !0) : !1;
|
|
14369
14369
|
}
|
|
14370
|
-
}, fc = class extends
|
|
14370
|
+
}, fc = class extends B {
|
|
14371
14371
|
constructor(e, t) {
|
|
14372
14372
|
super(), this.tokens = e, this.nameManager = t;
|
|
14373
14373
|
}
|
|
@@ -14408,7 +14408,7 @@ var sc = "jest", cc = [
|
|
|
14408
14408
|
t--;
|
|
14409
14409
|
}
|
|
14410
14410
|
}
|
|
14411
|
-
}, pc = class extends
|
|
14411
|
+
}, pc = class extends B {
|
|
14412
14412
|
constructor(e, t, n, r) {
|
|
14413
14413
|
super(), this.rootTransformer = e, this.tokens = t, this.importProcessor = n, this.options = r;
|
|
14414
14414
|
}
|
|
@@ -14429,7 +14429,7 @@ var sc = "jest", cc = [
|
|
|
14429
14429
|
t && this.classNeedsDisplayName() && (this.tokens.copyExpectedToken(a.parenL), this.tokens.copyExpectedToken(a.braceL), this.tokens.appendCode(`displayName: '${t}',`), this.rootTransformer.processBalancedCode(), this.tokens.copyExpectedToken(a.braceR), this.tokens.copyExpectedToken(a.parenR));
|
|
14430
14430
|
}
|
|
14431
14431
|
findDisplayName(e) {
|
|
14432
|
-
return e < 2 ? null : this.tokens.matches2AtIndex(e - 2, a.name, a.eq) || e >= 2 && this.tokens.tokens[e - 2].identifierRole ===
|
|
14432
|
+
return e < 2 ? null : this.tokens.matches2AtIndex(e - 2, a.name, a.eq) || e >= 2 && this.tokens.tokens[e - 2].identifierRole === k.ObjectKey ? this.tokens.identifierNameAtIndex(e - 2) : this.tokens.matches2AtIndex(e - 2, a._export, a._default) ? this.getDisplayNameFromFilename() : null;
|
|
14433
14433
|
}
|
|
14434
14434
|
getDisplayNameFromFilename() {
|
|
14435
14435
|
let e = (this.options.filePath || "unknown").split("/"), t = e[e.length - 1], n = t.lastIndexOf("."), r = n === -1 ? t : t.slice(0, n);
|
|
@@ -14446,12 +14446,12 @@ var sc = "jest", cc = [
|
|
|
14446
14446
|
e++;
|
|
14447
14447
|
break;
|
|
14448
14448
|
}
|
|
14449
|
-
if (this.tokens.identifierNameAtIndex(e) === "displayName" && this.tokens.tokens[e].identifierRole ===
|
|
14449
|
+
if (this.tokens.identifierNameAtIndex(e) === "displayName" && this.tokens.tokens[e].identifierRole === k.ObjectKey && t.contextId === n) return !1;
|
|
14450
14450
|
}
|
|
14451
14451
|
if (e === this.tokens.tokens.length) throw Error("Unexpected end of input when processing React class.");
|
|
14452
14452
|
return this.tokens.matches1AtIndex(e, a.parenR) || this.tokens.matches2AtIndex(e, a.comma, a.parenR);
|
|
14453
14453
|
}
|
|
14454
|
-
}, mc = class e extends
|
|
14454
|
+
}, mc = class e extends B {
|
|
14455
14455
|
__init() {
|
|
14456
14456
|
this.extractedDefaultExportName = null;
|
|
14457
14457
|
}
|
|
@@ -14466,7 +14466,7 @@ var sc = "jest", cc = [
|
|
|
14466
14466
|
}
|
|
14467
14467
|
getSuffixCode() {
|
|
14468
14468
|
let e = /* @__PURE__ */ new Set();
|
|
14469
|
-
for (let t of this.tokens.tokens) !t.isType &&
|
|
14469
|
+
for (let t of this.tokens.tokens) !t.isType && me(t) && t.identifierRole !== k.ImportDeclaration && e.add(this.tokens.identifierNameForToken(t));
|
|
14470
14470
|
let t = Array.from(e).map((e) => ({
|
|
14471
14471
|
variableName: e,
|
|
14472
14472
|
uniqueLocalName: e
|
|
@@ -14490,13 +14490,13 @@ ${t.map(({ variableName: e, uniqueLocalName: t }) => ` reactHotLoader.register(
|
|
|
14490
14490
|
}
|
|
14491
14491
|
}, hc = /* @__PURE__ */ new Set(/* @__PURE__ */ "break.case.catch.class.const.continue.debugger.default.delete.do.else.export.extends.finally.for.function.if.import.in.instanceof.new.return.super.switch.this.throw.try.typeof.var.void.while.with.yield.enum.implements.interface.let.package.private.protected.public.static.await.false.null.true".split("."));
|
|
14492
14492
|
function gc(e) {
|
|
14493
|
-
if (e.length === 0 || !
|
|
14494
|
-
for (let t = 1; t < e.length; t++) if (!
|
|
14493
|
+
if (e.length === 0 || !O[e.charCodeAt(0)]) return !1;
|
|
14494
|
+
for (let t = 1; t < e.length; t++) if (!D[e.charCodeAt(t)]) return !1;
|
|
14495
14495
|
return !hc.has(e);
|
|
14496
14496
|
}
|
|
14497
14497
|
//#endregion
|
|
14498
14498
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/transformers/TypeScriptTransformer.js
|
|
14499
|
-
var _c = class extends
|
|
14499
|
+
var _c = class extends B {
|
|
14500
14500
|
constructor(e, t, n) {
|
|
14501
14501
|
super(), this.rootTransformer = e, this.tokens = t, this.isImportsTransformEnabled = n;
|
|
14502
14502
|
}
|
|
@@ -14560,7 +14560,7 @@ var _c = class extends z {
|
|
|
14560
14560
|
constructor(t, n, r, i) {
|
|
14561
14561
|
e.prototype.__init.call(this), e.prototype.__init2.call(this), this.nameManager = t.nameManager, this.helperManager = t.helperManager;
|
|
14562
14562
|
let { tokenProcessor: a, importProcessor: o } = t;
|
|
14563
|
-
this.tokens = a, this.isImportsTransformEnabled = n.includes("imports"), this.isReactHotLoaderTransformEnabled = n.includes("react-hot-loader"), this.disableESTransforms = !!i.disableESTransforms, i.disableESTransforms || (this.transformers.push(new fc(a, this.nameManager)), this.transformers.push(new uc(a)), this.transformers.push(new dc(a, this.nameManager))), n.includes("jsx") && (i.jsxRuntime !== "preserve" && this.transformers.push(new
|
|
14563
|
+
this.tokens = a, this.isImportsTransformEnabled = n.includes("imports"), this.isReactHotLoaderTransformEnabled = n.includes("react-hot-loader"), this.disableESTransforms = !!i.disableESTransforms, i.disableESTransforms || (this.transformers.push(new fc(a, this.nameManager)), this.transformers.push(new uc(a)), this.transformers.push(new dc(a, this.nameManager))), n.includes("jsx") && (i.jsxRuntime !== "preserve" && this.transformers.push(new tt(this, a, o, this.nameManager, i)), this.transformers.push(new pc(this, a, o, i)));
|
|
14564
14564
|
let s = null;
|
|
14565
14565
|
if (n.includes("react-hot-loader")) {
|
|
14566
14566
|
if (!i.filePath) throw Error("filePath is required when using the react-hot-loader transform.");
|
|
@@ -14741,7 +14741,7 @@ function bc(e, t, n) {
|
|
|
14741
14741
|
function xc(e, t, n) {
|
|
14742
14742
|
for (;;) {
|
|
14743
14743
|
if (e.matches1AtIndex(t, a.braceR)) return;
|
|
14744
|
-
let r =
|
|
14744
|
+
let r = Xe(e, t);
|
|
14745
14745
|
if (t = r.endIndex, r.isType || n.add(r.rightName), e.matches2AtIndex(t, a.comma, a.braceR) || e.matches1AtIndex(t, a.braceR)) return;
|
|
14746
14746
|
if (e.matches1AtIndex(t, a.comma)) t++;
|
|
14747
14747
|
else throw Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`);
|
|
@@ -14750,14 +14750,14 @@ function xc(e, t, n) {
|
|
|
14750
14750
|
//#endregion
|
|
14751
14751
|
//#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/index.js
|
|
14752
14752
|
function Sc(e, t) {
|
|
14753
|
-
|
|
14753
|
+
an(t);
|
|
14754
14754
|
try {
|
|
14755
14755
|
let n = Cc(e, t), r = new vc(n, t.transforms, !!t.enableLegacyBabel5ModuleInterop, t).transform(), i = { code: r.code };
|
|
14756
14756
|
if (t.sourceMapOptions) {
|
|
14757
14757
|
if (!t.filePath) throw Error("filePath must be specified when generating a source map.");
|
|
14758
14758
|
i = {
|
|
14759
14759
|
...i,
|
|
14760
|
-
sourceMap:
|
|
14760
|
+
sourceMap: Wt(r, t.filePath, t.sourceMapOptions, e, n.tokenProcessor.tokens)
|
|
14761
14761
|
};
|
|
14762
14762
|
}
|
|
14763
14763
|
return i;
|
|
@@ -14766,8 +14766,8 @@ function Sc(e, t) {
|
|
|
14766
14766
|
}
|
|
14767
14767
|
}
|
|
14768
14768
|
function Cc(e, t) {
|
|
14769
|
-
let n = t.transforms.includes("jsx"), r = t.transforms.includes("typescript"), i = t.transforms.includes("flow"), a = t.disableESTransforms === !0, o = Hs(e, n, r, i), s = o.tokens, c = o.scopes, l = new
|
|
14770
|
-
return t.transforms.includes("imports") ? (p = new
|
|
14769
|
+
let n = t.transforms.includes("jsx"), r = t.transforms.includes("typescript"), i = t.transforms.includes("flow"), a = t.disableESTransforms === !0, o = Hs(e, n, r, i), s = o.tokens, c = o.scopes, l = new $t(e, s), u = new qt(l), d = new Ws(e, s, i, a, u), f = !!t.enableLegacyTypeScriptModuleInterop, p = null;
|
|
14770
|
+
return t.transforms.includes("imports") ? (p = new ut(l, d, f, t, t.transforms.includes("typescript"), !!t.keepUnusedImports, u), p.preprocessTokens(), Jt(d, c, p.getGlobalNames()), t.transforms.includes("typescript") && !t.keepUnusedImports && p.pruneTypeOnlyImports()) : t.transforms.includes("typescript") && !t.keepUnusedImports && Jt(d, c, yc(d)), {
|
|
14771
14771
|
tokenProcessor: d,
|
|
14772
14772
|
scopes: c,
|
|
14773
14773
|
nameManager: l,
|
|
@@ -14776,7 +14776,7 @@ function Cc(e, t) {
|
|
|
14776
14776
|
};
|
|
14777
14777
|
}
|
|
14778
14778
|
//#endregion
|
|
14779
|
-
//#region packages/playground/dist/css-
|
|
14779
|
+
//#region packages/playground/dist/css-C25yWQa_.js
|
|
14780
14780
|
var wc = "App.vue", Tc = "https://cdn.jsdelivr.net/npm", Ec = "<script setup lang=\"ts\"><\/script>\n\n<template>\n <div>\n <slot />\n </div>\n</template>\n", Dc = [
|
|
14781
14781
|
"@deot/style/dist/index.normalize-only.css",
|
|
14782
14782
|
"@deot/vc-components/dist/index.style.css",
|
|
@@ -14810,57 +14810,87 @@ var wc = "App.vue", Tc = "https://cdn.jsdelivr.net/npm", Ec = "<script setup lan
|
|
|
14810
14810
|
}, kc = (e = Tc) => e.trim().replace(/\/+$/u, "") || "https://cdn.jsdelivr.net/npm", Ac = (e, t) => `${e}/${t.replace(/^\/+/u, "")}`, jc = (e) => Ac(Tc, e), Mc = jc("sass/+esm"), Nc = (e, t) => Ac(kc(e), t), Pc = (e = Tc) => ({
|
|
14811
14811
|
...Object.fromEntries(Object.entries(Oc).map(([t, n]) => [t, Nc(e, n)])),
|
|
14812
14812
|
"lodash-es": jc("lodash-es/+esm")
|
|
14813
|
-
}), Fc = (e = Tc) => Object.fromEntries(Dc.map((t) => [t, Nc(e, t)])), Ic = (e) => /^https?:\/\//.test(e) ? e : jc(`${e}/+esm`), Lc =
|
|
14813
|
+
}), Fc = (e = Tc) => Object.fromEntries(Dc.map((t) => [t, Nc(e, t)])), Ic = (e) => /^https?:\/\//.test(e) ? e : jc(`${e}/+esm`), Lc = () => globalThis.window?.$docs || {}, Rc = (e) => {
|
|
14814
|
+
if (!/^https?:\/\//i.test(e)) return null;
|
|
14815
|
+
let t = new URL(e), n = /(?:^|\.)jsdelivr\.net$/u.test(t.hostname) && t.pathname.startsWith("/npm/") ? "/npm/" : /^(?:esm\.)?unpkg\.com$/u.test(t.hostname) ? "/" : null;
|
|
14816
|
+
if (!n) return null;
|
|
14817
|
+
let r = t.pathname.slice(n.length), i = r.match(/^((?:@[^/]+\/)?[^/]+)(.*)$/u);
|
|
14818
|
+
return i ? {
|
|
14819
|
+
url: t,
|
|
14820
|
+
asset: r,
|
|
14821
|
+
name: i[1].replace(/@[^/@]+$/u, ""),
|
|
14822
|
+
path: i[2]
|
|
14823
|
+
} : null;
|
|
14824
|
+
}, zc = (e) => {
|
|
14825
|
+
let t = Rc(e);
|
|
14826
|
+
return t && (!t.path || t.path === "/+esm" || /^\/(?:es\d+|esnext)\/[^/]+\.m?js$/u.test(t.path)) ? t.name : null;
|
|
14827
|
+
}, Bc = (e) => /\/\+esm(?:[?#]|$)/u.test(e) || Rc(e)?.url.hostname === "esm.unpkg.com", Vc = (e, t, n = Lc()) => {
|
|
14828
|
+
let r = Rc(e), i = n.runtime?.cdn || t, a = e;
|
|
14829
|
+
if (r && i) {
|
|
14830
|
+
let e = kc(i), t = new URL(e).hostname === "esm.unpkg.com", n = r.asset;
|
|
14831
|
+
t ? n = n.replace(/\/\+esm$/u, "") : !r.path.endsWith("/+esm") && (!r.path || !/\.[^/]+$/u.test(r.path) || /unpkg\.com$/u.test(r.url.hostname) && /\.[cm]?[jt]sx?$/u.test(r.path)) && (n = `${n.replace(/\/+$/u, "")}/+esm`), a = `${e}/${n}${r.url.search}${r.url.hash}`;
|
|
14832
|
+
}
|
|
14833
|
+
return n.resolve?.cdn?.({ url: a }) || a;
|
|
14834
|
+
}, Hc = (e) => {
|
|
14835
|
+
let t = /* @__PURE__ */ new Map();
|
|
14836
|
+
return (n) => {
|
|
14837
|
+
if (!t.has(n)) {
|
|
14838
|
+
let r = Vc(n, e);
|
|
14839
|
+
t.set(n, r), t.set(r, r);
|
|
14840
|
+
}
|
|
14841
|
+
return t.get(n);
|
|
14842
|
+
};
|
|
14843
|
+
}, Uc = "docs-playground", Wc = [".scss", ".sass"], Gc = /<style\b[^>]*\blang\s*=\s*(['"]?)s[ac]ss\1/i, Kc = /\s*lang\s*=\s*(['"]?)s[ac]ss\1/i, qc = "[playground-sass]", Jc = "/* docs-playground-scss-start */", Yc = "/* docs-playground-scss-end */", Xc = /* @__PURE__ */ new WeakSet(), Zc = /* @__PURE__ */ new WeakSet(), Qc, $c, el = (e) => typeof e == "string" ? e : e.code, tl = (e) => decodeURIComponent(e.pathname.replace(/^\/+/u, "")), nl = (e) => new URL(`${Uc}:///${e.replace(/^\/+/u, "")}`), rl = (e) => e.split("/").pop() || e, il = (e, t) => t === "sass" || /\.sass$/i.test(e) ? "indented" : "scss", al = (e) => e instanceof Error ? e.message : String(e), ol = (e) => /\.s[ac]ss$/i.test(e), sl = (e) => Gc.test(e), cl = async (e) => {
|
|
14814
14844
|
let t = await import(
|
|
14815
14845
|
/* @vite-ignore */
|
|
14816
14846
|
e
|
|
14817
14847
|
), n = typeof t.compileString == "function" ? t : t.default;
|
|
14818
14848
|
if (typeof n?.compileString != "function") throw Error(`Sass module at ${e} does not export compileString`);
|
|
14819
14849
|
return n;
|
|
14820
|
-
},
|
|
14821
|
-
!
|
|
14822
|
-
},
|
|
14823
|
-
let t =
|
|
14850
|
+
}, ll = () => ($c ??= cl(Vc(Mc)).then((e) => (Qc = e, e)), $c), ul = (e) => ol(e) && rl(e).startsWith("_"), dl = (e) => Object.entries(e).some(([e, t]) => ol(e) || /\.vue$/i.test(e) && sl(el(t))), fl = (e, t) => {
|
|
14851
|
+
!dl(e) || Qc ? t() : ll().then(t);
|
|
14852
|
+
}, pl = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, el(t)])), ml = (e, t) => `${qc} ${e}: ${t}`, hl = (e, t) => ml(e, al(t)), gl = (e) => {
|
|
14853
|
+
let t = rl(e);
|
|
14824
14854
|
return t.startsWith("_") ? e : `${e.slice(0, -t.length)}_${t}`;
|
|
14825
|
-
},
|
|
14855
|
+
}, _l = (e, t) => [
|
|
14826
14856
|
t,
|
|
14827
14857
|
t.startsWith("src/") ? t : `src/${t}`,
|
|
14828
14858
|
t.replace(/^src\//u, "")
|
|
14829
|
-
].find((t) => e[t] !== void 0),
|
|
14859
|
+
].find((t) => e[t] !== void 0), vl = (e) => ol(e) ? [e, gl(e)] : Wc.flatMap((t) => [
|
|
14830
14860
|
`${e}${t}`,
|
|
14831
|
-
|
|
14861
|
+
gl(`${e}${t}`),
|
|
14832
14862
|
`${e}/index${t}`,
|
|
14833
|
-
|
|
14834
|
-
]),
|
|
14835
|
-
let n = [...new Set(
|
|
14863
|
+
gl(`${e}/index${t}`)
|
|
14864
|
+
]), yl = (e, t) => {
|
|
14865
|
+
let n = [...new Set(vl(t).map((t) => _l(e, t)).filter((e) => !!e))];
|
|
14836
14866
|
if (n.length > 1) throw Error(`Ambiguous Sass import "${t}": ${n.join(", ")}`);
|
|
14837
14867
|
return n[0] ?? null;
|
|
14838
|
-
},
|
|
14868
|
+
}, bl = (e) => ({
|
|
14839
14869
|
canonicalize(t, n) {
|
|
14840
|
-
if (/^[a-zA-Z][\w+.-]*:/u.test(t) && !t.startsWith(`${
|
|
14870
|
+
if (/^[a-zA-Z][\w+.-]*:/u.test(t) && !t.startsWith(`${Uc}:`)) return null;
|
|
14841
14871
|
try {
|
|
14842
|
-
let r =
|
|
14843
|
-
return r ?
|
|
14872
|
+
let r = yl(e(), tl(new URL(t, n.containingUrl ?? nl(""))));
|
|
14873
|
+
return r ? nl(r) : null;
|
|
14844
14874
|
} catch {
|
|
14845
14875
|
return null;
|
|
14846
14876
|
}
|
|
14847
14877
|
},
|
|
14848
14878
|
load(t) {
|
|
14849
|
-
let n = e(), r =
|
|
14879
|
+
let n = e(), r = tl(t);
|
|
14850
14880
|
return n[r] === void 0 ? null : {
|
|
14851
14881
|
contents: n[r],
|
|
14852
|
-
syntax:
|
|
14882
|
+
syntax: il(r)
|
|
14853
14883
|
};
|
|
14854
14884
|
}
|
|
14855
|
-
}),
|
|
14856
|
-
let a =
|
|
14885
|
+
}), xl = (e, t, n, r, i) => {
|
|
14886
|
+
let a = bl(() => r);
|
|
14857
14887
|
return n.compileString(e, {
|
|
14858
|
-
syntax:
|
|
14859
|
-
url:
|
|
14888
|
+
syntax: il(t, i),
|
|
14889
|
+
url: nl(t),
|
|
14860
14890
|
importer: a,
|
|
14861
14891
|
importers: [a]
|
|
14862
14892
|
}).css;
|
|
14863
|
-
},
|
|
14893
|
+
}, Sl = (e, t, n, r, i) => {
|
|
14864
14894
|
let a = n(e, { filename: t }).descriptor.styles.filter((e) => e.lang === "scss" || e.lang === "sass");
|
|
14865
14895
|
if (!a.length) return {
|
|
14866
14896
|
code: e,
|
|
@@ -14869,45 +14899,45 @@ var wc = "App.vue", Tc = "https://cdn.jsdelivr.net/npm", Ec = "<script setup lan
|
|
|
14869
14899
|
let o = [], s = e;
|
|
14870
14900
|
for (let e of [...a].sort((e, t) => t.loc.start.offset - e.loc.start.offset)) {
|
|
14871
14901
|
let n = s.slice(0, e.loc.start.offset), a = s.slice(e.loc.end.offset), c = n.lastIndexOf("<style");
|
|
14872
|
-
if (c < 0) o.push(
|
|
14902
|
+
if (c < 0) o.push(ml(t, "unable to locate <style> opening tag"));
|
|
14873
14903
|
else try {
|
|
14874
|
-
let o =
|
|
14875
|
-
s = `${n.slice(0, c)}${n.slice(c).replace(
|
|
14904
|
+
let o = xl(e.content, t, r, i, e.lang);
|
|
14905
|
+
s = `${n.slice(0, c)}${n.slice(c).replace(Kc, "")}${o}${a}`;
|
|
14876
14906
|
} catch (e) {
|
|
14877
|
-
o.push(
|
|
14907
|
+
o.push(hl(t, e));
|
|
14878
14908
|
}
|
|
14879
14909
|
}
|
|
14880
14910
|
return {
|
|
14881
14911
|
code: s,
|
|
14882
14912
|
errors: o
|
|
14883
14913
|
};
|
|
14884
|
-
},
|
|
14914
|
+
}, Cl = (e, t) => t.length ? {
|
|
14885
14915
|
...e,
|
|
14886
14916
|
errors: [...e.errors, ...t.map((e) => Error(e))]
|
|
14887
|
-
} : e,
|
|
14888
|
-
if (
|
|
14917
|
+
} : e, wl = (e, t) => {
|
|
14918
|
+
if (Zc.has(e)) return e;
|
|
14889
14919
|
let n = e.parse.bind(e), r = { ...e };
|
|
14890
14920
|
return r.parse = ((e, r) => {
|
|
14891
14921
|
let i = r?.filename || "anonymous.vue";
|
|
14892
|
-
if (!
|
|
14893
|
-
let a =
|
|
14922
|
+
if (!sl(e)) return n(e, r);
|
|
14923
|
+
let a = Qc ? Sl(e, i, n, Qc, t()) : {
|
|
14894
14924
|
code: e,
|
|
14895
|
-
errors: [
|
|
14925
|
+
errors: [ml(i, "compiler is not loaded")]
|
|
14896
14926
|
};
|
|
14897
|
-
return
|
|
14898
|
-
}),
|
|
14899
|
-
},
|
|
14900
|
-
let n = e.indexOf(
|
|
14927
|
+
return Cl(n(a.errors.length ? e : a.code, r), a.errors);
|
|
14928
|
+
}), Zc.add(r), r;
|
|
14929
|
+
}, Tl = (e, t) => {
|
|
14930
|
+
let n = e.indexOf(Jc), r = n < 0 ? -1 : e.indexOf(Yc, n), i = (n < 0 ? e : `${e.slice(0, n)}${r >= 0 ? e.slice(r + 30) : ""}`).trimEnd();
|
|
14901
14931
|
if (!t.trim()) return i;
|
|
14902
|
-
let a = `${
|
|
14932
|
+
let a = `${Jc}\n${t.trim()}\n${Yc}`;
|
|
14903
14933
|
return i ? `${i}\n${a}` : a;
|
|
14904
|
-
},
|
|
14905
|
-
let t =
|
|
14906
|
-
return t.startsWith(
|
|
14907
|
-
},
|
|
14908
|
-
let n = [...t, ...e.errors.filter((e) => !
|
|
14934
|
+
}, El = (e) => {
|
|
14935
|
+
let t = al(e);
|
|
14936
|
+
return t.startsWith(qc) && /\.s[ac]ss:/i.test(t);
|
|
14937
|
+
}, Dl = (e, t) => {
|
|
14938
|
+
let n = [...t, ...e.errors.filter((e) => !El(e))];
|
|
14909
14939
|
n.map(String).join("\0") !== e.errors.map(String).join("\0") && (e.errors = n);
|
|
14910
|
-
},
|
|
14940
|
+
}, Ol = (e, t) => {
|
|
14911
14941
|
let n = {};
|
|
14912
14942
|
return /\.module\.(?:scss|sass)$/.test(t) && (e = e.replace(/:export\s*\{([^}]*)\}/g, (e, t) => {
|
|
14913
14943
|
for (let e of t.split(";")) {
|
|
@@ -14919,79 +14949,79 @@ var wc = "App.vue", Tc = "https://cdn.jsdelivr.net/npm", Ec = "<script setup lan
|
|
|
14919
14949
|
css: e,
|
|
14920
14950
|
exports: n
|
|
14921
14951
|
};
|
|
14922
|
-
},
|
|
14952
|
+
}, kl = (e, t = Qc) => {
|
|
14923
14953
|
if (!t) return [];
|
|
14924
|
-
let n =
|
|
14925
|
-
for (let [a, o] of Object.entries(e.files)) if (
|
|
14926
|
-
let { css: e, exports: r } =
|
|
14927
|
-
o.compiled.css = e, o.compiled.js = o.compiled.ssr = `export default ${JSON.stringify(r)};\n`, !
|
|
14954
|
+
let n = pl(e.files), r = [], i = [];
|
|
14955
|
+
for (let [a, o] of Object.entries(e.files)) if (ol(a) && o.compiled) try {
|
|
14956
|
+
let { css: e, exports: r } = Ol(xl(o.code, a, t, n), a);
|
|
14957
|
+
o.compiled.css = e, o.compiled.js = o.compiled.ssr = `export default ${JSON.stringify(r)};\n`, !ul(a) && e.trim() && i.push(e);
|
|
14928
14958
|
} catch (e) {
|
|
14929
|
-
r.push(
|
|
14959
|
+
r.push(hl(a, e));
|
|
14930
14960
|
}
|
|
14931
14961
|
let a = e.files[e.mainFile];
|
|
14932
14962
|
if (a?.compiled) {
|
|
14933
|
-
let e =
|
|
14963
|
+
let e = Tl(a.compiled.css || "", i.join("\n"));
|
|
14934
14964
|
e !== (a.compiled.css || "") && (a.compiled.css = e);
|
|
14935
14965
|
}
|
|
14936
|
-
return
|
|
14937
|
-
},
|
|
14938
|
-
if (
|
|
14939
|
-
|
|
14940
|
-
let t = () =>
|
|
14941
|
-
typeof e.compiler?.parse == "function" && (e.compiler =
|
|
14966
|
+
return Dl(e, r), r;
|
|
14967
|
+
}, Al = (e) => {
|
|
14968
|
+
if (Xc.has(e)) return;
|
|
14969
|
+
Xc.add(e);
|
|
14970
|
+
let t = () => pl(e.files), r = () => {
|
|
14971
|
+
typeof e.compiler?.parse == "function" && (e.compiler = wl(e.compiler, t));
|
|
14942
14972
|
};
|
|
14943
14973
|
r(), n(() => e.compiler, r), n(() => [
|
|
14944
14974
|
e.mainFile,
|
|
14945
14975
|
e.files[e.mainFile]?.compiled?.css,
|
|
14946
14976
|
e.errors.map(String).join("\0"),
|
|
14947
|
-
Object.entries(e.files).filter(([e]) =>
|
|
14977
|
+
Object.entries(e.files).filter(([e]) => ol(e)).map(([e, t]) => `${e}:${t.code}`).join("\n")
|
|
14948
14978
|
].join("\0"), () => {
|
|
14949
|
-
|
|
14979
|
+
Qc && kl(e);
|
|
14950
14980
|
});
|
|
14951
14981
|
let i = e.setFiles.bind(e);
|
|
14952
|
-
e.setFiles = async (e, t) => (
|
|
14953
|
-
},
|
|
14982
|
+
e.setFiles = async (e, t) => (dl(e) && !Qc && await ll(), i(e, t));
|
|
14983
|
+
}, jl = /* @__PURE__ */ new Set(["import-map.json", "tsconfig.json"]), $ = (e) => {
|
|
14954
14984
|
let t = String(e || "").replace(/\\/gu, "/").trim();
|
|
14955
14985
|
if (!t) return "/";
|
|
14956
14986
|
let n = (t.startsWith("/") ? t : `/${t}`).split("/"), r = [];
|
|
14957
14987
|
for (let e of n) e && e !== "." && (e === ".." ? r.length && r.pop() : r.push(e));
|
|
14958
14988
|
return `/${r.join("/")}`;
|
|
14959
|
-
},
|
|
14989
|
+
}, Ml = (e) => {
|
|
14960
14990
|
let t = $(e), n = t.lastIndexOf("/");
|
|
14961
14991
|
return n <= 0 ? "/" : t.slice(0, n) || "/";
|
|
14962
|
-
},
|
|
14992
|
+
}, Nl = (e) => {
|
|
14963
14993
|
let t = $(e), n = t.lastIndexOf("/");
|
|
14964
14994
|
return n === -1 ? t : t.slice(n + 1);
|
|
14965
|
-
},
|
|
14995
|
+
}, Pl = (e, t) => {
|
|
14966
14996
|
let n = String(t || "").replace(/\\/gu, "/");
|
|
14967
14997
|
if (n.startsWith("/")) return $(n);
|
|
14968
14998
|
let r = $(e);
|
|
14969
14999
|
return $(`${r === "/" ? "" : r}/${n}`);
|
|
14970
|
-
},
|
|
14971
|
-
let t =
|
|
15000
|
+
}, Fl = (e) => {
|
|
15001
|
+
let t = Nl(e), n = t.lastIndexOf(".");
|
|
14972
15002
|
return n <= 0 ? "" : t.slice(n).toLowerCase();
|
|
14973
|
-
},
|
|
15003
|
+
}, Il = (e) => jl.has(Nl(e)), Ll = (e) => {
|
|
14974
15004
|
let t = /* @__PURE__ */ new Map();
|
|
14975
15005
|
return Object.entries(e || {}).forEach(([e, n]) => {
|
|
14976
15006
|
let r = $(e);
|
|
14977
|
-
|
|
15007
|
+
Il(r) || t.set(r, n);
|
|
14978
15008
|
}), t;
|
|
14979
|
-
},
|
|
14980
|
-
let n =
|
|
15009
|
+
}, Rl = (e, t) => {
|
|
15010
|
+
let n = Ll(e);
|
|
14981
15011
|
if (!n.size) throw Error("[Playground] files 为空,无法确定入口");
|
|
14982
15012
|
if (t) {
|
|
14983
15013
|
let e = $(t);
|
|
14984
|
-
if (
|
|
15014
|
+
if (Il(e)) throw Error(`[Playground] entry 不能是 ${Nl(e)}`);
|
|
14985
15015
|
if (!n.has(e)) throw Error(`[Playground] entry 不在 files 中: ${t}`);
|
|
14986
15016
|
return e;
|
|
14987
15017
|
}
|
|
14988
15018
|
for (let t of Object.keys(e || {})) {
|
|
14989
15019
|
let e = $(t);
|
|
14990
|
-
if (!
|
|
15020
|
+
if (!Il(e) && n.has(e)) return e;
|
|
14991
15021
|
}
|
|
14992
15022
|
/* istanbul ignore next -- 忽略文件已在前面排除,正常 files 不会走到这里 */
|
|
14993
15023
|
throw Error("[Playground] files 中没有可用的入口文件");
|
|
14994
|
-
},
|
|
15024
|
+
}, zl = [
|
|
14995
15025
|
".vue",
|
|
14996
15026
|
".ts",
|
|
14997
15027
|
".js",
|
|
@@ -15001,20 +15031,20 @@ var wc = "App.vue", Tc = "https://cdn.jsdelivr.net/npm", Ec = "<script setup lan
|
|
|
15001
15031
|
".css",
|
|
15002
15032
|
".scss",
|
|
15003
15033
|
".sass"
|
|
15004
|
-
],
|
|
15034
|
+
], Bl = (e, t, n) => {
|
|
15005
15035
|
if (!t || !(t === "." || t === ".." || t.startsWith("./") || t.startsWith("../") || t.startsWith("/"))) return null;
|
|
15006
|
-
let r =
|
|
15036
|
+
let r = Pl(Ml(e), t);
|
|
15007
15037
|
if (n.has(r)) return r;
|
|
15008
|
-
for (let e of
|
|
15038
|
+
for (let e of zl) {
|
|
15009
15039
|
let t = `${r}${e}`;
|
|
15010
15040
|
if (n.has(t)) return t;
|
|
15011
15041
|
}
|
|
15012
|
-
for (let e of
|
|
15042
|
+
for (let e of zl) {
|
|
15013
15043
|
let t = `${r}/index${e}`;
|
|
15014
15044
|
if (n.has(t)) return t;
|
|
15015
15045
|
}
|
|
15016
15046
|
return null;
|
|
15017
|
-
},
|
|
15047
|
+
}, Vl = (e) => {
|
|
15018
15048
|
let t = e.map($);
|
|
15019
15049
|
if (!t.length) return "/";
|
|
15020
15050
|
let n = t.map((e) => e.split("/").filter(Boolean)), r = n[0], i = r.length;
|
|
@@ -15025,31 +15055,31 @@ var wc = "App.vue", Tc = "https://cdn.jsdelivr.net/npm", Ec = "<script setup lan
|
|
|
15025
15055
|
}
|
|
15026
15056
|
if (!i) return "/";
|
|
15027
15057
|
let a = `/${r.slice(0, i).join("/")}`;
|
|
15028
|
-
return t.some((e) => e === a) ?
|
|
15029
|
-
},
|
|
15058
|
+
return t.some((e) => e === a) ? Ml(a) : a;
|
|
15059
|
+
}, Hl = (e, t) => {
|
|
15030
15060
|
let n = $(e), r = $(t);
|
|
15031
15061
|
return r === "/" || n === r || n.startsWith(`${r}/`);
|
|
15032
|
-
},
|
|
15062
|
+
}, Ul = (e) => {
|
|
15033
15063
|
let t = [], n = String(e || "");
|
|
15034
15064
|
for (let e of n.matchAll(/(?:\bfrom\s+|import\s*\(\s*|import\s+)['"]([^'"]+)['"]/gu)) e[1] && t.push(e[1]);
|
|
15035
15065
|
return t;
|
|
15036
|
-
},
|
|
15037
|
-
let n =
|
|
15066
|
+
}, Wl = (e) => e === "." || e === ".." || e.startsWith("./") || e.startsWith("../") || e.startsWith("/"), Gl = (e, t) => {
|
|
15067
|
+
let n = Ll(e), r = [], i = /* @__PURE__ */ new Set(), a = (e) => {
|
|
15038
15068
|
let t = $(e);
|
|
15039
|
-
!i.has(t) && n.has(t) && (i.add(t), r.push(t),
|
|
15040
|
-
let r =
|
|
15069
|
+
!i.has(t) && n.has(t) && (i.add(t), r.push(t), Ul(n.get(t) || "").forEach((e) => {
|
|
15070
|
+
let r = Bl(t, e, n);
|
|
15041
15071
|
r && a(r);
|
|
15042
15072
|
}));
|
|
15043
15073
|
};
|
|
15044
15074
|
return a(t), r;
|
|
15045
|
-
},
|
|
15046
|
-
let n =
|
|
15075
|
+
}, Kl = (e, t) => {
|
|
15076
|
+
let n = Ll(e), r = [], i = /* @__PURE__ */ new Set();
|
|
15047
15077
|
return t.forEach((e) => {
|
|
15048
|
-
|
|
15049
|
-
!e ||
|
|
15078
|
+
Ul(n.get($(e)) || "").forEach((e) => {
|
|
15079
|
+
!e || Wl(e) || i.has(e) || /\.(?:css|scss|sass)(?:[?#]|$)/.test(e) || (i.add(e), r.push(e));
|
|
15050
15080
|
});
|
|
15051
15081
|
}), r;
|
|
15052
|
-
}, { babelParse:
|
|
15082
|
+
}, { babelParse: ql, walkIdentifiers: Jl, MagicString: Yl } = r, Xl = (e) => {
|
|
15053
15083
|
let t = [];
|
|
15054
15084
|
for (let n of e.matchAll(/\b([\w-]+:[\w-]+)\s*=\s*\{/g)) {
|
|
15055
15085
|
let r = 1, i = "", a = n.index + n[0].length, o = a;
|
|
@@ -15068,14 +15098,14 @@ var wc = "App.vue", Tc = "https://cdn.jsdelivr.net/npm", Ec = "<script setup lan
|
|
|
15068
15098
|
}
|
|
15069
15099
|
for (let n of t.reverse()) e = e.slice(0, n.start) + n.text + e.slice(n.end);
|
|
15070
15100
|
return e;
|
|
15071
|
-
},
|
|
15101
|
+
}, Zl = (e) => {
|
|
15072
15102
|
let t = /* @__PURE__ */ new Set();
|
|
15073
15103
|
for (let n of e.matchAll(/\bimport\s+type\s*\{([^}]+)\}\s*from\s*['"][^'"]+['"]/g)) for (let e of n[1].split(",")) t.add(e.trim().split(/\s+as\s+/).pop());
|
|
15074
15104
|
return e.replace(/\bexport\s*\{([^}]+)\}(?!\s*from)/g, (e, n) => `export {${n.split(",").filter((e) => !t.has(e.trim().split(/\s+as\s+/)[0])).join(",")}}`);
|
|
15075
|
-
},
|
|
15105
|
+
}, Ql = (e, t) => {
|
|
15076
15106
|
if (!e.includes("process") && !e.includes("import.meta")) return e;
|
|
15077
|
-
let n = new
|
|
15078
|
-
if (
|
|
15107
|
+
let n = new Yl(e), r = !1;
|
|
15108
|
+
if (Jl(ql(e, { sourceType: "module" }), (e, t, i) => {
|
|
15079
15109
|
e.name === "import" && t?.type === "MetaProperty" && (n.overwrite(t.start, t.end, "import_meta"), r = !0);
|
|
15080
15110
|
let a = i[i.length - 2];
|
|
15081
15111
|
e.name === "process" && t?.type === "MemberExpression" && t.object === e && !t.computed && t.property.type === "Identifier" && t.property.name === "env" && a?.type === "MemberExpression" && a.object === t && !a.computed && a.property.type === "Identifier" && a.property.name === "NODE_ENV" && n.overwrite(a.start, a.end, JSON.stringify("development"));
|
|
@@ -15090,12 +15120,12 @@ var wc = "App.vue", Tc = "https://cdn.jsdelivr.net/npm", Ec = "<script setup lan
|
|
|
15090
15120
|
}
|
|
15091
15121
|
};
|
|
15092
15122
|
return `var import_meta = ${JSON.stringify(i)};\n${n}`;
|
|
15093
|
-
},
|
|
15123
|
+
}, $l = (e, t, n = {}) => {
|
|
15094
15124
|
let r = n.esm ? [] : ["imports"], i = n.typescript === !0 || n.typescript !== !1 && (t.endsWith(".ts") || t.endsWith(".tsx"));
|
|
15095
15125
|
i && r.unshift("typescript"), n.jsx && r.unshift("jsx");
|
|
15096
15126
|
try {
|
|
15097
|
-
let a = i ?
|
|
15098
|
-
return `${
|
|
15127
|
+
let a = i ? Zl(e) : e;
|
|
15128
|
+
return `${Ql(Sc(n.jsx ? `import { h as __docs_h, Fragment as __docs_Fragment } from 'vue';\n${Xl(a)}` : a, {
|
|
15099
15129
|
transforms: r,
|
|
15100
15130
|
disableESTransforms: !0,
|
|
15101
15131
|
production: !0,
|
|
@@ -15108,13 +15138,13 @@ var wc = "App.vue", Tc = "https://cdn.jsdelivr.net/npm", Ec = "<script setup lan
|
|
|
15108
15138
|
let n = e instanceof Error ? e.message : String(e);
|
|
15109
15139
|
throw Error(`[Playground] 脚本转换失败 ${t}: ${n}`, { cause: e });
|
|
15110
15140
|
}
|
|
15111
|
-
},
|
|
15141
|
+
}, eu = (e) => {
|
|
15112
15142
|
let t = [];
|
|
15113
15143
|
return e.forEach((e) => {
|
|
15114
15144
|
let n = String(e || "").trim();
|
|
15115
15145
|
n && t.push(n);
|
|
15116
15146
|
}), t;
|
|
15117
|
-
},
|
|
15147
|
+
}, tu = (e, t) => {
|
|
15118
15148
|
/* istanbul ignore if -- 仅浏览器注入样式 */
|
|
15119
15149
|
if (typeof document > "u") return null;
|
|
15120
15150
|
document.querySelector(`style[data-playground-id="${e}"]`)?.remove();
|
|
@@ -15122,9 +15152,9 @@ var wc = "App.vue", Tc = "https://cdn.jsdelivr.net/npm", Ec = "<script setup lan
|
|
|
15122
15152
|
if (!n) return null;
|
|
15123
15153
|
let r = document.createElement("style");
|
|
15124
15154
|
return r.setAttribute("data-playground-id", e), r.textContent = n, document.head.appendChild(r), r;
|
|
15125
|
-
},
|
|
15155
|
+
}, nu = (e) => {
|
|
15126
15156
|
/* istanbul ignore if -- 仅浏览器注入样式 */
|
|
15127
15157
|
typeof document < "u" && document.querySelector(`style[data-playground-id="${e}"]`)?.remove();
|
|
15128
15158
|
};
|
|
15129
15159
|
//#endregion
|
|
15130
|
-
export {
|
|
15160
|
+
export { $l as A, $ as C, Bl as D, Rl as E, Sc as M, Ic as O, kc as S, Vc as T, tu as _, zc as a, Hl as b, Gl as c, Fc as d, Hc as f, Fl as g, Vl as h, Al as i, fl as j, Ql as k, xl as l, Ol as m, wc as n, Kl as o, Ll as p, Ec as r, eu as s, Tc as t, Pc as u, Bc as v, nu as w, Wl as x, Il as y };
|