@danielx/civet 0.11.11 → 0.11.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/dist/browser.js +466 -209
- package/dist/browser.min.js +1 -1
- package/dist/main.js +718 -311
- package/dist/main.mjs +718 -311
- package/dist/ts-service/index.js +232 -178
- package/dist/ts-service/index.js.map +4 -4
- package/dist/ts-service/index.mjs +228 -174
- package/dist/ts-service/index.mjs.map +4 -4
- package/dist/types.d.ts +9 -0
- package/package.json +6 -5
package/dist/browser.js
CHANGED
|
@@ -35,9 +35,9 @@ var Civet = (() => {
|
|
|
35
35
|
mod
|
|
36
36
|
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
37
37
|
|
|
38
|
-
// node_modules/.pnpm/@danielx+hera@0.9.
|
|
38
|
+
// node_modules/.pnpm/@danielx+hera@0.9.8/node_modules/@danielx/hera/dist/machine.js
|
|
39
39
|
var require_machine = __commonJS({
|
|
40
|
-
"node_modules/.pnpm/@danielx+hera@0.9.
|
|
40
|
+
"node_modules/.pnpm/@danielx+hera@0.9.8/node_modules/@danielx/hera/dist/machine.js"(exports, module) {
|
|
41
41
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
42
42
|
for (var name in all)
|
|
43
43
|
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
@@ -57,7 +57,7 @@ var Civet = (() => {
|
|
|
57
57
|
$N: () => $N2,
|
|
58
58
|
$P: () => $P2,
|
|
59
59
|
$Q: () => $Q2,
|
|
60
|
-
$R: () => $
|
|
60
|
+
$R: () => $R104,
|
|
61
61
|
$R$0: () => $R$02,
|
|
62
62
|
$S: () => $S2,
|
|
63
63
|
$T: () => $T,
|
|
@@ -74,7 +74,7 @@ var Civet = (() => {
|
|
|
74
74
|
function $EXPECT2(parser2, expectation) {
|
|
75
75
|
return function(ctx, state2) {
|
|
76
76
|
let result = parser2(ctx, state2);
|
|
77
|
-
return result || ctx.fail(state2.pos, expectation), result;
|
|
77
|
+
return result || ctx.fail(state2.pos, typeof expectation == "function" ? expectation() : expectation), result;
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
function $L249(str) {
|
|
@@ -91,7 +91,7 @@ var Civet = (() => {
|
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
|
-
function $
|
|
94
|
+
function $R104(regExp) {
|
|
95
95
|
return function(_ctx, state2) {
|
|
96
96
|
let { input, pos } = state2;
|
|
97
97
|
regExp.lastIndex = state2.pos;
|
|
@@ -1467,6 +1467,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1467
1467
|
if (restCount === 0)
|
|
1468
1468
|
return {
|
|
1469
1469
|
children: elements,
|
|
1470
|
+
elements: void 0,
|
|
1470
1471
|
names,
|
|
1471
1472
|
blockPrefix,
|
|
1472
1473
|
length
|
|
@@ -1485,13 +1486,28 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1485
1486
|
names: after.flatMap((p) => p.names)
|
|
1486
1487
|
};
|
|
1487
1488
|
}
|
|
1489
|
+
let restTrimmed = {
|
|
1490
|
+
...rest,
|
|
1491
|
+
children: rest.children.slice(0, -1)
|
|
1492
|
+
// remove trailing comma
|
|
1493
|
+
};
|
|
1494
|
+
if (rest.binding.type === "EmptyBinding" && !l) {
|
|
1495
|
+
let preceding = elements.slice(0, restIndex), last = preceding[preceding.length - 1];
|
|
1496
|
+
return last && arrayElementHasTrailingComma(last) && (preceding[preceding.length - 1] = {
|
|
1497
|
+
...last,
|
|
1498
|
+
children: last.children.slice(0, -1)
|
|
1499
|
+
}), {
|
|
1500
|
+
names,
|
|
1501
|
+
children: preceding,
|
|
1502
|
+
elements: [...preceding, restTrimmed],
|
|
1503
|
+
blockPrefix,
|
|
1504
|
+
length
|
|
1505
|
+
};
|
|
1506
|
+
}
|
|
1488
1507
|
return {
|
|
1489
1508
|
names,
|
|
1490
|
-
children: [...elements.slice(0, restIndex),
|
|
1491
|
-
|
|
1492
|
-
children: rest.children.slice(0, -1)
|
|
1493
|
-
// remove trailing comma
|
|
1494
|
-
}],
|
|
1509
|
+
children: [...elements.slice(0, restIndex), restTrimmed],
|
|
1510
|
+
elements: void 0,
|
|
1495
1511
|
blockPrefix,
|
|
1496
1512
|
length
|
|
1497
1513
|
};
|
|
@@ -1503,6 +1519,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1503
1519
|
return {
|
|
1504
1520
|
names,
|
|
1505
1521
|
children: [...elements, err],
|
|
1522
|
+
elements: void 0,
|
|
1506
1523
|
blockPrefix,
|
|
1507
1524
|
length
|
|
1508
1525
|
};
|
|
@@ -2708,9 +2725,9 @@ ${js}`
|
|
|
2708
2725
|
assert.notEqual(breakIndex, -1, "Could not find break in when clause"), node.children.splice(breakIndex, 1), node.break = void 0;
|
|
2709
2726
|
}
|
|
2710
2727
|
if (insertReturn(node.block), !isExit(node.block)) {
|
|
2711
|
-
let comment = hasTrailingComment(node.block.expressions), ref12;
|
|
2728
|
+
let comment = node.block.trailing?.length || hasTrailingComment(node.block.expressions), ref12;
|
|
2712
2729
|
node.block.expressions.push([
|
|
2713
|
-
comment ? (ref12 = node.block.expressions)[ref12.length - 1][0] || `
|
|
2730
|
+
comment ? (ref12 = node.block.expressions)[ref12.length - 1]?.[0] || `
|
|
2714
2731
|
` : "",
|
|
2715
2732
|
wrapWithReturn(void 0, node, !comment)
|
|
2716
2733
|
]);
|
|
@@ -3074,7 +3091,7 @@ ${js}`
|
|
|
3074
3091
|
}
|
|
3075
3092
|
if (parameters.names = before.flatMap(($7) => $7.names), parameters.parameters.splice(0, 1 / 0), tt && parameters.parameters.push(tt), parameters.parameters.push(...before), rest) {
|
|
3076
3093
|
let restIdentifier = rest.binding.ref || rest.binding;
|
|
3077
|
-
if (parameters.names.push(...rest.names ?? []), rest.children.pop(), after.length) {
|
|
3094
|
+
if (parameters.names.push(...rest.names ?? []), rest.children.pop(), rest.binding.type === "EmptyBinding" && !after.length && (restIdentifier.base = restIdentifier.id = "_ref"), after.length) {
|
|
3078
3095
|
let m6;
|
|
3079
3096
|
m6 = rest.binding.type, (m6 === "ArrayBindingPattern" || m6 === "ObjectBindingPattern" || m6 === "NamedBindingPattern") && parameters.parameters.push({
|
|
3080
3097
|
type: "Error",
|
|
@@ -3171,33 +3188,62 @@ ${js}`
|
|
|
3171
3188
|
assert(expressions, "block is missing expressions");
|
|
3172
3189
|
let indent;
|
|
3173
3190
|
expressions.length ? indent = expressions[0][0] : indent = "";
|
|
3191
|
+
let { ancestor: enclosingClass } = findAncestor(f, ($10) => $10.type === "ClassExpression");
|
|
3192
|
+
if (enclosingClass != null) {
|
|
3193
|
+
let fieldTypes = /* @__PURE__ */ new Map();
|
|
3194
|
+
for (let ref20 = gatherRecursiveWithinFunction(enclosingClass.body, ($11) => $11.type === "FieldDefinition"), i9 = 0, len8 = ref20.length; i9 < len8; i9++) {
|
|
3195
|
+
let { id, typeSuffix } = ref20[i9];
|
|
3196
|
+
typeSuffix != null && id?.type === "Identifier" && fieldTypes.set(id.name, typeSuffix);
|
|
3197
|
+
}
|
|
3198
|
+
if (fieldTypes.size)
|
|
3199
|
+
for (let ref21 = gatherRecursive(parameters, ($12) => $12.type === "Parameter"), i10 = 0, len9 = ref21.length; i10 < len9; i10++) {
|
|
3200
|
+
let parameter = ref21[i10];
|
|
3201
|
+
if (parameter.typeSuffix != null)
|
|
3202
|
+
continue;
|
|
3203
|
+
let inferredInPattern = !1;
|
|
3204
|
+
for (let ref22 = gatherRecursive(parameter, ($13) => $13.type === "AtBinding"), i11 = 0, len10 = ref22.length; i11 < len10; i11++) {
|
|
3205
|
+
let binding = ref22[i11], owner = binding.parent;
|
|
3206
|
+
assert(owner, "@-binding has no parent");
|
|
3207
|
+
let fieldType = fieldTypes.get(binding.ref.id);
|
|
3208
|
+
if (fieldType != null)
|
|
3209
|
+
if (owner.typeSuffix = deepCopy(fieldType), updateParentPointers(owner), owner === parameter) {
|
|
3210
|
+
let i = owner.children.indexOf(binding);
|
|
3211
|
+
assert.notEqual(i, -1, "@-binding missing from parameter children"), owner.children[i + 1] = owner.typeSuffix;
|
|
3212
|
+
} else
|
|
3213
|
+
inferredInPattern = !0;
|
|
3214
|
+
}
|
|
3215
|
+
if (inferredInPattern) {
|
|
3216
|
+
let pattern = parameter.binding;
|
|
3217
|
+
pattern.typeSuffix = void 0, gatherBindingPatternTypeSuffix(pattern), assert(pattern.typeSuffix, "expected aggregated binding pattern type"), parameter.typeSuffix = pattern.typeSuffix;
|
|
3218
|
+
let i = parameter.children.indexOf(pattern);
|
|
3219
|
+
assert.notEqual(i, -1, "binding pattern missing from parameter children"), parameter.children[i + 1] = parameter.typeSuffix;
|
|
3220
|
+
}
|
|
3221
|
+
}
|
|
3222
|
+
}
|
|
3174
3223
|
let [splices, thisAssignments] = gatherBindingCode(parameters, {
|
|
3175
3224
|
injectParamProps: isConstructor,
|
|
3176
3225
|
assignPins: !0
|
|
3177
3226
|
}), subbindings = gatherSubbindings(parameters.parameters);
|
|
3178
|
-
if (simplifyBindingProperties(parameters.parameters), simplifyBindingProperties(subbindings), isConstructor) {
|
|
3179
|
-
let
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
let
|
|
3184
|
-
|
|
3185
|
-
let
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
}, ";"]), fStatement[0] = "");
|
|
3199
|
-
}
|
|
3200
|
-
}
|
|
3227
|
+
if (simplifyBindingProperties(parameters.parameters), simplifyBindingProperties(subbindings), isConstructor && enclosingClass != null) {
|
|
3228
|
+
let fields = new Set(gatherRecursiveWithinFunction(enclosingClass, ($14) => $14.type === "FieldDefinition").map(($15) => $15.id).filter(((a3) => typeof a3 == "object" && a3 != null && "type" in a3 && a3.type === "Identifier")).map(($16) => $16.name)), classExpressions = enclosingClass.body.expressions, index2 = findChildIndex(classExpressions, f);
|
|
3229
|
+
assert.notEqual(index2, -1, "Could not find constructor in class"), index2 -= precedingOverloads(f).length;
|
|
3230
|
+
let fStatement = classExpressions[index2];
|
|
3231
|
+
for (let ref23 = gatherRecursive(parameters, ($17) => $17.type === "Parameter"), i12 = 0, len11 = ref23.length; i12 < len11; i12++) {
|
|
3232
|
+
let parameter = ref23[i12], { accessModifier } = parameter;
|
|
3233
|
+
if (accessModifier || parameter.typeSuffix)
|
|
3234
|
+
for (let ref24 = gatherRecursive(parameter, ($18) => $18.type === "AtBinding"), i13 = 0, len12 = ref24.length; i13 < len12; i13++) {
|
|
3235
|
+
let binding = ref24[i13], typeSuffix = binding.parent?.typeSuffix;
|
|
3236
|
+
if (!(accessModifier || typeSuffix))
|
|
3237
|
+
continue;
|
|
3238
|
+
parameter.accessModifier && (replaceNode(parameter.accessModifier, void 0), parameter.accessModifier = void 0);
|
|
3239
|
+
let id = binding.ref.id;
|
|
3240
|
+
fields.has(id) || (classExpressions.splice(index2++, 0, [fStatement[0], {
|
|
3241
|
+
type: "FieldDefinition",
|
|
3242
|
+
id,
|
|
3243
|
+
typeSuffix,
|
|
3244
|
+
children: [accessModifier, id, typeSuffix]
|
|
3245
|
+
}, ";"]), fStatement[0] = "");
|
|
3246
|
+
}
|
|
3201
3247
|
}
|
|
3202
3248
|
}
|
|
3203
3249
|
let delimiter = {
|
|
@@ -3211,8 +3257,8 @@ ${js}`
|
|
|
3211
3257
|
bindings: [],
|
|
3212
3258
|
decl: "const"
|
|
3213
3259
|
}));
|
|
3214
|
-
for (let
|
|
3215
|
-
let binding =
|
|
3260
|
+
for (let ref25 = splices, i14 = 0, len13 = ref25.length; i14 < len13; i14++) {
|
|
3261
|
+
let binding = ref25[i14];
|
|
3216
3262
|
assert.equal(binding.type, "PostRestBindingElements", "splice should be of type Binding"), prefix.push(makeNode({
|
|
3217
3263
|
type: "Declaration",
|
|
3218
3264
|
children: ["let ", binding],
|
|
@@ -3242,14 +3288,27 @@ ${js}`
|
|
|
3242
3288
|
} else
|
|
3243
3289
|
return -1;
|
|
3244
3290
|
}
|
|
3291
|
+
function transformArrowFunctionWithYield(f) {
|
|
3292
|
+
let { block, parameters, returnType, async, signature } = f;
|
|
3293
|
+
block?.type === "BlockStatement" && block.implicitlyReturned && (insertReturn(block), block.implicitlyReturned = !1), block?.type === "BlockStatement" && block.bare && !block.root && (block.children.unshift(" {"), block.children.push("}"), block.bare = !1);
|
|
3294
|
+
let generator = ["*"];
|
|
3295
|
+
signature.modifier ??= {}, signature.modifier.generator = !0, signature.generator = generator, signature.children = [async, "function", generator, parameters, returnType], f.type = "FunctionExpression", f.generator = generator, f.children = [async, "function", generator, parameters, returnType, block];
|
|
3296
|
+
let originalParent = f.parent, lhs = makeLeftHandSideExpression(f), ref26;
|
|
3297
|
+
gatherRecursiveWithinFunction(block, ((a6) => typeof a6 == "object" && a6 != null && "token" in a6 && a6.token === "this")).length ? ref26 = makeNode({
|
|
3298
|
+
type: "CallExpression",
|
|
3299
|
+
children: [lhs, ".bind(this)"]
|
|
3300
|
+
}) : ref26 = lhs;
|
|
3301
|
+
let newNode = ref26;
|
|
3302
|
+
newNode !== f && originalParent != null && (replaceNode(f, newNode, originalParent), updateParentPointers(newNode, originalParent));
|
|
3303
|
+
}
|
|
3245
3304
|
function processSignature(f) {
|
|
3246
3305
|
let { block, signature } = f, addAsync = !1, addGenerator = !1;
|
|
3247
3306
|
if (!f.async?.length && hasAwait(block))
|
|
3248
3307
|
if (f.async != null)
|
|
3249
3308
|
addAsync = !0;
|
|
3250
3309
|
else
|
|
3251
|
-
for (let
|
|
3252
|
-
let a =
|
|
3310
|
+
for (let ref27 = gatherRecursiveWithinFunction(block, ($19) => $19.type === "Await"), i15 = 0, len14 = ref27.length; i15 < len14; i15++) {
|
|
3311
|
+
let a = ref27[i15], i = findChildIndex(a.parent, a);
|
|
3253
3312
|
a.parent.children.splice(i + 1, 0, {
|
|
3254
3313
|
type: "Error",
|
|
3255
3314
|
message: `await invalid in ${signature.modifier.get ? "getter" : signature.modifier.set ? "setter" : signature.name}`
|
|
@@ -3258,16 +3317,18 @@ ${js}`
|
|
|
3258
3317
|
if (!f.generator?.length && hasYield(block))
|
|
3259
3318
|
if (f.generator != null)
|
|
3260
3319
|
addGenerator = !0;
|
|
3320
|
+
else if (f.type === "ArrowFunction")
|
|
3321
|
+
transformArrowFunctionWithYield(f);
|
|
3261
3322
|
else
|
|
3262
|
-
for (let
|
|
3263
|
-
let y =
|
|
3323
|
+
for (let ref28 = gatherRecursiveWithinFunction(block, ($20) => $20.type === "YieldExpression"), i16 = 0, len15 = ref28.length; i16 < len15; i16++) {
|
|
3324
|
+
let y = ref28[i16], i = y.children.findIndex(($21) => $21.type === "Yield");
|
|
3264
3325
|
y.children.splice(i + 1, 0, {
|
|
3265
3326
|
type: "Error",
|
|
3266
|
-
message: `yield invalid in ${
|
|
3327
|
+
message: `yield invalid in ${signature.modifier.get ? "getter" : signature.modifier.set ? "setter" : signature.name}`
|
|
3267
3328
|
});
|
|
3268
3329
|
}
|
|
3269
|
-
for (let
|
|
3270
|
-
let overload =
|
|
3330
|
+
for (let ref29 = [f, ...precedingOverloads(f)], i17 = 0, len16 = ref29.length; i17 < len16; i17++) {
|
|
3331
|
+
let overload = ref29[i17];
|
|
3271
3332
|
addAsync && overload.async != null && !overload.async.length && (overload.async.push("async "), overload.signature.modifier.async = !0), addGenerator && overload.generator != null && !overload.generator.length && (overload.generator.push("*"), overload.signature.modifier.generator = !0), overload.signature.modifier.async && !overload.signature.modifier.generator && overload.signature.returnType && !isPromiseType(overload.signature.returnType.t) && replaceNode(
|
|
3272
3333
|
overload.signature.returnType.t,
|
|
3273
3334
|
wrapTypeInPromise(overload.signature.returnType.t),
|
|
@@ -3276,8 +3337,8 @@ ${js}`
|
|
|
3276
3337
|
}
|
|
3277
3338
|
}
|
|
3278
3339
|
function processFunctions(statements, config2) {
|
|
3279
|
-
for (let
|
|
3280
|
-
let f =
|
|
3340
|
+
for (let ref30 = gatherRecursiveAll(statements, ($22) => $22.type === "FunctionExpression" || $22.type === "ArrowFunction" || $22.type === "MethodDefinition"), i18 = 0, len17 = ref30.length; i18 < len17; i18++) {
|
|
3341
|
+
let f = ref30[i18];
|
|
3281
3342
|
(f.type === "FunctionExpression" || f.type === "MethodDefinition") && implicitFunctionBlock(f), processSignature(f), processParams(f), processReturn(f, config2.implicitReturns);
|
|
3282
3343
|
}
|
|
3283
3344
|
}
|
|
@@ -3332,9 +3393,9 @@ ${js}`
|
|
|
3332
3393
|
["", statement]
|
|
3333
3394
|
];
|
|
3334
3395
|
else {
|
|
3335
|
-
let reduction = statement.type === "ForStatement" && statement.reduction,
|
|
3336
|
-
!async && !reduction && !statement.block.empty ?
|
|
3337
|
-
let parentInfo =
|
|
3396
|
+
let reduction = statement.type === "ForStatement" && statement.reduction, ref31;
|
|
3397
|
+
!async && !reduction && !statement.block.empty ? ref31 = blockContainingStatement(exp) : ref31 = void 0;
|
|
3398
|
+
let parentInfo = ref31;
|
|
3338
3399
|
if (parentInfo && iterationValueDiscarded(parentInfo.block, parentInfo.index, consumeRoot)) {
|
|
3339
3400
|
let origSemi = parentInfo.block.expressions[parentInfo.index][2];
|
|
3340
3401
|
statements = [["", statement, origSemi]];
|
|
@@ -3349,24 +3410,27 @@ ${js}`
|
|
|
3349
3410
|
}
|
|
3350
3411
|
let done;
|
|
3351
3412
|
if (!async) {
|
|
3352
|
-
let
|
|
3353
|
-
if ((
|
|
3354
|
-
let { block: parentBlock, index } =
|
|
3413
|
+
let ref32;
|
|
3414
|
+
if ((ref32 = blockContainingStatement(exp)) && typeof ref32 == "object" && "block" in ref32 && "index" in ref32) {
|
|
3415
|
+
let { block: parentBlock, index } = ref32;
|
|
3355
3416
|
statements[0][0] = parentBlock.expressions[index][0], parentBlock.expressions.splice(index, index + 1 - index, ...statements), updateParentPointers(parentBlock), braceBlock(parentBlock), done = !0;
|
|
3356
3417
|
}
|
|
3357
3418
|
}
|
|
3358
3419
|
done || (generator || (statements[statements.length - 1][1] = wrapWithReturn(statements[statements.length - 1][1])), children.splice(i, 1, wrapIIFE(statements, async, generator)), updateParentPointers(exp));
|
|
3359
3420
|
}
|
|
3360
3421
|
function processIterationExpressions(statements, consumeRoot = !1) {
|
|
3361
|
-
for (let
|
|
3362
|
-
let s =
|
|
3422
|
+
for (let ref33 = gatherRecursiveAll(statements, ($23) => $23.type === "IterationExpression"), i19 = 0, len18 = ref33.length; i19 < len18; i19++) {
|
|
3423
|
+
let s = ref33[i19];
|
|
3363
3424
|
expressionizeIteration(s, consumeRoot);
|
|
3364
3425
|
}
|
|
3365
3426
|
}
|
|
3366
3427
|
function skipImplicitArguments(args) {
|
|
3367
3428
|
if (args.length === 1) {
|
|
3368
3429
|
let arg0 = args[0];
|
|
3369
|
-
|
|
3430
|
+
if (arg0.type === "Argument" && (arg0 = arg0.expression), arg0.type === "StatementExpression" && (arg0 = arg0.statement), arg0.type === "IterationExpression")
|
|
3431
|
+
return arg0.subtype !== "DoStatement" && !arg0.async && isEmptyBareBlock(arg0.block);
|
|
3432
|
+
if (arg0.type === "IfStatement")
|
|
3433
|
+
return !arg0.else && isEmptyBareBlock(arg0.then);
|
|
3370
3434
|
}
|
|
3371
3435
|
return !1;
|
|
3372
3436
|
}
|
|
@@ -3375,20 +3439,20 @@ ${js}`
|
|
|
3375
3439
|
let args = [];
|
|
3376
3440
|
if (typeof expression == "object" && expression != null && "type" in expression && expression.type === "ArrowFunction" || typeof expression == "object" && expression != null && "type" in expression && expression.type === "FunctionExpression") {
|
|
3377
3441
|
let { parameters } = expression, parameterList = parameters.parameters, results3 = [];
|
|
3378
|
-
for (let
|
|
3379
|
-
let parameter = parameterList[
|
|
3442
|
+
for (let i20 = 0, len19 = parameterList.length; i20 < len19; i20++) {
|
|
3443
|
+
let parameter = parameterList[i20];
|
|
3380
3444
|
if (typeof parameter == "object" && parameter != null && "type" in parameter && parameter.type === "Parameter") {
|
|
3381
|
-
let
|
|
3382
|
-
if (
|
|
3383
|
-
let initializer =
|
|
3445
|
+
let ref34;
|
|
3446
|
+
if (ref34 = parameter.initializer) {
|
|
3447
|
+
let initializer = ref34;
|
|
3384
3448
|
args.push(initializer.expression, parameter.delim), parameter = {
|
|
3385
3449
|
...parameter,
|
|
3386
3450
|
initializer: void 0,
|
|
3387
|
-
children: parameter.children.filter(((
|
|
3451
|
+
children: parameter.children.filter(((a7) => a7 !== initializer))
|
|
3388
3452
|
};
|
|
3389
3453
|
} else
|
|
3390
3454
|
args.push(parameter.children.filter(
|
|
3391
|
-
((
|
|
3455
|
+
((a8) => a8 !== parameter.typeSuffix)
|
|
3392
3456
|
));
|
|
3393
3457
|
}
|
|
3394
3458
|
results3.push(parameter);
|
|
@@ -3396,12 +3460,12 @@ ${js}`
|
|
|
3396
3460
|
let newParameterList = results3, newParameters = {
|
|
3397
3461
|
...parameters,
|
|
3398
3462
|
parameters: newParameterList,
|
|
3399
|
-
children: parameters.children.map(($
|
|
3463
|
+
children: parameters.children.map(($24) => $24 === parameterList ? newParameterList : $24)
|
|
3400
3464
|
};
|
|
3401
3465
|
expression = {
|
|
3402
3466
|
...expression,
|
|
3403
3467
|
parameters: newParameters,
|
|
3404
|
-
children: expression.children.map(($
|
|
3468
|
+
children: expression.children.map(($25) => $25 === parameters ? newParameters : $25)
|
|
3405
3469
|
};
|
|
3406
3470
|
}
|
|
3407
3471
|
return {
|
|
@@ -3419,7 +3483,7 @@ ${js}`
|
|
|
3419
3483
|
}
|
|
3420
3484
|
function makeAmpersandFunction(rhs) {
|
|
3421
3485
|
let { ref, typeSuffix, body } = rhs;
|
|
3422
|
-
ref == null && (ref = makeRef("$"), inplacePrepend(ref, body)), startsWithPredicate(body, ($
|
|
3486
|
+
ref == null && (ref = makeRef("$"), inplacePrepend(ref, body)), startsWithPredicate(body, ($26) => $26.type === "ObjectExpression") && (body = makeLeftHandSideExpression(body));
|
|
3423
3487
|
let parameterList = [
|
|
3424
3488
|
typeSuffix ? [ref, typeSuffix] : ref
|
|
3425
3489
|
], parameters = makeNode({
|
|
@@ -3450,7 +3514,7 @@ ${js}`
|
|
|
3450
3514
|
});
|
|
3451
3515
|
return isStatement(body) && (braceBlock(block), fn.ampersandBlock = !1), gatherRecursiveWithinFunction(
|
|
3452
3516
|
block,
|
|
3453
|
-
((
|
|
3517
|
+
((a9) => a9 === ref)
|
|
3454
3518
|
).length > 1 && (fn.ampersandBlock = !1), fn;
|
|
3455
3519
|
}
|
|
3456
3520
|
|
|
@@ -3468,7 +3532,8 @@ ${js}`
|
|
|
3468
3532
|
}
|
|
3469
3533
|
function braceBlock(block) {
|
|
3470
3534
|
if (block.bare && !block.root) {
|
|
3471
|
-
block.children.unshift(" {"), block.children.push(
|
|
3535
|
+
block.children.unshift(" {"), hasTrailingComment(block.children) && block.children.push(`
|
|
3536
|
+
`), block.children.push("}");
|
|
3472
3537
|
let { implicitlyReturned } = block;
|
|
3473
3538
|
block.bare = block.implicitlyReturned = !1, implicitlyReturned && processReturn(block.parent, !0);
|
|
3474
3539
|
}
|
|
@@ -4396,6 +4461,16 @@ ${js}`
|
|
|
4396
4461
|
});
|
|
4397
4462
|
else {
|
|
4398
4463
|
let { expression } = initializer;
|
|
4464
|
+
if (parent.type === "SwitchStatement" && pattern.type === "Identifier" && !nullCheck) {
|
|
4465
|
+
ref = trimFirstSpace(pattern), Object.assign(condition, {
|
|
4466
|
+
type: "AssignmentExpression",
|
|
4467
|
+
children: [ref],
|
|
4468
|
+
pattern,
|
|
4469
|
+
ref,
|
|
4470
|
+
statementDeclaration: !0
|
|
4471
|
+
}), updateParentPointers(condition, parent), rootCondition.blockPrefix = getPatternBlockPrefix(pattern, trimFirstSpace(expression), decl, typeSuffix);
|
|
4472
|
+
return;
|
|
4473
|
+
}
|
|
4399
4474
|
ref = maybeRef(expression);
|
|
4400
4475
|
let simple = ref === expression, children;
|
|
4401
4476
|
if (simple)
|
|
@@ -4533,13 +4608,30 @@ ${js}`
|
|
|
4533
4608
|
}
|
|
4534
4609
|
return ["(", ...from, ")"];
|
|
4535
4610
|
}
|
|
4611
|
+
function markAllTypeImports(decl) {
|
|
4612
|
+
if (decl.ts)
|
|
4613
|
+
return decl;
|
|
4614
|
+
let { imports } = decl;
|
|
4615
|
+
if (!imports)
|
|
4616
|
+
return decl;
|
|
4617
|
+
let i = imports;
|
|
4618
|
+
if (!i.binding && !i.star) {
|
|
4619
|
+
let specs = i.specifiers;
|
|
4620
|
+
return specs?.length && specs.every(($5) => $5.ts) ? { ...decl, ts: !0 } : decl;
|
|
4621
|
+
}
|
|
4622
|
+
let children = imports.children, namedSpecs = children.at(-1).specifiers;
|
|
4623
|
+
if (!(namedSpecs?.length && namedSpecs.every(($6) => $6.ts)))
|
|
4624
|
+
return decl;
|
|
4625
|
+
let [binding, ...rest] = children, newImports = { ...imports, children: [binding, { ts: !0, children: rest }] }, newDeclChildren = decl.children.map((c) => c === imports ? newImports : c);
|
|
4626
|
+
return { ...decl, imports: newImports, children: newDeclChildren };
|
|
4627
|
+
}
|
|
4536
4628
|
function processStaticImport(decl) {
|
|
4537
4629
|
let { imports, from, children } = decl;
|
|
4538
4630
|
if (!(imports && "rest" in imports))
|
|
4539
|
-
return decl;
|
|
4631
|
+
return markAllTypeImports(decl);
|
|
4540
4632
|
let namedImports = imports.binding ? imports.children.at(-1) : imports, allSpecs = namedImports.specifiers;
|
|
4541
4633
|
if (!(namedImports.rest || allSpecs.some((s) => s.pattern)))
|
|
4542
|
-
return decl;
|
|
4634
|
+
return markAllTypeImports(decl);
|
|
4543
4635
|
let ref = makeRef("imports"), star = { type: "Star", token: "*" }, tsSpecs = allSpecs.filter((s) => s.ts), runtimeSpecs = allSpecs.filter((s) => !s.ts), runtimeNames = runtimeSpecs.flatMap((s) => s.binding.names);
|
|
4544
4636
|
namedImports.rest && runtimeNames.push(...namedImports.rest.binding.names);
|
|
4545
4637
|
let runtimeNamed = {
|
|
@@ -5718,7 +5810,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
5718
5810
|
children.push(e.children[0], ":", e2, ...e.children.slice(3));
|
|
5719
5811
|
} else
|
|
5720
5812
|
children.push(":void 0");
|
|
5721
|
-
return children.push(closeParen), makeNode({
|
|
5813
|
+
return children.push(closeParen), b.trailing?.length && children.push(b.trailing), e?.block.trailing?.length && children.push(e.block.trailing), makeNode({
|
|
5722
5814
|
type: "IfExpression",
|
|
5723
5815
|
children
|
|
5724
5816
|
});
|
|
@@ -5976,8 +6068,8 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
5976
6068
|
});
|
|
5977
6069
|
continue;
|
|
5978
6070
|
}
|
|
5979
|
-
let suppressPrefix = !1, name = part.name, value = part.value ?? name, wValue = getTrimmingSpace(part.value);
|
|
5980
|
-
[value, suppressPrefix] = handleThisPrivateShorthands(value), glob.reversed && ([name, value] = [value, name]), suppressPrefix || (value.type === "StringLiteral" ? value = [
|
|
6071
|
+
let suppressPrefix = !1, name = part.name, value = part.value ?? name, wValue = getTrimmingSpace(part.value), privateField;
|
|
6072
|
+
value?.privateShorthand && (privateField = value.privateId?.name), [value, suppressPrefix] = handleThisPrivateShorthands(value), glob.reversed && ([name, value] = [value, name]), suppressPrefix || (value.type === "StringLiteral" ? value = [
|
|
5981
6073
|
...prefix,
|
|
5982
6074
|
{
|
|
5983
6075
|
type: "Index",
|
|
@@ -6007,6 +6099,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
6007
6099
|
type: part.type,
|
|
6008
6100
|
name,
|
|
6009
6101
|
value,
|
|
6102
|
+
privateField,
|
|
6010
6103
|
delim: part.delim,
|
|
6011
6104
|
names: part.names,
|
|
6012
6105
|
children: [
|
|
@@ -6424,16 +6517,56 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
6424
6517
|
}
|
|
6425
6518
|
}
|
|
6426
6519
|
if ($1.some((x) => x[x.length - 1].special)) {
|
|
6427
|
-
let [, lhs, , op] = $1[0], { call, omitLhs } = op,
|
|
6520
|
+
let [, lhs, , op] = $1[0], { call, omitLhs } = op, callLhs = lhs;
|
|
6521
|
+
if (!omitLhs && lhs.type === "MemberExpression") {
|
|
6522
|
+
let memberLhs = lhs, { children: memberChildren } = memberLhs, mutated = !1, callChildren = memberChildren.map((child) => {
|
|
6523
|
+
if (child?.type !== "Index")
|
|
6524
|
+
return child;
|
|
6525
|
+
let indexNode = child, { ref, refAssignment } = maybeRefAssignment(indexNode.expression);
|
|
6526
|
+
return refAssignment ? (mutated = !0, replaceNode(indexNode.expression, refAssignment, indexNode), makeNode({
|
|
6527
|
+
type: "Index",
|
|
6528
|
+
children: ["[", ref, "]"],
|
|
6529
|
+
expression: ref
|
|
6530
|
+
})) : child;
|
|
6531
|
+
});
|
|
6532
|
+
mutated && (callLhs = makeNode({
|
|
6533
|
+
...memberLhs,
|
|
6534
|
+
children: callChildren
|
|
6535
|
+
}));
|
|
6536
|
+
}
|
|
6537
|
+
let index = exp.children.indexOf($2);
|
|
6428
6538
|
if (assert.notEqual(index, -1, "processAssignments: $2 must be directly in exp.children"), exp.children.splice(
|
|
6429
6539
|
index,
|
|
6430
6540
|
1,
|
|
6431
|
-
exp.expression = $2 = [call, "(",
|
|
6541
|
+
exp.expression = $2 = [call, "(", callLhs, ", ", $2, ")"]
|
|
6432
6542
|
), omitLhs) {
|
|
6433
6543
|
replaceNode(exp, $2);
|
|
6434
6544
|
continue;
|
|
6435
6545
|
}
|
|
6436
6546
|
}
|
|
6547
|
+
if ($1.length === 1) {
|
|
6548
|
+
let [, soleLhs, , soleOp] = $1[0], isPrivateGlobProp = (p) => p?.type === "Property" && !!p.privateField;
|
|
6549
|
+
if (soleOp.token === "=" && soleLhs.type === "ObjectExpression" && soleLhs.properties?.some(isPrivateGlobProp) && !soleLhs.properties.some((p) => p?.type === "SpreadProperty")) {
|
|
6550
|
+
let properties = soleLhs.properties.filter((p) => p?.type === "Property"), prefix, sourceExpr;
|
|
6551
|
+
if (properties.length > 1 && needsRef($2)) {
|
|
6552
|
+
let srcRef = makeRef();
|
|
6553
|
+
prefix = [srcRef, " = ", $2, ", "], sourceExpr = srcRef, exp.hoistDec = {
|
|
6554
|
+
type: "Declaration",
|
|
6555
|
+
children: ["let ", srcRef],
|
|
6556
|
+
names: [],
|
|
6557
|
+
bindings: [],
|
|
6558
|
+
decl: "let"
|
|
6559
|
+
};
|
|
6560
|
+
} else
|
|
6561
|
+
prefix = [], sourceExpr = $2;
|
|
6562
|
+
let joined = properties.map((prop) => {
|
|
6563
|
+
let sourceName = prop.privateField ?? prop.name;
|
|
6564
|
+
return [prop.value, " = ", sourceExpr, ".", sourceName];
|
|
6565
|
+
}).flatMap((a, idx) => idx ? [", ", a] : [a]);
|
|
6566
|
+
exp.children = [["(", prefix, joined, ")"]], exp.names = [];
|
|
6567
|
+
continue;
|
|
6568
|
+
}
|
|
6569
|
+
}
|
|
6437
6570
|
let wrapped = !1, insideParens = exp.parent?.type === "ParenthesizedExpression", i = 0;
|
|
6438
6571
|
for (; i < len3; ) {
|
|
6439
6572
|
let lastAssignment = $1[i++], [, lhs, , op] = lastAssignment;
|
|
@@ -6484,7 +6617,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
6484
6617
|
type: "Declaration",
|
|
6485
6618
|
children: ["let ", optionalChainRef],
|
|
6486
6619
|
names: []
|
|
6487
|
-
}), replaceNode($2, newMemberExp), $2 = newMemberExp);
|
|
6620
|
+
}), replaceNode($2, newMemberExp, exp), $2 = newMemberExp);
|
|
6488
6621
|
}
|
|
6489
6622
|
i--;
|
|
6490
6623
|
}
|
|
@@ -7348,6 +7481,9 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
7348
7481
|
PostfixedSingleLineNoCommaStatements,
|
|
7349
7482
|
NestedBlockStatements,
|
|
7350
7483
|
NestedBlockStatement,
|
|
7484
|
+
TrailingNestedComments,
|
|
7485
|
+
TrailingInlineComment,
|
|
7486
|
+
TrailingNestedCommentLine,
|
|
7351
7487
|
BlockStatementPart,
|
|
7352
7488
|
Literal,
|
|
7353
7489
|
LiteralContent,
|
|
@@ -7965,6 +8101,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
7965
8101
|
CoffeeOfEnabled,
|
|
7966
8102
|
CoffeePrototypeEnabled,
|
|
7967
8103
|
ESArrowFunctionEnabled,
|
|
8104
|
+
ESBraceBlockEnabled,
|
|
7968
8105
|
JSXCodeNestedEnabled,
|
|
7969
8106
|
JSXCodeSameLineEnabled,
|
|
7970
8107
|
ObjectIsEnabled,
|
|
@@ -7985,7 +8122,16 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
7985
8122
|
Dedented,
|
|
7986
8123
|
PushExtraIndent1
|
|
7987
8124
|
};
|
|
7988
|
-
var $skip = import_lib2.SKIP, $L0 = (0, import_lib2.$L)(""), $L1 = (0, import_lib2.$L)("{"), $L2 = (0, import_lib2.$L)("/ "), $L3 = (0, import_lib2.$L)("="), $L4 = (0, import_lib2.$L)("("), $L5 = (0, import_lib2.$L)("... "), $L6 = (0, import_lib2.$L)("?"), $L7 = (0, import_lib2.$L)("."), $L8 = (0, import_lib2.$L)("tuple"), $L9 = (0, import_lib2.$L)("++"), $L10 = (0, import_lib2.$L)("--"), $L11 = (0, import_lib2.$L)("\u29FA"), $L12 = (0, import_lib2.$L)("\u2014"), $L13 = (0, import_lib2.$L)("=>"), $L14 = (0, import_lib2.$L)("\u21D2"), $L15 = (0, import_lib2.$L)(":"), $L16 = (0, import_lib2.$L)(" "), $L17 = (0, import_lib2.$L)("<"), $L18 = (0, import_lib2.$L)("implements"), $L19 = (0, import_lib2.$L)("<:"), $L20 = (0, import_lib2.$L)("^"), $L21 = (0, import_lib2.$L)("<?"), $L22 = (0, import_lib2.$L)("-"), $L23 = (0, import_lib2.$L)("import.meta"), $L24 = (0, import_lib2.$L)("return.value"), $L25 = (0, import_lib2.$L)(","), $L26 = (0, import_lib2.$L)("tighter"), $L27 = (0, import_lib2.$L)("looser"), $L28 = (0, import_lib2.$L)("same"), $L29 = (0, import_lib2.$L)("left"), $L30 = (0, import_lib2.$L)("right"), $L31 = (0, import_lib2.$L)("non"), $L32 = (0, import_lib2.$L)("relational"), $L33 = (0, import_lib2.$L)("arguments"), $L34 = (0, import_lib2.$L)("->"), $L35 = (0, import_lib2.$L)("\u2192"), $L36 = (0, import_lib2.$L)("}"), $L37 = (0, import_lib2.$L)("null"), $L38 = (0, import_lib2.$L)("true"), $L39 = (0, import_lib2.$L)("false"), $L40 = (0, import_lib2.$L)("yes"), $L41 = (0, import_lib2.$L)("on"), $L42 = (0, import_lib2.$L)("no"), $L43 = (0, import_lib2.$L)("off"), $L44 = (0, import_lib2.$L)(">"), $L45 = (0, import_lib2.$L)("]"), $L46 = (0, import_lib2.$L)("\u2022"), $L47 = (0, import_lib2.$L)("//"), $L48 = (0, import_lib2.$L)("**="), $L49 = (0, import_lib2.$L)("*="), $L50 = (0, import_lib2.$L)("%/"), $L51 = (0, import_lib2.$L)("\xF7"), $L52 = (0, import_lib2.$L)("%%"), $L53 = (0, import_lib2.$L)("/="), $L54 = (0, import_lib2.$L)("%="), $L55 = (0, import_lib2.$L)("+="), $L56 = (0, import_lib2.$L)("-="), $L57 = (0, import_lib2.$L)("<<="), $L58 = (0, import_lib2.$L)("\u226A="), $L59 = (0, import_lib2.$L)(">>>="), $L60 = (0, import_lib2.$L)("\u22D9="), $L61 = (0, import_lib2.$L)(">>="), $L62 = (0, import_lib2.$L)("\u226B="), $L63 = (0, import_lib2.$L)("&&="), $L64 = (0, import_lib2.$L)("&="), $L65 = (0, import_lib2.$L)("^="), $L66 = (0, import_lib2.$L)("||="), $L67 = (0, import_lib2.$L)("\u2016="), $L68 = (0, import_lib2.$L)("|="), $L69 = (0, import_lib2.$L)("??="), $L70 = (0, import_lib2.$L)("\u2047="), $L71 = (0, import_lib2.$L)("?="), $L72 = (0, import_lib2.$L)("and="), $L73 = (0, import_lib2.$L)("or="), $L74 = (0, import_lib2.$L)("*"), $L75 = (0, import_lib2.$L)("**"), $L76 = (0, import_lib2.$L)("/"), $L77 = (0, import_lib2.$L)("%"), $L78 = (0, import_lib2.$L)("+"), $L79 = (0, import_lib2.$L)("<="), $L80 = (0, import_lib2.$L)("\u2264"), $L81 = (0, import_lib2.$L)(">="), $L82 = (0, import_lib2.$L)("\u2265"), $L83 = (0, import_lib2.$L)("!<?"), $L84 = (0, import_lib2.$L)("<<"), $L85 = (0, import_lib2.$L)("\u226A"), $L86 = (0, import_lib2.$L)(">>>"), $L87 = (0, import_lib2.$L)("\u22D9"), $L88 = (0, import_lib2.$L)(">>"), $L89 = (0, import_lib2.$L)("\u226B"), $L90 = (0, import_lib2.$L)("!=="), $L91 = (0, import_lib2.$L)("\u2262"), $L92 = (0, import_lib2.$L)("!="), $L93 = (0, import_lib2.$L)("\u2260"), $L94 = (0, import_lib2.$L)("isnt"), $L95 = (0, import_lib2.$L)("==="), $L96 = (0, import_lib2.$L)("\u2263"), $L97 = (0, import_lib2.$L)("\u2A76"), $L98 = (0, import_lib2.$L)("=="), $L99 = (0, import_lib2.$L)("\u2261"), $L100 = (0, import_lib2.$L)("\u2A75"), $L101 = (0, import_lib2.$L)("and"), $L102 = (0, import_lib2.$L)("&&"), $L103 = (0, import_lib2.$L)("or"), $L104 = (0, import_lib2.$L)("||"), $L105 = (0, import_lib2.$L)("\u2016"), $L106 = (0, import_lib2.$L)("^^"), $L107 = (0, import_lib2.$L)("xor"), $L108 = (0, import_lib2.$L)("xnor"), $L109 = (0, import_lib2.$L)("??"), $L110 = (0, import_lib2.$L)("\u2047"), $L111 = (0, import_lib2.$L)("instanceof"), $L112 = (0, import_lib2.$L)("\u2208"), $L113 = (0, import_lib2.$L)("\u220B"), $L114 = (0, import_lib2.$L)("\u220C"), $L115 = (0, import_lib2.$L)("\u2209"), $L116 = (0, import_lib2.$L)("&"), $L117 = (0, import_lib2.$L)("|"), $L118 = (0, import_lib2.$L)(";"), $L119 = (0, import_lib2.$L)("some"), $L120 = (0, import_lib2.$L)("every"), $L121 = (0, import_lib2.$L)("count"), $L122 = (0, import_lib2.$L)("first"), $L123 = (0, import_lib2.$L)("sum"), $L124 = (0, import_lib2.$L)("product"), $L125 = (0, import_lib2.$L)("min"), $L126 = (0, import_lib2.$L)("max"), $L127 = (0, import_lib2.$L)("join"), $L128 = (0, import_lib2.$L)("concat"), $L129 = (0, import_lib2.$L)("break"), $L130 = (0, import_lib2.$L)("continue"), $L131 = (0, import_lib2.$L)("debugger"), $L132 = (0, import_lib2.$L)("require"), $L133 = (0, import_lib2.$L)("with"), $L134 = (0, import_lib2.$L)("assert"), $L135 = (0, import_lib2.$L)(":="), $L136 = (0, import_lib2.$L)("\u2254"), $L137 = (0, import_lib2.$L)(".="), $L138 = (0, import_lib2.$L)("::="), $L139 = (0, import_lib2.$L)("/*"), $L140 = (0, import_lib2.$L)("*/"), $L141 = (0, import_lib2.$L)("\\"), $L142 = (0, import_lib2.$L)(")"), $L143 = (0, import_lib2.$L)("abstract"), $L144 = (0, import_lib2.$L)("as"), $L145 = (0, import_lib2.$L)("@"), $L146 = (0, import_lib2.$L)("@@"), $L147 = (0, import_lib2.$L)("async"), $L148 = (0, import_lib2.$L)("await"), $L149 = (0, import_lib2.$L)("`"), $L150 = (0, import_lib2.$L)("by"), $L151 = (0, import_lib2.$L)("case"), $L152 = (0, import_lib2.$L)("catch"), $L153 = (0, import_lib2.$L)("class"), $L154 = (0, import_lib2.$L)("#{"), $L155 = (0, import_lib2.$L)("comptime"), $L156 = (0, import_lib2.$L)("declare"), $L157 = (0, import_lib2.$L)("default"), $L158 = (0, import_lib2.$L)("delete"), $L159 = (0, import_lib2.$L)("do"), $L160 = (0, import_lib2.$L)(".."), $L161 = (0, import_lib2.$L)("\u2025"), $L162 = (0, import_lib2.$L)("..."), $L163 = (0, import_lib2.$L)("\u2026"), $L164 = (0, import_lib2.$L)("::"), $L165 = (0, import_lib2.$L)('"'), $L166 = (0, import_lib2.$L)("each"), $L167 = (0, import_lib2.$L)("else"), $L168 = (0, import_lib2.$L)("!"), $L169 = (0, import_lib2.$L)("export"), $L170 = (0, import_lib2.$L)("extends"), $L171 = (0, import_lib2.$L)("finally"), $L172 = (0, import_lib2.$L)("for"), $L173 = (0, import_lib2.$L)("from"), $L174 = (0, import_lib2.$L)("function"), $L175 = (0, import_lib2.$L)("get"), $L176 = (0, import_lib2.$L)("set"), $L177 = (0, import_lib2.$L)("#"), $L178 = (0, import_lib2.$L)("if"), $L179 = (0, import_lib2.$L)("import"), $L180 = (0, import_lib2.$L)("in"), $L181 = (0, import_lib2.$L)("infer"), $L182 = (0, import_lib2.$L)("let"), $L183 = (0, import_lib2.$L)("const"), $L184 = (0, import_lib2.$L)("is"), $L185 = (0, import_lib2.$L)("var"), $L186 = (0, import_lib2.$L)("like"), $L187 = (0, import_lib2.$L)("loop"), $L188 = (0, import_lib2.$L)("new"), $L189 = (0, import_lib2.$L)("not"), $L190 = (0, import_lib2.$L)("of"), $L191 = (0, import_lib2.$L)("["), $L192 = (0, import_lib2.$L)("operator"), $L193 = (0, import_lib2.$L)("override"), $L194 = (0, import_lib2.$L)("own"), $L195 = (0, import_lib2.$L)("public"), $L196 = (0, import_lib2.$L)("private"), $L197 = (0, import_lib2.$L)("protected"), $L198 = (0, import_lib2.$L)("||>"), $L199 = (0, import_lib2.$L)("|\u25B7"), $L200 = (0, import_lib2.$L)("|>="), $L201 = (0, import_lib2.$L)("\u25B7="), $L202 = (0, import_lib2.$L)("|>"), $L203 = (0, import_lib2.$L)("\u25B7"), $L204 = (0, import_lib2.$L)("readonly"), $L205 = (0, import_lib2.$L)("return"), $L206 = (0, import_lib2.$L)("satisfies"), $L207 = (0, import_lib2.$L)("'"), $L208 = (0, import_lib2.$L)("static"), $L209 = (0, import_lib2.$L)("${"), $L210 = (0, import_lib2.$L)("super"), $L211 = (0, import_lib2.$L)("switch"), $L212 = (0, import_lib2.$L)("target"), $L213 = (0, import_lib2.$L)("then"), $L214 = (0, import_lib2.$L)("this"), $L215 = (0, import_lib2.$L)("throw"), $L216 = (0, import_lib2.$L)('"""'), $L217 = (0, import_lib2.$L)("'''"), $L218 = (0, import_lib2.$L)("///"), $L219 = (0, import_lib2.$L)("```"), $L220 = (0, import_lib2.$L)("try"), $L221 = (0, import_lib2.$L)("typeof"), $L222 = (0, import_lib2.$L)("undefined"), $L223 = (0, import_lib2.$L)("unless"), $L224 = (0, import_lib2.$L)("until"), $L225 = (0, import_lib2.$L)("using"), $L226 = (0, import_lib2.$L)("void"), $L227 = (0, import_lib2.$L)("when"), $L228 = (0, import_lib2.$L)("while"), $L229 = (0, import_lib2.$L)("yield"), $L230 = (0, import_lib2.$L)("/>"), $L231 = (0, import_lib2.$L)("</"), $L232 = (0, import_lib2.$L)("<>"), $L233 = (0, import_lib2.$L)("</>"), $L234 = (0, import_lib2.$L)("<!--"), $L235 = (0, import_lib2.$L)("-->"), $L236 = (0, import_lib2.$L)("type"), $L237 = (0, import_lib2.$L)("enum"), $L238 = (0, import_lib2.$L)("interface"), $L239 = (0, import_lib2.$L)("global"), $L240 = (0, import_lib2.$L)("module"), $L241 = (0, import_lib2.$L)("namespace"), $L242 = (0, import_lib2.$L)("asserts"), $L243 = (0, import_lib2.$L)("keyof"), $L244 = (0, import_lib2.$L)("???"), $L245 = (0, import_lib2.$L)("unique"), $L246 = (0, import_lib2.$L)("symbol"), $L247 = (0, import_lib2.$L)("[]"), $L248 = (0, import_lib2.$L)("civet"), $R0 = (0, import_lib2.$R)(new RegExp("(?=async|debugger|if|unless|comptime|do|for|loop|until|while|switch|throw|try)", "suy")), $R1 = (0, import_lib2.$R)(new RegExp("&(?=\\s)", "suy")), $R2 = (0, import_lib2.$R)(new RegExp("(as|of|by|satisfies|then|when|implements|xor|xnor)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy")), $R3 = (0, import_lib2.$R)(new RegExp("[0-9]", "suy")), $R4 = (0, import_lib2.$R)(new RegExp("(?!\\p{ID_Start}|[_$0-9(\\[{])", "suy")), $R5 = (0, import_lib2.$R)(new RegExp("[ \\t]", "suy")), $R6 = (0, import_lib2.$R)(new RegExp("\\p{ID_Continue}|[\\u200C\\u200D$.#{=]", "suy")), $R7 = (0, import_lib2.$R)(new RegExp("[&=]", "suy")), $R8 = (0, import_lib2.$R)(new RegExp("[@#]", "suy")), $R9 = (0, import_lib2.$R)(new RegExp("(?=['\"`])", "suy")), $R10 = (0, import_lib2.$R)(new RegExp("(?=[\\/?])", "suy")), $R11 = (0, import_lib2.$R)(new RegExp("(?=[\\/\\[{?.!@#'\u2019:])", "suy")), $R12 = (0, import_lib2.$R)(new RegExp("%%?", "suy")), $R13 = (0, import_lib2.$R)(new RegExp("[.\\s]", "suy")), $R14 = (0, import_lib2.$R)(new RegExp("[)\\]}]", "suy")), $R15 = (0, import_lib2.$R)(new RegExp("[+-]", "suy")), $R16 = (0, import_lib2.$R)(new RegExp("\\+\\+|--|\u29FA|\u2014|[\\+\\-&]\\S", "suy")), $R17 = (0, import_lib2.$R)(new RegExp(`(?=[0-9.'"tfyno])`, "suy")), $R18 = (0, import_lib2.$R)(new RegExp("(?=true|false|yes|no|on|off)", "suy")), $R19 = (0, import_lib2.$R)(new RegExp("(?=\\p{ID_Start}|[_$\\\\]|[^\\u0000-\\u007F\\p{ID_Continue}\\s\xF7\u2014\u2016\u2019\u2022\u2025\u2026\u2047\u2192\u21D2\u2208\u2209\u220B\u220C\u2254\u2260\u2261\u2262\u2263\u2264\u2265\u226A\u226B\u22D9\u25B7\u29FA\u2A75\u2A76])", "suy")), $R20 = (0, import_lib2.$R)(new RegExp("(?:\\p{ID_Start}|[_$]|\\\\u\\{0*(?:[\\dA-Fa-f]{1,5}|10[\\dA-Fa-f]{4})\\}|\\\\u[\\dA-Fa-f]{4}|[^\\u0000-\\u007F\\p{ID_Continue}\\s\xF7\u2014\u2016\u2019\u2022\u2025\u2026\u2047\u2192\u21D2\u2208\u2209\u220B\u220C\u2254\u2260\u2261\u2262\u2263\u2264\u2265\u226A\u226B\u22D9\u25B7\u29FA\u2A75\u2A76])(?:\\p{ID_Continue}|[\\u200C\\u200D$]|\\\\u\\{0*(?:[\\dA-Fa-f]{1,5}|10[\\dA-Fa-f]{4})\\}|\\\\u[\\dA-Fa-f]{4}|[^\\u0000-\\u007F\\p{ID_Continue}\\s\xF7\u2014\u2016\u2019\u2022\u2025\u2026\u2047\u2192\u21D2\u2208\u2209\u220B\u220C\u2254\u2260\u2261\u2262\u2263\u2264\u2265\u226A\u226B\u22D9\u25B7\u29FA\u2A75\u2A76])*", "suy")), $R21 = (0, import_lib2.$R)(new RegExp("(?=\\[|\\s*[.\u2022\\/])", "suy")), $R22 = (0, import_lib2.$R)(new RegExp("([<>])(=?)|([\u2264\u2265])", "suy")), $R23 = (0, import_lib2.$R)(new RegExp("[ \\t]*", "suy")), $R24 = (0, import_lib2.$R)(new RegExp("[ \\t]+", "suy")), $R25 = (0, import_lib2.$R)(new RegExp("[!+-]?", "suy")), $R26 = (0, import_lib2.$R)(new RegExp("(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*", "suy")), $R27 = (0, import_lib2.$R)(new RegExp("[=>]", "suy")), $R28 = (0, import_lib2.$R)(new RegExp("(?=\\p{ID_Start}|[_$^\u226A\u226B\u22D9\u2264\u2265\u2208\u220B\u2209\u220C\u2263\u2261\u2262\u2260=\u2A76\u2A75\u2016\u2047&|*\\/!?%\xF7<>\u29FA+-])", "suy")), $R29 = (0, import_lib2.$R)(new RegExp("!\\^\\^?", "suy")), $R30 = (0, import_lib2.$R)(new RegExp("(?!\\+\\+|--)[!~+-](?!\\s)", "suy")), $R31 = (0, import_lib2.$R)(new RegExp("[:.]", "suy")), $R32 = (0, import_lib2.$R)(new RegExp("(?=for|if|loop|unless|until|while)", "suy")), $R33 = (0, import_lib2.$R)(new RegExp("(?:loop|while|until|for|do)(?!\\p{ID_Continue})", "suy")), $R34 = (0, import_lib2.$R)(new RegExp("(?=loop|comptime|do|for|until|while)", "suy")), $R35 = (0, import_lib2.$R)(new RegExp("\\s", "suy")), $R36 = (0, import_lib2.$R)(new RegExp(`[^;"'\\s=>]+`, "suy")), $R37 = (0, import_lib2.$R)(new RegExp("(?=[0-9.])", "suy")), $R38 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)n", "suy")), $R39 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(?=\\.(?:\\p{ID_Start}|[_$]))", "suy")), $R40 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(?:\\.(?:[0-9](?:_[0-9]|[0-9])*))?", "suy")), $R41 = (0, import_lib2.$R)(new RegExp("(?:\\.[0-9](?:_[0-9]|[0-9])*)", "suy")), $R42 = (0, import_lib2.$R)(new RegExp("(?:[eE][+-]?[0-9]+(?:_[0-9]|[0-9])*)", "suy")), $R43 = (0, import_lib2.$R)(new RegExp("0[bB][01](?:[01]|_[01])*n?", "suy")), $R44 = (0, import_lib2.$R)(new RegExp("0[oO][0-7](?:[0-7]|_[0-7])*n?", "suy")), $R45 = (0, import_lib2.$R)(new RegExp("0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*n?", "suy")), $R46 = (0, import_lib2.$R)(new RegExp("(?=[0-9])", "suy")), $R47 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)", "suy")), $R48 = (0, import_lib2.$R)(new RegExp('(?:\\\\.|[^"])*', "suy")), $R49 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^'])*", "suy")), $R50 = (0, import_lib2.$R)(new RegExp('(?:\\\\.|[^"\\n])*', "suy")), $R51 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^'\\n])*", "suy")), $R52 = (0, import_lib2.$R)(new RegExp('(?:"(?!"")|#(?!\\{)|\\\\.|[^#"])+', "suy")), $R53 = (0, import_lib2.$R)(new RegExp('(?:"(?!"")|\\\\.|[^"])+', "suy")), $R54 = (0, import_lib2.$R)(new RegExp("(?:'(?!'')|\\\\.|[^'])*", "suy")), $R55 = (0, import_lib2.$R)(new RegExp('(?:\\\\.|#(?!\\{)|[^"#])+', "suy")), $R56 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^\\]])*", "suy")), $R57 = (0, import_lib2.$R)(new RegExp("(?:\\\\.)", "suy")), $R58 = (0, import_lib2.$R)(new RegExp("[\\s]+", "suy")), $R59 = (0, import_lib2.$R)(new RegExp("\\/(?!\\/\\/)", "suy")), $R60 = (0, import_lib2.$R)(new RegExp("[^[\\/\\s#$\\\\]+|[#$]", "suy")), $R61 = (0, import_lib2.$R)(new RegExp("[*\\/\\r\\n]", "suy")), $R62 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^[\\/\\r\\n])+", "suy")), $R63 = (0, import_lib2.$R)(new RegExp("(?:\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy")), $R64 = (0, import_lib2.$R)(new RegExp("(?=[`'\"])", "suy")), $R65 = (0, import_lib2.$R)(new RegExp("(?:\\$(?!\\{)|\\\\.|[^$`])+", "suy")), $R66 = (0, import_lib2.$R)(new RegExp("(?:\\$(?!\\{)|`(?!``)|\\\\.|[^$`])+", "suy")), $R67 = (0, import_lib2.$R)(new RegExp("(?:off|yes|on|no)", "suy")), $R68 = (0, import_lib2.$R)(new RegExp("isnt", "suy")), $R69 = (0, import_lib2.$R)(new RegExp("by", "suy")), $R70 = (0, import_lib2.$R)(new RegExp("of", "suy")), $R71 = (0, import_lib2.$R)(new RegExp("(?:instanceof|interface|protected|continue|debugger|function|default|extends|finally|private|delete|export|import|public|return|static|switch|typeof|unless|await|break|catch|class|const|false|super|throw|until|while|yield|case|else|enum|loop|null|this|true|void|with|and|for|let|new|not|try|var|do|if|in|is|or)", "suy")), $R72 = (0, import_lib2.$R)(new RegExp("(?=\\/|#)", "suy")), $R73 = (0, import_lib2.$R)(new RegExp("\\/\\/(?!\\/)[^\\r\\n]*", "suy")), $R74 = (0, import_lib2.$R)(new RegExp(".", "suy")), $R75 = (0, import_lib2.$R)(new RegExp("#(?!##(?!#))([^\\r\\n]*)", "suy")), $R76 = (0, import_lib2.$R)(new RegExp("[^]*?###", "suy")), $R77 = (0, import_lib2.$R)(new RegExp("###(?!#)", "suy")), $R78 = (0, import_lib2.$R)(new RegExp("\\/\\*(?:(?!\\*\\/)[^\\r\\n])*\\*\\/", "suy")), $R79 = (0, import_lib2.$R)(new RegExp("(?=[ \\t\\/\\\\#])", "suy")), $R80 = (0, import_lib2.$R)(new RegExp("(?=\\s|\\/|#)", "suy")), $R81 = (0, import_lib2.$R)(new RegExp("(?!\\p{ID_Continue}|[^\\u0000-\\u007F\\p{ID_Continue}\\s\xF7\u2014\u2016\u2019\u2022\u2025\u2026\u2047\u2192\u21D2\u2208\u2209\u220B\u220C\u2254\u2260\u2261\u2262\u2263\u2264\u2265\u226A\u226B\u22D9\u25B7\u29FA\u2A75\u2A76])", "suy")), $R82 = (0, import_lib2.$R)(new RegExp("[=:]", "suy")), $R83 = (0, import_lib2.$R)(new RegExp("['\u2019]s", "suy")), $R84 = (0, import_lib2.$R)(new RegExp("(?=[<])", "suy")), $R85 = (0, import_lib2.$R)(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*", "suy")), $R86 = (0, import_lib2.$R)(new RegExp("[!+-]", "suy")), $R87 = (0, import_lib2.$R)(new RegExp("[\\s>]|\\/>", "suy")), $R88 = (0, import_lib2.$R)(new RegExp("(?:[\\w\\-:]+|\\([^()]*\\)|\\[[^\\[\\]]*\\])+", "suy")), $R89 = (0, import_lib2.$R)(new RegExp(`"[^"]*"|'[^']*'`, "suy")), $R90 = (0, import_lib2.$R)(new RegExp("[<>]", "suy")), $R91 = (0, import_lib2.$R)(new RegExp("[!~+-](?!\\s|[!~+-]*&)", "suy")), $R92 = (0, import_lib2.$R)(new RegExp("(?:-[^-]|[^-]*)*", "suy")), $R93 = (0, import_lib2.$R)(new RegExp("[^{}<>\\r\\n]+", "suy")), $R94 = (0, import_lib2.$R)(new RegExp("[+-]?", "suy")), $R95 = (0, import_lib2.$R)(new RegExp("(?=if|unless)", "suy")), $R96 = (0, import_lib2.$R)(new RegExp("[|&<!=\\-\u21D2\u2192]", "suy")), $R97 = (0, import_lib2.$R)(new RegExp("(extends|not|is)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy")), $R98 = (0, import_lib2.$R)(new RegExp("const|in|out", "suy")), $R99 = (0, import_lib2.$R)(new RegExp("#![^\\r\\n]*", "suy")), $R100 = (0, import_lib2.$R)(new RegExp("[\\t ]*", "suy")), $R101 = (0, import_lib2.$R)(new RegExp("[\\s]*", "suy")), $R102 = (0, import_lib2.$R)(new RegExp("\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([\\p{ID_Continue}.,+-]*))?", "suy")), $R103 = (0, import_lib2.$R)(new RegExp("\\/\\/\\/[^\\r\\n]*", "suy")), $R104 = (0, import_lib2.$R)(new RegExp("(?=[ \\t\\r\\n\\/#]|$)", "suy")), $R105 = (0, import_lib2.$R)(new RegExp("\\r\\n|\\n|\\r|$", "suy")), $R106 = (0, import_lib2.$R)(new RegExp("[^]*", "suy")), Program$parser = (0, import_lib2.$S)(Reset, Init, (0, import_lib2.$E)(EOS), TopLevelStatements, __);
|
|
8125
|
+
var $skip = import_lib2.SKIP, $L0 = (0, import_lib2.$L)(""), $L1 = (0, import_lib2.$L)("{"), $L2 = (0, import_lib2.$L)("/ "), $L3 = (0, import_lib2.$L)("="), $L4 = (0, import_lib2.$L)("("), $L5 = (0, import_lib2.$L)("... "), $L6 = (0, import_lib2.$L)("?"), $L7 = (0, import_lib2.$L)("."), $L8 = (0, import_lib2.$L)("tuple"), $L9 = (0, import_lib2.$L)("++"), $L10 = (0, import_lib2.$L)("--"), $L11 = (0, import_lib2.$L)("\u29FA"), $L12 = (0, import_lib2.$L)("\u2014"), $L13 = (0, import_lib2.$L)("=>"), $L14 = (0, import_lib2.$L)("\u21D2"), $L15 = (0, import_lib2.$L)(":"), $L16 = (0, import_lib2.$L)(" "), $L17 = (0, import_lib2.$L)("<"), $L18 = (0, import_lib2.$L)("implements"), $L19 = (0, import_lib2.$L)("<:"), $L20 = (0, import_lib2.$L)("^"), $L21 = (0, import_lib2.$L)("<?"), $L22 = (0, import_lib2.$L)("-"), $L23 = (0, import_lib2.$L)("import.meta"), $L24 = (0, import_lib2.$L)("return.value"), $L25 = (0, import_lib2.$L)(","), $L26 = (0, import_lib2.$L)("tighter"), $L27 = (0, import_lib2.$L)("looser"), $L28 = (0, import_lib2.$L)("same"), $L29 = (0, import_lib2.$L)("left"), $L30 = (0, import_lib2.$L)("right"), $L31 = (0, import_lib2.$L)("non"), $L32 = (0, import_lib2.$L)("relational"), $L33 = (0, import_lib2.$L)("arguments"), $L34 = (0, import_lib2.$L)("->"), $L35 = (0, import_lib2.$L)("\u2192"), $L36 = (0, import_lib2.$L)("}"), $L37 = (0, import_lib2.$L)("null"), $L38 = (0, import_lib2.$L)("true"), $L39 = (0, import_lib2.$L)("false"), $L40 = (0, import_lib2.$L)("yes"), $L41 = (0, import_lib2.$L)("on"), $L42 = (0, import_lib2.$L)("no"), $L43 = (0, import_lib2.$L)("off"), $L44 = (0, import_lib2.$L)(">"), $L45 = (0, import_lib2.$L)("]"), $L46 = (0, import_lib2.$L)("\u2022"), $L47 = (0, import_lib2.$L)("//"), $L48 = (0, import_lib2.$L)("**="), $L49 = (0, import_lib2.$L)("*="), $L50 = (0, import_lib2.$L)("%/"), $L51 = (0, import_lib2.$L)("\xF7"), $L52 = (0, import_lib2.$L)("%%"), $L53 = (0, import_lib2.$L)("/="), $L54 = (0, import_lib2.$L)("%="), $L55 = (0, import_lib2.$L)("+="), $L56 = (0, import_lib2.$L)("-="), $L57 = (0, import_lib2.$L)("<<="), $L58 = (0, import_lib2.$L)("\u226A="), $L59 = (0, import_lib2.$L)(">>>="), $L60 = (0, import_lib2.$L)("\u22D9="), $L61 = (0, import_lib2.$L)(">>="), $L62 = (0, import_lib2.$L)("\u226B="), $L63 = (0, import_lib2.$L)("&&="), $L64 = (0, import_lib2.$L)("&="), $L65 = (0, import_lib2.$L)("^="), $L66 = (0, import_lib2.$L)("||="), $L67 = (0, import_lib2.$L)("\u2016="), $L68 = (0, import_lib2.$L)("|="), $L69 = (0, import_lib2.$L)("??="), $L70 = (0, import_lib2.$L)("\u2047="), $L71 = (0, import_lib2.$L)("?="), $L72 = (0, import_lib2.$L)("and="), $L73 = (0, import_lib2.$L)("or="), $L74 = (0, import_lib2.$L)("*"), $L75 = (0, import_lib2.$L)("**"), $L76 = (0, import_lib2.$L)("/"), $L77 = (0, import_lib2.$L)("%"), $L78 = (0, import_lib2.$L)("+"), $L79 = (0, import_lib2.$L)("<="), $L80 = (0, import_lib2.$L)("\u2264"), $L81 = (0, import_lib2.$L)(">="), $L82 = (0, import_lib2.$L)("\u2265"), $L83 = (0, import_lib2.$L)("!<?"), $L84 = (0, import_lib2.$L)("<<"), $L85 = (0, import_lib2.$L)("\u226A"), $L86 = (0, import_lib2.$L)(">>>"), $L87 = (0, import_lib2.$L)("\u22D9"), $L88 = (0, import_lib2.$L)(">>"), $L89 = (0, import_lib2.$L)("\u226B"), $L90 = (0, import_lib2.$L)("!=="), $L91 = (0, import_lib2.$L)("\u2262"), $L92 = (0, import_lib2.$L)("!="), $L93 = (0, import_lib2.$L)("\u2260"), $L94 = (0, import_lib2.$L)("isnt"), $L95 = (0, import_lib2.$L)("==="), $L96 = (0, import_lib2.$L)("\u2263"), $L97 = (0, import_lib2.$L)("\u2A76"), $L98 = (0, import_lib2.$L)("=="), $L99 = (0, import_lib2.$L)("\u2261"), $L100 = (0, import_lib2.$L)("\u2A75"), $L101 = (0, import_lib2.$L)("and"), $L102 = (0, import_lib2.$L)("&&"), $L103 = (0, import_lib2.$L)("or"), $L104 = (0, import_lib2.$L)("||"), $L105 = (0, import_lib2.$L)("\u2016"), $L106 = (0, import_lib2.$L)("^^"), $L107 = (0, import_lib2.$L)("xor"), $L108 = (0, import_lib2.$L)("xnor"), $L109 = (0, import_lib2.$L)("??"), $L110 = (0, import_lib2.$L)("\u2047"), $L111 = (0, import_lib2.$L)("instanceof"), $L112 = (0, import_lib2.$L)("\u2208"), $L113 = (0, import_lib2.$L)("\u220B"), $L114 = (0, import_lib2.$L)("\u220C"), $L115 = (0, import_lib2.$L)("\u2209"), $L116 = (0, import_lib2.$L)("&"), $L117 = (0, import_lib2.$L)("|"), $L118 = (0, import_lib2.$L)(";"), $L119 = (0, import_lib2.$L)("some"), $L120 = (0, import_lib2.$L)("every"), $L121 = (0, import_lib2.$L)("count"), $L122 = (0, import_lib2.$L)("first"), $L123 = (0, import_lib2.$L)("sum"), $L124 = (0, import_lib2.$L)("product"), $L125 = (0, import_lib2.$L)("min"), $L126 = (0, import_lib2.$L)("max"), $L127 = (0, import_lib2.$L)("join"), $L128 = (0, import_lib2.$L)("concat"), $L129 = (0, import_lib2.$L)("break"), $L130 = (0, import_lib2.$L)("continue"), $L131 = (0, import_lib2.$L)("debugger"), $L132 = (0, import_lib2.$L)("require"), $L133 = (0, import_lib2.$L)("with"), $L134 = (0, import_lib2.$L)("assert"), $L135 = (0, import_lib2.$L)(":="), $L136 = (0, import_lib2.$L)("\u2254"), $L137 = (0, import_lib2.$L)(".="), $L138 = (0, import_lib2.$L)("::="), $L139 = (0, import_lib2.$L)("/*"), $L140 = (0, import_lib2.$L)("*/"), $L141 = (0, import_lib2.$L)("\\"), $L142 = (0, import_lib2.$L)(")"), $L143 = (0, import_lib2.$L)("abstract"), $L144 = (0, import_lib2.$L)("as"), $L145 = (0, import_lib2.$L)("@"), $L146 = (0, import_lib2.$L)("@@"), $L147 = (0, import_lib2.$L)("async"), $L148 = (0, import_lib2.$L)("await"), $L149 = (0, import_lib2.$L)("`"), $L150 = (0, import_lib2.$L)("by"), $L151 = (0, import_lib2.$L)("case"), $L152 = (0, import_lib2.$L)("catch"), $L153 = (0, import_lib2.$L)("class"), $L154 = (0, import_lib2.$L)("#{"), $L155 = (0, import_lib2.$L)("comptime"), $L156 = (0, import_lib2.$L)("declare"), $L157 = (0, import_lib2.$L)("default"), $L158 = (0, import_lib2.$L)("delete"), $L159 = (0, import_lib2.$L)("do"), $L160 = (0, import_lib2.$L)(".."), $L161 = (0, import_lib2.$L)("\u2025"), $L162 = (0, import_lib2.$L)("..."), $L163 = (0, import_lib2.$L)("\u2026"), $L164 = (0, import_lib2.$L)("::"), $L165 = (0, import_lib2.$L)('"'), $L166 = (0, import_lib2.$L)("each"), $L167 = (0, import_lib2.$L)("else"), $L168 = (0, import_lib2.$L)("!"), $L169 = (0, import_lib2.$L)("export"), $L170 = (0, import_lib2.$L)("extends"), $L171 = (0, import_lib2.$L)("finally"), $L172 = (0, import_lib2.$L)("for"), $L173 = (0, import_lib2.$L)("from"), $L174 = (0, import_lib2.$L)("function"), $L175 = (0, import_lib2.$L)("get"), $L176 = (0, import_lib2.$L)("set"), $L177 = (0, import_lib2.$L)("#"), $L178 = (0, import_lib2.$L)("if"), $L179 = (0, import_lib2.$L)("import"), $L180 = (0, import_lib2.$L)("in"), $L181 = (0, import_lib2.$L)("infer"), $L182 = (0, import_lib2.$L)("let"), $L183 = (0, import_lib2.$L)("const"), $L184 = (0, import_lib2.$L)("is"), $L185 = (0, import_lib2.$L)("var"), $L186 = (0, import_lib2.$L)("like"), $L187 = (0, import_lib2.$L)("loop"), $L188 = (0, import_lib2.$L)("new"), $L189 = (0, import_lib2.$L)("not"), $L190 = (0, import_lib2.$L)("of"), $L191 = (0, import_lib2.$L)("["), $L192 = (0, import_lib2.$L)("operator"), $L193 = (0, import_lib2.$L)("override"), $L194 = (0, import_lib2.$L)("own"), $L195 = (0, import_lib2.$L)("public"), $L196 = (0, import_lib2.$L)("private"), $L197 = (0, import_lib2.$L)("protected"), $L198 = (0, import_lib2.$L)("||>"), $L199 = (0, import_lib2.$L)("|\u25B7"), $L200 = (0, import_lib2.$L)("|>="), $L201 = (0, import_lib2.$L)("\u25B7="), $L202 = (0, import_lib2.$L)("|>"), $L203 = (0, import_lib2.$L)("\u25B7"), $L204 = (0, import_lib2.$L)("readonly"), $L205 = (0, import_lib2.$L)("return"), $L206 = (0, import_lib2.$L)("satisfies"), $L207 = (0, import_lib2.$L)("'"), $L208 = (0, import_lib2.$L)("static"), $L209 = (0, import_lib2.$L)("${"), $L210 = (0, import_lib2.$L)("super"), $L211 = (0, import_lib2.$L)("switch"), $L212 = (0, import_lib2.$L)("target"), $L213 = (0, import_lib2.$L)("then"), $L214 = (0, import_lib2.$L)("this"), $L215 = (0, import_lib2.$L)("throw"), $L216 = (0, import_lib2.$L)('"""'), $L217 = (0, import_lib2.$L)("'''"), $L218 = (0, import_lib2.$L)("///"), $L219 = (0, import_lib2.$L)("```"), $L220 = (0, import_lib2.$L)("try"), $L221 = (0, import_lib2.$L)("typeof"), $L222 = (0, import_lib2.$L)("undefined"), $L223 = (0, import_lib2.$L)("unless"), $L224 = (0, import_lib2.$L)("until"), $L225 = (0, import_lib2.$L)("using"), $L226 = (0, import_lib2.$L)("void"), $L227 = (0, import_lib2.$L)("when"), $L228 = (0, import_lib2.$L)("while"), $L229 = (0, import_lib2.$L)("yield"), $L230 = (0, import_lib2.$L)("/>"), $L231 = (0, import_lib2.$L)("</"), $L232 = (0, import_lib2.$L)("<>"), $L233 = (0, import_lib2.$L)("</>"), $L234 = (0, import_lib2.$L)("<!--"), $L235 = (0, import_lib2.$L)("-->"), $L236 = (0, import_lib2.$L)("type"), $L237 = (0, import_lib2.$L)("enum"), $L238 = (0, import_lib2.$L)("interface"), $L239 = (0, import_lib2.$L)("global"), $L240 = (0, import_lib2.$L)("module"), $L241 = (0, import_lib2.$L)("namespace"), $L242 = (0, import_lib2.$L)("asserts"), $L243 = (0, import_lib2.$L)("keyof"), $L244 = (0, import_lib2.$L)("???"), $L245 = (0, import_lib2.$L)("unique"), $L246 = (0, import_lib2.$L)("symbol"), $L247 = (0, import_lib2.$L)("[]"), $L248 = (0, import_lib2.$L)("civet"), $R0 = (0, import_lib2.$R)(/(?=async|debugger|if|unless|comptime|do|for|loop|until|while|switch|throw|try)/suy), $R1 = (0, import_lib2.$R)(/&(?=\s)/suy), $R2 = (0, import_lib2.$R)(/(as|of|by|satisfies|then|when|implements|xor|xnor)(?!\p{ID_Continue}|[\u200C\u200D$])/suy), $R3 = (0, import_lib2.$R)(/[0-9]/suy), $R4 = (0, import_lib2.$R)(/(?!\p{ID_Start}|[_$0-9(\[{])/suy), $R5 = (0, import_lib2.$R)(/[ \t]/suy), $R6 = (0, import_lib2.$R)(/\p{ID_Continue}|[\u200C\u200D$.#{=]/suy), $R7 = (0, import_lib2.$R)(/[&=]/suy), $R8 = (0, import_lib2.$R)(/[@#]/suy), $R9 = (0, import_lib2.$R)(/(?=['"`])/suy), $R10 = (0, import_lib2.$R)(/(?=[\/?])/suy), $R11 = (0, import_lib2.$R)(/(?=[\/\[{?.!@#'’:])/suy), $R12 = (0, import_lib2.$R)(/%%?/suy), $R13 = (0, import_lib2.$R)(/[.\s]/suy), $R14 = (0, import_lib2.$R)(/[)\]}]/suy), $R15 = (0, import_lib2.$R)(/[+-]/suy), $R16 = (0, import_lib2.$R)(/\+\+|--|⧺|—|[\+\-&]\S/suy), $R17 = (0, import_lib2.$R)(/(?=[0-9.'"tfyno])/suy), $R18 = (0, import_lib2.$R)(/(?=true|false|yes|no|on|off)/suy), $R19 = (0, import_lib2.$R)(/(?=\[|\s*[.•\/])/suy), $R20 = (0, import_lib2.$R)(/([<>])(=?)|([≤≥])/suy), $R21 = (0, import_lib2.$R)(/[ \t]*/suy), $R22 = (0, import_lib2.$R)(/[ \t]+/suy), $R23 = (0, import_lib2.$R)(/[!+-]?/suy), $R24 = (0, import_lib2.$R)(/(?:\p{ID_Continue}|[\u200C\u200D$-])*/suy), $R25 = (0, import_lib2.$R)(/[=>]/suy), $R26 = (0, import_lib2.$R)(/(?=\p{ID_Start}|[_$^≪≫⋙≤≥∈∋∉∌≣≡≢≠=⩶⩵‖⁇&|*\/!?%÷<>⧺+-])/suy), $R27 = (0, import_lib2.$R)(/!\^\^?/suy), $R28 = (0, import_lib2.$R)(/(?!\+\+|--)[!~+-](?!\s)/suy), $R29 = (0, import_lib2.$R)(/[:.]/suy), $R30 = (0, import_lib2.$R)(/(?=for|if|loop|unless|until|while)/suy), $R31 = (0, import_lib2.$R)(/(?:loop|while|until|for|do)(?!\p{ID_Continue})/suy), $R32 = (0, import_lib2.$R)(/(?=loop|comptime|do|for|until|while)/suy), $R33 = (0, import_lib2.$R)(/\s/suy), $R34 = (0, import_lib2.$R)(/[^;"'\s=>]+/suy), $R35 = (0, import_lib2.$R)(/(?=[0-9.])/suy), $R36 = (0, import_lib2.$R)(/(?:0|[1-9](?:_[0-9]|[0-9])*)n/suy), $R37 = (0, import_lib2.$R)(/(?:0|[1-9](?:_[0-9]|[0-9])*)(?=\.(?:\p{ID_Start}|[_$]))/suy), $R38 = (0, import_lib2.$R)(/(?:0|[1-9](?:_[0-9]|[0-9])*)(?:\.(?:[0-9](?:_[0-9]|[0-9])*))?/suy), $R39 = (0, import_lib2.$R)(/(?:\.[0-9](?:_[0-9]|[0-9])*)/suy), $R40 = (0, import_lib2.$R)(/(?:[eE][+-]?[0-9]+(?:_[0-9]|[0-9])*)/suy), $R41 = (0, import_lib2.$R)(/0[bB][01](?:[01]|_[01])*n?/suy), $R42 = (0, import_lib2.$R)(/0[oO][0-7](?:[0-7]|_[0-7])*n?/suy), $R43 = (0, import_lib2.$R)(/0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*n?/suy), $R44 = (0, import_lib2.$R)(/(?=[0-9])/suy), $R45 = (0, import_lib2.$R)(/(?:0|[1-9](?:_[0-9]|[0-9])*)/suy), $R46 = (0, import_lib2.$R)(/(?:\\.|[^"])*/suy), $R47 = (0, import_lib2.$R)(/(?:\\.|[^'])*/suy), $R48 = (0, import_lib2.$R)(/(?:\\.|[^"\n])*/suy), $R49 = (0, import_lib2.$R)(/(?:\\.|[^'\n])*/suy), $R50 = (0, import_lib2.$R)(/(?:"(?!"")|#(?!\{)|\\.|[^#"])+/suy), $R51 = (0, import_lib2.$R)(/(?:"(?!"")|\\.|[^"])+/suy), $R52 = (0, import_lib2.$R)(/(?:'(?!'')|\\.|[^'])*/suy), $R53 = (0, import_lib2.$R)(/(?:\\.|#(?!\{)|[^"#])+/suy), $R54 = (0, import_lib2.$R)(/(?:\\.|[^\]])*/suy), $R55 = (0, import_lib2.$R)(/\\./suy), $R56 = (0, import_lib2.$R)(/[\s]+/suy), $R57 = (0, import_lib2.$R)(/\/(?!\/\/)/suy), $R58 = (0, import_lib2.$R)(/[^[\/\s#$\\]+|[#$]/suy), $R59 = (0, import_lib2.$R)(/[*\/\r\n]/suy), $R60 = (0, import_lib2.$R)(/(?:\\.|[^[\/\r\n])+/suy), $R61 = (0, import_lib2.$R)(/(?:\p{ID_Continue}|[\u200C\u200D$])*/suy), $R62 = (0, import_lib2.$R)(/(?=[`'"])/suy), $R63 = (0, import_lib2.$R)(/(?:\$(?!\{)|\\.|[^$`])+/suy), $R64 = (0, import_lib2.$R)(/(?:\$(?!\{)|`(?!``)|\\.|[^$`])+/suy), $R65 = (0, import_lib2.$R)(/(?:off|yes|on|no)/suy), $R66 = (0, import_lib2.$R)(/isnt/suy), $R67 = (0, import_lib2.$R)(/by/suy), $R68 = (0, import_lib2.$R)(/of/suy), $R69 = (0, import_lib2.$R)(/(?:instanceof|interface|protected|continue|debugger|function|default|extends|finally|private|delete|export|import|public|return|static|switch|typeof|unless|await|break|catch|class|const|false|super|throw|until|while|yield|case|else|enum|loop|null|this|true|void|with|and|for|let|new|not|try|var|do|if|in|is|or)/suy), $R70 = (0, import_lib2.$R)(/(?=\/|#)/suy), $R71 = (0, import_lib2.$R)(/\/\/(?!\/(?!\/))[^\r\n]*/suy), $R72 = (0, import_lib2.$R)(/./suy), $R73 = (0, import_lib2.$R)(/#(?!##(?!#))([^\r\n]*)/suy), $R74 = (0, import_lib2.$R)(/[^]*?###/suy), $R75 = (0, import_lib2.$R)(/###(?!#)/suy), $R76 = (0, import_lib2.$R)(/\/\*(?:(?!\*\/)[^\r\n])*\*\//suy), $R77 = (0, import_lib2.$R)(/(?=[ \t\/\\#])/suy), $R78 = (0, import_lib2.$R)(/(?=\s|\/|#)/suy), $R79 = (0, import_lib2.$R)(/[=:]/suy), $R80 = (0, import_lib2.$R)(/['’]s/suy), $R81 = (0, import_lib2.$R)(/(?=[<])/suy), $R82 = (0, import_lib2.$R)(/(?:\p{ID_Start}|[_$])(?:\p{ID_Continue}|[\u200C\u200D$-])*/suy), $R83 = (0, import_lib2.$R)(/[!+-]/suy), $R84 = (0, import_lib2.$R)(/[\s>]|\/>/suy), $R85 = (0, import_lib2.$R)(/(?:[\w\-:]+|\([^()]*\)|\[[^\[\]]*\])+/suy), $R86 = (0, import_lib2.$R)(/"[^"]*"|'[^']*'/suy), $R87 = (0, import_lib2.$R)(/[<>]/suy), $R88 = (0, import_lib2.$R)(/[!~+-](?!\s|[!~+-]*&)/suy), $R89 = (0, import_lib2.$R)(/(?:-[^-]|[^-]*)*/suy), $R90 = (0, import_lib2.$R)(/[^{}<>\r\n]+/suy), $R91 = (0, import_lib2.$R)(/[+-]?/suy), $R92 = (0, import_lib2.$R)(/(?=if|unless)/suy), $R93 = (0, import_lib2.$R)(/[|&<!=\-⇒→]/suy), $R94 = (0, import_lib2.$R)(/(extends|not|is)(?!\p{ID_Continue}|[\u200C\u200D$])/suy), $R95 = (0, import_lib2.$R)(/const|in|out/suy), $R96 = (0, import_lib2.$R)(/#![^\r\n]*/suy), $R97 = (0, import_lib2.$R)(/[\t ]*/suy), $R98 = (0, import_lib2.$R)(/[\s]*/suy), $R99 = (0, import_lib2.$R)(/\s+([+-]?)([a-zA-Z0-9-]+)(\s*=\s*([\p{ID_Continue}.,+-]*))?/suy), $R100 = (0, import_lib2.$R)(/\/\/\/[^\r\n]*/suy), $R101 = (0, import_lib2.$R)(/(?=[ \t\r\n\/#]|$)/suy), $R102 = (0, import_lib2.$R)(/\r\n|\n|\r|$/suy), $R103 = (0, import_lib2.$R)(/[^]*/suy), $RD0 = (($$ctx, $$state) => {
|
|
8126
|
+
let $$source = `(?=\\p{ID_Start}|[_$\\\\]|${nonAsciiIdentifierPattern})`;
|
|
8127
|
+
return $RD0 = (0, import_lib2.$R)(new RegExp($$source, "suy")), $RD0.source = $$source, $RD0($$ctx, $$state);
|
|
8128
|
+
}), $RD1 = (($$ctx, $$state) => {
|
|
8129
|
+
let $$source = `(?:\\p{ID_Start}|[_$]|${unicodeEscapePattern}|${nonAsciiIdentifierPattern})(?:\\p{ID_Continue}|[\\u200C\\u200D$]|${unicodeEscapePattern}|${nonAsciiIdentifierPattern})*`;
|
|
8130
|
+
return $RD1 = (0, import_lib2.$R)(new RegExp($$source, "suy")), $RD1.source = $$source, $RD1($$ctx, $$state);
|
|
8131
|
+
}), $RD2 = (($$ctx, $$state) => {
|
|
8132
|
+
let $$source = `(?!\\p{ID_Continue}|${nonAsciiIdentifierPattern})`;
|
|
8133
|
+
return $RD2 = (0, import_lib2.$R)(new RegExp($$source, "suy")), $RD2.source = $$source, $RD2($$ctx, $$state);
|
|
8134
|
+
}), Program$parser = (0, import_lib2.$S)(Reset, Init, (0, import_lib2.$E)(EOS), TopLevelStatements, __);
|
|
7989
8135
|
function Program($$ctx, $$state) {
|
|
7990
8136
|
let $$entered = $$ctx.enter?.("Program", $$state);
|
|
7991
8137
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -9531,7 +9677,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
9531
9677
|
let $$eventData = $$entered?.data, $$final = TrailingPostfix$parser($$ctx, $$state);
|
|
9532
9678
|
return $$ctx.exit?.("TrailingPostfix", $$state, $$final, $$eventData), $$final;
|
|
9533
9679
|
}
|
|
9534
|
-
var FatArrowBody$0$parser = (0, import_lib2.$S)((0, import_lib2.$N)(EOS), (0, import_lib2.$N)((0, import_lib2.$S)((0, import_lib2.$E)(_), ExpressionizedStatement)), (0, import_lib2.$N)((0, import_lib2.$S)((0, import_lib2.$E)(_), Declaration)), NonPipelineExpression, (0, import_lib2.$N)(TrailingDeclaration), (0, import_lib2.$N)(TrailingPipe), (0, import_lib2.$N)(TrailingPostfix), (0, import_lib2.$N)(SemicolonDelimiter));
|
|
9680
|
+
var FatArrowBody$0$parser = (0, import_lib2.$S)((0, import_lib2.$N)(EOS), (0, import_lib2.$N)((0, import_lib2.$S)((0, import_lib2.$E)(_), ExpressionizedStatement)), (0, import_lib2.$N)((0, import_lib2.$S)((0, import_lib2.$E)(_), Declaration)), NonPipelineExpression, (0, import_lib2.$N)(TrailingDeclaration), (0, import_lib2.$N)(TrailingPipe), (0, import_lib2.$N)(TrailingPostfix), (0, import_lib2.$C)(ESArrowFunctionEnabled, (0, import_lib2.$N)(SemicolonDelimiter)));
|
|
9535
9681
|
function FatArrowBody$0($$ctx, $$state) {
|
|
9536
9682
|
let $$r = FatArrowBody$0$parser($$ctx, $$state);
|
|
9537
9683
|
if (!$$r)
|
|
@@ -10377,7 +10523,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
10377
10523
|
let $$eventData = $$entered?.data, $$final = ClassBracedContent$0($$ctx, $$state) || ClassBracedContent$1($$ctx, $$state);
|
|
10378
10524
|
return $$ctx.exit?.("ClassBracedContent", $$state, $$final, $$eventData), $$final;
|
|
10379
10525
|
}
|
|
10380
|
-
var NestedClassElements$parser = (0, import_lib2.$S)(PushIndent, (0, import_lib2.$Q)(NestedClassElement), PopIndent);
|
|
10526
|
+
var NestedClassElements$parser = (0, import_lib2.$S)(PushIndent, (0, import_lib2.$Q)(NestedClassElement), (0, import_lib2.$Q)(TrailingNestedCommentLine), PopIndent);
|
|
10381
10527
|
function NestedClassElements($$ctx, $$state) {
|
|
10382
10528
|
let $$entered = $$ctx.enter?.("NestedClassElements", $$state);
|
|
10383
10529
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -10386,9 +10532,9 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
10386
10532
|
$$ctx.exit?.("NestedClassElements", $$state, void 0, $$eventData);
|
|
10387
10533
|
return;
|
|
10388
10534
|
}
|
|
10389
|
-
let $$m = (function(elements) {
|
|
10390
|
-
return elements.length ? elements : $skip;
|
|
10391
|
-
})($$
|
|
10535
|
+
let $$value = $$r.value, $$m = (function(elements, trailing) {
|
|
10536
|
+
return elements.length || trailing.length ? trailing.length ? [...elements, ...trailing] : elements : $skip;
|
|
10537
|
+
})($$value[1], $$value[2]), $$final = $$m !== import_lib2.SKIP ? ($$r.value = $$m, $$r) : void 0;
|
|
10392
10538
|
return $$ctx.exit?.("NestedClassElements", $$state, $$final, $$eventData), $$final;
|
|
10393
10539
|
}
|
|
10394
10540
|
var NestedClassElement$parser = (0, import_lib2.$S)(Nested, ClassElement, StatementDelimiter);
|
|
@@ -12224,7 +12370,10 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
12224
12370
|
...c,
|
|
12225
12371
|
// names, blockPrefix, length
|
|
12226
12372
|
type: "ArrayBindingPattern",
|
|
12227
|
-
elements
|
|
12373
|
+
// `c.elements` may differ from `c.children` when adjustBindingElements
|
|
12374
|
+
// omits an anonymous rest from the emitted destructure but still needs
|
|
12375
|
+
// pattern matching / type generation to see it.
|
|
12376
|
+
elements: c.elements ?? c.children,
|
|
12228
12377
|
children: [ws1, open, c.children, ws2, close]
|
|
12229
12378
|
});
|
|
12230
12379
|
})($$value[0], $$value[1], $$value[2], $$value[3], $$value[4]);
|
|
@@ -12239,7 +12388,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
12239
12388
|
if (!$$r)
|
|
12240
12389
|
return;
|
|
12241
12390
|
let $$m = (function(elements) {
|
|
12242
|
-
return elements ? adjustBindingElements(elements) : { children: [], names: [], length: 0 };
|
|
12391
|
+
return elements ? adjustBindingElements(elements) : { children: [], elements: void 0, names: [], length: 0 };
|
|
12243
12392
|
})($$r.value);
|
|
12244
12393
|
return $$r.value = $$m, $$r;
|
|
12245
12394
|
}
|
|
@@ -13152,7 +13301,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
13152
13301
|
})($$r.value[1]);
|
|
13153
13302
|
return $$r.value = $$m, $$ctx.exit?.("ThenClause", $$state, $$r, $$eventData), $$r;
|
|
13154
13303
|
}
|
|
13155
|
-
var ThenBlock$0$parser = (0, import_lib2.$S)(NoBlock, EmptyBlock), ThenBlock$1$parser = ImplicitNestedBlock, ThenBlock$2$parser =
|
|
13304
|
+
var ThenBlock$0$parser = (0, import_lib2.$S)(NoBlock, EmptyBlock), ThenBlock$1$parser = ImplicitNestedBlock, ThenBlock$2$parser = (0, import_lib2.$S)(ESBraceBlockEnabled, ExplicitBlock), ThenBlock$3$parser = (0, import_lib2.$S)((0, import_lib2.$N)(ESBraceBlockEnabled), ObjectSingleLineStatements), ThenBlock$4$parser = SingleLineStatements;
|
|
13156
13305
|
function ThenBlock$0($$ctx, $$state) {
|
|
13157
13306
|
let $$r = ThenBlock$0$parser($$ctx, $$state);
|
|
13158
13307
|
if (!$$r)
|
|
@@ -13166,15 +13315,30 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
13166
13315
|
return ThenBlock$1$parser($$ctx, $$state);
|
|
13167
13316
|
}
|
|
13168
13317
|
function ThenBlock$2($$ctx, $$state) {
|
|
13169
|
-
|
|
13318
|
+
let $$r = ThenBlock$2$parser($$ctx, $$state);
|
|
13319
|
+
if (!$$r)
|
|
13320
|
+
return;
|
|
13321
|
+
let $$m = /* @__PURE__ */ (function($2) {
|
|
13322
|
+
return $2;
|
|
13323
|
+
})($$r.value[1]);
|
|
13324
|
+
return $$r.value = $$m, $$r;
|
|
13170
13325
|
}
|
|
13171
13326
|
function ThenBlock$3($$ctx, $$state) {
|
|
13172
|
-
|
|
13327
|
+
let $$r = ThenBlock$3$parser($$ctx, $$state);
|
|
13328
|
+
if (!$$r)
|
|
13329
|
+
return;
|
|
13330
|
+
let $$m = /* @__PURE__ */ (function($2) {
|
|
13331
|
+
return $2;
|
|
13332
|
+
})($$r.value[1]);
|
|
13333
|
+
return $$r.value = $$m, $$r;
|
|
13334
|
+
}
|
|
13335
|
+
function ThenBlock$4($$ctx, $$state) {
|
|
13336
|
+
return ThenBlock$4$parser($$ctx, $$state);
|
|
13173
13337
|
}
|
|
13174
13338
|
function ThenBlock($$ctx, $$state) {
|
|
13175
13339
|
let $$entered = $$ctx.enter?.("ThenBlock", $$state);
|
|
13176
13340
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
13177
|
-
let $$eventData = $$entered?.data, $$final = ThenBlock$0($$ctx, $$state) || ThenBlock$1($$ctx, $$state) || ThenBlock$2($$ctx, $$state) || ThenBlock$3($$ctx, $$state);
|
|
13341
|
+
let $$eventData = $$entered?.data, $$final = ThenBlock$0($$ctx, $$state) || ThenBlock$1($$ctx, $$state) || ThenBlock$2($$ctx, $$state) || ThenBlock$3($$ctx, $$state) || ThenBlock$4($$ctx, $$state);
|
|
13178
13342
|
return $$ctx.exit?.("ThenBlock", $$state, $$final, $$eventData), $$final;
|
|
13179
13343
|
}
|
|
13180
13344
|
var BracedThenClause$parser = (0, import_lib2.$S)((0, import_lib2.$Y)(Then), InsertOpenBrace, ThenClause, InsertCloseBrace);
|
|
@@ -13276,9 +13440,15 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
13276
13440
|
let $$eventData = $$entered?.data, $$final = BlockOrEmptyStatement$0($$ctx, $$state) || BlockOrEmptyStatement$1($$ctx, $$state);
|
|
13277
13441
|
return $$ctx.exit?.("BlockOrEmptyStatement", $$state, $$final, $$eventData), $$final;
|
|
13278
13442
|
}
|
|
13279
|
-
var BlockOrEmpty$0$parser = ObjectSingleLineStatements, BlockOrEmpty$1$parser = Block, BlockOrEmpty$2$parser = (0, import_lib2.$S)(NoBlock, EmptyBlock);
|
|
13443
|
+
var BlockOrEmpty$0$parser = (0, import_lib2.$S)((0, import_lib2.$N)(ESBraceBlockEnabled), ObjectSingleLineStatements), BlockOrEmpty$1$parser = Block, BlockOrEmpty$2$parser = (0, import_lib2.$S)(NoBlock, EmptyBlock);
|
|
13280
13444
|
function BlockOrEmpty$0($$ctx, $$state) {
|
|
13281
|
-
|
|
13445
|
+
let $$r = BlockOrEmpty$0$parser($$ctx, $$state);
|
|
13446
|
+
if (!$$r)
|
|
13447
|
+
return;
|
|
13448
|
+
let $$m = /* @__PURE__ */ (function($2) {
|
|
13449
|
+
return $2;
|
|
13450
|
+
})($$r.value[1]);
|
|
13451
|
+
return $$r.value = $$m, $$r;
|
|
13282
13452
|
}
|
|
13283
13453
|
function BlockOrEmpty$1($$ctx, $$state) {
|
|
13284
13454
|
return BlockOrEmpty$1$parser($$ctx, $$state);
|
|
@@ -13568,7 +13738,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
13568
13738
|
})($$value[0], $$value[1]);
|
|
13569
13739
|
return $$r.value = $$m, $$ctx.exit?.("PostfixedSingleLineNoCommaStatements", $$state, $$r, $$eventData), $$r;
|
|
13570
13740
|
}
|
|
13571
|
-
var NestedBlockStatements$parser = (0, import_lib2.$S)(PushIndent, (0, import_lib2.$Q)(NestedBlockStatement), PopIndent);
|
|
13741
|
+
var NestedBlockStatements$parser = (0, import_lib2.$S)(PushIndent, (0, import_lib2.$Q)(NestedBlockStatement), TrailingNestedComments, PopIndent);
|
|
13572
13742
|
function NestedBlockStatements($$ctx, $$state) {
|
|
13573
13743
|
let $$entered = $$ctx.enter?.("NestedBlockStatements", $$state);
|
|
13574
13744
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -13577,14 +13747,18 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
13577
13747
|
$$ctx.exit?.("NestedBlockStatements", $$state, void 0, $$eventData);
|
|
13578
13748
|
return;
|
|
13579
13749
|
}
|
|
13580
|
-
let $$m = (function(statements) {
|
|
13581
|
-
|
|
13750
|
+
let $$value = $$r.value, $$m = (function(statements, trailing) {
|
|
13751
|
+
if (!(statements.length || trailing.length))
|
|
13752
|
+
return $skip;
|
|
13753
|
+
let expressions = statements.flat(), children = [expressions];
|
|
13754
|
+
return trailing.length && children.push(trailing), {
|
|
13582
13755
|
type: "BlockStatement",
|
|
13583
|
-
expressions
|
|
13584
|
-
children
|
|
13585
|
-
bare: !0
|
|
13586
|
-
|
|
13587
|
-
|
|
13756
|
+
expressions,
|
|
13757
|
+
children,
|
|
13758
|
+
bare: !0,
|
|
13759
|
+
trailing: trailing.length ? trailing : void 0
|
|
13760
|
+
};
|
|
13761
|
+
})($$value[1], $$value[2]), $$final = $$m !== import_lib2.SKIP ? ($$r.value = $$m, $$r) : void 0;
|
|
13588
13762
|
return $$ctx.exit?.("NestedBlockStatements", $$state, $$final, $$eventData), $$final;
|
|
13589
13763
|
}
|
|
13590
13764
|
var NestedBlockStatement$parser = (0, import_lib2.$S)(Nested, (0, import_lib2.$P)(BlockStatementPart));
|
|
@@ -13604,6 +13778,49 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
13604
13778
|
})($$value[0], $$value[1]);
|
|
13605
13779
|
return $$r.value = $$m, $$ctx.exit?.("NestedBlockStatement", $$state, $$r, $$eventData), $$r;
|
|
13606
13780
|
}
|
|
13781
|
+
var TrailingNestedComments$parser = (0, import_lib2.$S)((0, import_lib2.$E)(TrailingInlineComment), (0, import_lib2.$Q)(TrailingNestedCommentLine));
|
|
13782
|
+
function TrailingNestedComments($$ctx, $$state) {
|
|
13783
|
+
let $$entered = $$ctx.enter?.("TrailingNestedComments", $$state);
|
|
13784
|
+
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
13785
|
+
let $$eventData = $$entered?.data, $$r = TrailingNestedComments$parser($$ctx, $$state);
|
|
13786
|
+
if (!$$r) {
|
|
13787
|
+
$$ctx.exit?.("TrailingNestedComments", $$state, void 0, $$eventData);
|
|
13788
|
+
return;
|
|
13789
|
+
}
|
|
13790
|
+
let $$value = $$r.value, $$m = (function(inline, lines) {
|
|
13791
|
+
let out = [];
|
|
13792
|
+
return inline && out.push(inline), lines.length && out.push(...lines), out;
|
|
13793
|
+
})($$value[0], $$value[1]);
|
|
13794
|
+
return $$r.value = $$m, $$ctx.exit?.("TrailingNestedComments", $$state, $$r, $$eventData), $$r;
|
|
13795
|
+
}
|
|
13796
|
+
var TrailingInlineComment$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), SingleLineComment);
|
|
13797
|
+
function TrailingInlineComment($$ctx, $$state) {
|
|
13798
|
+
let $$entered = $$ctx.enter?.("TrailingInlineComment", $$state);
|
|
13799
|
+
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
13800
|
+
let $$eventData = $$entered?.data, $$r = TrailingInlineComment$parser($$ctx, $$state);
|
|
13801
|
+
if (!$$r) {
|
|
13802
|
+
$$ctx.exit?.("TrailingInlineComment", $$state, void 0, $$eventData);
|
|
13803
|
+
return;
|
|
13804
|
+
}
|
|
13805
|
+
let $$value = $$r.value, $$m = /* @__PURE__ */ (function(ws, c) {
|
|
13806
|
+
return [ws, c];
|
|
13807
|
+
})($$value[0], $$value[1]);
|
|
13808
|
+
return $$r.value = $$m, $$ctx.exit?.("TrailingInlineComment", $$state, $$r, $$eventData), $$r;
|
|
13809
|
+
}
|
|
13810
|
+
var TrailingNestedCommentLine$parser = (0, import_lib2.$S)(EOL, Indent, SingleLineComment);
|
|
13811
|
+
function TrailingNestedCommentLine($$ctx, $$state) {
|
|
13812
|
+
let $$entered = $$ctx.enter?.("TrailingNestedCommentLine", $$state);
|
|
13813
|
+
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
13814
|
+
let $$eventData = $$entered?.data, $$r = TrailingNestedCommentLine$parser($$ctx, $$state);
|
|
13815
|
+
if (!$$r) {
|
|
13816
|
+
$$ctx.exit?.("TrailingNestedCommentLine", $$state, void 0, $$eventData);
|
|
13817
|
+
return;
|
|
13818
|
+
}
|
|
13819
|
+
let $$value = $$r.value, $$m = (function(eol, indent, c) {
|
|
13820
|
+
return indent.level >= state.currentIndent.level ? [eol, indent, c] : $skip;
|
|
13821
|
+
})($$value[0], $$value[1], $$value[2]), $$final = $$m !== import_lib2.SKIP ? ($$r.value = $$m, $$r) : void 0;
|
|
13822
|
+
return $$ctx.exit?.("TrailingNestedCommentLine", $$state, $$final, $$eventData), $$final;
|
|
13823
|
+
}
|
|
13607
13824
|
var BlockStatementPart$parser = (0, import_lib2.$S)((0, import_lib2.$N)(EOS), (0, import_lib2.$E)(_), StatementListItem, StatementDelimiter);
|
|
13608
13825
|
function BlockStatementPart($$ctx, $$state) {
|
|
13609
13826
|
let $$entered = $$ctx.enter?.("BlockStatementPart", $$state);
|
|
@@ -13786,7 +14003,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
13786
14003
|
})($$r.value[0]);
|
|
13787
14004
|
return $$r.value = $$m, $$ctx.exit?.("SymbolElement", $$state, $$r, $$eventData), $$r;
|
|
13788
14005
|
}
|
|
13789
|
-
var Identifier$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
14006
|
+
var Identifier$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($RD0, () => `Identifier /${$RD0.source}/`), (0, import_lib2.$N)(ReservedWord), IdentifierName);
|
|
13790
14007
|
function Identifier($$ctx, $$state) {
|
|
13791
14008
|
let $$entered = $$ctx.enter?.("Identifier", $$state);
|
|
13792
14009
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -13800,7 +14017,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
13800
14017
|
})($$r.value[2]);
|
|
13801
14018
|
return $$r.value = $$m, $$ctx.exit?.("Identifier", $$state, $$r, $$eventData), $$r;
|
|
13802
14019
|
}
|
|
13803
|
-
var IdentifierName$parser = (0, import_lib2.$EXPECT)($
|
|
14020
|
+
var IdentifierName$parser = (0, import_lib2.$EXPECT)($RD1, () => `IdentifierName /${$RD1.source}/`);
|
|
13804
14021
|
function IdentifierName($$ctx, $$state) {
|
|
13805
14022
|
let $$entered = $$ctx.enter?.("IdentifierName", $$state);
|
|
13806
14023
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -13841,7 +14058,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
13841
14058
|
let $$eventData = $$entered?.data, $$final = UpcomingAssignment$parser($$ctx, $$state);
|
|
13842
14059
|
return $$ctx.exit?.("UpcomingAssignment", $$state, $$final, $$eventData), $$final;
|
|
13843
14060
|
}
|
|
13844
|
-
var ArrayLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
14061
|
+
var ArrayLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R19, "ArrayLiteral /(?=\\[|\\s*[.\u2022\\/])/"), _ArrayLiteral);
|
|
13845
14062
|
function ArrayLiteral($$ctx, $$state) {
|
|
13846
14063
|
let $$entered = $$ctx.enter?.("ArrayLiteral", $$state);
|
|
13847
14064
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -13986,7 +14203,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
13986
14203
|
let $$eventData = $$entered?.data, $$final = OptionalRangeEnd$0($$ctx, $$state) || OptionalRangeEnd$1($$ctx, $$state);
|
|
13987
14204
|
return $$ctx.exit?.("OptionalRangeEnd", $$state, $$final, $$eventData), $$final;
|
|
13988
14205
|
}
|
|
13989
|
-
var RangeEnd$parser = (0, import_lib2.$EXPECT)($
|
|
14206
|
+
var RangeEnd$parser = (0, import_lib2.$EXPECT)($R20, "RangeEnd /([<>])(=?)|([\u2264\u2265])/");
|
|
13990
14207
|
function RangeEnd($$ctx, $$state) {
|
|
13991
14208
|
let $$entered = $$ctx.enter?.("RangeEnd", $$state);
|
|
13992
14209
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -14381,7 +14598,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
14381
14598
|
})($$r.loc, $$r.value[0]);
|
|
14382
14599
|
return $$r.value = $$m, $$ctx.exit?.("BulletIndent", $$state, $$r, $$eventData), $$r;
|
|
14383
14600
|
}
|
|
14384
|
-
var Bullet$0$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L46, 'Bullet "\u2022"'), (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
14601
|
+
var Bullet$0$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L46, 'Bullet "\u2022"'), (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R21, "Bullet /[ \\t]*/"))), Bullet$1$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L7, 'Bullet "."'), (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R22, "Bullet /[ \\t]+/")));
|
|
14385
14602
|
function Bullet$0($$ctx, $$state) {
|
|
14386
14603
|
return Bullet$0$parser($$ctx, $$state);
|
|
14387
14604
|
}
|
|
@@ -14720,7 +14937,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
14720
14937
|
let $$eventData = $$entered?.data, $$final = ObjectPropertyDelimiter$0($$ctx, $$state) || ObjectPropertyDelimiter$1($$ctx, $$state) || ObjectPropertyDelimiter$2($$ctx, $$state);
|
|
14721
14938
|
return $$ctx.exit?.("ObjectPropertyDelimiter", $$state, $$final, $$eventData), $$final;
|
|
14722
14939
|
}
|
|
14723
|
-
var PropertyDefinition$0$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), InsertDotDotDot, IterationExpression), PropertyDefinition$1$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), NamedProperty), PropertyDefinition$2$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
14940
|
+
var PropertyDefinition$0$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), InsertDotDotDot, IterationExpression), PropertyDefinition$1$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), NamedProperty), PropertyDefinition$2$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R23, "PropertyDefinition /[!+-]?/")), PropertyName, (0, import_lib2.$Y)(ObjectPropertyDelimiter)), PropertyDefinition$3$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), MethodDefinition), PropertyDefinition$4$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), DotDotDot, Expression), PropertyDefinition$5$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_lib2.$N)((0, import_lib2.$C)(EOS, (0, import_lib2.$EXPECT)($L7, 'PropertyDefinition "."'))), (0, import_lib2.$Q)(UnaryOp), CallExpression, (0, import_lib2.$E)(UnaryPostfix));
|
|
14724
14941
|
function PropertyDefinition$0($$ctx, $$state) {
|
|
14725
14942
|
let $$r = PropertyDefinition$0$parser($$ctx, $$state);
|
|
14726
14943
|
if (!$$r)
|
|
@@ -14941,7 +15158,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
14941
15158
|
})($$value[0], $$value[1], $$value[2], $$value[3]);
|
|
14942
15159
|
return $$r.value = $$m, $$ctx.exit?.("SnugNamedProperty", $$state, $$r, $$eventData), $$r;
|
|
14943
15160
|
}
|
|
14944
|
-
var PropertyName$3$parser = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$E)(IdentifierName), (0, import_lib2.$EXPECT)($L22, 'PropertyName "-"'), (0, import_lib2.$EXPECT)($
|
|
15161
|
+
var PropertyName$3$parser = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$E)(IdentifierName), (0, import_lib2.$EXPECT)($L22, 'PropertyName "-"'), (0, import_lib2.$EXPECT)($R24, "PropertyName /(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*/"))), PropertyName$4$parser = IdentifierName;
|
|
14945
15162
|
function PropertyName$0($$ctx, $$state) {
|
|
14946
15163
|
return NumericLiteral($$ctx, $$state);
|
|
14947
15164
|
}
|
|
@@ -15375,7 +15592,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
15375
15592
|
let $$eventData = $$entered?.data, $$final = OperatorAssignmentOp$0($$ctx, $$state) || OperatorAssignmentOp$1($$ctx, $$state) || OperatorAssignmentOp$2($$ctx, $$state) || OperatorAssignmentOp$3($$ctx, $$state);
|
|
15376
15593
|
return $$ctx.exit?.("OperatorAssignmentOp", $$state, $$final, $$eventData), $$final;
|
|
15377
15594
|
}
|
|
15378
|
-
var AssignmentOpSymbol$0$parser = (0, import_lib2.$EXPECT)($L48, 'AssignmentOpSymbol "**="'), AssignmentOpSymbol$1$parser = (0, import_lib2.$EXPECT)($L49, 'AssignmentOpSymbol "*="'), AssignmentOpSymbol$2$parser = (0, import_lib2.$S)((0, import_lib2.$C)((0, import_lib2.$EXPECT)($L50, 'AssignmentOpSymbol "%/"'), (0, import_lib2.$EXPECT)($L51, 'AssignmentOpSymbol "\xF7"')), Equals), AssignmentOpSymbol$3$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L52, 'AssignmentOpSymbol "%%"'), Equals), AssignmentOpSymbol$4$parser = (0, import_lib2.$EXPECT)($L53, 'AssignmentOpSymbol "/="'), AssignmentOpSymbol$5$parser = (0, import_lib2.$EXPECT)($L54, 'AssignmentOpSymbol "%="'), AssignmentOpSymbol$6$parser = (0, import_lib2.$S)((0, import_lib2.$C)((0, import_lib2.$EXPECT)($L9, 'AssignmentOpSymbol "++"'), (0, import_lib2.$EXPECT)($L11, 'AssignmentOpSymbol "\u29FA"')), Equals), AssignmentOpSymbol$7$parser = (0, import_lib2.$EXPECT)($L55, 'AssignmentOpSymbol "+="'), AssignmentOpSymbol$8$parser = (0, import_lib2.$EXPECT)($L56, 'AssignmentOpSymbol "-="'), AssignmentOpSymbol$9$parser = (0, import_lib2.$EXPECT)($L57, 'AssignmentOpSymbol "<<="'), AssignmentOpSymbol$10$parser = (0, import_lib2.$EXPECT)($L58, 'AssignmentOpSymbol "\u226A="'), AssignmentOpSymbol$11$parser = (0, import_lib2.$EXPECT)($L59, 'AssignmentOpSymbol ">>>="'), AssignmentOpSymbol$12$parser = (0, import_lib2.$EXPECT)($L60, 'AssignmentOpSymbol "\u22D9="'), AssignmentOpSymbol$13$parser = (0, import_lib2.$EXPECT)($L61, 'AssignmentOpSymbol ">>="'), AssignmentOpSymbol$14$parser = (0, import_lib2.$EXPECT)($L62, 'AssignmentOpSymbol "\u226B="'), AssignmentOpSymbol$15$parser = (0, import_lib2.$EXPECT)($L63, 'AssignmentOpSymbol "&&="'), AssignmentOpSymbol$16$parser = (0, import_lib2.$EXPECT)($L64, 'AssignmentOpSymbol "&="'), AssignmentOpSymbol$17$parser = (0, import_lib2.$EXPECT)($L65, 'AssignmentOpSymbol "^="'), AssignmentOpSymbol$18$parser = (0, import_lib2.$EXPECT)($L66, 'AssignmentOpSymbol "||="'), AssignmentOpSymbol$19$parser = (0, import_lib2.$EXPECT)($L67, 'AssignmentOpSymbol "\u2016="'), AssignmentOpSymbol$20$parser = (0, import_lib2.$EXPECT)($L68, 'AssignmentOpSymbol "|="'), AssignmentOpSymbol$21$parser = (0, import_lib2.$EXPECT)($L69, 'AssignmentOpSymbol "??="'), AssignmentOpSymbol$22$parser = (0, import_lib2.$EXPECT)($L70, 'AssignmentOpSymbol "\u2047="'), AssignmentOpSymbol$23$parser = (0, import_lib2.$EXPECT)($L71, 'AssignmentOpSymbol "?="'), AssignmentOpSymbol$24$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L3, 'AssignmentOpSymbol "="'), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($
|
|
15595
|
+
var AssignmentOpSymbol$0$parser = (0, import_lib2.$EXPECT)($L48, 'AssignmentOpSymbol "**="'), AssignmentOpSymbol$1$parser = (0, import_lib2.$EXPECT)($L49, 'AssignmentOpSymbol "*="'), AssignmentOpSymbol$2$parser = (0, import_lib2.$S)((0, import_lib2.$C)((0, import_lib2.$EXPECT)($L50, 'AssignmentOpSymbol "%/"'), (0, import_lib2.$EXPECT)($L51, 'AssignmentOpSymbol "\xF7"')), Equals), AssignmentOpSymbol$3$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L52, 'AssignmentOpSymbol "%%"'), Equals), AssignmentOpSymbol$4$parser = (0, import_lib2.$EXPECT)($L53, 'AssignmentOpSymbol "/="'), AssignmentOpSymbol$5$parser = (0, import_lib2.$EXPECT)($L54, 'AssignmentOpSymbol "%="'), AssignmentOpSymbol$6$parser = (0, import_lib2.$S)((0, import_lib2.$C)((0, import_lib2.$EXPECT)($L9, 'AssignmentOpSymbol "++"'), (0, import_lib2.$EXPECT)($L11, 'AssignmentOpSymbol "\u29FA"')), Equals), AssignmentOpSymbol$7$parser = (0, import_lib2.$EXPECT)($L55, 'AssignmentOpSymbol "+="'), AssignmentOpSymbol$8$parser = (0, import_lib2.$EXPECT)($L56, 'AssignmentOpSymbol "-="'), AssignmentOpSymbol$9$parser = (0, import_lib2.$EXPECT)($L57, 'AssignmentOpSymbol "<<="'), AssignmentOpSymbol$10$parser = (0, import_lib2.$EXPECT)($L58, 'AssignmentOpSymbol "\u226A="'), AssignmentOpSymbol$11$parser = (0, import_lib2.$EXPECT)($L59, 'AssignmentOpSymbol ">>>="'), AssignmentOpSymbol$12$parser = (0, import_lib2.$EXPECT)($L60, 'AssignmentOpSymbol "\u22D9="'), AssignmentOpSymbol$13$parser = (0, import_lib2.$EXPECT)($L61, 'AssignmentOpSymbol ">>="'), AssignmentOpSymbol$14$parser = (0, import_lib2.$EXPECT)($L62, 'AssignmentOpSymbol "\u226B="'), AssignmentOpSymbol$15$parser = (0, import_lib2.$EXPECT)($L63, 'AssignmentOpSymbol "&&="'), AssignmentOpSymbol$16$parser = (0, import_lib2.$EXPECT)($L64, 'AssignmentOpSymbol "&="'), AssignmentOpSymbol$17$parser = (0, import_lib2.$EXPECT)($L65, 'AssignmentOpSymbol "^="'), AssignmentOpSymbol$18$parser = (0, import_lib2.$EXPECT)($L66, 'AssignmentOpSymbol "||="'), AssignmentOpSymbol$19$parser = (0, import_lib2.$EXPECT)($L67, 'AssignmentOpSymbol "\u2016="'), AssignmentOpSymbol$20$parser = (0, import_lib2.$EXPECT)($L68, 'AssignmentOpSymbol "|="'), AssignmentOpSymbol$21$parser = (0, import_lib2.$EXPECT)($L69, 'AssignmentOpSymbol "??="'), AssignmentOpSymbol$22$parser = (0, import_lib2.$EXPECT)($L70, 'AssignmentOpSymbol "\u2047="'), AssignmentOpSymbol$23$parser = (0, import_lib2.$EXPECT)($L71, 'AssignmentOpSymbol "?="'), AssignmentOpSymbol$24$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L3, 'AssignmentOpSymbol "="'), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($R25, "AssignmentOpSymbol /[=>]/"))), AssignmentOpSymbol$25$parser = (0, import_lib2.$S)(CoffeeWordAssignmentOp);
|
|
15379
15596
|
function AssignmentOpSymbol$0($$ctx, $$state) {
|
|
15380
15597
|
return AssignmentOpSymbol$0$parser($$ctx, $$state);
|
|
15381
15598
|
}
|
|
@@ -15604,7 +15821,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
15604
15821
|
})($$r.value), $$final = $$m !== import_lib2.SKIP ? ($$r.value = $$m, $$r) : void 0;
|
|
15605
15822
|
return $$ctx.exit?.("IdentifierBinaryOp", $$state, $$final, $$eventData), $$final;
|
|
15606
15823
|
}
|
|
15607
|
-
var BinaryOp$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
15824
|
+
var BinaryOp$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R26, "BinaryOp /(?=\\p{ID_Start}|[_$^\u226A\u226B\u22D9\u2264\u2265\u2208\u220B\u2209\u220C\u2263\u2261\u2262\u2260=\u2A76\u2A75\u2016\u2047&|*\\/!?%\xF7<>\u29FA+-])/"), _BinaryOp);
|
|
15608
15825
|
function BinaryOp($$ctx, $$state) {
|
|
15609
15826
|
let $$entered = $$ctx.enter?.("BinaryOp", $$state);
|
|
15610
15827
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -15663,7 +15880,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
15663
15880
|
let $$eventData = $$entered?.data, $$final = _BinaryOp$0($$ctx, $$state) || _BinaryOp$1($$ctx, $$state) || _BinaryOp$2($$ctx, $$state);
|
|
15664
15881
|
return $$ctx.exit?.("_BinaryOp", $$state, $$final, $$eventData), $$final;
|
|
15665
15882
|
}
|
|
15666
|
-
var BinaryOpSymbol$0$parser = (0, import_lib2.$EXPECT)($L75, 'BinaryOpSymbol "**"'), BinaryOpSymbol$1$parser = (0, import_lib2.$EXPECT)($L74, 'BinaryOpSymbol "*"'), BinaryOpSymbol$2$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($L50, 'BinaryOpSymbol "%/"'), (0, import_lib2.$EXPECT)($L51, 'BinaryOpSymbol "\xF7"'), (0, import_lib2.$S)(CoffeeDivEnabled, (0, import_lib2.$EXPECT)($L47, 'BinaryOpSymbol "//"'))), BinaryOpSymbol$3$parser = (0, import_lib2.$EXPECT)($L52, 'BinaryOpSymbol "%%"'), BinaryOpSymbol$4$parser = (0, import_lib2.$EXPECT)($L76, 'BinaryOpSymbol "/"'), BinaryOpSymbol$5$parser = (0, import_lib2.$EXPECT)($L77, 'BinaryOpSymbol "%"'), BinaryOpSymbol$6$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($L9, 'BinaryOpSymbol "++"'), (0, import_lib2.$EXPECT)($L11, 'BinaryOpSymbol "\u29FA"')), BinaryOpSymbol$7$parser = (0, import_lib2.$EXPECT)($L78, 'BinaryOpSymbol "+"'), BinaryOpSymbol$8$parser = (0, import_lib2.$EXPECT)($L22, 'BinaryOpSymbol "-"'), BinaryOpSymbol$9$parser = (0, import_lib2.$EXPECT)($L79, 'BinaryOpSymbol "<="'), BinaryOpSymbol$10$parser = (0, import_lib2.$EXPECT)($L80, 'BinaryOpSymbol "\u2264"'), BinaryOpSymbol$11$parser = (0, import_lib2.$EXPECT)($L81, 'BinaryOpSymbol ">="'), BinaryOpSymbol$12$parser = (0, import_lib2.$EXPECT)($L82, 'BinaryOpSymbol "\u2265"'), BinaryOpSymbol$13$parser = (0, import_lib2.$EXPECT)($L21, 'BinaryOpSymbol "<?"'), BinaryOpSymbol$14$parser = (0, import_lib2.$EXPECT)($L83, 'BinaryOpSymbol "!<?"'), BinaryOpSymbol$15$parser = (0, import_lib2.$EXPECT)($L84, 'BinaryOpSymbol "<<"'), BinaryOpSymbol$16$parser = (0, import_lib2.$EXPECT)($L85, 'BinaryOpSymbol "\u226A"'), BinaryOpSymbol$17$parser = (0, import_lib2.$EXPECT)($L17, 'BinaryOpSymbol "<"'), BinaryOpSymbol$18$parser = (0, import_lib2.$EXPECT)($L86, 'BinaryOpSymbol ">>>"'), BinaryOpSymbol$19$parser = (0, import_lib2.$EXPECT)($L87, 'BinaryOpSymbol "\u22D9"'), BinaryOpSymbol$20$parser = (0, import_lib2.$EXPECT)($L88, 'BinaryOpSymbol ">>"'), BinaryOpSymbol$21$parser = (0, import_lib2.$EXPECT)($L89, 'BinaryOpSymbol "\u226B"'), BinaryOpSymbol$22$parser = (0, import_lib2.$EXPECT)($L44, 'BinaryOpSymbol ">"'), BinaryOpSymbol$23$parser = (0, import_lib2.$EXPECT)($L90, 'BinaryOpSymbol "!=="'), BinaryOpSymbol$24$parser = (0, import_lib2.$EXPECT)($L91, 'BinaryOpSymbol "\u2262"'), BinaryOpSymbol$25$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($L92, 'BinaryOpSymbol "!="'), (0, import_lib2.$EXPECT)($L93, 'BinaryOpSymbol "\u2260"')), BinaryOpSymbol$26$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L94, 'BinaryOpSymbol "isnt"'), NonIdContinue), BinaryOpSymbol$27$parser = (0, import_lib2.$EXPECT)($L95, 'BinaryOpSymbol "==="'), BinaryOpSymbol$28$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($L96, 'BinaryOpSymbol "\u2263"'), (0, import_lib2.$EXPECT)($L97, 'BinaryOpSymbol "\u2A76"')), BinaryOpSymbol$29$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($L98, 'BinaryOpSymbol "=="'), (0, import_lib2.$EXPECT)($L99, 'BinaryOpSymbol "\u2261"'), (0, import_lib2.$EXPECT)($L100, 'BinaryOpSymbol "\u2A75"')), BinaryOpSymbol$30$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L101, 'BinaryOpSymbol "and"'), NonIdContinue), BinaryOpSymbol$31$parser = (0, import_lib2.$EXPECT)($L102, 'BinaryOpSymbol "&&"'), BinaryOpSymbol$32$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L103, 'BinaryOpSymbol "or"'), NonIdContinue), BinaryOpSymbol$33$parser = (0, import_lib2.$EXPECT)($L104, 'BinaryOpSymbol "||"'), BinaryOpSymbol$34$parser = (0, import_lib2.$EXPECT)($L105, 'BinaryOpSymbol "\u2016"'), BinaryOpSymbol$35$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($L106, 'BinaryOpSymbol "^^"'), (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L107, 'BinaryOpSymbol "xor"'), NonIdContinue)), BinaryOpSymbol$36$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($
|
|
15883
|
+
var BinaryOpSymbol$0$parser = (0, import_lib2.$EXPECT)($L75, 'BinaryOpSymbol "**"'), BinaryOpSymbol$1$parser = (0, import_lib2.$EXPECT)($L74, 'BinaryOpSymbol "*"'), BinaryOpSymbol$2$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($L50, 'BinaryOpSymbol "%/"'), (0, import_lib2.$EXPECT)($L51, 'BinaryOpSymbol "\xF7"'), (0, import_lib2.$S)(CoffeeDivEnabled, (0, import_lib2.$EXPECT)($L47, 'BinaryOpSymbol "//"'))), BinaryOpSymbol$3$parser = (0, import_lib2.$EXPECT)($L52, 'BinaryOpSymbol "%%"'), BinaryOpSymbol$4$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L76, 'BinaryOpSymbol "/"'), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($L76, 'BinaryOpSymbol "/"'))), BinaryOpSymbol$5$parser = (0, import_lib2.$EXPECT)($L77, 'BinaryOpSymbol "%"'), BinaryOpSymbol$6$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($L9, 'BinaryOpSymbol "++"'), (0, import_lib2.$EXPECT)($L11, 'BinaryOpSymbol "\u29FA"')), BinaryOpSymbol$7$parser = (0, import_lib2.$EXPECT)($L78, 'BinaryOpSymbol "+"'), BinaryOpSymbol$8$parser = (0, import_lib2.$EXPECT)($L22, 'BinaryOpSymbol "-"'), BinaryOpSymbol$9$parser = (0, import_lib2.$EXPECT)($L79, 'BinaryOpSymbol "<="'), BinaryOpSymbol$10$parser = (0, import_lib2.$EXPECT)($L80, 'BinaryOpSymbol "\u2264"'), BinaryOpSymbol$11$parser = (0, import_lib2.$EXPECT)($L81, 'BinaryOpSymbol ">="'), BinaryOpSymbol$12$parser = (0, import_lib2.$EXPECT)($L82, 'BinaryOpSymbol "\u2265"'), BinaryOpSymbol$13$parser = (0, import_lib2.$EXPECT)($L21, 'BinaryOpSymbol "<?"'), BinaryOpSymbol$14$parser = (0, import_lib2.$EXPECT)($L83, 'BinaryOpSymbol "!<?"'), BinaryOpSymbol$15$parser = (0, import_lib2.$EXPECT)($L84, 'BinaryOpSymbol "<<"'), BinaryOpSymbol$16$parser = (0, import_lib2.$EXPECT)($L85, 'BinaryOpSymbol "\u226A"'), BinaryOpSymbol$17$parser = (0, import_lib2.$EXPECT)($L17, 'BinaryOpSymbol "<"'), BinaryOpSymbol$18$parser = (0, import_lib2.$EXPECT)($L86, 'BinaryOpSymbol ">>>"'), BinaryOpSymbol$19$parser = (0, import_lib2.$EXPECT)($L87, 'BinaryOpSymbol "\u22D9"'), BinaryOpSymbol$20$parser = (0, import_lib2.$EXPECT)($L88, 'BinaryOpSymbol ">>"'), BinaryOpSymbol$21$parser = (0, import_lib2.$EXPECT)($L89, 'BinaryOpSymbol "\u226B"'), BinaryOpSymbol$22$parser = (0, import_lib2.$EXPECT)($L44, 'BinaryOpSymbol ">"'), BinaryOpSymbol$23$parser = (0, import_lib2.$EXPECT)($L90, 'BinaryOpSymbol "!=="'), BinaryOpSymbol$24$parser = (0, import_lib2.$EXPECT)($L91, 'BinaryOpSymbol "\u2262"'), BinaryOpSymbol$25$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($L92, 'BinaryOpSymbol "!="'), (0, import_lib2.$EXPECT)($L93, 'BinaryOpSymbol "\u2260"')), BinaryOpSymbol$26$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L94, 'BinaryOpSymbol "isnt"'), NonIdContinue), BinaryOpSymbol$27$parser = (0, import_lib2.$EXPECT)($L95, 'BinaryOpSymbol "==="'), BinaryOpSymbol$28$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($L96, 'BinaryOpSymbol "\u2263"'), (0, import_lib2.$EXPECT)($L97, 'BinaryOpSymbol "\u2A76"')), BinaryOpSymbol$29$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($L98, 'BinaryOpSymbol "=="'), (0, import_lib2.$EXPECT)($L99, 'BinaryOpSymbol "\u2261"'), (0, import_lib2.$EXPECT)($L100, 'BinaryOpSymbol "\u2A75"')), BinaryOpSymbol$30$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L101, 'BinaryOpSymbol "and"'), NonIdContinue), BinaryOpSymbol$31$parser = (0, import_lib2.$EXPECT)($L102, 'BinaryOpSymbol "&&"'), BinaryOpSymbol$32$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L103, 'BinaryOpSymbol "or"'), NonIdContinue), BinaryOpSymbol$33$parser = (0, import_lib2.$EXPECT)($L104, 'BinaryOpSymbol "||"'), BinaryOpSymbol$34$parser = (0, import_lib2.$EXPECT)($L105, 'BinaryOpSymbol "\u2016"'), BinaryOpSymbol$35$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($L106, 'BinaryOpSymbol "^^"'), (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L107, 'BinaryOpSymbol "xor"'), NonIdContinue)), BinaryOpSymbol$36$parser = (0, import_lib2.$C)((0, import_lib2.$EXPECT)($R27, "BinaryOpSymbol /!\\^\\^?/"), (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L108, 'BinaryOpSymbol "xnor"'), NonIdContinue)), BinaryOpSymbol$37$parser = (0, import_lib2.$EXPECT)($L109, 'BinaryOpSymbol "??"'), BinaryOpSymbol$38$parser = (0, import_lib2.$EXPECT)($L110, 'BinaryOpSymbol "\u2047"'), BinaryOpSymbol$39$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L6, 'BinaryOpSymbol "?"'), CoffeeBinaryExistentialEnabled), BinaryOpSymbol$40$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L111, 'BinaryOpSymbol "instanceof"'), NonIdContinue), BinaryOpSymbol$41$parser = (0, import_lib2.$S)(CoffeeOfEnabled, CoffeeOfOp), BinaryOpSymbol$42$parser = (0, import_lib2.$S)(OmittedNegation, __, NotOp), BinaryOpSymbol$43$parser = (0, import_lib2.$C)((0, import_lib2.$S)(Is, __, In), (0, import_lib2.$EXPECT)($L112, 'BinaryOpSymbol "\u2208"')), BinaryOpSymbol$44$parser = (0, import_lib2.$EXPECT)($L113, 'BinaryOpSymbol "\u220B"'), BinaryOpSymbol$45$parser = (0, import_lib2.$EXPECT)($L114, 'BinaryOpSymbol "\u220C"'), BinaryOpSymbol$46$parser = (0, import_lib2.$C)((0, import_lib2.$S)(Is, __, OmittedNegation, __, In), (0, import_lib2.$EXPECT)($L115, 'BinaryOpSymbol "\u2209"')), BinaryOpSymbol$47$parser = (0, import_lib2.$S)((0, import_lib2.$N)(CoffeeNotEnabled), Is, __, Not), BinaryOpSymbol$48$parser = (0, import_lib2.$S)(Is), BinaryOpSymbol$50$parser = (0, import_lib2.$EXPECT)($L116, 'BinaryOpSymbol "&"'), BinaryOpSymbol$51$parser = (0, import_lib2.$EXPECT)($L20, 'BinaryOpSymbol "^"'), BinaryOpSymbol$52$parser = (0, import_lib2.$EXPECT)($L117, 'BinaryOpSymbol "|"');
|
|
15667
15884
|
function BinaryOpSymbol$0($$ctx, $$state) {
|
|
15668
15885
|
return BinaryOpSymbol$0$parser($$ctx, $$state);
|
|
15669
15886
|
}
|
|
@@ -15697,7 +15914,13 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
15697
15914
|
return $$r.value = $$m, $$r;
|
|
15698
15915
|
}
|
|
15699
15916
|
function BinaryOpSymbol$4($$ctx, $$state) {
|
|
15700
|
-
|
|
15917
|
+
let $$r = BinaryOpSymbol$4$parser($$ctx, $$state);
|
|
15918
|
+
if (!$$r)
|
|
15919
|
+
return;
|
|
15920
|
+
let $$m = /* @__PURE__ */ (function($1) {
|
|
15921
|
+
return $1;
|
|
15922
|
+
})($$r.value[0]);
|
|
15923
|
+
return $$r.value = $$m, $$r;
|
|
15701
15924
|
}
|
|
15702
15925
|
function BinaryOpSymbol$5($$ctx, $$state) {
|
|
15703
15926
|
return BinaryOpSymbol$5$parser($$ctx, $$state);
|
|
@@ -16222,7 +16445,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
16222
16445
|
let $$eventData = $$entered?.data, $$final = Xor$0($$ctx, $$state) || Xor$1($$ctx, $$state);
|
|
16223
16446
|
return $$ctx.exit?.("Xor", $$state, $$final, $$eventData), $$final;
|
|
16224
16447
|
}
|
|
16225
|
-
var Xnor$0$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16448
|
+
var Xnor$0$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R27, "Xnor /!\\^\\^?/")), Xnor$1$parser = (0, import_lib2.$EXPECT)($L108, 'Xnor "xnor"');
|
|
16226
16449
|
function Xnor$0($$ctx, $$state) {
|
|
16227
16450
|
return Xnor$0$parser($$ctx, $$state);
|
|
16228
16451
|
}
|
|
@@ -16235,7 +16458,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
16235
16458
|
let $$eventData = $$entered?.data, $$final = Xnor$0($$ctx, $$state) || Xnor$1($$ctx, $$state);
|
|
16236
16459
|
return $$ctx.exit?.("Xnor", $$state, $$final, $$eventData), $$final;
|
|
16237
16460
|
}
|
|
16238
|
-
var UnaryOp$0$parser = (0, import_lib2.$EXPECT)($
|
|
16461
|
+
var UnaryOp$0$parser = (0, import_lib2.$EXPECT)($R28, "UnaryOp /(?!\\+\\+|--)[!~+-](?!\\s)/"), UnaryOp$2$parser = (0, import_lib2.$S)((0, import_lib2.$C)(Delete, Void, Typeof), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($R29, "UnaryOp /[:.]/")), (0, import_lib2.$E)(_)), UnaryOp$3$parser = (0, import_lib2.$S)(Not, (0, import_lib2.$N)((0, import_lib2.$EXPECT)($R29, "UnaryOp /[:.]/")), (0, import_lib2.$E)((0, import_lib2.$EXPECT)($L16, 'UnaryOp " "')), (0, import_lib2.$E)(_));
|
|
16239
16462
|
function UnaryOp$0($$ctx, $$state) {
|
|
16240
16463
|
let $$r = UnaryOp$0$parser($$ctx, $$state);
|
|
16241
16464
|
if (!$$r)
|
|
@@ -16460,7 +16683,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
16460
16683
|
let $$eventData = $$entered?.data, $$final = PostfixedCommaExpression$0($$ctx, $$state) || PostfixedCommaExpression$1($$ctx, $$state) || PostfixedCommaExpression$2($$ctx, $$state);
|
|
16461
16684
|
return $$ctx.exit?.("PostfixedCommaExpression", $$state, $$final, $$eventData), $$final;
|
|
16462
16685
|
}
|
|
16463
|
-
var PostfixStatement$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
16686
|
+
var PostfixStatement$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R30, "PostfixStatement /(?=for|if|loop|unless|until|while)/"), _PostfixStatement);
|
|
16464
16687
|
function PostfixStatement($$ctx, $$state) {
|
|
16465
16688
|
let $$entered = $$ctx.enter?.("PostfixStatement", $$state);
|
|
16466
16689
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -16699,7 +16922,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
16699
16922
|
})($$value[0], $$value[1], $$value[2]), $$final = $$m !== import_lib2.SKIP ? ($$r.value = $$m, $$r) : void 0;
|
|
16700
16923
|
return $$ctx.exit?.("Label", $$state, $$final, $$eventData), $$final;
|
|
16701
16924
|
}
|
|
16702
|
-
var LabelIdentifier$0$parser = (0, import_lib2.$S)(Colon, IdentifierName), LabelIdentifier$1$parser = (0, import_lib2.$EXPECT)($
|
|
16925
|
+
var LabelIdentifier$0$parser = (0, import_lib2.$S)(Colon, IdentifierName), LabelIdentifier$1$parser = (0, import_lib2.$EXPECT)($R31, "LabelIdentifier /(?:loop|while|until|for|do)(?!\\p{ID_Continue})/"), LabelIdentifier$2$parser = Identifier;
|
|
16703
16926
|
function LabelIdentifier$0($$ctx, $$state) {
|
|
16704
16927
|
let $$r = LabelIdentifier$0$parser($$ctx, $$state);
|
|
16705
16928
|
if (!$$r)
|
|
@@ -16835,7 +17058,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
16835
17058
|
})($$r.loc, $$value[0], $$value[1], $$value[2]);
|
|
16836
17059
|
return $$r.value = $$m, $$ctx.exit?.("IfClause", $$state, $$r, $$eventData), $$r;
|
|
16837
17060
|
}
|
|
16838
|
-
var IterationStatement$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
17061
|
+
var IterationStatement$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R32, "IterationStatement /(?=loop|comptime|do|for|until|while)/"), _IterationStatement);
|
|
16839
17062
|
function IterationStatement($$ctx, $$state) {
|
|
16840
17063
|
let $$entered = $$ctx.enter?.("IterationStatement", $$state);
|
|
16841
17064
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -17657,10 +17880,16 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
17657
17880
|
let $$r = CaseClause$2$parser($$ctx, $$state);
|
|
17658
17881
|
if (!$$r)
|
|
17659
17882
|
return;
|
|
17660
|
-
let $$value = $$r.value, $$m =
|
|
17883
|
+
let $$value = $$r.value, $$m = (function($0, cases, block, b) {
|
|
17884
|
+
let children = $0;
|
|
17885
|
+
if (hasTrailingComment(block)) {
|
|
17886
|
+
let bIdx = children.indexOf(b);
|
|
17887
|
+
b = { ...b, token: `
|
|
17888
|
+
` + b.token }, children = [...children.slice(0, bIdx), b, ...children.slice(bIdx + 1)];
|
|
17889
|
+
}
|
|
17661
17890
|
return {
|
|
17662
17891
|
type: "WhenClause",
|
|
17663
|
-
children
|
|
17892
|
+
children,
|
|
17664
17893
|
cases,
|
|
17665
17894
|
block,
|
|
17666
17895
|
break: b
|
|
@@ -18912,7 +19141,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
18912
19141
|
let $$eventData = $$entered?.data, $$final = MaybeNestedExpression$0($$ctx, $$state) || MaybeNestedExpression$1($$ctx, $$state);
|
|
18913
19142
|
return $$ctx.exit?.("MaybeNestedExpression", $$state, $$final, $$eventData), $$final;
|
|
18914
19143
|
}
|
|
18915
|
-
var MaybeParenNestedExpression$0$parser = (0, import_lib2.$Y)((0, import_lib2.$S)((0, import_lib2.$E)(_), PostfixStatement, NoBlock)), MaybeParenNestedExpression$1$parser = (0, import_lib2.$S)((0, import_lib2.$N)(EOS), Expression), MaybeParenNestedExpression$2$parser = (0, import_lib2.$S)((0, import_lib2.$Y)(EOS), (0, import_lib2.$C)(ArrayLiteral, ObjectLiteral)), MaybeParenNestedExpression$3$parser = (0, import_lib2.$S)((0, import_lib2.$Y)(EOS), InsertSpace, InsertOpenParen, PushIndent, (0, import_lib2.$E)((0, import_lib2.$S)(Nested, Expression)), PopIndent, (0, import_lib2.$E)(AllowedTrailingCallExpressions), InsertNewline, InsertIndent, InsertCloseParen);
|
|
19144
|
+
var MaybeParenNestedExpression$0$parser = (0, import_lib2.$Y)((0, import_lib2.$S)((0, import_lib2.$E)(_), PostfixStatement, (0, import_lib2.$C)(NoBlock, (0, import_lib2.$S)((0, import_lib2.$E)(_), Semicolon)))), MaybeParenNestedExpression$1$parser = (0, import_lib2.$S)((0, import_lib2.$N)(EOS), Expression), MaybeParenNestedExpression$2$parser = (0, import_lib2.$S)((0, import_lib2.$Y)(EOS), (0, import_lib2.$C)(ArrayLiteral, ObjectLiteral)), MaybeParenNestedExpression$3$parser = (0, import_lib2.$S)((0, import_lib2.$Y)(EOS), InsertSpace, InsertOpenParen, PushIndent, (0, import_lib2.$E)((0, import_lib2.$S)(Nested, Expression)), PopIndent, (0, import_lib2.$E)(AllowedTrailingCallExpressions), InsertNewline, InsertIndent, InsertCloseParen);
|
|
18916
19145
|
function MaybeParenNestedExpression$0($$ctx, $$state) {
|
|
18917
19146
|
let $$r = MaybeParenNestedExpression$0$parser($$ctx, $$state);
|
|
18918
19147
|
if (!$$r)
|
|
@@ -18955,7 +19184,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
18955
19184
|
let $$eventData = $$entered?.data, $$final = MaybeParenNestedExpression$0($$ctx, $$state) || MaybeParenNestedExpression$1($$ctx, $$state) || MaybeParenNestedExpression$2($$ctx, $$state) || MaybeParenNestedExpression$3($$ctx, $$state);
|
|
18956
19185
|
return $$ctx.exit?.("MaybeParenNestedExpression", $$state, $$final, $$eventData), $$final;
|
|
18957
19186
|
}
|
|
18958
|
-
var ImportDeclaration$0$parser = (0, import_lib2.$S)(Import, _, Identifier, (0, import_lib2.$E)(_), Equals, __, (0, import_lib2.$EXPECT)($L132, 'ImportDeclaration "require"'), NonIdContinue, Arguments), ImportDeclaration$1$parser = (0, import_lib2.$S)((0, import_lib2.$C)((0, import_lib2.$S)(Import, SameLineOrIndentedFurther), ImpliedImport), Operator, (0, import_lib2.$E)(OperatorBehavior), SameLineOrIndentedFurther, OperatorNamedImports, SameLineOrIndentedFurther, FromClause), ImportDeclaration$2$parser = (0, import_lib2.$S)(Import, SameLineOrIndentedFurther, (0, import_lib2.$E)((0, import_lib2.$S)(TypeKeyword, SameLineOrIndentedFurther)), ImportClause, __, FromClause), ImportDeclaration$3$parser = (0, import_lib2.$S)(Import, (0, import_lib2.$Y)((0, import_lib2.$EXPECT)($
|
|
19187
|
+
var ImportDeclaration$0$parser = (0, import_lib2.$S)(Import, _, Identifier, (0, import_lib2.$E)(_), Equals, __, (0, import_lib2.$EXPECT)($L132, 'ImportDeclaration "require"'), NonIdContinue, Arguments), ImportDeclaration$1$parser = (0, import_lib2.$S)((0, import_lib2.$C)((0, import_lib2.$S)(Import, SameLineOrIndentedFurther), ImpliedImport), Operator, (0, import_lib2.$E)(OperatorBehavior), SameLineOrIndentedFurther, OperatorNamedImports, SameLineOrIndentedFurther, FromClause), ImportDeclaration$2$parser = (0, import_lib2.$S)(Import, SameLineOrIndentedFurther, (0, import_lib2.$E)((0, import_lib2.$S)(TypeKeyword, SameLineOrIndentedFurther)), ImportClause, __, FromClause), ImportDeclaration$3$parser = (0, import_lib2.$S)(Import, (0, import_lib2.$Y)((0, import_lib2.$EXPECT)($R33, "ImportDeclaration /\\s/")), SameLineOrIndentedFurther, ModuleSpecifier), ImportDeclaration$4$parser = (0, import_lib2.$S)(Import, (0, import_lib2.$E)(_), (0, import_lib2.$E)(UnclosedSingleLineStringLiteral), (0, import_lib2.$Y)(EOS)), ImportDeclaration$5$parser = (0, import_lib2.$S)(ImpliedImport, (0, import_lib2.$E)((0, import_lib2.$S)(TypeKeyword, SameLineOrIndentedFurther)), ImportClause, SameLineOrIndentedFurther, FromClause), ImportDeclaration$6$parser = (0, import_lib2.$S)(FromClause, SameLineOrIndentedFurther, Import, SameLineOrIndentedFurther, Operator, (0, import_lib2.$E)(OperatorBehavior), SameLineOrIndentedFurther, OperatorNamedImports), ImportDeclaration$7$parser = (0, import_lib2.$S)(FromClause, SameLineOrIndentedFurther, Import, SameLineOrIndentedFurther, (0, import_lib2.$E)((0, import_lib2.$S)(TypeKeyword, SameLineOrIndentedFurther)), ImportClause);
|
|
18959
19188
|
function ImportDeclaration$0($$ctx, $$state) {
|
|
18960
19189
|
let $$r = ImportDeclaration$0$parser($$ctx, $$state);
|
|
18961
19190
|
if (!$$r)
|
|
@@ -19505,7 +19734,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
19505
19734
|
let $$eventData = $$entered?.data, $$final = UnprocessedModuleSpecifier$0($$ctx, $$state) || UnprocessedModuleSpecifier$1($$ctx, $$state);
|
|
19506
19735
|
return $$ctx.exit?.("UnprocessedModuleSpecifier", $$state, $$final, $$eventData), $$final;
|
|
19507
19736
|
}
|
|
19508
|
-
var UnquotedSpecifier$parser = (0, import_lib2.$EXPECT)($
|
|
19737
|
+
var UnquotedSpecifier$parser = (0, import_lib2.$EXPECT)($R34, `UnquotedSpecifier /[^;"'\\s=>]+/`);
|
|
19509
19738
|
function UnquotedSpecifier($$ctx, $$state) {
|
|
19510
19739
|
let $$entered = $$ctx.enter?.("UnquotedSpecifier", $$state);
|
|
19511
19740
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -19952,7 +20181,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
19952
20181
|
})($$value[0], $$value[1]);
|
|
19953
20182
|
return $$r.value = $$m, $$ctx.exit?.("VariableDeclarationList", $$state, $$r, $$eventData), $$r;
|
|
19954
20183
|
}
|
|
19955
|
-
var NumericLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
20184
|
+
var NumericLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R35, "NumericLiteral /(?=[0-9.])/"), NumericLiteralKind);
|
|
19956
20185
|
function NumericLiteral($$ctx, $$state) {
|
|
19957
20186
|
let $$entered = $$ctx.enter?.("NumericLiteral", $$state);
|
|
19958
20187
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -19987,14 +20216,14 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
19987
20216
|
let $$eventData = $$entered?.data, $$final = NumericLiteralKind$0($$ctx, $$state) || NumericLiteralKind$1($$ctx, $$state) || NumericLiteralKind$2($$ctx, $$state) || NumericLiteralKind$3($$ctx, $$state) || NumericLiteralKind$4($$ctx, $$state);
|
|
19988
20217
|
return $$ctx.exit?.("NumericLiteralKind", $$state, $$final, $$eventData), $$final;
|
|
19989
20218
|
}
|
|
19990
|
-
var DecimalBigIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
20219
|
+
var DecimalBigIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R36, "DecimalBigIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)n/"));
|
|
19991
20220
|
function DecimalBigIntegerLiteral($$ctx, $$state) {
|
|
19992
20221
|
let $$entered = $$ctx.enter?.("DecimalBigIntegerLiteral", $$state);
|
|
19993
20222
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
19994
20223
|
let $$eventData = $$entered?.data, $$final = DecimalBigIntegerLiteral$parser($$ctx, $$state);
|
|
19995
20224
|
return $$ctx.exit?.("DecimalBigIntegerLiteral", $$state, $$final, $$eventData), $$final;
|
|
19996
20225
|
}
|
|
19997
|
-
var DecimalLiteral$0$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
20226
|
+
var DecimalLiteral$0$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R37, "DecimalLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)(?=\\.(?:\\p{ID_Start}|[_$]))/")), (0, import_lib2.$N)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L7, 'DecimalLiteral "."'), ExponentPart))), DecimalLiteral$1$parser = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R38, "DecimalLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)(?:\\.(?:[0-9](?:_[0-9]|[0-9])*))?/"), (0, import_lib2.$E)(ExponentPart))), DecimalLiteral$2$parser = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R39, "DecimalLiteral /(?:\\.[0-9](?:_[0-9]|[0-9])*)/"), (0, import_lib2.$E)(ExponentPart)));
|
|
19998
20227
|
function DecimalLiteral$0($$ctx, $$state) {
|
|
19999
20228
|
let $$r = DecimalLiteral$0$parser($$ctx, $$state);
|
|
20000
20229
|
if (!$$r)
|
|
@@ -20016,35 +20245,35 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20016
20245
|
let $$eventData = $$entered?.data, $$final = DecimalLiteral$0($$ctx, $$state) || DecimalLiteral$1($$ctx, $$state) || DecimalLiteral$2($$ctx, $$state);
|
|
20017
20246
|
return $$ctx.exit?.("DecimalLiteral", $$state, $$final, $$eventData), $$final;
|
|
20018
20247
|
}
|
|
20019
|
-
var ExponentPart$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
20248
|
+
var ExponentPart$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R40, "ExponentPart /(?:[eE][+-]?[0-9]+(?:_[0-9]|[0-9])*)/"));
|
|
20020
20249
|
function ExponentPart($$ctx, $$state) {
|
|
20021
20250
|
let $$entered = $$ctx.enter?.("ExponentPart", $$state);
|
|
20022
20251
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
20023
20252
|
let $$eventData = $$entered?.data, $$final = ExponentPart$parser($$ctx, $$state);
|
|
20024
20253
|
return $$ctx.exit?.("ExponentPart", $$state, $$final, $$eventData), $$final;
|
|
20025
20254
|
}
|
|
20026
|
-
var BinaryIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
20255
|
+
var BinaryIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R41, "BinaryIntegerLiteral /0[bB][01](?:[01]|_[01])*n?/"));
|
|
20027
20256
|
function BinaryIntegerLiteral($$ctx, $$state) {
|
|
20028
20257
|
let $$entered = $$ctx.enter?.("BinaryIntegerLiteral", $$state);
|
|
20029
20258
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
20030
20259
|
let $$eventData = $$entered?.data, $$final = BinaryIntegerLiteral$parser($$ctx, $$state);
|
|
20031
20260
|
return $$ctx.exit?.("BinaryIntegerLiteral", $$state, $$final, $$eventData), $$final;
|
|
20032
20261
|
}
|
|
20033
|
-
var OctalIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
20262
|
+
var OctalIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R42, "OctalIntegerLiteral /0[oO][0-7](?:[0-7]|_[0-7])*n?/"));
|
|
20034
20263
|
function OctalIntegerLiteral($$ctx, $$state) {
|
|
20035
20264
|
let $$entered = $$ctx.enter?.("OctalIntegerLiteral", $$state);
|
|
20036
20265
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
20037
20266
|
let $$eventData = $$entered?.data, $$final = OctalIntegerLiteral$parser($$ctx, $$state);
|
|
20038
20267
|
return $$ctx.exit?.("OctalIntegerLiteral", $$state, $$final, $$eventData), $$final;
|
|
20039
20268
|
}
|
|
20040
|
-
var HexIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
20269
|
+
var HexIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R43, "HexIntegerLiteral /0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*n?/"));
|
|
20041
20270
|
function HexIntegerLiteral($$ctx, $$state) {
|
|
20042
20271
|
let $$entered = $$ctx.enter?.("HexIntegerLiteral", $$state);
|
|
20043
20272
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
20044
20273
|
let $$eventData = $$entered?.data, $$final = HexIntegerLiteral$parser($$ctx, $$state);
|
|
20045
20274
|
return $$ctx.exit?.("HexIntegerLiteral", $$state, $$final, $$eventData), $$final;
|
|
20046
20275
|
}
|
|
20047
|
-
var IntegerLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
20276
|
+
var IntegerLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R44, "IntegerLiteral /(?=[0-9])/"), IntegerLiteralKind);
|
|
20048
20277
|
function IntegerLiteral($$ctx, $$state) {
|
|
20049
20278
|
let $$entered = $$ctx.enter?.("IntegerLiteral", $$state);
|
|
20050
20279
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20079,7 +20308,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20079
20308
|
let $$eventData = $$entered?.data, $$final = IntegerLiteralKind$0($$ctx, $$state) || IntegerLiteralKind$1($$ctx, $$state) || IntegerLiteralKind$2($$ctx, $$state) || IntegerLiteralKind$3($$ctx, $$state) || IntegerLiteralKind$4($$ctx, $$state);
|
|
20080
20309
|
return $$ctx.exit?.("IntegerLiteralKind", $$state, $$final, $$eventData), $$final;
|
|
20081
20310
|
}
|
|
20082
|
-
var DecimalIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
20311
|
+
var DecimalIntegerLiteral$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R45, "DecimalIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)/"));
|
|
20083
20312
|
function DecimalIntegerLiteral($$ctx, $$state) {
|
|
20084
20313
|
let $$entered = $$ctx.enter?.("DecimalIntegerLiteral", $$state);
|
|
20085
20314
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20119,7 +20348,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20119
20348
|
let $$eventData = $$entered?.data, $$final = StringLiteral$0($$ctx, $$state) || StringLiteral$1($$ctx, $$state);
|
|
20120
20349
|
return $$ctx.exit?.("StringLiteral", $$state, $$final, $$eventData), $$final;
|
|
20121
20350
|
}
|
|
20122
|
-
var DoubleStringCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
20351
|
+
var DoubleStringCharacters$parser = (0, import_lib2.$EXPECT)($R46, 'DoubleStringCharacters /(?:\\\\.|[^"])*/');
|
|
20123
20352
|
function DoubleStringCharacters($$ctx, $$state) {
|
|
20124
20353
|
let $$entered = $$ctx.enter?.("DoubleStringCharacters", $$state);
|
|
20125
20354
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20133,7 +20362,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20133
20362
|
})($$r.loc, $$r.value[0]);
|
|
20134
20363
|
return $$r.value = $$m, $$ctx.exit?.("DoubleStringCharacters", $$state, $$r, $$eventData), $$r;
|
|
20135
20364
|
}
|
|
20136
|
-
var SingleStringCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
20365
|
+
var SingleStringCharacters$parser = (0, import_lib2.$EXPECT)($R47, "SingleStringCharacters /(?:\\\\.|[^'])*/");
|
|
20137
20366
|
function SingleStringCharacters($$ctx, $$state) {
|
|
20138
20367
|
let $$entered = $$ctx.enter?.("SingleStringCharacters", $$state);
|
|
20139
20368
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20147,7 +20376,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20147
20376
|
})($$r.loc, $$r.value[0]);
|
|
20148
20377
|
return $$r.value = $$m, $$ctx.exit?.("SingleStringCharacters", $$state, $$r, $$eventData), $$r;
|
|
20149
20378
|
}
|
|
20150
|
-
var SingleLineStringLiteral$parser = (0, import_lib2.$C)((0, import_lib2.$TEXT)((0, import_lib2.$S)(DoubleQuote, (0, import_lib2.$EXPECT)($
|
|
20379
|
+
var SingleLineStringLiteral$parser = (0, import_lib2.$C)((0, import_lib2.$TEXT)((0, import_lib2.$S)(DoubleQuote, (0, import_lib2.$EXPECT)($R48, 'SingleLineStringLiteral /(?:\\\\.|[^"\\n])*/'), DoubleQuote)), (0, import_lib2.$TEXT)((0, import_lib2.$S)(SingleQuote, (0, import_lib2.$EXPECT)($R49, "SingleLineStringLiteral /(?:\\\\.|[^'\\n])*/"), SingleQuote)));
|
|
20151
20380
|
function SingleLineStringLiteral($$ctx, $$state) {
|
|
20152
20381
|
let $$entered = $$ctx.enter?.("SingleLineStringLiteral", $$state);
|
|
20153
20382
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20165,7 +20394,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20165
20394
|
})($$r.loc, $$r.value);
|
|
20166
20395
|
return $$r.value = $$m, $$ctx.exit?.("SingleLineStringLiteral", $$state, $$r, $$eventData), $$r;
|
|
20167
20396
|
}
|
|
20168
|
-
var UnclosedSingleLineStringLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$C)((0, import_lib2.$TEXT)((0, import_lib2.$S)(DoubleQuote, (0, import_lib2.$EXPECT)($
|
|
20397
|
+
var UnclosedSingleLineStringLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$C)((0, import_lib2.$TEXT)((0, import_lib2.$S)(DoubleQuote, (0, import_lib2.$EXPECT)($R48, 'UnclosedSingleLineStringLiteral /(?:\\\\.|[^"\\n])*/'))), (0, import_lib2.$TEXT)((0, import_lib2.$S)(SingleQuote, (0, import_lib2.$EXPECT)($R49, "UnclosedSingleLineStringLiteral /(?:\\\\.|[^'\\n])*/")))), (0, import_lib2.$Y)(EOS));
|
|
20169
20398
|
function UnclosedSingleLineStringLiteral($$ctx, $$state) {
|
|
20170
20399
|
let $$entered = $$ctx.enter?.("UnclosedSingleLineStringLiteral", $$state);
|
|
20171
20400
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20214,7 +20443,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20214
20443
|
let $$eventData = $$entered?.data, $$final = TripleDoubleStringContents$0($$ctx, $$state) || TripleDoubleStringContents$1($$ctx, $$state);
|
|
20215
20444
|
return $$ctx.exit?.("TripleDoubleStringContents", $$state, $$final, $$eventData), $$final;
|
|
20216
20445
|
}
|
|
20217
|
-
var CoffeeTripleDoubleStringCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
20446
|
+
var CoffeeTripleDoubleStringCharacters$parser = (0, import_lib2.$EXPECT)($R50, 'CoffeeTripleDoubleStringCharacters /(?:"(?!"")|#(?!\\{)|\\\\.|[^#"])+/');
|
|
20218
20447
|
function CoffeeTripleDoubleStringCharacters($$ctx, $$state) {
|
|
20219
20448
|
let $$entered = $$ctx.enter?.("CoffeeTripleDoubleStringCharacters", $$state);
|
|
20220
20449
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20228,7 +20457,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20228
20457
|
})($$r.loc, $$r.value[0]);
|
|
20229
20458
|
return $$r.value = $$m, $$ctx.exit?.("CoffeeTripleDoubleStringCharacters", $$state, $$r, $$eventData), $$r;
|
|
20230
20459
|
}
|
|
20231
|
-
var TripleDoubleStringCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
20460
|
+
var TripleDoubleStringCharacters$parser = (0, import_lib2.$EXPECT)($R51, 'TripleDoubleStringCharacters /(?:"(?!"")|\\\\.|[^"])+/');
|
|
20232
20461
|
function TripleDoubleStringCharacters($$ctx, $$state) {
|
|
20233
20462
|
let $$entered = $$ctx.enter?.("TripleDoubleStringCharacters", $$state);
|
|
20234
20463
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20242,7 +20471,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20242
20471
|
})($$r.loc, $$r.value[0]);
|
|
20243
20472
|
return $$r.value = $$m, $$ctx.exit?.("TripleDoubleStringCharacters", $$state, $$r, $$eventData), $$r;
|
|
20244
20473
|
}
|
|
20245
|
-
var TripleSingleStringCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
20474
|
+
var TripleSingleStringCharacters$parser = (0, import_lib2.$EXPECT)($R52, "TripleSingleStringCharacters /(?:'(?!'')|\\\\.|[^'])*/");
|
|
20246
20475
|
function TripleSingleStringCharacters($$ctx, $$state) {
|
|
20247
20476
|
let $$entered = $$ctx.enter?.("TripleSingleStringCharacters", $$state);
|
|
20248
20477
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20284,7 +20513,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20284
20513
|
})($$r.loc, $$value[1], $$value[2], $$value[3]);
|
|
20285
20514
|
return $$r.value = $$m, $$ctx.exit?.("CoffeeInterpolatedDoubleQuotedString", $$state, $$r, $$eventData), $$r;
|
|
20286
20515
|
}
|
|
20287
|
-
var CoffeeDoubleQuotedStringCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
20516
|
+
var CoffeeDoubleQuotedStringCharacters$parser = (0, import_lib2.$EXPECT)($R53, 'CoffeeDoubleQuotedStringCharacters /(?:\\\\.|#(?!\\{)|[^"#])+/');
|
|
20288
20517
|
function CoffeeDoubleQuotedStringCharacters($$ctx, $$state) {
|
|
20289
20518
|
let $$entered = $$ctx.enter?.("CoffeeDoubleQuotedStringCharacters", $$state);
|
|
20290
20519
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20335,7 +20564,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20335
20564
|
})($$r.loc, $$r.value);
|
|
20336
20565
|
return $$r.value = $$m, $$ctx.exit?.("RegularExpressionClass", $$state, $$r, $$eventData), $$r;
|
|
20337
20566
|
}
|
|
20338
|
-
var RegularExpressionClassCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
20567
|
+
var RegularExpressionClassCharacters$parser = (0, import_lib2.$EXPECT)($R54, "RegularExpressionClassCharacters /(?:\\\\.|[^\\]])*/");
|
|
20339
20568
|
function RegularExpressionClassCharacters($$ctx, $$state) {
|
|
20340
20569
|
let $$entered = $$ctx.enter?.("RegularExpressionClassCharacters", $$state);
|
|
20341
20570
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20358,7 +20587,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20358
20587
|
$$ctx.exit?.("HeregexLiteral", $$state, void 0, $$eventData);
|
|
20359
20588
|
return;
|
|
20360
20589
|
}
|
|
20361
|
-
let $$value = $$r.value, $$m = (function($0, open, body, close, flags) {
|
|
20590
|
+
let $$value = $$r.value, $$m = (function($loc, $0, open, body, close, flags) {
|
|
20362
20591
|
if (body.some((part) => part.type === "Substitution")) {
|
|
20363
20592
|
let children = [
|
|
20364
20593
|
{ ...open, token: "RegExp(`" },
|
|
@@ -20366,7 +20595,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20366
20595
|
body.map(
|
|
20367
20596
|
(e) => e.type === "Substitution" ? e : {
|
|
20368
20597
|
...e,
|
|
20369
|
-
token: e.token.replace(
|
|
20598
|
+
token: e.token.replace(/[`\\$]/g, "\\$&")
|
|
20370
20599
|
}
|
|
20371
20600
|
),
|
|
20372
20601
|
"`"
|
|
@@ -20379,14 +20608,24 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20379
20608
|
children
|
|
20380
20609
|
};
|
|
20381
20610
|
}
|
|
20611
|
+
if (!body.map(($14) => $14.token).join("").length) {
|
|
20612
|
+
let pos = open.$loc.pos + open.$loc.length, empty = {
|
|
20613
|
+
token: "(?:)",
|
|
20614
|
+
$loc: { pos, length: close.$loc.pos - pos }
|
|
20615
|
+
}, children = [open, empty, close];
|
|
20616
|
+
return flags.length && children.push(flags), {
|
|
20617
|
+
type: "RegularExpressionLiteral",
|
|
20618
|
+
children
|
|
20619
|
+
};
|
|
20620
|
+
}
|
|
20382
20621
|
return {
|
|
20383
20622
|
type: "RegularExpressionLiteral",
|
|
20384
20623
|
children: $0
|
|
20385
20624
|
};
|
|
20386
|
-
})($$value, $$value[0], $$value[1], $$value[2], $$value[3]);
|
|
20625
|
+
})($$r.loc, $$value, $$value[0], $$value[1], $$value[2], $$value[3]);
|
|
20387
20626
|
return $$r.value = $$m, $$ctx.exit?.("HeregexLiteral", $$state, $$r, $$eventData), $$r;
|
|
20388
20627
|
}
|
|
20389
|
-
var HeregexBody$parser = (0, import_lib2.$S)((0, import_lib2.$N)(
|
|
20628
|
+
var HeregexBody$parser = (0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($L76, 'HeregexBody "/"')), (0, import_lib2.$Q)(HeregexPart));
|
|
20390
20629
|
function HeregexBody($$ctx, $$state) {
|
|
20391
20630
|
let $$entered = $$ctx.enter?.("HeregexBody", $$state);
|
|
20392
20631
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20395,12 +20634,12 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20395
20634
|
$$ctx.exit?.("HeregexBody", $$state, void 0, $$eventData);
|
|
20396
20635
|
return;
|
|
20397
20636
|
}
|
|
20398
|
-
let $$m = /* @__PURE__ */ (function(
|
|
20399
|
-
return
|
|
20637
|
+
let $$m = /* @__PURE__ */ (function(body) {
|
|
20638
|
+
return body;
|
|
20400
20639
|
})($$r.value[1]);
|
|
20401
20640
|
return $$r.value = $$m, $$ctx.exit?.("HeregexBody", $$state, $$r, $$eventData), $$r;
|
|
20402
20641
|
}
|
|
20403
|
-
var HeregexPart$1$parser = (0, import_lib2.$S)(CoffeeInterpolationEnabled, CoffeeStringSubstitution), HeregexPart$2$parser = (0, import_lib2.$S)(TemplateSubstitution), HeregexPart$3$parser = (0, import_lib2.$EXPECT)($
|
|
20642
|
+
var HeregexPart$1$parser = (0, import_lib2.$S)(CoffeeInterpolationEnabled, CoffeeStringSubstitution), HeregexPart$2$parser = (0, import_lib2.$S)(TemplateSubstitution), HeregexPart$3$parser = (0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R55, "HeregexPart /\\\\./")), HeregexPart$4$parser = (0, import_lib2.$S)(HeregexComment), HeregexPart$5$parser = (0, import_lib2.$EXPECT)($R56, "HeregexPart /[\\s]+/"), HeregexPart$6$parser = (0, import_lib2.$EXPECT)($R57, "HeregexPart /\\/(?!\\/\\/)/"), HeregexPart$7$parser = (0, import_lib2.$EXPECT)($R58, "HeregexPart /[^[\\/\\s#$\\\\]+|[#$]/");
|
|
20404
20643
|
function HeregexPart$0($$ctx, $$state) {
|
|
20405
20644
|
return RegularExpressionClass($$ctx, $$state);
|
|
20406
20645
|
}
|
|
@@ -20426,22 +20665,9 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20426
20665
|
let $$r = HeregexPart$3$parser($$ctx, $$state);
|
|
20427
20666
|
if (!$$r)
|
|
20428
20667
|
return;
|
|
20429
|
-
let $$m = (function($loc,
|
|
20430
|
-
|
|
20431
|
-
|
|
20432
|
-
case `
|
|
20433
|
-
`:
|
|
20434
|
-
token = "\\n";
|
|
20435
|
-
break;
|
|
20436
|
-
case "\r":
|
|
20437
|
-
token = "\\r";
|
|
20438
|
-
break;
|
|
20439
|
-
case " ":
|
|
20440
|
-
token = " ";
|
|
20441
|
-
break;
|
|
20442
|
-
}
|
|
20443
|
-
return { $loc, token };
|
|
20444
|
-
})($$r.loc, $$r.value[0]);
|
|
20668
|
+
let $$m = (function($loc, escape) {
|
|
20669
|
+
return { $loc, token: heregexEscapes[escape[1]] ?? escape };
|
|
20670
|
+
})($$r.loc, $$r.value);
|
|
20445
20671
|
return $$r.value = $$m, $$r;
|
|
20446
20672
|
}
|
|
20447
20673
|
function HeregexPart$4($$ctx, $$state) {
|
|
@@ -20505,7 +20731,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20505
20731
|
let $$eventData = $$entered?.data, $$final = HeregexComment$0($$ctx, $$state) || HeregexComment$1($$ctx, $$state);
|
|
20506
20732
|
return $$ctx.exit?.("HeregexComment", $$state, $$final, $$eventData), $$final;
|
|
20507
20733
|
}
|
|
20508
|
-
var RegularExpressionBody$parser = (0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
20734
|
+
var RegularExpressionBody$parser = (0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R59, "RegularExpressionBody /[*\\/\\r\\n]/"))), (0, import_lib2.$Q)(RegExpPart));
|
|
20509
20735
|
function RegularExpressionBody($$ctx, $$state) {
|
|
20510
20736
|
let $$entered = $$ctx.enter?.("RegularExpressionBody", $$state);
|
|
20511
20737
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20524,21 +20750,21 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20524
20750
|
let $$eventData = $$entered?.data, $$final = RegExpPart$0($$ctx, $$state) || RegExpPart$1($$ctx, $$state);
|
|
20525
20751
|
return $$ctx.exit?.("RegExpPart", $$state, $$final, $$eventData), $$final;
|
|
20526
20752
|
}
|
|
20527
|
-
var RegExpCharacter$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
20753
|
+
var RegExpCharacter$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R60, "RegExpCharacter /(?:\\\\.|[^[\\/\\r\\n])+/"));
|
|
20528
20754
|
function RegExpCharacter($$ctx, $$state) {
|
|
20529
20755
|
let $$entered = $$ctx.enter?.("RegExpCharacter", $$state);
|
|
20530
20756
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
20531
20757
|
let $$eventData = $$entered?.data, $$final = RegExpCharacter$parser($$ctx, $$state);
|
|
20532
20758
|
return $$ctx.exit?.("RegExpCharacter", $$state, $$final, $$eventData), $$final;
|
|
20533
20759
|
}
|
|
20534
|
-
var RegularExpressionFlags$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
20760
|
+
var RegularExpressionFlags$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R61, "RegularExpressionFlags /(?:\\p{ID_Continue}|[\\u200C\\u200D$])*/"));
|
|
20535
20761
|
function RegularExpressionFlags($$ctx, $$state) {
|
|
20536
20762
|
let $$entered = $$ctx.enter?.("RegularExpressionFlags", $$state);
|
|
20537
20763
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
20538
20764
|
let $$eventData = $$entered?.data, $$final = RegularExpressionFlags$parser($$ctx, $$state);
|
|
20539
20765
|
return $$ctx.exit?.("RegularExpressionFlags", $$state, $$final, $$eventData), $$final;
|
|
20540
20766
|
}
|
|
20541
|
-
var TemplateLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
20767
|
+
var TemplateLiteral$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R62, "TemplateLiteral /(?=[`'\"])/"), _TemplateLiteral);
|
|
20542
20768
|
function TemplateLiteral($$ctx, $$state) {
|
|
20543
20769
|
let $$entered = $$ctx.enter?.("TemplateLiteral", $$state);
|
|
20544
20770
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20618,7 +20844,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20618
20844
|
})($$value[0], $$value[2]), $$final = $$m !== import_lib2.SKIP ? ($$r.value = $$m, $$r) : void 0;
|
|
20619
20845
|
return $$ctx.exit?.("TemplateSubstitution", $$state, $$final, $$eventData), $$final;
|
|
20620
20846
|
}
|
|
20621
|
-
var TemplateCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
20847
|
+
var TemplateCharacters$parser = (0, import_lib2.$EXPECT)($R63, "TemplateCharacters /(?:\\$(?!\\{)|\\\\.|[^$`])+/");
|
|
20622
20848
|
function TemplateCharacters($$ctx, $$state) {
|
|
20623
20849
|
let $$entered = $$ctx.enter?.("TemplateCharacters", $$state);
|
|
20624
20850
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20632,7 +20858,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20632
20858
|
})($$r.loc, $$r.value[0]);
|
|
20633
20859
|
return $$r.value = $$m, $$ctx.exit?.("TemplateCharacters", $$state, $$r, $$eventData), $$r;
|
|
20634
20860
|
}
|
|
20635
|
-
var TemplateBlockCharacters$parser = (0, import_lib2.$EXPECT)($
|
|
20861
|
+
var TemplateBlockCharacters$parser = (0, import_lib2.$EXPECT)($R64, "TemplateBlockCharacters /(?:\\$(?!\\{)|`(?!``)|\\\\.|[^$`])+/");
|
|
20636
20862
|
function TemplateBlockCharacters($$ctx, $$state) {
|
|
20637
20863
|
let $$entered = $$ctx.enter?.("TemplateBlockCharacters", $$state);
|
|
20638
20864
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20646,7 +20872,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20646
20872
|
})($$r.loc, $$r.value[0]);
|
|
20647
20873
|
return $$r.value = $$m, $$ctx.exit?.("TemplateBlockCharacters", $$state, $$r, $$eventData), $$r;
|
|
20648
20874
|
}
|
|
20649
|
-
var ReservedWord$0$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
20875
|
+
var ReservedWord$0$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R65, "ReservedWord /(?:off|yes|on|no)/")), NonIdContinue, CoffeeBooleansEnabled), ReservedWord$1$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R66, "ReservedWord /isnt/")), NonIdContinue, CoffeeIsntEnabled), ReservedWord$2$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R67, "ReservedWord /by/")), NonIdContinue, CoffeeForLoopsEnabled), ReservedWord$3$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R68, "ReservedWord /of/")), NonIdContinue, CoffeeOfEnabled), ReservedWord$4$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R69, "ReservedWord /(?:instanceof|interface|protected|continue|debugger|function|default|extends|finally|private|delete|export|import|public|return|static|switch|typeof|unless|await|break|catch|class|const|false|super|throw|until|while|yield|case|else|enum|loop|null|this|true|void|with|and|for|let|new|not|try|var|do|if|in|is|or)/")), NonIdContinue);
|
|
20650
20876
|
function ReservedWord$0($$ctx, $$state) {
|
|
20651
20877
|
let $$r = ReservedWord$0$parser($$ctx, $$state);
|
|
20652
20878
|
if (!$$r)
|
|
@@ -20698,7 +20924,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20698
20924
|
let $$eventData = $$entered?.data, $$final = ReservedWord$0($$ctx, $$state) || ReservedWord$1($$ctx, $$state) || ReservedWord$2($$ctx, $$state) || ReservedWord$3($$ctx, $$state) || ReservedWord$4($$ctx, $$state);
|
|
20699
20925
|
return $$ctx.exit?.("ReservedWord", $$state, $$final, $$eventData), $$final;
|
|
20700
20926
|
}
|
|
20701
|
-
var Comment$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
20927
|
+
var Comment$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R70, "Comment /(?=\\/|#)/"), _Comment);
|
|
20702
20928
|
function Comment($$ctx, $$state) {
|
|
20703
20929
|
let $$entered = $$ctx.enter?.("Comment", $$state);
|
|
20704
20930
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20737,7 +20963,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20737
20963
|
let $$eventData = $$entered?.data, $$final = SingleLineComment$0($$ctx, $$state) || SingleLineComment$1($$ctx, $$state);
|
|
20738
20964
|
return $$ctx.exit?.("SingleLineComment", $$state, $$final, $$eventData), $$final;
|
|
20739
20965
|
}
|
|
20740
|
-
var JSSingleLineComment$parser = (0, import_lib2.$EXPECT)($
|
|
20966
|
+
var JSSingleLineComment$parser = (0, import_lib2.$EXPECT)($R71, "JSSingleLineComment /\\/\\/(?!\\/(?!\\/))[^\\r\\n]*/");
|
|
20741
20967
|
function JSSingleLineComment($$ctx, $$state) {
|
|
20742
20968
|
let $$entered = $$ctx.enter?.("JSSingleLineComment", $$state);
|
|
20743
20969
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20763,7 +20989,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20763
20989
|
let $$eventData = $$entered?.data, $$final = MultiLineComment$0($$ctx, $$state) || MultiLineComment$1($$ctx, $$state);
|
|
20764
20990
|
return $$ctx.exit?.("MultiLineComment", $$state, $$final, $$eventData), $$final;
|
|
20765
20991
|
}
|
|
20766
|
-
var JSMultiLineComment$parser = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L139, 'JSMultiLineComment "/*"'), (0, import_lib2.$Q)((0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($L140, 'JSMultiLineComment "*/"')), (0, import_lib2.$EXPECT)($
|
|
20992
|
+
var JSMultiLineComment$parser = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L139, 'JSMultiLineComment "/*"'), (0, import_lib2.$Q)((0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($L140, 'JSMultiLineComment "*/"')), (0, import_lib2.$EXPECT)($R72, "JSMultiLineComment /./"))), (0, import_lib2.$EXPECT)($L140, 'JSMultiLineComment "*/"')));
|
|
20767
20993
|
function JSMultiLineComment($$ctx, $$state) {
|
|
20768
20994
|
let $$entered = $$ctx.enter?.("JSMultiLineComment", $$state);
|
|
20769
20995
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20777,7 +21003,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20777
21003
|
})($$r.loc, $$r.value);
|
|
20778
21004
|
return $$r.value = $$m, $$ctx.exit?.("JSMultiLineComment", $$state, $$r, $$eventData), $$r;
|
|
20779
21005
|
}
|
|
20780
|
-
var CoffeeSingleLineComment$parser = (0, import_lib2.$EXPECT)($
|
|
21006
|
+
var CoffeeSingleLineComment$parser = (0, import_lib2.$EXPECT)($R73, "CoffeeSingleLineComment /#(?!##(?!#))([^\\r\\n]*)/");
|
|
20781
21007
|
function CoffeeSingleLineComment($$ctx, $$state) {
|
|
20782
21008
|
let $$entered = $$ctx.enter?.("CoffeeSingleLineComment", $$state);
|
|
20783
21009
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20791,7 +21017,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20791
21017
|
})($$r.loc, $$r.value[1]);
|
|
20792
21018
|
return $$r.value = $$m, $$ctx.exit?.("CoffeeSingleLineComment", $$state, $$r, $$eventData), $$r;
|
|
20793
21019
|
}
|
|
20794
|
-
var CoffeeMultiLineComment$parser = (0, import_lib2.$S)(CoffeeHereCommentStart, (0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
21020
|
+
var CoffeeMultiLineComment$parser = (0, import_lib2.$S)(CoffeeHereCommentStart, (0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R74, "CoffeeMultiLineComment /[^]*?###/")));
|
|
20795
21021
|
function CoffeeMultiLineComment($$ctx, $$state) {
|
|
20796
21022
|
let $$entered = $$ctx.enter?.("CoffeeMultiLineComment", $$state);
|
|
20797
21023
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20805,14 +21031,14 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20805
21031
|
})($$r.loc, $$r.value[1]);
|
|
20806
21032
|
return $$r.value = $$m, $$ctx.exit?.("CoffeeMultiLineComment", $$state, $$r, $$eventData), $$r;
|
|
20807
21033
|
}
|
|
20808
|
-
var CoffeeHereCommentStart$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
21034
|
+
var CoffeeHereCommentStart$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R75, "CoffeeHereCommentStart /###(?!#)/"));
|
|
20809
21035
|
function CoffeeHereCommentStart($$ctx, $$state) {
|
|
20810
21036
|
let $$entered = $$ctx.enter?.("CoffeeHereCommentStart", $$state);
|
|
20811
21037
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
20812
21038
|
let $$eventData = $$entered?.data, $$final = CoffeeHereCommentStart$parser($$ctx, $$state);
|
|
20813
21039
|
return $$ctx.exit?.("CoffeeHereCommentStart", $$state, $$final, $$eventData), $$final;
|
|
20814
21040
|
}
|
|
20815
|
-
var InlineComment$0$parser = (0, import_lib2.$EXPECT)($
|
|
21041
|
+
var InlineComment$0$parser = (0, import_lib2.$EXPECT)($R76, "InlineComment /\\/\\*(?:(?!\\*\\/)[^\\r\\n])*\\*\\//");
|
|
20816
21042
|
function InlineComment$0($$ctx, $$state) {
|
|
20817
21043
|
let $$r = InlineComment$0$parser($$ctx, $$state);
|
|
20818
21044
|
if (!$$r)
|
|
@@ -20845,7 +21071,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20845
21071
|
let $$eventData = $$entered?.data, $$final = TrailingComment$parser($$ctx, $$state);
|
|
20846
21072
|
return $$ctx.exit?.("TrailingComment", $$state, $$final, $$eventData), $$final;
|
|
20847
21073
|
}
|
|
20848
|
-
var _$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
21074
|
+
var _$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R77, "_ /(?=[ \\t\\/\\\\#])/"), (0, import_lib2.$P)((0, import_lib2.$C)(NonNewlineWhitespace, InlineComment)));
|
|
20849
21075
|
function _($$ctx, $$state) {
|
|
20850
21076
|
let $$entered = $$ctx.enter?.("_", $$state);
|
|
20851
21077
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -20859,7 +21085,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20859
21085
|
})($$r.value[1]);
|
|
20860
21086
|
return $$r.value = $$m, $$ctx.exit?.("_", $$state, $$r, $$eventData), $$r;
|
|
20861
21087
|
}
|
|
20862
|
-
var NonNewlineWhitespace$0$parser = (0, import_lib2.$EXPECT)($
|
|
21088
|
+
var NonNewlineWhitespace$0$parser = (0, import_lib2.$EXPECT)($R22, "NonNewlineWhitespace /[ \\t]+/"), NonNewlineWhitespace$1$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L141, 'NonNewlineWhitespace "\\\\\\\\"'), CoffeeLineContinuationEnabled, EOL);
|
|
20863
21089
|
function NonNewlineWhitespace$0($$ctx, $$state) {
|
|
20864
21090
|
let $$r = NonNewlineWhitespace$0$parser($$ctx, $$state);
|
|
20865
21091
|
if (!$$r)
|
|
@@ -20898,7 +21124,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20898
21124
|
})($$r.value);
|
|
20899
21125
|
return $$r.value = $$m, $$ctx.exit?.("Trimmed_", $$state, $$r, $$eventData), $$r;
|
|
20900
21126
|
}
|
|
20901
|
-
var __$0$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
21127
|
+
var __$0$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R78, "__ /(?=\\s|\\/|#)/"), (0, import_lib2.$Q)((0, import_lib2.$C)(Whitespace, Comment))), __$1$parser = (0, import_lib2.$EXPECT)($L0, '__ ""');
|
|
20902
21128
|
function __$0($$ctx, $$state) {
|
|
20903
21129
|
let $$r = __$0$parser($$ctx, $$state);
|
|
20904
21130
|
if (!$$r)
|
|
@@ -20917,7 +21143,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
20917
21143
|
let $$eventData = $$entered?.data, $$final = __$0($$ctx, $$state) || __$1($$ctx, $$state);
|
|
20918
21144
|
return $$ctx.exit?.("__", $$state, $$final, $$eventData), $$final;
|
|
20919
21145
|
}
|
|
20920
|
-
var Whitespace$parser = (0, import_lib2.$EXPECT)($
|
|
21146
|
+
var Whitespace$parser = (0, import_lib2.$EXPECT)($R56, "Whitespace /[\\s]+/");
|
|
20921
21147
|
function Whitespace($$ctx, $$state) {
|
|
20922
21148
|
let $$entered = $$ctx.enter?.("Whitespace", $$state);
|
|
20923
21149
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -21025,7 +21251,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
21025
21251
|
})($$r.value);
|
|
21026
21252
|
return $$r.value = $$m, $$ctx.exit?.("SemicolonDelimiter", $$state, $$r, $$eventData), $$r;
|
|
21027
21253
|
}
|
|
21028
|
-
var NonIdContinue$parser = (0, import_lib2.$EXPECT)($
|
|
21254
|
+
var NonIdContinue$parser = (0, import_lib2.$EXPECT)($RD2, () => `NonIdContinue /${$RD2.source}/`);
|
|
21029
21255
|
function NonIdContinue($$ctx, $$state) {
|
|
21030
21256
|
let $$entered = $$ctx.enter?.("NonIdContinue", $$state);
|
|
21031
21257
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -21304,7 +21530,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
21304
21530
|
})($$r.loc);
|
|
21305
21531
|
return $$r.value = $$m, $$ctx.exit?.("CoffeeSubstitutionStart", $$state, $$r, $$eventData), $$r;
|
|
21306
21532
|
}
|
|
21307
|
-
var Colon$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L15, 'Colon ":"'), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($
|
|
21533
|
+
var Colon$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L15, 'Colon ":"'), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($R79, "Colon /[=:]/")));
|
|
21308
21534
|
function Colon($$ctx, $$state) {
|
|
21309
21535
|
let $$entered = $$ctx.enter?.("Colon", $$state);
|
|
21310
21536
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -21416,7 +21642,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
21416
21642
|
})($$r.loc, $$r.value[0]);
|
|
21417
21643
|
return $$r.value = $$m, $$ctx.exit?.("Do", $$state, $$r, $$eventData), $$r;
|
|
21418
21644
|
}
|
|
21419
|
-
var Dot$0$parser = (0, import_lib2.$EXPECT)($L7, 'Dot "."'), Dot$1$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
21645
|
+
var Dot$0$parser = (0, import_lib2.$EXPECT)($L7, 'Dot "."'), Dot$1$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R80, "Dot /['\u2019]s/"), Trimmed_);
|
|
21420
21646
|
function Dot$0($$ctx, $$state) {
|
|
21421
21647
|
let $$r = Dot$0$parser($$ctx, $$state);
|
|
21422
21648
|
if (!$$r)
|
|
@@ -22553,7 +22779,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
22553
22779
|
})($$value[0], $$value[1]);
|
|
22554
22780
|
return $$r.value = $$m, $$ctx.exit?.("JSXImplicitFragment", $$state, $$r, $$eventData), $$r;
|
|
22555
22781
|
}
|
|
22556
|
-
var JSXTag$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
22782
|
+
var JSXTag$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R81, "JSXTag /(?=[<])/"), _JSXTag);
|
|
22557
22783
|
function JSXTag($$ctx, $$state) {
|
|
22558
22784
|
let $$entered = $$ctx.enter?.("JSXTag", $$state);
|
|
22559
22785
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -22792,7 +23018,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
22792
23018
|
let $$eventData = $$entered?.data, $$final = JSXElementName$0($$ctx, $$state) || JSXElementName$1($$ctx, $$state);
|
|
22793
23019
|
return $$ctx.exit?.("JSXElementName", $$state, $$final, $$eventData), $$final;
|
|
22794
23020
|
}
|
|
22795
|
-
var JSXIdentifierName$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
23021
|
+
var JSXIdentifierName$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R82, "JSXIdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*/"));
|
|
22796
23022
|
function JSXIdentifierName($$ctx, $$state) {
|
|
22797
23023
|
let $$entered = $$ctx.enter?.("JSXIdentifierName", $$state);
|
|
22798
23024
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -22852,7 +23078,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
22852
23078
|
})($$r.value);
|
|
22853
23079
|
return $$r.value = $$m, $$ctx.exit?.("JSXAttributes", $$state, $$r, $$eventData), $$r;
|
|
22854
23080
|
}
|
|
22855
|
-
var JSXAttribute$0$parser = (0, import_lib2.$S)(BracedObjectLiteral), JSXAttribute$1$parser = (0, import_lib2.$S)(JSXAttributeName, (0, import_lib2.$C)(JSXAttributeInitializer, (0, import_lib2.$Y)(JSXAttributeSpace))), JSXAttribute$2$parser = (0, import_lib2.$S)(InsertInlineOpenBrace, DotDotDot, InlineJSXAttributeValue, InsertCloseBrace, (0, import_lib2.$Y)(JSXAttributeSpace)), JSXAttribute$3$parser = (0, import_lib2.$S)(AtThis, (0, import_lib2.$E)(Identifier), (0, import_lib2.$Q)(InlineJSXCallExpressionRest), (0, import_lib2.$Y)(JSXAttributeSpace)), JSXAttribute$4$parser = (0, import_lib2.$S)(Identifier, (0, import_lib2.$P)(InlineJSXCallExpressionRest), (0, import_lib2.$Y)(JSXAttributeSpace)), JSXAttribute$5$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L177, 'JSXAttribute "#"'), JSXShorthandString), JSXAttribute$6$parser = (0, import_lib2.$S)(Dot, JSXShorthandString), JSXAttribute$7$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
23081
|
+
var JSXAttribute$0$parser = (0, import_lib2.$S)(BracedObjectLiteral), JSXAttribute$1$parser = (0, import_lib2.$S)(JSXAttributeName, (0, import_lib2.$C)(JSXAttributeInitializer, (0, import_lib2.$Y)(JSXAttributeSpace))), JSXAttribute$2$parser = (0, import_lib2.$S)(InsertInlineOpenBrace, DotDotDot, InlineJSXAttributeValue, InsertCloseBrace, (0, import_lib2.$Y)(JSXAttributeSpace)), JSXAttribute$3$parser = (0, import_lib2.$S)(AtThis, (0, import_lib2.$E)(Identifier), (0, import_lib2.$Q)(InlineJSXCallExpressionRest), (0, import_lib2.$Y)(JSXAttributeSpace)), JSXAttribute$4$parser = (0, import_lib2.$S)(Identifier, (0, import_lib2.$P)(InlineJSXCallExpressionRest), (0, import_lib2.$Y)(JSXAttributeSpace)), JSXAttribute$5$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L177, 'JSXAttribute "#"'), JSXShorthandString), JSXAttribute$6$parser = (0, import_lib2.$S)(Dot, JSXShorthandString), JSXAttribute$7$parser = (0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R83, "JSXAttribute /[!+-]/")), JSXAttributeName, (0, import_lib2.$Y)(JSXAttributeSpace));
|
|
22856
23082
|
function JSXAttribute$0($$ctx, $$state) {
|
|
22857
23083
|
let $$r = JSXAttribute$0$parser($$ctx, $$state);
|
|
22858
23084
|
if (!$$r)
|
|
@@ -22963,14 +23189,14 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
22963
23189
|
let $$eventData = $$entered?.data, $$final = JSXAttribute$0($$ctx, $$state) || JSXAttribute$1($$ctx, $$state) || JSXAttribute$2($$ctx, $$state) || JSXAttribute$3($$ctx, $$state) || JSXAttribute$4($$ctx, $$state) || JSXAttribute$5($$ctx, $$state) || JSXAttribute$6($$ctx, $$state) || JSXAttribute$7($$ctx, $$state);
|
|
22964
23190
|
return $$ctx.exit?.("JSXAttribute", $$state, $$final, $$eventData), $$final;
|
|
22965
23191
|
}
|
|
22966
|
-
var JSXAttributeSpace$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
23192
|
+
var JSXAttributeSpace$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R84, "JSXAttributeSpace /[\\s>]|\\/>/"));
|
|
22967
23193
|
function JSXAttributeSpace($$ctx, $$state) {
|
|
22968
23194
|
let $$entered = $$ctx.enter?.("JSXAttributeSpace", $$state);
|
|
22969
23195
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
22970
23196
|
let $$eventData = $$entered?.data, $$final = JSXAttributeSpace$parser($$ctx, $$state);
|
|
22971
23197
|
return $$ctx.exit?.("JSXAttributeSpace", $$state, $$final, $$eventData), $$final;
|
|
22972
23198
|
}
|
|
22973
|
-
var JSXShorthandString$0$parser = (0, import_lib2.$EXPECT)($
|
|
23199
|
+
var JSXShorthandString$0$parser = (0, import_lib2.$EXPECT)($R85, "JSXShorthandString /(?:[\\w\\-:]+|\\([^()]*\\)|\\[[^\\[\\]]*\\])+/"), JSXShorthandString$1$parser = (0, import_lib2.$S)(TemplateLiteral), JSXShorthandString$3$parser = (0, import_lib2.$S)(OpenBrace, PostfixedExpressionOrCommaLoop, __, CloseBrace);
|
|
22974
23200
|
function JSXShorthandString$0($$ctx, $$state) {
|
|
22975
23201
|
let $$r = JSXShorthandString$0$parser($$ctx, $$state);
|
|
22976
23202
|
if (!$$r)
|
|
@@ -23049,7 +23275,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
23049
23275
|
let $$eventData = $$entered?.data, $$final = JSXAttributeInitializer$0($$ctx, $$state) || JSXAttributeInitializer$1($$ctx, $$state);
|
|
23050
23276
|
return $$ctx.exit?.("JSXAttributeInitializer", $$state, $$final, $$eventData), $$final;
|
|
23051
23277
|
}
|
|
23052
|
-
var JSXAttributeValue$0$parser = (0, import_lib2.$S)(OpenBrace, PostfixedExpressionOrCommaLoop, __, CloseBrace), JSXAttributeValue$3$parser = (0, import_lib2.$S)(InsertInlineOpenBrace, InlineJSXAttributeValue, InsertCloseBrace, (0, import_lib2.$Y)(JSXAttributeSpace)), JSXAttributeValue$4$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
23278
|
+
var JSXAttributeValue$0$parser = (0, import_lib2.$S)(OpenBrace, PostfixedExpressionOrCommaLoop, __, CloseBrace), JSXAttributeValue$3$parser = (0, import_lib2.$S)(InsertInlineOpenBrace, InlineJSXAttributeValue, InsertCloseBrace, (0, import_lib2.$Y)(JSXAttributeSpace)), JSXAttributeValue$4$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R86, `JSXAttributeValue /"[^"]*"|'[^']*'/`));
|
|
23053
23279
|
function JSXAttributeValue$0($$ctx, $$state) {
|
|
23054
23280
|
return JSXAttributeValue$0$parser($$ctx, $$state);
|
|
23055
23281
|
}
|
|
@@ -23091,7 +23317,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
23091
23317
|
})($$value, $$value[0], $$value[1]);
|
|
23092
23318
|
return $$r.value = $$m, $$ctx.exit?.("InlineJSXAttributeValue", $$state, $$r, $$eventData), $$r;
|
|
23093
23319
|
}
|
|
23094
|
-
var InlineJSXBinaryOpRHS$parser = (0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($
|
|
23320
|
+
var InlineJSXBinaryOpRHS$parser = (0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($R87, "InlineJSXBinaryOpRHS /[<>]/")), BinaryOp, InlineJSXUnaryExpression);
|
|
23095
23321
|
function InlineJSXBinaryOpRHS($$ctx, $$state) {
|
|
23096
23322
|
let $$entered = $$ctx.enter?.("InlineJSXBinaryOpRHS", $$state);
|
|
23097
23323
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -23119,7 +23345,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
23119
23345
|
})($$value[0], $$value[1], $$value[2]);
|
|
23120
23346
|
return $$r.value = $$m, $$ctx.exit?.("InlineJSXUnaryExpression", $$state, $$r, $$eventData), $$r;
|
|
23121
23347
|
}
|
|
23122
|
-
var InlineJSXUnaryOp$parser = (0, import_lib2.$EXPECT)($
|
|
23348
|
+
var InlineJSXUnaryOp$parser = (0, import_lib2.$EXPECT)($R88, "InlineJSXUnaryOp /[!~+-](?!\\s|[!~+-]*&)/");
|
|
23123
23349
|
function InlineJSXUnaryOp($$ctx, $$state) {
|
|
23124
23350
|
let $$entered = $$ctx.enter?.("InlineJSXUnaryOp", $$state);
|
|
23125
23351
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -23551,7 +23777,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
23551
23777
|
})($$r.value[1]);
|
|
23552
23778
|
return $$r.value = $$m, $$ctx.exit?.("JSXComment", $$state, $$r, $$eventData), $$r;
|
|
23553
23779
|
}
|
|
23554
|
-
var JSXCommentContent$parser = (0, import_lib2.$EXPECT)($
|
|
23780
|
+
var JSXCommentContent$parser = (0, import_lib2.$EXPECT)($R89, "JSXCommentContent /(?:-[^-]|[^-]*)*/");
|
|
23555
23781
|
function JSXCommentContent($$ctx, $$state) {
|
|
23556
23782
|
let $$entered = $$ctx.enter?.("JSXCommentContent", $$state);
|
|
23557
23783
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -23565,7 +23791,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
23565
23791
|
})($$r.loc, $$r.value[0]);
|
|
23566
23792
|
return $$r.value = $$m, $$ctx.exit?.("JSXCommentContent", $$state, $$r, $$eventData), $$r;
|
|
23567
23793
|
}
|
|
23568
|
-
var JSXText$parser = (0, import_lib2.$EXPECT)($
|
|
23794
|
+
var JSXText$parser = (0, import_lib2.$EXPECT)($R90, "JSXText /[^{}<>\\r\\n]+/");
|
|
23569
23795
|
function JSXText($$ctx, $$state) {
|
|
23570
23796
|
let $$entered = $$ctx.enter?.("JSXText", $$state);
|
|
23571
23797
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -24453,7 +24679,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
24453
24679
|
})($$value[0], $$value[1]);
|
|
24454
24680
|
return $$r.value = $$m, $$ctx.exit?.("TypeProperty", $$state, $$r, $$eventData), $$r;
|
|
24455
24681
|
}
|
|
24456
|
-
var TypeIndexSignature$parser = (0, import_lib2.$S)((0, import_lib2.$E)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
24682
|
+
var TypeIndexSignature$parser = (0, import_lib2.$S)((0, import_lib2.$E)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R91, "TypeIndexSignature /[+-]?/"), Readonly, NotDedented)), OpenBracket, TypeIndex, CloseBracket, (0, import_lib2.$E)((0, import_lib2.$S)(__, (0, import_lib2.$EXPECT)($R15, "TypeIndexSignature /[+-]/"), (0, import_lib2.$Y)((0, import_lib2.$S)((0, import_lib2.$E)(_), QuestionMark)))));
|
|
24457
24683
|
function TypeIndexSignature($$ctx, $$state) {
|
|
24458
24684
|
let $$entered = $$ctx.enter?.("TypeIndexSignature", $$state);
|
|
24459
24685
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -25247,7 +25473,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
25247
25473
|
})($$value[0], $$value[0], $$value[1]);
|
|
25248
25474
|
return $$r.value = $$m, $$ctx.exit?.("TypeWithPostfix", $$state, $$r, $$eventData), $$r;
|
|
25249
25475
|
}
|
|
25250
|
-
var TypeConditional$0$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_lib2.$EXPECT)($
|
|
25476
|
+
var TypeConditional$0$parser = (0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_lib2.$EXPECT)($R92, "TypeConditional /(?=if|unless)/"), TypeIfThenElse), TypeConditional$1$parser = (0, import_lib2.$S)(TypeCondition, NotDedented, QuestionMark, __, Type, __, Colon, __, Type), TypeConditional$2$parser = TypeBinary;
|
|
25251
25477
|
function TypeConditional$0($$ctx, $$state) {
|
|
25252
25478
|
let $$r = TypeConditional$0$parser($$ctx, $$state);
|
|
25253
25479
|
if (!$$r)
|
|
@@ -25563,7 +25789,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
25563
25789
|
if (abstract && !new_ && (children[1] = {
|
|
25564
25790
|
type: "Error",
|
|
25565
25791
|
message: "abstract function types must be constructors (abstract new)"
|
|
25566
|
-
}), returnType.$loc && returnType.token === "") {
|
|
25792
|
+
}), "token" in returnType && returnType.$loc && returnType.token === "") {
|
|
25567
25793
|
let t = {
|
|
25568
25794
|
type: "VoidType",
|
|
25569
25795
|
$loc: returnType.$loc,
|
|
@@ -25659,7 +25885,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
25659
25885
|
let $$eventData = $$entered?.data, $$final = TypeApplicationStart$0($$ctx, $$state) || TypeApplicationStart$1($$ctx, $$state);
|
|
25660
25886
|
return $$ctx.exit?.("TypeApplicationStart", $$state, $$final, $$eventData), $$final;
|
|
25661
25887
|
}
|
|
25662
|
-
var ForbiddenImplicitTypeCalls$1$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
25888
|
+
var ForbiddenImplicitTypeCalls$1$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R93, "ForbiddenImplicitTypeCalls /[|&<!=\\-\u21D2\u2192]/")), ForbiddenImplicitTypeCalls$2$parser = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R94, "ForbiddenImplicitTypeCalls /(extends|not|is)(?!\\p{ID_Continue}|[\\u200C\\u200D$])/"));
|
|
25663
25889
|
function ForbiddenImplicitTypeCalls$0($$ctx, $$state) {
|
|
25664
25890
|
return ReservedBinary($$ctx, $$state);
|
|
25665
25891
|
}
|
|
@@ -25829,7 +26055,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
25829
26055
|
})($$value, $$value[1]);
|
|
25830
26056
|
return $$r.value = $$m, $$ctx.exit?.("TypeParameters", $$state, $$r, $$eventData), $$r;
|
|
25831
26057
|
}
|
|
25832
|
-
var TypeParameter$parser = (0, import_lib2.$S)(__, (0, import_lib2.$Q)((0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
26058
|
+
var TypeParameter$parser = (0, import_lib2.$S)(__, (0, import_lib2.$Q)((0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R95, "TypeParameter /const|in|out/")), _)), Identifier, (0, import_lib2.$E)(TypeConstraint), (0, import_lib2.$E)(TypeInitializer), TypeParameterDelimiter);
|
|
25833
26059
|
function TypeParameter($$ctx, $$state) {
|
|
25834
26060
|
let $$entered = $$ctx.enter?.("TypeParameter", $$state);
|
|
25835
26061
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -25895,14 +26121,14 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
25895
26121
|
})($$r.value);
|
|
25896
26122
|
return $$r.value = $$m, $$ctx.exit?.("ThisType", $$state, $$r, $$eventData), $$r;
|
|
25897
26123
|
}
|
|
25898
|
-
var Shebang$parser = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
26124
|
+
var Shebang$parser = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R96, "Shebang /#![^\\r\\n]*/")), EOL);
|
|
25899
26125
|
function Shebang($$ctx, $$state) {
|
|
25900
26126
|
let $$entered = $$ctx.enter?.("Shebang", $$state);
|
|
25901
26127
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
25902
26128
|
let $$eventData = $$entered?.data, $$final = Shebang$parser($$ctx, $$state);
|
|
25903
26129
|
return $$ctx.exit?.("Shebang", $$state, $$final, $$eventData), $$final;
|
|
25904
26130
|
}
|
|
25905
|
-
var CivetPrologue$0$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
26131
|
+
var CivetPrologue$0$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R97, "CivetPrologue /[\\t ]*/"), DoubleQuote, CivetPrologueContent, DoubleQuote, SimpleStatementDelimiter, (0, import_lib2.$EXPECT)($R21, "CivetPrologue /[ \\t]*/"), (0, import_lib2.$C)(EOL, (0, import_lib2.$Y)(RestOfLine))), CivetPrologue$1$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R97, "CivetPrologue /[\\t ]*/"), SingleQuote, CivetPrologueContent, SingleQuote, SimpleStatementDelimiter, (0, import_lib2.$EXPECT)($R21, "CivetPrologue /[ \\t]*/"), (0, import_lib2.$C)(EOL, (0, import_lib2.$Y)(RestOfLine)));
|
|
25906
26132
|
function CivetPrologue$0($$ctx, $$state) {
|
|
25907
26133
|
let $$r = CivetPrologue$0$parser($$ctx, $$state);
|
|
25908
26134
|
if (!$$r)
|
|
@@ -25927,7 +26153,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
25927
26153
|
let $$eventData = $$entered?.data, $$final = CivetPrologue$0($$ctx, $$state) || CivetPrologue$1($$ctx, $$state);
|
|
25928
26154
|
return $$ctx.exit?.("CivetPrologue", $$state, $$final, $$eventData), $$final;
|
|
25929
26155
|
}
|
|
25930
|
-
var CivetPrologueContent$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L248, 'CivetPrologueContent "civet"'), NonIdContinue, (0, import_lib2.$Q)(CivetOption), (0, import_lib2.$EXPECT)($
|
|
26156
|
+
var CivetPrologueContent$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($L248, 'CivetPrologueContent "civet"'), NonIdContinue, (0, import_lib2.$Q)(CivetOption), (0, import_lib2.$EXPECT)($R98, "CivetPrologueContent /[\\s]*/"));
|
|
25931
26157
|
function CivetPrologueContent($$ctx, $$state) {
|
|
25932
26158
|
let $$entered = $$ctx.enter?.("CivetPrologueContent", $$state);
|
|
25933
26159
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -25945,7 +26171,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
25945
26171
|
})($$r.value[2]);
|
|
25946
26172
|
return $$r.value = $$m, $$ctx.exit?.("CivetPrologueContent", $$state, $$r, $$eventData), $$r;
|
|
25947
26173
|
}
|
|
25948
|
-
var CivetOption$parser = (0, import_lib2.$EXPECT)($
|
|
26174
|
+
var CivetOption$parser = (0, import_lib2.$EXPECT)($R99, "CivetOption /\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([\\p{ID_Continue}.,+-]*))?/");
|
|
25949
26175
|
function CivetOption($$ctx, $$state) {
|
|
25950
26176
|
let $$entered = $$ctx.enter?.("CivetOption", $$state);
|
|
25951
26177
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -25970,14 +26196,14 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
25970
26196
|
})($$value[1], $$value[2], $$value[3], $$value[4]);
|
|
25971
26197
|
return $$r.value = $$m, $$ctx.exit?.("CivetOption", $$state, $$r, $$eventData), $$r;
|
|
25972
26198
|
}
|
|
25973
|
-
var UnknownPrologue$parser = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
26199
|
+
var UnknownPrologue$parser = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R97, "UnknownPrologue /[\\t ]*/")), StringLiteral, (0, import_lib2.$TEXT)(SimpleStatementDelimiter), EOS);
|
|
25974
26200
|
function UnknownPrologue($$ctx, $$state) {
|
|
25975
26201
|
let $$entered = $$ctx.enter?.("UnknownPrologue", $$state);
|
|
25976
26202
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
25977
26203
|
let $$eventData = $$entered?.data, $$final = UnknownPrologue$parser($$ctx, $$state);
|
|
25978
26204
|
return $$ctx.exit?.("UnknownPrologue", $$state, $$final, $$eventData), $$final;
|
|
25979
26205
|
}
|
|
25980
|
-
var TripleSlashDirective$parser = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
26206
|
+
var TripleSlashDirective$parser = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R100, "TripleSlashDirective /\\/\\/\\/[^\\r\\n]*/")), (0, import_lib2.$E)(EOS));
|
|
25981
26207
|
function TripleSlashDirective($$ctx, $$state) {
|
|
25982
26208
|
let $$entered = $$ctx.enter?.("TripleSlashDirective", $$state);
|
|
25983
26209
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26010,7 +26236,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
26010
26236
|
let $$eventData = $$entered?.data, $$final = PrologueString$0($$ctx, $$state) || PrologueString$1($$ctx, $$state);
|
|
26011
26237
|
return $$ctx.exit?.("PrologueString", $$state, $$final, $$eventData), $$final;
|
|
26012
26238
|
}
|
|
26013
|
-
var EOS$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
26239
|
+
var EOS$parser = (0, import_lib2.$S)((0, import_lib2.$EXPECT)($R101, "EOS /(?=[ \\t\\r\\n\\/#]|$)/"), (0, import_lib2.$P)(RestOfLine));
|
|
26014
26240
|
function EOS($$ctx, $$state) {
|
|
26015
26241
|
let $$entered = $$ctx.enter?.("EOS", $$state);
|
|
26016
26242
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26024,7 +26250,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
26024
26250
|
})($$r.value[1]);
|
|
26025
26251
|
return $$r.value = $$m, $$ctx.exit?.("EOS", $$state, $$r, $$eventData), $$r;
|
|
26026
26252
|
}
|
|
26027
|
-
var EOL$parser = (0, import_lib2.$EXPECT)($
|
|
26253
|
+
var EOL$parser = (0, import_lib2.$EXPECT)($R102, "EOL /\\r\\n|\\n|\\r|$/");
|
|
26028
26254
|
function EOL($$ctx, $$state) {
|
|
26029
26255
|
let $$entered = $$ctx.enter?.("EOL", $$state);
|
|
26030
26256
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26600,6 +26826,21 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
26600
26826
|
})(), $$final = $$m !== import_lib2.SKIP ? ($$r.value = $$m, $$r) : void 0;
|
|
26601
26827
|
return $$ctx.exit?.("ESArrowFunctionEnabled", $$state, $$final, $$eventData), $$final;
|
|
26602
26828
|
}
|
|
26829
|
+
var ESBraceBlockEnabled$parser = (0, import_lib2.$EXPECT)($L0, 'ESBraceBlockEnabled ""');
|
|
26830
|
+
function ESBraceBlockEnabled($$ctx, $$state) {
|
|
26831
|
+
let $$entered = $$ctx.enter?.("ESBraceBlockEnabled", $$state);
|
|
26832
|
+
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
26833
|
+
let $$eventData = $$entered?.data, $$r = ESBraceBlockEnabled$parser($$ctx, $$state);
|
|
26834
|
+
if (!$$r) {
|
|
26835
|
+
$$ctx.exit?.("ESBraceBlockEnabled", $$state, void 0, $$eventData);
|
|
26836
|
+
return;
|
|
26837
|
+
}
|
|
26838
|
+
let $$m = (function() {
|
|
26839
|
+
if (!config.esBraceBlock)
|
|
26840
|
+
return $skip;
|
|
26841
|
+
})(), $$final = $$m !== import_lib2.SKIP ? ($$r.value = $$m, $$r) : void 0;
|
|
26842
|
+
return $$ctx.exit?.("ESBraceBlockEnabled", $$state, $$final, $$eventData), $$final;
|
|
26843
|
+
}
|
|
26603
26844
|
var JSXCodeNestedEnabled$parser = (0, import_lib2.$EXPECT)($L0, 'JSXCodeNestedEnabled ""');
|
|
26604
26845
|
function JSXCodeNestedEnabled($$ctx, $$state) {
|
|
26605
26846
|
let $$entered = $$ctx.enter?.("JSXCodeNestedEnabled", $$state);
|
|
@@ -26806,14 +27047,14 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
26806
27047
|
let $$eventData = $$entered?.data, $$final = Prologue$parser($$ctx, $$state);
|
|
26807
27048
|
return $$ctx.exit?.("Prologue", $$state, $$final, $$eventData), $$final;
|
|
26808
27049
|
}
|
|
26809
|
-
var ProloguePrefix$parser = (0, import_lib2.$S)(Prologue, (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
27050
|
+
var ProloguePrefix$parser = (0, import_lib2.$S)(Prologue, (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R103, "ProloguePrefix /[^]*/")));
|
|
26810
27051
|
function ProloguePrefix($$ctx, $$state) {
|
|
26811
27052
|
let $$entered = $$ctx.enter?.("ProloguePrefix", $$state);
|
|
26812
27053
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
26813
27054
|
let $$eventData = $$entered?.data, $$final = ProloguePrefix$parser($$ctx, $$state);
|
|
26814
27055
|
return $$ctx.exit?.("ProloguePrefix", $$state, $$final, $$eventData), $$final;
|
|
26815
27056
|
}
|
|
26816
|
-
var Indent$parser = (0, import_lib2.$EXPECT)($
|
|
27057
|
+
var Indent$parser = (0, import_lib2.$EXPECT)($R21, "Indent /[ \\t]*/");
|
|
26817
27058
|
function Indent($$ctx, $$state) {
|
|
26818
27059
|
let $$entered = $$ctx.enter?.("Indent", $$state);
|
|
26819
27060
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
@@ -26847,11 +27088,17 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
26847
27088
|
})($$value, $$value), $$final = $$m !== import_lib2.SKIP ? ($$r.value = $$m, $$r) : void 0;
|
|
26848
27089
|
return $$ctx.exit?.("TrackIndented", $$state, $$final, $$eventData), $$final;
|
|
26849
27090
|
}
|
|
26850
|
-
var PushIndent$parser = (0, import_lib2.$Y)((0, import_lib2.$S)(EOS, TrackIndented));
|
|
27091
|
+
var PushIndent$0$parser = (0, import_lib2.$Y)((0, import_lib2.$S)(EOS, TrackIndented)), PushIndent$1$parser = (0, import_lib2.$Y)((0, import_lib2.$S)(EOL, TrackIndented));
|
|
27092
|
+
function PushIndent$0($$ctx, $$state) {
|
|
27093
|
+
return PushIndent$0$parser($$ctx, $$state);
|
|
27094
|
+
}
|
|
27095
|
+
function PushIndent$1($$ctx, $$state) {
|
|
27096
|
+
return PushIndent$1$parser($$ctx, $$state);
|
|
27097
|
+
}
|
|
26851
27098
|
function PushIndent($$ctx, $$state) {
|
|
26852
27099
|
let $$entered = $$ctx.enter?.("PushIndent", $$state);
|
|
26853
27100
|
if ($$entered && "cache" in $$entered) return $$entered.cache;
|
|
26854
|
-
let $$eventData = $$entered?.data, $$final = PushIndent$
|
|
27101
|
+
let $$eventData = $$entered?.data, $$final = PushIndent$0($$ctx, $$state) || PushIndent$1($$ctx, $$state);
|
|
26855
27102
|
return $$ctx.exit?.("PushIndent", $$state, $$final, $$eventData), $$final;
|
|
26856
27103
|
}
|
|
26857
27104
|
var PopIndent$parser = (0, import_lib2.$EXPECT)($L0, 'PopIndent ""');
|
|
@@ -27081,7 +27328,7 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
27081
27328
|
let root = parse(input, options);
|
|
27082
27329
|
return sync ? (filename = initialConfig = sync = null, root) : processProgramAsync(root).then(() => (filename = initialConfig = sync = null, root));
|
|
27083
27330
|
}
|
|
27084
|
-
var wellKnownSymbols = [
|
|
27331
|
+
var unicodeEscapePattern = String.raw`\\u\{0*(?:[\dA-Fa-f]{1,5}|10[\dA-Fa-f]{4})\}|\\u[\dA-Fa-f]{4}`, nonAsciiIdentifierPattern = String.raw`[^\u0000-\u007F\p{ID_Continue}\s÷—‖’•‥…⁇→⇒∈∉∋∌≔≠≡≢≣≤≥≪≫⋙▷⧺⩵⩶]`, wellKnownSymbols = [
|
|
27085
27332
|
"asyncIterator",
|
|
27086
27333
|
"hasInstance",
|
|
27087
27334
|
"isConcatSpreadable",
|
|
@@ -27096,6 +27343,16 @@ const `, convertNamedImportsToObject(runtimeNamed, !0, "destructuring"), " = ",
|
|
|
27096
27343
|
"toStringTag",
|
|
27097
27344
|
"unscopables"
|
|
27098
27345
|
];
|
|
27346
|
+
var heregexEscapes = {
|
|
27347
|
+
"\n": "\\n",
|
|
27348
|
+
"\r": "\\r",
|
|
27349
|
+
"\u2028": "\\u2028",
|
|
27350
|
+
"\u2029": "\\u2029",
|
|
27351
|
+
" ": "\\t",
|
|
27352
|
+
"\v": "\\v",
|
|
27353
|
+
"\f": "\\f",
|
|
27354
|
+
" ": " "
|
|
27355
|
+
};
|
|
27099
27356
|
|
|
27100
27357
|
// source/sourcemap.civet
|
|
27101
27358
|
var sourcemap_exports = {};
|