@putout/bundle 4.9.1 → 4.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/putout.js +1124 -1354
- package/bundle/putout.min.js +7 -7
- package/bundle/putout.slim.js +861 -620
- package/package.json +3 -4
- package/bundle/putout-slim.min.js +0 -13
package/bundle/putout.slim.js
CHANGED
|
@@ -2315,9 +2315,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, '__esModule', {
|
|
|
2315
2315
|
}), mod);
|
|
2316
2316
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== 'symbol' ? key + '' : key, value);
|
|
2317
2317
|
|
|
2318
|
-
// node_modules/picocolors/picocolors.js
|
|
2318
|
+
// ../babel-babel/node_modules/picocolors/picocolors.js
|
|
2319
2319
|
var require_picocolors = __commonJS({
|
|
2320
|
-
'node_modules/picocolors/picocolors.js'(exports2, module2) {
|
|
2320
|
+
'../babel-babel/node_modules/picocolors/picocolors.js'(exports2, module2) {
|
|
2321
2321
|
var p = browser$1 || {};
|
|
2322
2322
|
var argv = p.argv || [];
|
|
2323
2323
|
var env = p.env || {};
|
|
@@ -2400,9 +2400,9 @@ var require_picocolors = __commonJS({
|
|
|
2400
2400
|
},
|
|
2401
2401
|
});
|
|
2402
2402
|
|
|
2403
|
-
// node_modules/js-tokens/index.js
|
|
2404
|
-
var
|
|
2405
|
-
'node_modules/js-tokens/index.js'(exports2, module2) {
|
|
2403
|
+
// ../babel-babel/node_modules/js-tokens-BABEL_8_BREAKING-true/index.js
|
|
2404
|
+
var require_js_tokens_BABEL_8_BREAKING_true = __commonJS({
|
|
2405
|
+
'../babel-babel/node_modules/js-tokens-BABEL_8_BREAKING-true/index.js'(exports2, module2) {
|
|
2406
2406
|
var Identifier3;
|
|
2407
2407
|
var JSXIdentifier3;
|
|
2408
2408
|
var JSXPunctuator;
|
|
@@ -2423,19 +2423,19 @@ var require_js_tokens = __commonJS({
|
|
|
2423
2423
|
var TokensPrecedingExpression;
|
|
2424
2424
|
var WhiteSpace;
|
|
2425
2425
|
|
|
2426
|
-
RegularExpressionLiteral = /\/(?![*\/])(?:\[(?:[
|
|
2426
|
+
RegularExpressionLiteral = /\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;
|
|
2427
2427
|
Punctuator = /--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;
|
|
2428
|
-
Identifier3 = /(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]
|
|
2429
|
-
StringLiteral4 = /(['"])(?:
|
|
2428
|
+
Identifier3 = /(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;
|
|
2429
|
+
StringLiteral4 = /(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y;
|
|
2430
2430
|
NumericLiteral4 = /(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;
|
|
2431
|
-
Template = /[`}](?:[^`\\$]
|
|
2431
|
+
Template = /[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y;
|
|
2432
2432
|
WhiteSpace = /[\t\v\f\ufeff\p{Zs}]+/yu;
|
|
2433
2433
|
LineTerminatorSequence = /\r?\n|[\r\u2028\u2029]/y;
|
|
2434
|
-
MultiLineComment = /\/\*(?:[^*]
|
|
2434
|
+
MultiLineComment = /\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y;
|
|
2435
2435
|
SingleLineComment = /\/\/.*/y;
|
|
2436
2436
|
JSXPunctuator = /[<>.:={}]|\/(?![\/*])/y;
|
|
2437
2437
|
JSXIdentifier3 = /[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;
|
|
2438
|
-
JSXString = /(['"])(?:
|
|
2438
|
+
JSXString = /(['"])(?:(?!\1)[^])*(\1)?/y;
|
|
2439
2439
|
JSXText3 = /[^<>{}]+/y;
|
|
2440
2440
|
TokensPrecedingExpression = /^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;
|
|
2441
2441
|
TokensNotPrecedingObjectLiteral = /^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;
|
|
@@ -2902,9 +2902,16 @@ var require_js_tokens = __commonJS({
|
|
|
2902
2902
|
},
|
|
2903
2903
|
});
|
|
2904
2904
|
|
|
2905
|
-
// node_modules/
|
|
2905
|
+
// ../babel-babel/node_modules/js-tokens-BABEL_8_BREAKING-false/index.js
|
|
2906
|
+
var require_js_tokens = __commonJS({
|
|
2907
|
+
'../babel-babel/node_modules/js-tokens/index.js'(exports2, module2) {
|
|
2908
|
+
module2.exports = require_js_tokens_BABEL_8_BREAKING_true();
|
|
2909
|
+
},
|
|
2910
|
+
});
|
|
2911
|
+
|
|
2912
|
+
// ../babel-babel/node_modules/jsesc/jsesc.js
|
|
2906
2913
|
var require_jsesc = __commonJS({
|
|
2907
|
-
'node_modules/jsesc/jsesc.js'(exports2, module2) {
|
|
2914
|
+
'../babel-babel/node_modules/jsesc/jsesc.js'(exports2, module2) {
|
|
2908
2915
|
|
|
2909
2916
|
var object = {};
|
|
2910
2917
|
var hasOwnProperty = object.hasOwnProperty;
|
|
@@ -2968,10 +2975,6 @@ var require_jsesc = __commonJS({
|
|
|
2968
2975
|
return typeof value == 'number' || toString.call(value) == '[object Number]';
|
|
2969
2976
|
};
|
|
2970
2977
|
|
|
2971
|
-
var isBigInt = (value) => {
|
|
2972
|
-
return typeof value == 'bigint';
|
|
2973
|
-
};
|
|
2974
|
-
|
|
2975
2978
|
var isFunction5 = (value) => {
|
|
2976
2979
|
return typeof value == 'function';
|
|
2977
2980
|
};
|
|
@@ -3120,41 +3123,32 @@ var require_jsesc = __commonJS({
|
|
|
3120
3123
|
}
|
|
3121
3124
|
|
|
3122
3125
|
return '[' + newLine + result.join(',' + newLine) + newLine + (compact ? '' : oldIndent) + ']';
|
|
3123
|
-
} else if (isNumber2(argument)
|
|
3126
|
+
} else if (isNumber2(argument)) {
|
|
3124
3127
|
if (json) {
|
|
3125
|
-
return JSON.stringify(
|
|
3128
|
+
return JSON.stringify(argument);
|
|
3126
3129
|
}
|
|
3127
3130
|
|
|
3128
|
-
let result2;
|
|
3129
|
-
|
|
3130
3131
|
if (useDecNumbers) {
|
|
3131
|
-
|
|
3132
|
-
}
|
|
3132
|
+
return String(argument);
|
|
3133
|
+
}
|
|
3134
|
+
|
|
3135
|
+
if (useHexNumbers) {
|
|
3133
3136
|
let hexadecimal2 = argument.toString(16);
|
|
3134
3137
|
|
|
3135
3138
|
if (!lowercaseHex) {
|
|
3136
3139
|
hexadecimal2 = hexadecimal2.toUpperCase();
|
|
3137
3140
|
}
|
|
3138
3141
|
|
|
3139
|
-
|
|
3140
|
-
} else if (useBinNumbers) {
|
|
3141
|
-
result2 = '0b' + argument.toString(2);
|
|
3142
|
-
} else if (useOctNumbers) {
|
|
3143
|
-
result2 = '0o' + argument.toString(8);
|
|
3142
|
+
return '0x' + hexadecimal2;
|
|
3144
3143
|
}
|
|
3145
|
-
|
|
3146
3144
|
|
|
3147
|
-
if (
|
|
3148
|
-
return
|
|
3145
|
+
if (useBinNumbers) {
|
|
3146
|
+
return '0b' + argument.toString(2);
|
|
3149
3147
|
}
|
|
3150
3148
|
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
if (json) {
|
|
3154
|
-
return JSON.stringify(Number(argument));
|
|
3149
|
+
if (useOctNumbers) {
|
|
3150
|
+
return '0o' + argument.toString(8);
|
|
3155
3151
|
}
|
|
3156
|
-
|
|
3157
|
-
return argument + 'n';
|
|
3158
3152
|
} else if (!isObject(argument)) {
|
|
3159
3153
|
if (json) {
|
|
3160
3154
|
return JSON.stringify(argument) || 'null';
|
|
@@ -3177,7 +3171,6 @@ var require_jsesc = __commonJS({
|
|
|
3177
3171
|
return '{' + newLine + result.join(',' + newLine) + newLine + (compact ? '' : oldIndent) + '}';
|
|
3178
3172
|
}
|
|
3179
3173
|
|
|
3180
|
-
|
|
3181
3174
|
}
|
|
3182
3175
|
|
|
3183
3176
|
const regex = options.escapeEverything ? escapeEverythingRegex : escapeNonAsciiRegex;
|
|
@@ -3264,19 +3257,20 @@ var require_jsesc = __commonJS({
|
|
|
3264
3257
|
},
|
|
3265
3258
|
});
|
|
3266
3259
|
|
|
3267
|
-
// node_modules/
|
|
3260
|
+
// ../babel-babel/node_modules/ms/index.js
|
|
3261
|
+
// ../babel-babel/node_modules/debug/src/common.js
|
|
3268
3262
|
var require_browser = () => () => ({
|
|
3269
3263
|
enabled: false,
|
|
3270
3264
|
});
|
|
3271
3265
|
|
|
3272
|
-
// node_modules/
|
|
3266
|
+
// ../babel-babel/node_modules/has-flag/index.js
|
|
3273
3267
|
var require_node = () => () => ({
|
|
3274
3268
|
enabled: false,
|
|
3275
3269
|
});
|
|
3276
3270
|
|
|
3277
|
-
// node_modules/debug/src/index.js
|
|
3271
|
+
// ../babel-babel/node_modules/debug/src/index.js
|
|
3278
3272
|
var require_src = __commonJS({
|
|
3279
|
-
'node_modules/debug/src/index.js'(exports2, module2) {
|
|
3273
|
+
'../babel-babel/node_modules/debug/src/index.js'(exports2, module2) {
|
|
3280
3274
|
if (typeof browser$1 === 'undefined' || browser$1.type === 'renderer' || browser$1.browser === true || browser$1.__nwjs) {
|
|
3281
3275
|
module2.exports = require_browser();
|
|
3282
3276
|
} else {
|
|
@@ -3299,7 +3293,7 @@ __export(index_exports, {
|
|
|
3299
3293
|
types: () => lib_exports,
|
|
3300
3294
|
});
|
|
3301
3295
|
var bundle = __toCommonJS(index_exports);
|
|
3302
|
-
//
|
|
3296
|
+
// ../babel-babel/packages/babel-types/lib/index.js
|
|
3303
3297
|
var lib_exports = {};
|
|
3304
3298
|
|
|
3305
3299
|
__export(lib_exports, {
|
|
@@ -3467,6 +3461,7 @@ __export(lib_exports, {
|
|
|
3467
3461
|
ModuleExpression: () => ModuleExpression,
|
|
3468
3462
|
NODE_FIELDS: () => NODE_FIELDS$1,
|
|
3469
3463
|
NODE_PARENT_VALIDATIONS: () => NODE_PARENT_VALIDATIONS,
|
|
3464
|
+
NODE_UNION_SHAPES__PRIVATE: () => NODE_UNION_SHAPES__PRIVATE,
|
|
3470
3465
|
NUMBER_BINARY_OPERATORS: () => NUMBER_BINARY_OPERATORS,
|
|
3471
3466
|
NUMBER_UNARY_OPERATORS: () => NUMBER_UNARY_OPERATORS,
|
|
3472
3467
|
NewExpression: () => NewExpression$1,
|
|
@@ -3507,7 +3502,6 @@ __export(lib_exports, {
|
|
|
3507
3502
|
PrivateName: () => PrivateName$1,
|
|
3508
3503
|
Program: () => Program$1,
|
|
3509
3504
|
QualifiedTypeIdentifier: () => QualifiedTypeIdentifier,
|
|
3510
|
-
RecordExpression: () => RecordExpression,
|
|
3511
3505
|
RegExpLiteral: () => RegExpLiteral,
|
|
3512
3506
|
RestElement: () => RestElement$1,
|
|
3513
3507
|
ReturnStatement: () => ReturnStatement$1,
|
|
@@ -3609,7 +3603,6 @@ __export(lib_exports, {
|
|
|
3609
3603
|
ThrowStatement: () => ThrowStatement,
|
|
3610
3604
|
TopicReference: () => TopicReference,
|
|
3611
3605
|
TryStatement: () => TryStatement,
|
|
3612
|
-
TupleExpression: () => TupleExpression,
|
|
3613
3606
|
TupleTypeAnnotation: () => TupleTypeAnnotation,
|
|
3614
3607
|
TypeAlias: () => TypeAlias,
|
|
3615
3608
|
TypeAnnotation: () => TypeAnnotation,
|
|
@@ -3828,7 +3821,6 @@ __export(lib_exports, {
|
|
|
3828
3821
|
assertProperty: () => assertProperty,
|
|
3829
3822
|
assertPureish: () => assertPureish,
|
|
3830
3823
|
assertQualifiedTypeIdentifier: () => assertQualifiedTypeIdentifier,
|
|
3831
|
-
assertRecordExpression: () => assertRecordExpression,
|
|
3832
3824
|
assertRegExpLiteral: () => assertRegExpLiteral,
|
|
3833
3825
|
assertRegexLiteral: () => assertRegexLiteral,
|
|
3834
3826
|
assertRestElement: () => assertRestElement,
|
|
@@ -3929,7 +3921,6 @@ __export(lib_exports, {
|
|
|
3929
3921
|
assertThrowStatement: () => assertThrowStatement,
|
|
3930
3922
|
assertTopicReference: () => assertTopicReference,
|
|
3931
3923
|
assertTryStatement: () => assertTryStatement,
|
|
3932
|
-
assertTupleExpression: () => assertTupleExpression,
|
|
3933
3924
|
assertTupleTypeAnnotation: () => assertTupleTypeAnnotation,
|
|
3934
3925
|
assertTypeAlias: () => assertTypeAlias,
|
|
3935
3926
|
assertTypeAnnotation: () => assertTypeAnnotation,
|
|
@@ -4067,7 +4058,7 @@ __export(lib_exports, {
|
|
|
4067
4058
|
isArrayExpression: () => isArrayExpression$a,
|
|
4068
4059
|
isArrayPattern: () => isArrayPattern,
|
|
4069
4060
|
isArrayTypeAnnotation: () => isArrayTypeAnnotation,
|
|
4070
|
-
isArrowFunctionExpression: () => isArrowFunctionExpression$
|
|
4061
|
+
isArrowFunctionExpression: () => isArrowFunctionExpression$3,
|
|
4071
4062
|
isAssignmentExpression: () => isAssignmentExpression$3,
|
|
4072
4063
|
isAssignmentPattern: () => isAssignmentPattern$3,
|
|
4073
4064
|
isAwaitExpression: () => isAwaitExpression$1,
|
|
@@ -4219,7 +4210,7 @@ __export(lib_exports, {
|
|
|
4219
4210
|
isNumberLiteralTypeAnnotation: () => isNumberLiteralTypeAnnotation,
|
|
4220
4211
|
isNumberTypeAnnotation: () => isNumberTypeAnnotation,
|
|
4221
4212
|
isNumericLiteral: () => isNumericLiteral,
|
|
4222
|
-
isObjectExpression: () => isObjectExpression$
|
|
4213
|
+
isObjectExpression: () => isObjectExpression$a,
|
|
4223
4214
|
isObjectMember: () => isObjectMember,
|
|
4224
4215
|
isObjectMethod: () => isObjectMethod$1,
|
|
4225
4216
|
isObjectPattern: () => isObjectPattern$3,
|
|
@@ -4248,7 +4239,6 @@ __export(lib_exports, {
|
|
|
4248
4239
|
isProperty: () => isProperty$1,
|
|
4249
4240
|
isPureish: () => isPureish,
|
|
4250
4241
|
isQualifiedTypeIdentifier: () => isQualifiedTypeIdentifier,
|
|
4251
|
-
isRecordExpression: () => isRecordExpression,
|
|
4252
4242
|
isReferenced: () => isReferenced,
|
|
4253
4243
|
isRegExpLiteral: () => isRegExpLiteral$2,
|
|
4254
4244
|
isRegexLiteral: () => isRegexLiteral,
|
|
@@ -4352,7 +4342,6 @@ __export(lib_exports, {
|
|
|
4352
4342
|
isThrowStatement: () => isThrowStatement,
|
|
4353
4343
|
isTopicReference: () => isTopicReference,
|
|
4354
4344
|
isTryStatement: () => isTryStatement,
|
|
4355
|
-
isTupleExpression: () => isTupleExpression,
|
|
4356
4345
|
isTupleTypeAnnotation: () => isTupleTypeAnnotation,
|
|
4357
4346
|
isType: () => isType,
|
|
4358
4347
|
isTypeAlias: () => isTypeAlias,
|
|
@@ -4435,7 +4424,6 @@ __export(lib_exports, {
|
|
|
4435
4424
|
program: () => program$2,
|
|
4436
4425
|
qualifiedTypeIdentifier: () => qualifiedTypeIdentifier,
|
|
4437
4426
|
react: () => react,
|
|
4438
|
-
recordExpression: () => recordExpression,
|
|
4439
4427
|
regExpLiteral: () => regExpLiteral,
|
|
4440
4428
|
regexLiteral: () => RegexLiteral,
|
|
4441
4429
|
removeComments: () => removeComments,
|
|
@@ -4542,7 +4530,6 @@ __export(lib_exports, {
|
|
|
4542
4530
|
tsUnionType: () => tsUnionType$1,
|
|
4543
4531
|
tsUnknownKeyword: () => tsUnknownKeyword,
|
|
4544
4532
|
tsVoidKeyword: () => tsVoidKeyword,
|
|
4545
|
-
tupleExpression: () => tupleExpression,
|
|
4546
4533
|
tupleTypeAnnotation: () => tupleTypeAnnotation,
|
|
4547
4534
|
typeAlias: () => typeAlias,
|
|
4548
4535
|
typeAnnotation: () => typeAnnotation,
|
|
@@ -4567,9 +4554,9 @@ __export(lib_exports, {
|
|
|
4567
4554
|
yieldExpression: () => yieldExpression,
|
|
4568
4555
|
});
|
|
4569
4556
|
|
|
4570
|
-
//
|
|
4571
|
-
var nonASCIIidentifierStartChars = '\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\
|
|
4572
|
-
var nonASCIIidentifierChars = '\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\
|
|
4557
|
+
// ../babel-babel/packages/babel-helper-validator-identifier/lib/index.js
|
|
4558
|
+
var nonASCIIidentifierStartChars = '\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC';
|
|
4559
|
+
var nonASCIIidentifierChars = '\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65';
|
|
4573
4560
|
var nonASCIIidentifierStart = new RegExp('[' + nonASCIIidentifierStartChars + ']');
|
|
4574
4561
|
var nonASCIIidentifier = new RegExp('[' + nonASCIIidentifierStartChars + nonASCIIidentifierChars + ']');
|
|
4575
4562
|
|
|
@@ -4674,7 +4661,9 @@ var astralIdentifierStartCodes = [
|
|
|
4674
4661
|
21,
|
|
4675
4662
|
11,
|
|
4676
4663
|
25,
|
|
4677
|
-
|
|
4664
|
+
7,
|
|
4665
|
+
25,
|
|
4666
|
+
39,
|
|
4678
4667
|
55,
|
|
4679
4668
|
7,
|
|
4680
4669
|
1,
|
|
@@ -4719,8 +4708,8 @@ var astralIdentifierStartCodes = [
|
|
|
4719
4708
|
7,
|
|
4720
4709
|
1,
|
|
4721
4710
|
17,
|
|
4722
|
-
|
|
4723
|
-
|
|
4711
|
+
5,
|
|
4712
|
+
57,
|
|
4724
4713
|
28,
|
|
4725
4714
|
11,
|
|
4726
4715
|
0,
|
|
@@ -4904,7 +4893,9 @@ var astralIdentifierStartCodes = [
|
|
|
4904
4893
|
31,
|
|
4905
4894
|
15,
|
|
4906
4895
|
0,
|
|
4907
|
-
|
|
4896
|
+
24,
|
|
4897
|
+
43,
|
|
4898
|
+
261,
|
|
4908
4899
|
18,
|
|
4909
4900
|
16,
|
|
4910
4901
|
0,
|
|
@@ -4952,7 +4943,11 @@ var astralIdentifierStartCodes = [
|
|
|
4952
4943
|
44,
|
|
4953
4944
|
212,
|
|
4954
4945
|
63,
|
|
4955
|
-
|
|
4946
|
+
33,
|
|
4947
|
+
24,
|
|
4948
|
+
3,
|
|
4949
|
+
24,
|
|
4950
|
+
45,
|
|
4956
4951
|
74,
|
|
4957
4952
|
6,
|
|
4958
4953
|
0,
|
|
@@ -4962,13 +4957,15 @@ var astralIdentifierStartCodes = [
|
|
|
4962
4957
|
1,
|
|
4963
4958
|
2,
|
|
4964
4959
|
0,
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4960
|
+
15,
|
|
4961
|
+
4,
|
|
4962
|
+
10,
|
|
4963
|
+
7381,
|
|
4969
4964
|
42,
|
|
4970
|
-
|
|
4971
|
-
|
|
4965
|
+
31,
|
|
4966
|
+
98,
|
|
4967
|
+
114,
|
|
4968
|
+
8702,
|
|
4972
4969
|
3,
|
|
4973
4970
|
2,
|
|
4974
4971
|
6,
|
|
@@ -5076,7 +5073,19 @@ var astralIdentifierStartCodes = [
|
|
|
5076
5073
|
29,
|
|
5077
5074
|
3,
|
|
5078
5075
|
0,
|
|
5079
|
-
|
|
5076
|
+
208,
|
|
5077
|
+
30,
|
|
5078
|
+
2,
|
|
5079
|
+
2,
|
|
5080
|
+
2,
|
|
5081
|
+
1,
|
|
5082
|
+
2,
|
|
5083
|
+
6,
|
|
5084
|
+
3,
|
|
5085
|
+
4,
|
|
5086
|
+
10,
|
|
5087
|
+
1,
|
|
5088
|
+
225,
|
|
5080
5089
|
6,
|
|
5081
5090
|
2,
|
|
5082
5091
|
3,
|
|
@@ -5159,12 +5168,10 @@ var astralIdentifierStartCodes = [
|
|
|
5159
5168
|
4421,
|
|
5160
5169
|
42719,
|
|
5161
5170
|
33,
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5171
|
+
4381,
|
|
5172
|
+
3,
|
|
5173
|
+
5773,
|
|
5165
5174
|
3,
|
|
5166
|
-
5761,
|
|
5167
|
-
15,
|
|
5168
5175
|
7472,
|
|
5169
5176
|
16,
|
|
5170
5177
|
621,
|
|
@@ -5173,7 +5180,7 @@ var astralIdentifierStartCodes = [
|
|
|
5173
5180
|
1507,
|
|
5174
5181
|
4938,
|
|
5175
5182
|
6,
|
|
5176
|
-
|
|
5183
|
+
8489,
|
|
5177
5184
|
];
|
|
5178
5185
|
var astralIdentifierCodes = [
|
|
5179
5186
|
509,
|
|
@@ -5206,8 +5213,8 @@ var astralIdentifierCodes = [
|
|
|
5206
5213
|
4,
|
|
5207
5214
|
318,
|
|
5208
5215
|
1,
|
|
5209
|
-
|
|
5210
|
-
|
|
5216
|
+
78,
|
|
5217
|
+
5,
|
|
5211
5218
|
71,
|
|
5212
5219
|
10,
|
|
5213
5220
|
50,
|
|
@@ -5352,7 +5359,9 @@ var astralIdentifierCodes = [
|
|
|
5352
5359
|
10,
|
|
5353
5360
|
47,
|
|
5354
5361
|
15,
|
|
5355
|
-
|
|
5362
|
+
199,
|
|
5363
|
+
7,
|
|
5364
|
+
137,
|
|
5356
5365
|
9,
|
|
5357
5366
|
54,
|
|
5358
5367
|
7,
|
|
@@ -5384,7 +5393,9 @@ var astralIdentifierCodes = [
|
|
|
5384
5393
|
4,
|
|
5385
5394
|
9,
|
|
5386
5395
|
9,
|
|
5387
|
-
|
|
5396
|
+
55,
|
|
5397
|
+
9,
|
|
5398
|
+
266,
|
|
5388
5399
|
3,
|
|
5389
5400
|
10,
|
|
5390
5401
|
1,
|
|
@@ -5484,7 +5495,15 @@ var astralIdentifierCodes = [
|
|
|
5484
5495
|
1,
|
|
5485
5496
|
2,
|
|
5486
5497
|
9,
|
|
5487
|
-
|
|
5498
|
+
233,
|
|
5499
|
+
0,
|
|
5500
|
+
3,
|
|
5501
|
+
0,
|
|
5502
|
+
8,
|
|
5503
|
+
1,
|
|
5504
|
+
6,
|
|
5505
|
+
0,
|
|
5506
|
+
475,
|
|
5488
5507
|
6,
|
|
5489
5508
|
110,
|
|
5490
5509
|
6,
|
|
@@ -5636,13 +5655,10 @@ var reservedWords = {
|
|
|
5636
5655
|
'public',
|
|
5637
5656
|
'static',
|
|
5638
5657
|
'yield',
|
|
5639
|
-
]
|
|
5640
|
-
strictBind: ['eval', 'arguments'],
|
|
5641
|
-
};
|
|
5658
|
+
]};
|
|
5642
5659
|
|
|
5643
5660
|
var keywords$1 = new Set(reservedWords.keyword);
|
|
5644
5661
|
var reservedWordsStrictSet = new Set(reservedWords.strict);
|
|
5645
|
-
new Set(reservedWords.strictBind);
|
|
5646
5662
|
|
|
5647
5663
|
function isReservedWord(word, inModule) {
|
|
5648
5664
|
return inModule && word === 'await' || word === 'enum';
|
|
@@ -5656,7 +5672,7 @@ function isKeyword(word) {
|
|
|
5656
5672
|
return keywords$1.has(word);
|
|
5657
5673
|
}
|
|
5658
5674
|
|
|
5659
|
-
//
|
|
5675
|
+
// ../babel-babel/packages/babel-helper-string-parser/lib/index.js
|
|
5660
5676
|
var _isDigit = function isDigit(code2) {
|
|
5661
5677
|
return code2 >= 48 && code2 <= 57;
|
|
5662
5678
|
};
|
|
@@ -5957,7 +5973,7 @@ function readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors) {
|
|
|
5957
5973
|
};
|
|
5958
5974
|
}
|
|
5959
5975
|
|
|
5960
|
-
//
|
|
5976
|
+
// ../babel-babel/packages/babel-types/lib/index.js
|
|
5961
5977
|
function shallowEqual(actual, expected) {
|
|
5962
5978
|
const keys2 = Object.keys(expected);
|
|
5963
5979
|
|
|
@@ -6349,7 +6365,7 @@ function isProgram$5(node, opts) {
|
|
|
6349
6365
|
return opts == null || shallowEqual(node, opts);
|
|
6350
6366
|
}
|
|
6351
6367
|
|
|
6352
|
-
function isObjectExpression$
|
|
6368
|
+
function isObjectExpression$a(node, opts) {
|
|
6353
6369
|
if (!node)
|
|
6354
6370
|
return false;
|
|
6355
6371
|
|
|
@@ -6549,7 +6565,7 @@ function isArrayPattern(node, opts) {
|
|
|
6549
6565
|
return opts == null || shallowEqual(node, opts);
|
|
6550
6566
|
}
|
|
6551
6567
|
|
|
6552
|
-
function isArrowFunctionExpression$
|
|
6568
|
+
function isArrowFunctionExpression$3(node, opts) {
|
|
6553
6569
|
if (!node)
|
|
6554
6570
|
return false;
|
|
6555
6571
|
|
|
@@ -7779,26 +7795,6 @@ function isExportDefaultSpecifier(node, opts) {
|
|
|
7779
7795
|
return opts == null || shallowEqual(node, opts);
|
|
7780
7796
|
}
|
|
7781
7797
|
|
|
7782
|
-
function isRecordExpression(node, opts) {
|
|
7783
|
-
if (!node)
|
|
7784
|
-
return false;
|
|
7785
|
-
|
|
7786
|
-
if (node.type !== 'RecordExpression')
|
|
7787
|
-
return false;
|
|
7788
|
-
|
|
7789
|
-
return opts == null || shallowEqual(node, opts);
|
|
7790
|
-
}
|
|
7791
|
-
|
|
7792
|
-
function isTupleExpression(node, opts) {
|
|
7793
|
-
if (!node)
|
|
7794
|
-
return false;
|
|
7795
|
-
|
|
7796
|
-
if (node.type !== 'TupleExpression')
|
|
7797
|
-
return false;
|
|
7798
|
-
|
|
7799
|
-
return opts == null || shallowEqual(node, opts);
|
|
7800
|
-
}
|
|
7801
|
-
|
|
7802
7798
|
function isModuleExpression(node, opts) {
|
|
7803
7799
|
if (!node)
|
|
7804
7800
|
return false;
|
|
@@ -8700,8 +8696,6 @@ function isExpression$2(node, opts) {
|
|
|
8700
8696
|
case 'JSXFragment':
|
|
8701
8697
|
case 'BindExpression':
|
|
8702
8698
|
case 'DoExpression':
|
|
8703
|
-
case 'RecordExpression':
|
|
8704
|
-
case 'TupleExpression':
|
|
8705
8699
|
case 'ModuleExpression':
|
|
8706
8700
|
case 'TopicReference':
|
|
8707
8701
|
case 'PipelineTopicExpression':
|
|
@@ -10127,6 +10121,7 @@ var NODE_FIELDS$1 = {};
|
|
|
10127
10121
|
var BUILDER_KEYS = {};
|
|
10128
10122
|
var DEPRECATED_KEYS = {};
|
|
10129
10123
|
var NODE_PARENT_VALIDATIONS = {};
|
|
10124
|
+
var NODE_UNION_SHAPES__PRIVATE = {};
|
|
10130
10125
|
|
|
10131
10126
|
function getType$1(val) {
|
|
10132
10127
|
if (Array.isArray(val)) {
|
|
@@ -10365,6 +10360,7 @@ var validTypeOpts = /* @__PURE__ */new Set([
|
|
|
10365
10360
|
'inherits',
|
|
10366
10361
|
'visitor',
|
|
10367
10362
|
'validate',
|
|
10363
|
+
'unionShape',
|
|
10368
10364
|
]);
|
|
10369
10365
|
var validFieldKeys = /* @__PURE__ */new Set([
|
|
10370
10366
|
'default',
|
|
@@ -10478,6 +10474,10 @@ function defineType$5(type, opts = {}) {
|
|
|
10478
10474
|
NODE_PARENT_VALIDATIONS[type] = opts.validate;
|
|
10479
10475
|
}
|
|
10480
10476
|
|
|
10477
|
+
if (opts.unionShape) {
|
|
10478
|
+
NODE_UNION_SHAPES__PRIVATE[type] = opts.unionShape;
|
|
10479
|
+
}
|
|
10480
|
+
|
|
10481
10481
|
store$1[type] = opts;
|
|
10482
10482
|
}
|
|
10483
10483
|
|
|
@@ -10489,6 +10489,7 @@ var utils$1 = /* @__PURE__ */Object.freeze({
|
|
|
10489
10489
|
FLIPPED_ALIAS_KEYS,
|
|
10490
10490
|
NODE_FIELDS: NODE_FIELDS$1,
|
|
10491
10491
|
NODE_PARENT_VALIDATIONS,
|
|
10492
|
+
NODE_UNION_SHAPES__PRIVATE,
|
|
10492
10493
|
VISITOR_KEYS,
|
|
10493
10494
|
allExpandedTypes,
|
|
10494
10495
|
arrayOf,
|
|
@@ -10510,6 +10511,29 @@ var utils$1 = /* @__PURE__ */Object.freeze({
|
|
|
10510
10511
|
validateType,
|
|
10511
10512
|
});
|
|
10512
10513
|
|
|
10514
|
+
var classMethodOrPropertyUnionShapeCommon = (allowPrivateName = false) => ({
|
|
10515
|
+
unionShape: {
|
|
10516
|
+
discriminator: 'computed',
|
|
10517
|
+
shapes: [{
|
|
10518
|
+
name: 'computed',
|
|
10519
|
+
value: [true],
|
|
10520
|
+
properties: {
|
|
10521
|
+
key: {
|
|
10522
|
+
validate: assertNodeType('Expression'),
|
|
10523
|
+
},
|
|
10524
|
+
},
|
|
10525
|
+
}, {
|
|
10526
|
+
name: 'nonComputed',
|
|
10527
|
+
value: [false],
|
|
10528
|
+
properties: {
|
|
10529
|
+
key: {
|
|
10530
|
+
validate: allowPrivateName ? assertNodeType('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral', 'PrivateName') : assertNodeType('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral'),
|
|
10531
|
+
},
|
|
10532
|
+
},
|
|
10533
|
+
}],
|
|
10534
|
+
},
|
|
10535
|
+
});
|
|
10536
|
+
|
|
10513
10537
|
var defineType$4 = defineAliasedType('Standardized');
|
|
10514
10538
|
|
|
10515
10539
|
defineType$4('ArrayExpression', {
|
|
@@ -11152,6 +11176,26 @@ defineType$4('MemberExpression', {
|
|
|
11152
11176
|
'LVal',
|
|
11153
11177
|
'PatternLike',
|
|
11154
11178
|
],
|
|
11179
|
+
unionShape: {
|
|
11180
|
+
discriminator: 'computed',
|
|
11181
|
+
shapes: [{
|
|
11182
|
+
name: 'computed',
|
|
11183
|
+
value: [true],
|
|
11184
|
+
properties: {
|
|
11185
|
+
property: {
|
|
11186
|
+
validate: assertNodeType('Expression'),
|
|
11187
|
+
},
|
|
11188
|
+
},
|
|
11189
|
+
}, {
|
|
11190
|
+
name: 'nonComputed',
|
|
11191
|
+
value: [false],
|
|
11192
|
+
properties: {
|
|
11193
|
+
property: {
|
|
11194
|
+
validate: assertNodeType('Identifier', 'PrivateName'),
|
|
11195
|
+
},
|
|
11196
|
+
},
|
|
11197
|
+
}],
|
|
11198
|
+
},
|
|
11155
11199
|
fields: Object.assign({
|
|
11156
11200
|
object: {
|
|
11157
11201
|
validate: assertNodeType('Expression', 'Super'),
|
|
@@ -11218,7 +11262,7 @@ defineType$4('ObjectExpression', {
|
|
|
11218
11262
|
properties: validateArrayOfType('ObjectMethod', 'ObjectProperty', 'SpreadElement'),
|
|
11219
11263
|
},
|
|
11220
11264
|
});
|
|
11221
|
-
defineType$4('ObjectMethod', {
|
|
11265
|
+
defineType$4('ObjectMethod', Object.assign({
|
|
11222
11266
|
builder: [
|
|
11223
11267
|
'kind',
|
|
11224
11268
|
'key',
|
|
@@ -11236,6 +11280,7 @@ defineType$4('ObjectMethod', {
|
|
|
11236
11280
|
'returnType',
|
|
11237
11281
|
'body',
|
|
11238
11282
|
],
|
|
11283
|
+
}, classMethodOrPropertyUnionShapeCommon(), {
|
|
11239
11284
|
fields: Object.assign({}, functionCommon(), functionTypeAnnotationCommon(), {
|
|
11240
11285
|
kind: Object.assign({
|
|
11241
11286
|
validate: assertOneOf('method', 'get', 'set'),
|
|
@@ -11279,7 +11324,7 @@ defineType$4('ObjectMethod', {
|
|
|
11279
11324
|
'Method',
|
|
11280
11325
|
'ObjectMember',
|
|
11281
11326
|
],
|
|
11282
|
-
});
|
|
11327
|
+
}));
|
|
11283
11328
|
defineType$4('ObjectProperty', {
|
|
11284
11329
|
builder: [
|
|
11285
11330
|
'key',
|
|
@@ -11288,6 +11333,26 @@ defineType$4('ObjectProperty', {
|
|
|
11288
11333
|
'shorthand',
|
|
11289
11334
|
...[],
|
|
11290
11335
|
],
|
|
11336
|
+
unionShape: {
|
|
11337
|
+
discriminator: 'computed',
|
|
11338
|
+
shapes: [{
|
|
11339
|
+
name: 'computed',
|
|
11340
|
+
value: [true],
|
|
11341
|
+
properties: {
|
|
11342
|
+
key: {
|
|
11343
|
+
validate: assertNodeType('Expression'),
|
|
11344
|
+
},
|
|
11345
|
+
},
|
|
11346
|
+
}, {
|
|
11347
|
+
name: 'nonComputed',
|
|
11348
|
+
value: [false],
|
|
11349
|
+
properties: {
|
|
11350
|
+
key: {
|
|
11351
|
+
validate: assertNodeType('Identifier', 'StringLiteral', 'NumericLiteral', 'BigIntLiteral', 'PrivateName'),
|
|
11352
|
+
},
|
|
11353
|
+
},
|
|
11354
|
+
}],
|
|
11355
|
+
},
|
|
11291
11356
|
fields: {
|
|
11292
11357
|
computed: {
|
|
11293
11358
|
default: false,
|
|
@@ -12151,7 +12216,7 @@ var classMethodOrDeclareMethodCommon = () => Object.assign({}, functionCommon(),
|
|
|
12151
12216
|
},
|
|
12152
12217
|
});
|
|
12153
12218
|
|
|
12154
|
-
defineType$4('ClassMethod', {
|
|
12219
|
+
defineType$4('ClassMethod', Object.assign({
|
|
12155
12220
|
aliases: [
|
|
12156
12221
|
'Function',
|
|
12157
12222
|
'Scopable',
|
|
@@ -12177,12 +12242,13 @@ defineType$4('ClassMethod', {
|
|
|
12177
12242
|
'returnType',
|
|
12178
12243
|
'body',
|
|
12179
12244
|
],
|
|
12245
|
+
}, classMethodOrPropertyUnionShapeCommon(), {
|
|
12180
12246
|
fields: Object.assign({}, classMethodOrDeclareMethodCommon(), functionTypeAnnotationCommon(), {
|
|
12181
12247
|
body: {
|
|
12182
12248
|
validate: assertNodeType('BlockStatement'),
|
|
12183
12249
|
},
|
|
12184
12250
|
}),
|
|
12185
|
-
});
|
|
12251
|
+
}));
|
|
12186
12252
|
defineType$4('ObjectPattern', {
|
|
12187
12253
|
visitor: [
|
|
12188
12254
|
'decorators',
|
|
@@ -12410,7 +12476,7 @@ defineType$4('OptionalCallExpression', {
|
|
|
12410
12476
|
},
|
|
12411
12477
|
}, {}),
|
|
12412
12478
|
});
|
|
12413
|
-
defineType$4('ClassProperty', {
|
|
12479
|
+
defineType$4('ClassProperty', Object.assign({
|
|
12414
12480
|
visitor: [
|
|
12415
12481
|
'decorators',
|
|
12416
12482
|
'variance',
|
|
@@ -12427,6 +12493,7 @@ defineType$4('ClassProperty', {
|
|
|
12427
12493
|
'static',
|
|
12428
12494
|
],
|
|
12429
12495
|
aliases: ['Property'],
|
|
12496
|
+
}, classMethodOrPropertyUnionShapeCommon(), {
|
|
12430
12497
|
fields: Object.assign({}, classMethodOrPropertyCommon(), {
|
|
12431
12498
|
value: {
|
|
12432
12499
|
validate: assertNodeType('Expression'),
|
|
@@ -12457,8 +12524,8 @@ defineType$4('ClassProperty', {
|
|
|
12457
12524
|
optional: true,
|
|
12458
12525
|
},
|
|
12459
12526
|
}),
|
|
12460
|
-
});
|
|
12461
|
-
defineType$4('ClassAccessorProperty', {
|
|
12527
|
+
}));
|
|
12528
|
+
defineType$4('ClassAccessorProperty', Object.assign({
|
|
12462
12529
|
visitor: [
|
|
12463
12530
|
'decorators',
|
|
12464
12531
|
'key',
|
|
@@ -12474,6 +12541,7 @@ defineType$4('ClassAccessorProperty', {
|
|
|
12474
12541
|
'static',
|
|
12475
12542
|
],
|
|
12476
12543
|
aliases: ['Property', 'Accessor'],
|
|
12544
|
+
}, classMethodOrPropertyUnionShapeCommon(true), {
|
|
12477
12545
|
fields: Object.assign({}, classMethodOrPropertyCommon(), {
|
|
12478
12546
|
key: {
|
|
12479
12547
|
validate: chain$4((function() {
|
|
@@ -12515,7 +12583,7 @@ defineType$4('ClassAccessorProperty', {
|
|
|
12515
12583
|
optional: true,
|
|
12516
12584
|
},
|
|
12517
12585
|
}),
|
|
12518
|
-
});
|
|
12586
|
+
}));
|
|
12519
12587
|
defineType$4('ClassPrivateProperty', {
|
|
12520
12588
|
visitor: [
|
|
12521
12589
|
'decorators',
|
|
@@ -13524,23 +13592,6 @@ defineType$5('ExportDefaultSpecifier', {
|
|
|
13524
13592
|
},
|
|
13525
13593
|
},
|
|
13526
13594
|
});
|
|
13527
|
-
defineType$5('RecordExpression', {
|
|
13528
|
-
visitor: ['properties'],
|
|
13529
|
-
aliases: ['Expression'],
|
|
13530
|
-
fields: {
|
|
13531
|
-
properties: validateArrayOfType('ObjectProperty', 'SpreadElement'),
|
|
13532
|
-
},
|
|
13533
|
-
});
|
|
13534
|
-
defineType$5('TupleExpression', {
|
|
13535
|
-
fields: {
|
|
13536
|
-
elements: {
|
|
13537
|
-
validate: arrayOfType('Expression', 'SpreadElement'),
|
|
13538
|
-
default: [],
|
|
13539
|
-
},
|
|
13540
|
-
},
|
|
13541
|
-
visitor: ['elements'],
|
|
13542
|
-
aliases: ['Expression'],
|
|
13543
|
-
});
|
|
13544
13595
|
defineType$5('ModuleExpression', {
|
|
13545
13596
|
visitor: ['body'],
|
|
13546
13597
|
fields: {
|
|
@@ -13632,7 +13683,7 @@ defineType('TSDeclareFunction', {
|
|
|
13632
13683
|
],
|
|
13633
13684
|
fields: Object.assign({}, functionDeclarationCommon(), tSFunctionTypeAnnotationCommon()),
|
|
13634
13685
|
});
|
|
13635
|
-
defineType('TSDeclareMethod', {
|
|
13686
|
+
defineType('TSDeclareMethod', Object.assign({
|
|
13636
13687
|
visitor: [
|
|
13637
13688
|
'decorators',
|
|
13638
13689
|
'key',
|
|
@@ -13640,8 +13691,9 @@ defineType('TSDeclareMethod', {
|
|
|
13640
13691
|
'params',
|
|
13641
13692
|
'returnType',
|
|
13642
13693
|
],
|
|
13694
|
+
}, classMethodOrPropertyUnionShapeCommon(), {
|
|
13643
13695
|
fields: Object.assign({}, classMethodOrDeclareMethodCommon(), tSFunctionTypeAnnotationCommon()),
|
|
13644
|
-
});
|
|
13696
|
+
}));
|
|
13645
13697
|
defineType('TSQualifiedName', {
|
|
13646
13698
|
aliases: ['TSEntityName'],
|
|
13647
13699
|
visitor: ['left', 'right'],
|
|
@@ -13952,14 +14004,14 @@ defineType('TSLiteralType', {
|
|
|
13952
14004
|
const unaryOperator = assertOneOf('-');
|
|
13953
14005
|
const literal = assertNodeType('NumericLiteral', 'StringLiteral', 'BooleanLiteral', 'BigIntLiteral', 'TemplateLiteral');
|
|
13954
14006
|
|
|
13955
|
-
function
|
|
14007
|
+
const validator = function validator2(parent, key, node) {
|
|
13956
14008
|
if (is$4('UnaryExpression', node)) {
|
|
13957
14009
|
unaryOperator(node, 'operator', node.operator);
|
|
13958
14010
|
unaryExpression3(node, 'argument', node.argument);
|
|
13959
14011
|
} else {
|
|
13960
14012
|
literal(parent, key, node);
|
|
13961
14013
|
}
|
|
13962
|
-
}
|
|
14014
|
+
};
|
|
13963
14015
|
|
|
13964
14016
|
validator.oneOfNodeTypes = [
|
|
13965
14017
|
'NumericLiteral',
|
|
@@ -16521,28 +16573,6 @@ function exportDefaultSpecifier(exported) {
|
|
|
16521
16573
|
return node;
|
|
16522
16574
|
}
|
|
16523
16575
|
|
|
16524
|
-
function recordExpression(properties) {
|
|
16525
|
-
const node = {
|
|
16526
|
-
type: 'RecordExpression',
|
|
16527
|
-
properties,
|
|
16528
|
-
};
|
|
16529
|
-
|
|
16530
|
-
const defs = NODE_FIELDS.RecordExpression;
|
|
16531
|
-
validate$4(defs.properties, node, 'properties', properties, 1);
|
|
16532
|
-
return node;
|
|
16533
|
-
}
|
|
16534
|
-
|
|
16535
|
-
function tupleExpression(elements = []) {
|
|
16536
|
-
const node = {
|
|
16537
|
-
type: 'TupleExpression',
|
|
16538
|
-
elements,
|
|
16539
|
-
};
|
|
16540
|
-
|
|
16541
|
-
const defs = NODE_FIELDS.TupleExpression;
|
|
16542
|
-
validate$4(defs.elements, node, 'elements', elements, 1);
|
|
16543
|
-
return node;
|
|
16544
|
-
}
|
|
16545
|
-
|
|
16546
16576
|
function moduleExpression(body) {
|
|
16547
16577
|
const node = {
|
|
16548
16578
|
type: 'ModuleExpression',
|
|
@@ -17548,7 +17578,6 @@ var b = /* @__PURE__ */Object.freeze({
|
|
|
17548
17578
|
privateName: privateName$1,
|
|
17549
17579
|
program: program$2,
|
|
17550
17580
|
qualifiedTypeIdentifier,
|
|
17551
|
-
recordExpression,
|
|
17552
17581
|
regExpLiteral,
|
|
17553
17582
|
regexLiteral: RegexLiteral,
|
|
17554
17583
|
restElement: restElement$1,
|
|
@@ -17641,7 +17670,6 @@ var b = /* @__PURE__ */Object.freeze({
|
|
|
17641
17670
|
tsUnionType: tsUnionType$1,
|
|
17642
17671
|
tsUnknownKeyword,
|
|
17643
17672
|
tsVoidKeyword,
|
|
17644
|
-
tupleExpression,
|
|
17645
17673
|
tupleTypeAnnotation,
|
|
17646
17674
|
typeAlias,
|
|
17647
17675
|
typeAnnotation,
|
|
@@ -17849,8 +17877,6 @@ var BindExpression = alias('bindExpression');
|
|
|
17849
17877
|
var Decorator$1 = alias('decorator');
|
|
17850
17878
|
var DoExpression = alias('doExpression');
|
|
17851
17879
|
var ExportDefaultSpecifier = alias('exportDefaultSpecifier');
|
|
17852
|
-
var RecordExpression = alias('recordExpression');
|
|
17853
|
-
var TupleExpression = alias('tupleExpression');
|
|
17854
17880
|
var ModuleExpression = alias('moduleExpression');
|
|
17855
17881
|
var TopicReference = alias('topicReference');
|
|
17856
17882
|
var PipelineTopicExpression = alias('pipelineTopicExpression');
|
|
@@ -18710,14 +18736,6 @@ function assertExportDefaultSpecifier(node, opts) {
|
|
|
18710
18736
|
assert('ExportDefaultSpecifier', node, opts);
|
|
18711
18737
|
}
|
|
18712
18738
|
|
|
18713
|
-
function assertRecordExpression(node, opts) {
|
|
18714
|
-
assert('RecordExpression', node, opts);
|
|
18715
|
-
}
|
|
18716
|
-
|
|
18717
|
-
function assertTupleExpression(node, opts) {
|
|
18718
|
-
assert('TupleExpression', node, opts);
|
|
18719
|
-
}
|
|
18720
|
-
|
|
18721
18739
|
function assertModuleExpression(node, opts) {
|
|
18722
18740
|
assert('ModuleExpression', node, opts);
|
|
18723
18741
|
}
|
|
@@ -19854,7 +19872,7 @@ function removeProperties(node, opts = {}) {
|
|
|
19854
19872
|
}
|
|
19855
19873
|
|
|
19856
19874
|
for (const key of Object.keys(node)) {
|
|
19857
|
-
if (key
|
|
19875
|
+
if (key.startsWith('_') && node[key] != null)
|
|
19858
19876
|
node[key] = void 0;
|
|
19859
19877
|
}
|
|
19860
19878
|
|
|
@@ -20056,7 +20074,7 @@ function inherits(child, parent) {
|
|
|
20056
20074
|
}
|
|
20057
20075
|
|
|
20058
20076
|
for (const key of Object.keys(parent)) {
|
|
20059
|
-
if (key
|
|
20077
|
+
if (key.startsWith('_') && key !== '__clone') {
|
|
20060
20078
|
child[key] = parent[key];
|
|
20061
20079
|
}
|
|
20062
20080
|
}
|
|
@@ -20514,7 +20532,7 @@ function isReferenced(node, parent, grandparent) {
|
|
|
20514
20532
|
return !!parent.computed;
|
|
20515
20533
|
}
|
|
20516
20534
|
|
|
20517
|
-
return
|
|
20535
|
+
return grandparent?.type !== 'ObjectPattern';
|
|
20518
20536
|
|
|
20519
20537
|
case 'ClassProperty':
|
|
20520
20538
|
case 'ClassAccessorProperty':
|
|
@@ -20661,7 +20679,7 @@ var react = {
|
|
|
20661
20679
|
buildChildren,
|
|
20662
20680
|
};
|
|
20663
20681
|
|
|
20664
|
-
//
|
|
20682
|
+
// ../babel-babel/packages/babel-parser/lib/index.js
|
|
20665
20683
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
20666
20684
|
if (null == r)
|
|
20667
20685
|
return {};
|
|
@@ -21050,7 +21068,7 @@ function createDefaultOptions() {
|
|
|
21050
21068
|
allowUndeclaredExports: false,
|
|
21051
21069
|
allowYieldOutsideFunction: false,
|
|
21052
21070
|
plugins: [],
|
|
21053
|
-
strictMode:
|
|
21071
|
+
strictMode: void 0,
|
|
21054
21072
|
ranges: false,
|
|
21055
21073
|
tokens: false,
|
|
21056
21074
|
createImportExpressions: true,
|
|
@@ -21139,7 +21157,7 @@ var estree = (superClass) => class ESTreeParserMixin extends superClass {
|
|
|
21139
21157
|
|
|
21140
21158
|
try {
|
|
21141
21159
|
regex = new RegExp(pattern, flags);
|
|
21142
|
-
} catch
|
|
21160
|
+
} catch {}
|
|
21143
21161
|
|
|
21144
21162
|
|
|
21145
21163
|
const node = this.estreeParseLiteral(regex);
|
|
@@ -21216,7 +21234,7 @@ var estree = (superClass) => class ESTreeParserMixin extends superClass {
|
|
|
21216
21234
|
return stmt;
|
|
21217
21235
|
}
|
|
21218
21236
|
|
|
21219
|
-
fillOptionalPropertiesForTSESLint(
|
|
21237
|
+
fillOptionalPropertiesForTSESLint() {}
|
|
21220
21238
|
|
|
21221
21239
|
cloneEstreeStringLiteral(node) {
|
|
21222
21240
|
const {
|
|
@@ -21279,8 +21297,6 @@ var estree = (superClass) => class ESTreeParserMixin extends superClass {
|
|
|
21279
21297
|
|
|
21280
21298
|
convertPrivateNameToPrivateIdentifier(node) {
|
|
21281
21299
|
const name = super.getPrivateNameSV(node);
|
|
21282
|
-
|
|
21283
|
-
node = node;
|
|
21284
21300
|
delete node.id;
|
|
21285
21301
|
node.name = name;
|
|
21286
21302
|
return this.castNodeTo(node, 'PrivateIdentifier');
|
|
@@ -21410,8 +21426,8 @@ var estree = (superClass) => class ESTreeParserMixin extends superClass {
|
|
|
21410
21426
|
return this.finishNode(node, 'Property');
|
|
21411
21427
|
}
|
|
21412
21428
|
|
|
21413
|
-
isValidLVal(type, isUnparenthesizedInAssign, binding) {
|
|
21414
|
-
return type === 'Property' ? 'value' : super.isValidLVal(type, isUnparenthesizedInAssign, binding);
|
|
21429
|
+
isValidLVal(type, disallowCallExpression, isUnparenthesizedInAssign, binding) {
|
|
21430
|
+
return type === 'Property' ? 'value' : super.isValidLVal(type, disallowCallExpression, isUnparenthesizedInAssign, binding);
|
|
21415
21431
|
}
|
|
21416
21432
|
|
|
21417
21433
|
isAssignable(node, isBinding3) {
|
|
@@ -21601,7 +21617,7 @@ var TokContext = class {
|
|
|
21601
21617
|
}
|
|
21602
21618
|
};
|
|
21603
21619
|
|
|
21604
|
-
var types$
|
|
21620
|
+
var types$19 = {
|
|
21605
21621
|
brace: new TokContext('{'),
|
|
21606
21622
|
j_oTag: new TokContext('<tag'),
|
|
21607
21623
|
j_cTag: new TokContext('</tag'),
|
|
@@ -22159,8 +22175,8 @@ function getExportedToken(token) {
|
|
|
22159
22175
|
return tokenTypes[token];
|
|
22160
22176
|
}
|
|
22161
22177
|
|
|
22162
|
-
var nonASCIIidentifierStartChars2 = '\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\
|
|
22163
|
-
var nonASCIIidentifierChars2 = '\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\
|
|
22178
|
+
var nonASCIIidentifierStartChars2 = '\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC';
|
|
22179
|
+
var nonASCIIidentifierChars2 = '\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65';
|
|
22164
22180
|
var nonASCIIidentifierStart2 = new RegExp('[' + nonASCIIidentifierStartChars2 + ']');
|
|
22165
22181
|
var nonASCIIidentifier2 = new RegExp('[' + nonASCIIidentifierStartChars2 + nonASCIIidentifierChars2 + ']');
|
|
22166
22182
|
|
|
@@ -22265,7 +22281,9 @@ var astralIdentifierStartCodes2 = [
|
|
|
22265
22281
|
21,
|
|
22266
22282
|
11,
|
|
22267
22283
|
25,
|
|
22268
|
-
|
|
22284
|
+
7,
|
|
22285
|
+
25,
|
|
22286
|
+
39,
|
|
22269
22287
|
55,
|
|
22270
22288
|
7,
|
|
22271
22289
|
1,
|
|
@@ -22310,8 +22328,8 @@ var astralIdentifierStartCodes2 = [
|
|
|
22310
22328
|
7,
|
|
22311
22329
|
1,
|
|
22312
22330
|
17,
|
|
22313
|
-
|
|
22314
|
-
|
|
22331
|
+
5,
|
|
22332
|
+
57,
|
|
22315
22333
|
28,
|
|
22316
22334
|
11,
|
|
22317
22335
|
0,
|
|
@@ -22495,7 +22513,9 @@ var astralIdentifierStartCodes2 = [
|
|
|
22495
22513
|
31,
|
|
22496
22514
|
15,
|
|
22497
22515
|
0,
|
|
22498
|
-
|
|
22516
|
+
24,
|
|
22517
|
+
43,
|
|
22518
|
+
261,
|
|
22499
22519
|
18,
|
|
22500
22520
|
16,
|
|
22501
22521
|
0,
|
|
@@ -22543,7 +22563,11 @@ var astralIdentifierStartCodes2 = [
|
|
|
22543
22563
|
44,
|
|
22544
22564
|
212,
|
|
22545
22565
|
63,
|
|
22546
|
-
|
|
22566
|
+
33,
|
|
22567
|
+
24,
|
|
22568
|
+
3,
|
|
22569
|
+
24,
|
|
22570
|
+
45,
|
|
22547
22571
|
74,
|
|
22548
22572
|
6,
|
|
22549
22573
|
0,
|
|
@@ -22553,13 +22577,15 @@ var astralIdentifierStartCodes2 = [
|
|
|
22553
22577
|
1,
|
|
22554
22578
|
2,
|
|
22555
22579
|
0,
|
|
22556
|
-
|
|
22557
|
-
|
|
22558
|
-
|
|
22559
|
-
|
|
22580
|
+
15,
|
|
22581
|
+
4,
|
|
22582
|
+
10,
|
|
22583
|
+
7381,
|
|
22560
22584
|
42,
|
|
22561
|
-
|
|
22562
|
-
|
|
22585
|
+
31,
|
|
22586
|
+
98,
|
|
22587
|
+
114,
|
|
22588
|
+
8702,
|
|
22563
22589
|
3,
|
|
22564
22590
|
2,
|
|
22565
22591
|
6,
|
|
@@ -22667,7 +22693,19 @@ var astralIdentifierStartCodes2 = [
|
|
|
22667
22693
|
29,
|
|
22668
22694
|
3,
|
|
22669
22695
|
0,
|
|
22670
|
-
|
|
22696
|
+
208,
|
|
22697
|
+
30,
|
|
22698
|
+
2,
|
|
22699
|
+
2,
|
|
22700
|
+
2,
|
|
22701
|
+
1,
|
|
22702
|
+
2,
|
|
22703
|
+
6,
|
|
22704
|
+
3,
|
|
22705
|
+
4,
|
|
22706
|
+
10,
|
|
22707
|
+
1,
|
|
22708
|
+
225,
|
|
22671
22709
|
6,
|
|
22672
22710
|
2,
|
|
22673
22711
|
3,
|
|
@@ -22750,12 +22788,10 @@ var astralIdentifierStartCodes2 = [
|
|
|
22750
22788
|
4421,
|
|
22751
22789
|
42719,
|
|
22752
22790
|
33,
|
|
22753
|
-
|
|
22754
|
-
|
|
22755
|
-
|
|
22791
|
+
4381,
|
|
22792
|
+
3,
|
|
22793
|
+
5773,
|
|
22756
22794
|
3,
|
|
22757
|
-
5761,
|
|
22758
|
-
15,
|
|
22759
22795
|
7472,
|
|
22760
22796
|
16,
|
|
22761
22797
|
621,
|
|
@@ -22764,7 +22800,7 @@ var astralIdentifierStartCodes2 = [
|
|
|
22764
22800
|
1507,
|
|
22765
22801
|
4938,
|
|
22766
22802
|
6,
|
|
22767
|
-
|
|
22803
|
+
8489,
|
|
22768
22804
|
];
|
|
22769
22805
|
var astralIdentifierCodes2 = [
|
|
22770
22806
|
509,
|
|
@@ -22797,8 +22833,8 @@ var astralIdentifierCodes2 = [
|
|
|
22797
22833
|
4,
|
|
22798
22834
|
318,
|
|
22799
22835
|
1,
|
|
22800
|
-
|
|
22801
|
-
|
|
22836
|
+
78,
|
|
22837
|
+
5,
|
|
22802
22838
|
71,
|
|
22803
22839
|
10,
|
|
22804
22840
|
50,
|
|
@@ -22943,7 +22979,9 @@ var astralIdentifierCodes2 = [
|
|
|
22943
22979
|
10,
|
|
22944
22980
|
47,
|
|
22945
22981
|
15,
|
|
22946
|
-
|
|
22982
|
+
199,
|
|
22983
|
+
7,
|
|
22984
|
+
137,
|
|
22947
22985
|
9,
|
|
22948
22986
|
54,
|
|
22949
22987
|
7,
|
|
@@ -22975,7 +23013,9 @@ var astralIdentifierCodes2 = [
|
|
|
22975
23013
|
4,
|
|
22976
23014
|
9,
|
|
22977
23015
|
9,
|
|
22978
|
-
|
|
23016
|
+
55,
|
|
23017
|
+
9,
|
|
23018
|
+
266,
|
|
22979
23019
|
3,
|
|
22980
23020
|
10,
|
|
22981
23021
|
1,
|
|
@@ -23075,7 +23115,15 @@ var astralIdentifierCodes2 = [
|
|
|
23075
23115
|
1,
|
|
23076
23116
|
2,
|
|
23077
23117
|
9,
|
|
23078
|
-
|
|
23118
|
+
233,
|
|
23119
|
+
0,
|
|
23120
|
+
3,
|
|
23121
|
+
0,
|
|
23122
|
+
8,
|
|
23123
|
+
1,
|
|
23124
|
+
6,
|
|
23125
|
+
0,
|
|
23126
|
+
475,
|
|
23079
23127
|
6,
|
|
23080
23128
|
110,
|
|
23081
23129
|
6,
|
|
@@ -23434,7 +23482,7 @@ var ScopeHandler = class {
|
|
|
23434
23482
|
return scope2.names.has(name);
|
|
23435
23483
|
}
|
|
23436
23484
|
|
|
23437
|
-
const type = scope2.names.get(name);
|
|
23485
|
+
const type = scope2.names.get(name) || 0;
|
|
23438
23486
|
|
|
23439
23487
|
if (bindingType & 16) {
|
|
23440
23488
|
return (type & 2) > 0 || !this.treatFunctionsAsVarInScope(scope2) && (type & 1) > 0;
|
|
@@ -24035,9 +24083,9 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
24035
24083
|
switch(this.state.type) {
|
|
24036
24084
|
case 5:
|
|
24037
24085
|
node = this.startNode();
|
|
24038
|
-
this.setContext(types$
|
|
24086
|
+
this.setContext(types$19.brace);
|
|
24039
24087
|
this.next();
|
|
24040
|
-
node = this.jsxParseExpressionContainer(node, types$
|
|
24088
|
+
node = this.jsxParseExpressionContainer(node, types$19.j_oTag);
|
|
24041
24089
|
|
|
24042
24090
|
if (node.expression.type === 'JSXEmptyExpression') {
|
|
24043
24091
|
this.raise(JsxErrors.AttributeIsEmpty, node);
|
|
@@ -24062,7 +24110,7 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
24062
24110
|
jsxParseSpreadChild(node) {
|
|
24063
24111
|
this.next();
|
|
24064
24112
|
node.expression = this.parseExpression();
|
|
24065
|
-
this.setContext(types$
|
|
24113
|
+
this.setContext(types$19.j_expr);
|
|
24066
24114
|
this.state.canStartJSXElement = true;
|
|
24067
24115
|
this.expect(8);
|
|
24068
24116
|
return this.finishNode(node, 'JSXSpreadChild');
|
|
@@ -24092,11 +24140,11 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
24092
24140
|
const node = this.startNode();
|
|
24093
24141
|
|
|
24094
24142
|
if (this.match(5)) {
|
|
24095
|
-
this.setContext(types$
|
|
24143
|
+
this.setContext(types$19.brace);
|
|
24096
24144
|
this.next();
|
|
24097
24145
|
this.expect(21);
|
|
24098
24146
|
node.argument = this.parseMaybeAssignAllowIn();
|
|
24099
|
-
this.setContext(types$
|
|
24147
|
+
this.setContext(types$19.j_oTag);
|
|
24100
24148
|
this.state.canStartJSXElement = true;
|
|
24101
24149
|
this.expect(8);
|
|
24102
24150
|
return this.finishNode(node, 'JSXSpreadAttribute');
|
|
@@ -24150,7 +24198,7 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
24150
24198
|
let closingElement = null;
|
|
24151
24199
|
|
|
24152
24200
|
if (!openingElement.selfClosing) {
|
|
24153
|
-
contents:
|
|
24201
|
+
contents: for (;;) {
|
|
24154
24202
|
switch(this.state.type) {
|
|
24155
24203
|
case 143:
|
|
24156
24204
|
startLoc = this.state.startLoc;
|
|
@@ -24170,13 +24218,13 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
24170
24218
|
|
|
24171
24219
|
case 5: {
|
|
24172
24220
|
const node2 = this.startNode();
|
|
24173
|
-
this.setContext(types$
|
|
24221
|
+
this.setContext(types$19.brace);
|
|
24174
24222
|
this.next();
|
|
24175
24223
|
|
|
24176
24224
|
if (this.match(21)) {
|
|
24177
24225
|
children.push(this.jsxParseSpreadChild(node2));
|
|
24178
24226
|
} else {
|
|
24179
|
-
children.push(this.jsxParseExpressionContainer(node2, types$
|
|
24227
|
+
children.push(this.jsxParseExpressionContainer(node2, types$19.j_expr));
|
|
24180
24228
|
}
|
|
24181
24229
|
|
|
24182
24230
|
break;
|
|
@@ -24252,12 +24300,12 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
24252
24300
|
getTokenFromCode(code2) {
|
|
24253
24301
|
const context = this.curContext();
|
|
24254
24302
|
|
|
24255
|
-
if (context === types$
|
|
24303
|
+
if (context === types$19.j_expr) {
|
|
24256
24304
|
this.jsxReadToken();
|
|
24257
24305
|
return;
|
|
24258
24306
|
}
|
|
24259
24307
|
|
|
24260
|
-
if (context === types$
|
|
24308
|
+
if (context === types$19.j_oTag || context === types$19.j_cTag) {
|
|
24261
24309
|
if (isIdentifierStart2(code2)) {
|
|
24262
24310
|
this.jsxReadWord();
|
|
24263
24311
|
return;
|
|
@@ -24269,7 +24317,7 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
24269
24317
|
return;
|
|
24270
24318
|
}
|
|
24271
24319
|
|
|
24272
|
-
if ((code2 === 34 || code2 === 39) && context === types$
|
|
24320
|
+
if ((code2 === 34 || code2 === 39) && context === types$19.j_oTag) {
|
|
24273
24321
|
this.jsxReadString(code2);
|
|
24274
24322
|
return;
|
|
24275
24323
|
}
|
|
@@ -24288,18 +24336,18 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
24288
24336
|
const {context, type} = this.state;
|
|
24289
24337
|
|
|
24290
24338
|
if (type === 56 && prevType === 143) {
|
|
24291
|
-
context.splice(-2, 2, types$
|
|
24339
|
+
context.splice(-2, 2, types$19.j_cTag);
|
|
24292
24340
|
this.state.canStartJSXElement = false;
|
|
24293
24341
|
} else if (type === 143) {
|
|
24294
|
-
context.push(types$
|
|
24342
|
+
context.push(types$19.j_oTag);
|
|
24295
24343
|
} else if (type === 144) {
|
|
24296
24344
|
const out = context[context.length - 1];
|
|
24297
24345
|
|
|
24298
|
-
if (out === types$
|
|
24346
|
+
if (out === types$19.j_oTag && prevType === 56 || out === types$19.j_cTag) {
|
|
24299
24347
|
context.pop();
|
|
24300
|
-
this.state.canStartJSXElement = context[context.length - 1] === types$
|
|
24348
|
+
this.state.canStartJSXElement = context[context.length - 1] === types$19.j_expr;
|
|
24301
24349
|
} else {
|
|
24302
|
-
this.setContext(types$
|
|
24350
|
+
this.setContext(types$19.j_expr);
|
|
24303
24351
|
this.state.canStartJSXElement = true;
|
|
24304
24352
|
}
|
|
24305
24353
|
} else {
|
|
@@ -24642,7 +24690,8 @@ var CommentsParser = class extends BaseParser {
|
|
|
24642
24690
|
setLeadingComments(commentWS.trailingNode, comments);
|
|
24643
24691
|
}
|
|
24644
24692
|
} else {
|
|
24645
|
-
const
|
|
24693
|
+
const node = commentWS.containingNode;
|
|
24694
|
+
const commentStart = commentWS.start;
|
|
24646
24695
|
|
|
24647
24696
|
if (this.input.charCodeAt(this.offsetToSourcePos(commentStart) - 1) === 44) {
|
|
24648
24697
|
switch(node.type) {
|
|
@@ -24778,7 +24827,7 @@ var State$2 = class _State {
|
|
|
24778
24827
|
__publicField(this, 'end', 0);
|
|
24779
24828
|
__publicField(this, 'lastTokEndLoc', null);
|
|
24780
24829
|
__publicField(this, 'lastTokStartLoc', null);
|
|
24781
|
-
__publicField(this, 'context', [types$
|
|
24830
|
+
__publicField(this, 'context', [types$19.brace]);
|
|
24782
24831
|
__publicField(this, 'firstInvalidTemplateEscapePos', null);
|
|
24783
24832
|
__publicField(this, 'strictErrors', /* @__PURE__ */new Map());
|
|
24784
24833
|
__publicField(this, 'tokensLength', 0);
|
|
@@ -26517,7 +26566,7 @@ var Tokenizer = class extends CommentsParser {
|
|
|
26517
26566
|
return this.raise(toParseError, at, details);
|
|
26518
26567
|
}
|
|
26519
26568
|
|
|
26520
|
-
updateContext(
|
|
26569
|
+
updateContext() {}
|
|
26521
26570
|
|
|
26522
26571
|
unexpected(loc, type) {
|
|
26523
26572
|
throw this.raise(Errors.UnexpectedToken, loc != null ? loc : this.state.startLoc, {
|
|
@@ -27056,6 +27105,11 @@ var UtilParser = class extends Tokenizer {
|
|
|
27056
27105
|
scopeFlags |= 512;
|
|
27057
27106
|
}
|
|
27058
27107
|
|
|
27108
|
+
{
|
|
27109
|
+
if (this.optionFlags & 16) {
|
|
27110
|
+
scopeFlags |= 16 | 32;
|
|
27111
|
+
}
|
|
27112
|
+
}
|
|
27059
27113
|
this.scope.enter(scopeFlags);
|
|
27060
27114
|
}
|
|
27061
27115
|
|
|
@@ -27215,7 +27269,7 @@ var LValParser = class extends NodeUtils {
|
|
|
27215
27269
|
if (isLHS) {
|
|
27216
27270
|
if (parenthesized.type === 'Identifier') {
|
|
27217
27271
|
this.expressionScope.recordArrowParameterBindingError(Errors.InvalidParenthesizedAssignment, node);
|
|
27218
|
-
} else if (parenthesized.type !== 'MemberExpression' && !this.isOptionalMemberExpression(parenthesized)) {
|
|
27272
|
+
} else if (parenthesized.type !== 'CallExpression' && parenthesized.type !== 'MemberExpression' && !this.isOptionalMemberExpression(parenthesized)) {
|
|
27219
27273
|
this.raise(Errors.InvalidParenthesizedAssignment, node);
|
|
27220
27274
|
}
|
|
27221
27275
|
} else {
|
|
@@ -27383,7 +27437,7 @@ var LValParser = class extends NodeUtils {
|
|
|
27383
27437
|
}
|
|
27384
27438
|
}
|
|
27385
27439
|
|
|
27386
|
-
toReferencedList(exprList
|
|
27440
|
+
toReferencedList(exprList) {
|
|
27387
27441
|
return exprList;
|
|
27388
27442
|
}
|
|
27389
27443
|
|
|
@@ -27559,7 +27613,7 @@ var LValParser = class extends NodeUtils {
|
|
|
27559
27613
|
return this.finishNode(node, 'AssignmentPattern');
|
|
27560
27614
|
}
|
|
27561
27615
|
|
|
27562
|
-
isValidLVal(type,
|
|
27616
|
+
isValidLVal(type, disallowCallExpression) {
|
|
27563
27617
|
switch(type) {
|
|
27564
27618
|
case 'AssignmentPattern':
|
|
27565
27619
|
return 'left';
|
|
@@ -27581,6 +27635,11 @@ var LValParser = class extends NodeUtils {
|
|
|
27581
27635
|
|
|
27582
27636
|
case 'VoidPattern':
|
|
27583
27637
|
return true;
|
|
27638
|
+
|
|
27639
|
+
case 'CallExpression':
|
|
27640
|
+
if (!disallowCallExpression && !this.state.strict && this.optionFlags & 8192) {
|
|
27641
|
+
return true;
|
|
27642
|
+
}
|
|
27584
27643
|
}
|
|
27585
27644
|
|
|
27586
27645
|
return false;
|
|
@@ -27590,7 +27649,7 @@ var LValParser = class extends NodeUtils {
|
|
|
27590
27649
|
return expression2.type === 'OptionalMemberExpression';
|
|
27591
27650
|
}
|
|
27592
27651
|
|
|
27593
|
-
checkLVal(expression2, ancestor, binding = 64, checkClashes = false, strictModeChanged = false, hasParenthesizedAncestor = false) {
|
|
27652
|
+
checkLVal(expression2, ancestor, binding = 64, checkClashes = false, strictModeChanged = false, hasParenthesizedAncestor = false, disallowCallExpression = false) {
|
|
27594
27653
|
const type = expression2.type;
|
|
27595
27654
|
|
|
27596
27655
|
if (this.isObjectMethod(expression2))
|
|
@@ -27633,7 +27692,9 @@ var LValParser = class extends NodeUtils {
|
|
|
27633
27692
|
this.raise(Errors.VoidPatternCatchClauseParam, expression2);
|
|
27634
27693
|
}
|
|
27635
27694
|
|
|
27636
|
-
const
|
|
27695
|
+
const unwrappedExpression = unwrapParenthesizedExpression(expression2);
|
|
27696
|
+
disallowCallExpression || (disallowCallExpression = unwrappedExpression.type === 'CallExpression' && (unwrappedExpression.callee.type === 'Import' || unwrappedExpression.callee.type === 'Super'));
|
|
27697
|
+
const validity = this.isValidLVal(type, disallowCallExpression, !(hasParenthesizedAncestor || expression2.extra?.parenthesized) && ancestor.type === 'AssignmentExpression', binding);
|
|
27637
27698
|
|
|
27638
27699
|
if (validity === true)
|
|
27639
27700
|
return;
|
|
@@ -27665,11 +27726,11 @@ var LValParser = class extends NodeUtils {
|
|
|
27665
27726
|
if (Array.isArray(val)) {
|
|
27666
27727
|
for (const child of val) {
|
|
27667
27728
|
if (child) {
|
|
27668
|
-
this.checkLVal(child, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression3);
|
|
27729
|
+
this.checkLVal(child, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression3, true);
|
|
27669
27730
|
}
|
|
27670
27731
|
}
|
|
27671
27732
|
} else if (val) {
|
|
27672
|
-
this.checkLVal(val, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression3);
|
|
27733
|
+
this.checkLVal(val, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression3, disallowCallExpression);
|
|
27673
27734
|
}
|
|
27674
27735
|
}
|
|
27675
27736
|
|
|
@@ -27730,6 +27791,8 @@ var LValParser = class extends NodeUtils {
|
|
|
27730
27791
|
}
|
|
27731
27792
|
};
|
|
27732
27793
|
|
|
27794
|
+
var keywordAndTSRelationalOperator = /in(?:stanceof)?|as|satisfies/y;
|
|
27795
|
+
|
|
27733
27796
|
function nonNull(x) {
|
|
27734
27797
|
if (x == null) {
|
|
27735
27798
|
throw new Error(`Unexpected ${x} value.`);
|
|
@@ -28883,7 +28946,7 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
28883
28946
|
}
|
|
28884
28947
|
}
|
|
28885
28948
|
|
|
28886
|
-
this.unexpected();
|
|
28949
|
+
throw this.unexpected();
|
|
28887
28950
|
}
|
|
28888
28951
|
|
|
28889
28952
|
tsParseArrayTypeOrHigher() {
|
|
@@ -29301,7 +29364,7 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
29301
29364
|
}
|
|
29302
29365
|
|
|
29303
29366
|
tsInTopLevelContext(cb) {
|
|
29304
|
-
if (this.curContext() !== types$
|
|
29367
|
+
if (this.curContext() !== types$19.brace) {
|
|
29305
29368
|
const oldContext = this.state.context;
|
|
29306
29369
|
|
|
29307
29370
|
this.state.context = [oldContext[0]];
|
|
@@ -29414,7 +29477,7 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
29414
29477
|
return this.finishNode(node, 'TSModuleBlock');
|
|
29415
29478
|
}
|
|
29416
29479
|
|
|
29417
|
-
tsParseModuleOrNamespaceDeclaration(node
|
|
29480
|
+
tsParseModuleOrNamespaceDeclaration(node) {
|
|
29418
29481
|
node.id = this.tsParseEntityName(1);
|
|
29419
29482
|
|
|
29420
29483
|
if (node.id.type === 'Identifier') {
|
|
@@ -29456,7 +29519,7 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
29456
29519
|
return this.finishNode(node, 'TSModuleDeclaration');
|
|
29457
29520
|
}
|
|
29458
29521
|
|
|
29459
|
-
tsParseImportEqualsDeclaration(node, maybeDefaultIdentifier
|
|
29522
|
+
tsParseImportEqualsDeclaration(node, maybeDefaultIdentifier) {
|
|
29460
29523
|
node.id = maybeDefaultIdentifier || this.parseIdentifier();
|
|
29461
29524
|
this.checkIdentifier(node.id, 4096);
|
|
29462
29525
|
this.expect(29);
|
|
@@ -29598,59 +29661,26 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
29598
29661
|
|
|
29599
29662
|
default:
|
|
29600
29663
|
if (tokenIsIdentifier(startType)) {
|
|
29601
|
-
return this.tsParseDeclaration(node, this.state.
|
|
29664
|
+
return this.tsParseDeclaration(node, this.state.type, true, null);
|
|
29602
29665
|
}
|
|
29603
29666
|
}
|
|
29604
29667
|
});
|
|
29605
29668
|
}
|
|
29606
29669
|
|
|
29607
29670
|
tsTryParseExportDeclaration() {
|
|
29608
|
-
return this.tsParseDeclaration(this.startNode(), this.state.
|
|
29671
|
+
return this.tsParseDeclaration(this.startNode(), this.state.type, true, null);
|
|
29609
29672
|
}
|
|
29610
29673
|
|
|
29611
|
-
|
|
29612
|
-
switch(
|
|
29613
|
-
case
|
|
29614
|
-
const declaration = this.tsTryParseDeclare(node);
|
|
29615
|
-
|
|
29616
|
-
if (declaration) {
|
|
29617
|
-
declaration.declare = true;
|
|
29618
|
-
}
|
|
29619
|
-
|
|
29620
|
-
return declaration;
|
|
29621
|
-
}
|
|
29622
|
-
|
|
29623
|
-
case 'global':
|
|
29624
|
-
if (this.match(5)) {
|
|
29625
|
-
this.scope.enter(1024);
|
|
29626
|
-
this.prodParam.enter(0);
|
|
29627
|
-
const mod = node;
|
|
29628
|
-
|
|
29629
|
-
mod.kind = 'global';
|
|
29630
|
-
mod.id = expr;
|
|
29631
|
-
mod.body = this.tsParseModuleBlock();
|
|
29632
|
-
this.scope.exit();
|
|
29633
|
-
this.prodParam.exit();
|
|
29634
|
-
return this.finishNode(mod, 'TSModuleDeclaration');
|
|
29635
|
-
}
|
|
29636
|
-
|
|
29637
|
-
break;
|
|
29638
|
-
|
|
29639
|
-
default:
|
|
29640
|
-
return this.tsParseDeclaration(node, expr.name, false, decorators);
|
|
29641
|
-
}
|
|
29642
|
-
}
|
|
29643
|
-
|
|
29644
|
-
tsParseDeclaration(node, value, next, decorators) {
|
|
29645
|
-
switch(value) {
|
|
29646
|
-
case 'abstract':
|
|
29674
|
+
tsParseDeclaration(node, type, next, decorators) {
|
|
29675
|
+
switch(type) {
|
|
29676
|
+
case 124:
|
|
29647
29677
|
if (this.tsCheckLineTerminator(next) && (this.match(80) || tokenIsIdentifier(this.state.type))) {
|
|
29648
29678
|
return this.tsParseAbstractDeclaration(node, decorators);
|
|
29649
29679
|
}
|
|
29650
29680
|
|
|
29651
29681
|
break;
|
|
29652
29682
|
|
|
29653
|
-
case
|
|
29683
|
+
case 127:
|
|
29654
29684
|
if (this.tsCheckLineTerminator(next)) {
|
|
29655
29685
|
if (this.match(134)) {
|
|
29656
29686
|
return this.tsParseAmbientExternalModuleDeclaration(node);
|
|
@@ -29662,7 +29692,7 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
29662
29692
|
|
|
29663
29693
|
break;
|
|
29664
29694
|
|
|
29665
|
-
case
|
|
29695
|
+
case 128:
|
|
29666
29696
|
if (this.tsCheckLineTerminator(next) && tokenIsIdentifier(this.state.type)) {
|
|
29667
29697
|
node.kind = 'namespace';
|
|
29668
29698
|
return this.tsParseModuleOrNamespaceDeclaration(node);
|
|
@@ -29670,7 +29700,7 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
29670
29700
|
|
|
29671
29701
|
break;
|
|
29672
29702
|
|
|
29673
|
-
case
|
|
29703
|
+
case 130:
|
|
29674
29704
|
if (this.tsCheckLineTerminator(next) && tokenIsIdentifier(this.state.type)) {
|
|
29675
29705
|
return this.tsParseTypeAliasDeclaration(node);
|
|
29676
29706
|
}
|
|
@@ -29733,7 +29763,7 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
29733
29763
|
|
|
29734
29764
|
if (node.params.length === 0) {
|
|
29735
29765
|
this.raise(TSErrors.EmptyTypeArguments, node);
|
|
29736
|
-
} else if (!this.state.inType && this.curContext() === types$
|
|
29766
|
+
} else if (!this.state.inType && this.curContext() === types$19.brace) {
|
|
29737
29767
|
this.reScan_lt_gt();
|
|
29738
29768
|
}
|
|
29739
29769
|
|
|
@@ -29868,13 +29898,13 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
29868
29898
|
});
|
|
29869
29899
|
}
|
|
29870
29900
|
|
|
29871
|
-
toReferencedList(exprList
|
|
29901
|
+
toReferencedList(exprList) {
|
|
29872
29902
|
this.tsCheckForInvalidTypeCasts(exprList);
|
|
29873
29903
|
return exprList;
|
|
29874
29904
|
}
|
|
29875
29905
|
|
|
29876
|
-
parseArrayLike(close,
|
|
29877
|
-
const node = super.parseArrayLike(close,
|
|
29906
|
+
parseArrayLike(close, isTuple, refExpressionErrors) {
|
|
29907
|
+
const node = super.parseArrayLike(close, isTuple, refExpressionErrors);
|
|
29878
29908
|
|
|
29879
29909
|
if (node.type === 'ArrayExpression') {
|
|
29880
29910
|
this.tsCheckForInvalidTypeCasts(node.elements);
|
|
@@ -30193,23 +30223,97 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
30193
30223
|
}
|
|
30194
30224
|
|
|
30195
30225
|
parseStatementContent(flags, decorators) {
|
|
30196
|
-
if (this.
|
|
30197
|
-
|
|
30198
|
-
|
|
30199
|
-
|
|
30200
|
-
|
|
30201
|
-
|
|
30202
|
-
|
|
30203
|
-
|
|
30204
|
-
|
|
30205
|
-
|
|
30206
|
-
|
|
30207
|
-
|
|
30208
|
-
|
|
30209
|
-
const result = this.tsParseInterfaceDeclaration(this.startNode());
|
|
30226
|
+
if (!this.state.containsEsc) {
|
|
30227
|
+
switch(this.state.type) {
|
|
30228
|
+
case 75: {
|
|
30229
|
+
if (this.isLookaheadContextual('enum')) {
|
|
30230
|
+
const node = this.startNode();
|
|
30231
|
+
this.expect(75);
|
|
30232
|
+
return this.tsParseEnumDeclaration(node, {
|
|
30233
|
+
const: true,
|
|
30234
|
+
});
|
|
30235
|
+
}
|
|
30236
|
+
|
|
30237
|
+
break;
|
|
30238
|
+
}
|
|
30210
30239
|
|
|
30211
|
-
|
|
30212
|
-
|
|
30240
|
+
case 124:
|
|
30241
|
+
case 125: {
|
|
30242
|
+
if (this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()) {
|
|
30243
|
+
const token = this.state.type;
|
|
30244
|
+
const node = this.startNode();
|
|
30245
|
+
this.next();
|
|
30246
|
+
const declaration = token === 125 ? this.tsTryParseDeclare(node) : this.tsParseAbstractDeclaration(node, decorators);
|
|
30247
|
+
|
|
30248
|
+
if (declaration) {
|
|
30249
|
+
if (token === 125) {
|
|
30250
|
+
declaration.declare = true;
|
|
30251
|
+
}
|
|
30252
|
+
|
|
30253
|
+
return declaration;
|
|
30254
|
+
} else {
|
|
30255
|
+
node.expression = this.createIdentifier(this.startNodeAt(node.loc.start), token === 125 ? 'declare' : 'abstract');
|
|
30256
|
+
this.semicolon(false);
|
|
30257
|
+
return this.finishNode(node, 'ExpressionStatement');
|
|
30258
|
+
}
|
|
30259
|
+
}
|
|
30260
|
+
|
|
30261
|
+
break;
|
|
30262
|
+
}
|
|
30263
|
+
|
|
30264
|
+
case 126:
|
|
30265
|
+
return this.tsParseEnumDeclaration(this.startNode());
|
|
30266
|
+
|
|
30267
|
+
case 112: {
|
|
30268
|
+
const nextCh = this.lookaheadCharCode();
|
|
30269
|
+
|
|
30270
|
+
if (nextCh === 123) {
|
|
30271
|
+
const node = this.startNode();
|
|
30272
|
+
return this.tsParseAmbientExternalModuleDeclaration(node);
|
|
30273
|
+
}
|
|
30274
|
+
|
|
30275
|
+
break;
|
|
30276
|
+
}
|
|
30277
|
+
|
|
30278
|
+
case 129: {
|
|
30279
|
+
const result = this.tsParseInterfaceDeclaration(this.startNode());
|
|
30280
|
+
|
|
30281
|
+
if (result)
|
|
30282
|
+
return result;
|
|
30283
|
+
|
|
30284
|
+
break;
|
|
30285
|
+
}
|
|
30286
|
+
|
|
30287
|
+
case 127: {
|
|
30288
|
+
if (this.nextTokenIsIdentifierOrStringLiteralOnSameLine()) {
|
|
30289
|
+
const node = this.startNode();
|
|
30290
|
+
this.next();
|
|
30291
|
+
return this.tsParseDeclaration(node, 127, false, decorators);
|
|
30292
|
+
}
|
|
30293
|
+
|
|
30294
|
+
break;
|
|
30295
|
+
}
|
|
30296
|
+
|
|
30297
|
+
case 128: {
|
|
30298
|
+
if (this.nextTokenIsIdentifierOnSameLine()) {
|
|
30299
|
+
const node = this.startNode();
|
|
30300
|
+
this.next();
|
|
30301
|
+
return this.tsParseDeclaration(node, 128, false, decorators);
|
|
30302
|
+
}
|
|
30303
|
+
|
|
30304
|
+
break;
|
|
30305
|
+
}
|
|
30306
|
+
|
|
30307
|
+
case 130: {
|
|
30308
|
+
if (this.nextTokenIsIdentifierOnSameLine()) {
|
|
30309
|
+
const node = this.startNode();
|
|
30310
|
+
this.next();
|
|
30311
|
+
return this.tsParseTypeAliasDeclaration(node);
|
|
30312
|
+
}
|
|
30313
|
+
|
|
30314
|
+
break;
|
|
30315
|
+
}
|
|
30316
|
+
}
|
|
30213
30317
|
}
|
|
30214
30318
|
|
|
30215
30319
|
return super.parseStatementContent(flags, decorators);
|
|
@@ -30328,11 +30432,6 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
30328
30432
|
}
|
|
30329
30433
|
}
|
|
30330
30434
|
|
|
30331
|
-
parseExpressionStatement(node, expr, decorators) {
|
|
30332
|
-
const decl = expr.type === 'Identifier' ? this.tsParseExpressionStatement(node, expr, decorators) : void 0;
|
|
30333
|
-
return decl || super.parseExpressionStatement(node, expr, decorators);
|
|
30334
|
-
}
|
|
30335
|
-
|
|
30336
30435
|
shouldParseExportDeclaration() {
|
|
30337
30436
|
if (this.tsIsDeclarationStart())
|
|
30338
30437
|
return true;
|
|
@@ -30405,7 +30504,7 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
30405
30504
|
return declaration;
|
|
30406
30505
|
}
|
|
30407
30506
|
|
|
30408
|
-
parseClassId(node, isStatement5, optionalId
|
|
30507
|
+
parseClassId(node, isStatement5, optionalId) {
|
|
30409
30508
|
if ((!isStatement5 || optionalId) && this.isContextual(113)) {
|
|
30410
30509
|
return;
|
|
30411
30510
|
}
|
|
@@ -30587,7 +30686,7 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
30587
30686
|
|
|
30588
30687
|
const currentContext = context[context.length - 1];
|
|
30589
30688
|
|
|
30590
|
-
if (currentContext === types$
|
|
30689
|
+
if (currentContext === types$19.j_oTag || currentContext === types$19.j_expr) {
|
|
30591
30690
|
context.pop();
|
|
30592
30691
|
}
|
|
30593
30692
|
}
|
|
@@ -30790,7 +30889,7 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
30790
30889
|
}
|
|
30791
30890
|
}
|
|
30792
30891
|
|
|
30793
|
-
isValidLVal(type, isUnparenthesizedInAssign, binding) {
|
|
30892
|
+
isValidLVal(type, disallowCallExpression, isUnparenthesizedInAssign, binding) {
|
|
30794
30893
|
switch(type) {
|
|
30795
30894
|
case 'TSTypeCastExpression':
|
|
30796
30895
|
return true;
|
|
@@ -30810,7 +30909,7 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
30810
30909
|
];
|
|
30811
30910
|
|
|
30812
30911
|
default:
|
|
30813
|
-
return super.isValidLVal(type, isUnparenthesizedInAssign, binding);
|
|
30912
|
+
return super.isValidLVal(type, disallowCallExpression, isUnparenthesizedInAssign, binding);
|
|
30814
30913
|
}
|
|
30815
30914
|
}
|
|
30816
30915
|
|
|
@@ -31012,10 +31111,12 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
31012
31111
|
node.abstract = true;
|
|
31013
31112
|
this.raise(TSErrors.NonClassMethodPropertyHasAbstractModifier, node);
|
|
31014
31113
|
return this.tsParseInterfaceDeclaration(node);
|
|
31114
|
+
} else {
|
|
31115
|
+
return null;
|
|
31015
31116
|
}
|
|
31016
|
-
} else {
|
|
31017
|
-
this.unexpected(null, 80);
|
|
31018
31117
|
}
|
|
31118
|
+
|
|
31119
|
+
throw this.unexpected(null, 80);
|
|
31019
31120
|
}
|
|
31020
31121
|
|
|
31021
31122
|
parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope) {
|
|
@@ -31072,7 +31173,7 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
31072
31173
|
return super.parseExportSpecifier(node, isString, isInTypeExport, isMaybeTypeOnly);
|
|
31073
31174
|
}
|
|
31074
31175
|
|
|
31075
|
-
parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly
|
|
31176
|
+
parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly) {
|
|
31076
31177
|
if (!importedIsString && isMaybeTypeOnly) {
|
|
31077
31178
|
this.parseTypeOnlyImportExportSpecifier(specifier, true, isInTypeOnlyImport);
|
|
31078
31179
|
return this.finishNode(specifier, 'ImportSpecifier');
|
|
@@ -31281,6 +31382,40 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
31281
31382
|
return;
|
|
31282
31383
|
}
|
|
31283
31384
|
}
|
|
31385
|
+
|
|
31386
|
+
chStartsBindingIdentifierAndNotRelationalOperator(ch, pos) {
|
|
31387
|
+
if (isIdentifierStart2(ch)) {
|
|
31388
|
+
keywordAndTSRelationalOperator.lastIndex = pos;
|
|
31389
|
+
|
|
31390
|
+
if (keywordAndTSRelationalOperator.test(this.input)) {
|
|
31391
|
+
const endCh = this.codePointAtPos(keywordAndTSRelationalOperator.lastIndex);
|
|
31392
|
+
|
|
31393
|
+
if (!isIdentifierChar2(endCh) && endCh !== 92) {
|
|
31394
|
+
return false;
|
|
31395
|
+
}
|
|
31396
|
+
}
|
|
31397
|
+
|
|
31398
|
+
return true;
|
|
31399
|
+
} else if (ch === 92) {
|
|
31400
|
+
return true;
|
|
31401
|
+
} else {
|
|
31402
|
+
return false;
|
|
31403
|
+
}
|
|
31404
|
+
}
|
|
31405
|
+
|
|
31406
|
+
nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine() {
|
|
31407
|
+
const next = this.nextTokenInLineStart();
|
|
31408
|
+
const nextCh = this.codePointAtPos(next);
|
|
31409
|
+
|
|
31410
|
+
return this.chStartsBindingIdentifierAndNotRelationalOperator(nextCh, next);
|
|
31411
|
+
}
|
|
31412
|
+
|
|
31413
|
+
nextTokenIsIdentifierOrStringLiteralOnSameLine() {
|
|
31414
|
+
const next = this.nextTokenInLineStart();
|
|
31415
|
+
const nextCh = this.codePointAtPos(next);
|
|
31416
|
+
|
|
31417
|
+
return this.chStartsBindingIdentifier(nextCh, next) || nextCh === 34 || nextCh === 39;
|
|
31418
|
+
}
|
|
31284
31419
|
};
|
|
31285
31420
|
|
|
31286
31421
|
function isPossiblyLiteralEnum(expression2) {
|
|
@@ -31436,8 +31571,8 @@ var placeholders = (superClass) => class PlaceholdersParserMixin extends superCl
|
|
|
31436
31571
|
return this.parsePlaceholder('Pattern') || super.parseBindingAtom();
|
|
31437
31572
|
}
|
|
31438
31573
|
|
|
31439
|
-
isValidLVal(type, isParenthesized, binding) {
|
|
31440
|
-
return type === 'Placeholder' || super.isValidLVal(type, isParenthesized, binding);
|
|
31574
|
+
isValidLVal(type, disallowCallExpression, isParenthesized, binding) {
|
|
31575
|
+
return type === 'Placeholder' || super.isValidLVal(type, disallowCallExpression, isParenthesized, binding);
|
|
31441
31576
|
}
|
|
31442
31577
|
|
|
31443
31578
|
toAssignable(node, isLHS) {
|
|
@@ -31463,7 +31598,7 @@ var placeholders = (superClass) => class PlaceholdersParserMixin extends superCl
|
|
|
31463
31598
|
}
|
|
31464
31599
|
|
|
31465
31600
|
verifyBreakContinue(node, isBreak) {
|
|
31466
|
-
if (node.label
|
|
31601
|
+
if (node.label?.type === 'Placeholder')
|
|
31467
31602
|
return;
|
|
31468
31603
|
|
|
31469
31604
|
super.verifyBreakContinue(node, isBreak);
|
|
@@ -31951,7 +32086,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
31951
32086
|
|
|
31952
32087
|
this.next();
|
|
31953
32088
|
node.right = this.parseMaybeAssign();
|
|
31954
|
-
this.checkLVal(left, this.finishNode(node, 'AssignmentExpression'));
|
|
32089
|
+
this.checkLVal(left, this.finishNode(node, 'AssignmentExpression'), void 0, void 0, void 0, void 0, operator === '||=' || operator === '&&=' || operator === '??=');
|
|
31955
32090
|
return node;
|
|
31956
32091
|
} else if (ownExpressionErrors) {
|
|
31957
32092
|
this.checkExpressionErrors(refExpressionErrors, true);
|
|
@@ -31983,7 +32118,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
31983
32118
|
return this.parseConditional(expr, startLoc, refExpressionErrors);
|
|
31984
32119
|
}
|
|
31985
32120
|
|
|
31986
|
-
parseConditional(expr, startLoc
|
|
32121
|
+
parseConditional(expr, startLoc) {
|
|
31987
32122
|
if (this.eat(17)) {
|
|
31988
32123
|
const node = this.startNodeAt(startLoc);
|
|
31989
32124
|
|
|
@@ -32540,7 +32675,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
32540
32675
|
}
|
|
32541
32676
|
|
|
32542
32677
|
case 0: {
|
|
32543
|
-
return this.parseArrayLike(3,
|
|
32678
|
+
return this.parseArrayLike(3, false, refExpressionErrors);
|
|
32544
32679
|
}
|
|
32545
32680
|
|
|
32546
32681
|
case 5: {
|
|
@@ -32605,20 +32740,17 @@ var ExpressionParser = class extends LValParser {
|
|
|
32605
32740
|
return this.parseTopicReference(pipeProposal);
|
|
32606
32741
|
}
|
|
32607
32742
|
|
|
32608
|
-
this.unexpected();
|
|
32609
|
-
break;
|
|
32743
|
+
throw this.unexpected();
|
|
32610
32744
|
}
|
|
32611
32745
|
|
|
32612
32746
|
case 47: {
|
|
32613
32747
|
const lookaheadCh = this.input.codePointAt(this.nextTokenStart());
|
|
32614
32748
|
|
|
32615
32749
|
if (isIdentifierStart2(lookaheadCh) || lookaheadCh === 62) {
|
|
32616
|
-
this.expectOnePlugin(['jsx', 'flow', 'typescript']);
|
|
32617
|
-
} else {
|
|
32618
|
-
this.unexpected();
|
|
32750
|
+
throw this.expectOnePlugin(['jsx', 'flow', 'typescript']);
|
|
32619
32751
|
}
|
|
32620
32752
|
|
|
32621
|
-
|
|
32753
|
+
throw this.unexpected();
|
|
32622
32754
|
}
|
|
32623
32755
|
|
|
32624
32756
|
default:
|
|
@@ -32658,7 +32790,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
32658
32790
|
|
|
32659
32791
|
return id;
|
|
32660
32792
|
} else {
|
|
32661
|
-
this.unexpected();
|
|
32793
|
+
throw this.unexpected();
|
|
32662
32794
|
}
|
|
32663
32795
|
}
|
|
32664
32796
|
}
|
|
@@ -32673,9 +32805,9 @@ var ExpressionParser = class extends LValParser {
|
|
|
32673
32805
|
this.state.end--;
|
|
32674
32806
|
this.state.endLoc = createPositionWithColumnOffset(this.state.endLoc, -1);
|
|
32675
32807
|
return this.parseTopicReference(pipeProposal);
|
|
32676
|
-
} else {
|
|
32677
|
-
this.unexpected();
|
|
32678
32808
|
}
|
|
32809
|
+
|
|
32810
|
+
throw this.unexpected();
|
|
32679
32811
|
}
|
|
32680
32812
|
|
|
32681
32813
|
parseTopicReference(pipeProposal) {
|
|
@@ -32764,10 +32896,14 @@ var ExpressionParser = class extends LValParser {
|
|
|
32764
32896
|
const node = this.startNode();
|
|
32765
32897
|
this.next();
|
|
32766
32898
|
|
|
32767
|
-
if (this.match(10) && !this.scope.allowDirectSuper
|
|
32768
|
-
|
|
32769
|
-
|
|
32770
|
-
|
|
32899
|
+
if (this.match(10) && !this.scope.allowDirectSuper) {
|
|
32900
|
+
{
|
|
32901
|
+
this.raise(Errors.SuperNotAllowed, node);
|
|
32902
|
+
}
|
|
32903
|
+
} else if (!this.scope.allowSuper) {
|
|
32904
|
+
{
|
|
32905
|
+
this.raise(Errors.UnexpectedSuper, node);
|
|
32906
|
+
}
|
|
32771
32907
|
}
|
|
32772
32908
|
|
|
32773
32909
|
if (!this.match(10) && !this.match(0) && !this.match(16)) {
|
|
@@ -33017,7 +33153,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
33017
33153
|
return this.finishNode(parenExpression, 'ParenthesizedExpression');
|
|
33018
33154
|
}
|
|
33019
33155
|
|
|
33020
|
-
shouldParseArrow(
|
|
33156
|
+
shouldParseArrow() {
|
|
33021
33157
|
return !this.canInsertSemicolon();
|
|
33022
33158
|
}
|
|
33023
33159
|
|
|
@@ -33027,7 +33163,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
33027
33163
|
}
|
|
33028
33164
|
}
|
|
33029
33165
|
|
|
33030
|
-
parseParenItem(node
|
|
33166
|
+
parseParenItem(node) {
|
|
33031
33167
|
return node;
|
|
33032
33168
|
}
|
|
33033
33169
|
|
|
@@ -33428,7 +33564,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
33428
33564
|
return finishedNode;
|
|
33429
33565
|
}
|
|
33430
33566
|
|
|
33431
|
-
parseArrayLike(close,
|
|
33567
|
+
parseArrayLike(close, isTuple, refExpressionErrors) {
|
|
33432
33568
|
if (isTuple) {
|
|
33433
33569
|
this.expectPlugin('recordAndTuple');
|
|
33434
33570
|
}
|
|
@@ -33978,7 +34114,7 @@ var ExpressionParser = class extends LValParser {
|
|
|
33978
34114
|
return this.parseMaybeAssignAllowIn(refExpressionErrors, afterLeftParse);
|
|
33979
34115
|
}
|
|
33980
34116
|
|
|
33981
|
-
parsePropertyNamePrefixOperator(
|
|
34117
|
+
parsePropertyNamePrefixOperator() {}
|
|
33982
34118
|
};
|
|
33983
34119
|
|
|
33984
34120
|
var loopLabel = {
|
|
@@ -33992,7 +34128,7 @@ var switchLabel = {
|
|
|
33992
34128
|
var loneSurrogate = /[\uD800-\uDFFF]/u;
|
|
33993
34129
|
var keywordRelationalOperator = /in(?:stanceof)?/y;
|
|
33994
34130
|
|
|
33995
|
-
function babel7CompatTokens(tokens
|
|
34131
|
+
function babel7CompatTokens(tokens) {
|
|
33996
34132
|
for (let i = 0; i < tokens.length; i++) {
|
|
33997
34133
|
const token = tokens[i];
|
|
33998
34134
|
const {type} = token;
|
|
@@ -34085,10 +34221,7 @@ var StatementParser = class extends ExpressionParser {
|
|
|
34085
34221
|
return false;
|
|
34086
34222
|
}
|
|
34087
34223
|
|
|
34088
|
-
|
|
34089
|
-
const nextCh = this.codePointAtPos(next);
|
|
34090
|
-
|
|
34091
|
-
return this.chStartsBindingIdentifier(nextCh, next);
|
|
34224
|
+
return this.nextTokenIsIdentifierOnSameLine();
|
|
34092
34225
|
}
|
|
34093
34226
|
|
|
34094
34227
|
isForUsing() {
|
|
@@ -34114,6 +34247,13 @@ var StatementParser = class extends ExpressionParser {
|
|
|
34114
34247
|
return false;
|
|
34115
34248
|
}
|
|
34116
34249
|
|
|
34250
|
+
nextTokenIsIdentifierOnSameLine() {
|
|
34251
|
+
const next = this.nextTokenInLineStart();
|
|
34252
|
+
const nextCh = this.codePointAtPos(next);
|
|
34253
|
+
|
|
34254
|
+
return this.chStartsBindingIdentifier(nextCh, next);
|
|
34255
|
+
}
|
|
34256
|
+
|
|
34117
34257
|
isAwaitUsing() {
|
|
34118
34258
|
if (!this.isContextual(96)) {
|
|
34119
34259
|
return false;
|
|
@@ -34865,7 +35005,7 @@ var StatementParser = class extends ExpressionParser {
|
|
|
34865
35005
|
return this.finishNode(node, 'LabeledStatement');
|
|
34866
35006
|
}
|
|
34867
35007
|
|
|
34868
|
-
parseExpressionStatement(node, expr
|
|
35008
|
+
parseExpressionStatement(node, expr) {
|
|
34869
35009
|
node.expression = expr;
|
|
34870
35010
|
this.semicolon();
|
|
34871
35011
|
return this.finishNode(node, 'ExpressionStatement');
|
|
@@ -35450,7 +35590,7 @@ var StatementParser = class extends ExpressionParser {
|
|
|
35450
35590
|
this.classScope.declarePrivateName(this.getPrivateNameSV(node.key), kind, node.key.loc.start);
|
|
35451
35591
|
}
|
|
35452
35592
|
|
|
35453
|
-
parsePostMemberNameModifiers(
|
|
35593
|
+
parsePostMemberNameModifiers() {}
|
|
35454
35594
|
|
|
35455
35595
|
parseClassPrivateProperty(node) {
|
|
35456
35596
|
this.parseInitializer(node);
|
|
@@ -35577,10 +35717,10 @@ var StatementParser = class extends ExpressionParser {
|
|
|
35577
35717
|
return this.finishNode(node2, 'ExportDefaultDeclaration');
|
|
35578
35718
|
}
|
|
35579
35719
|
|
|
35580
|
-
this.unexpected(null, 5);
|
|
35720
|
+
throw this.unexpected(null, 5);
|
|
35581
35721
|
}
|
|
35582
35722
|
|
|
35583
|
-
eatExportStar(
|
|
35723
|
+
eatExportStar() {
|
|
35584
35724
|
return this.eat(55);
|
|
35585
35725
|
}
|
|
35586
35726
|
|
|
@@ -35689,7 +35829,7 @@ var StatementParser = class extends ExpressionParser {
|
|
|
35689
35829
|
return res;
|
|
35690
35830
|
}
|
|
35691
35831
|
|
|
35692
|
-
parseExportDeclaration(
|
|
35832
|
+
parseExportDeclaration() {
|
|
35693
35833
|
if (this.match(80)) {
|
|
35694
35834
|
const node2 = this.parseClass(this.startNode(), true, false);
|
|
35695
35835
|
return node2;
|
|
@@ -35903,7 +36043,7 @@ var StatementParser = class extends ExpressionParser {
|
|
|
35903
36043
|
return nodes2;
|
|
35904
36044
|
}
|
|
35905
36045
|
|
|
35906
|
-
parseExportSpecifier(node, isString
|
|
36046
|
+
parseExportSpecifier(node, isString) {
|
|
35907
36047
|
if (this.eatContextual(93)) {
|
|
35908
36048
|
node.exported = this.parseModuleExportName();
|
|
35909
36049
|
} else if (isString) {
|
|
@@ -36043,7 +36183,7 @@ var StatementParser = class extends ExpressionParser {
|
|
|
36043
36183
|
}
|
|
36044
36184
|
}
|
|
36045
36185
|
|
|
36046
|
-
isPrecedingIdImportPhase(
|
|
36186
|
+
isPrecedingIdImportPhase() {
|
|
36047
36187
|
const {type} = this.state;
|
|
36048
36188
|
|
|
36049
36189
|
return tokenIsIdentifier(type) ? type !== 98 || this.lookaheadCharCode() === 102 : type !== 12;
|
|
@@ -36287,68 +36427,68 @@ var StatementParser = class extends ExpressionParser {
|
|
|
36287
36427
|
|
|
36288
36428
|
var Parser = class extends StatementParser {
|
|
36289
36429
|
constructor(options, input, pluginsMap) {
|
|
36290
|
-
|
|
36291
|
-
super(
|
|
36292
|
-
this.options =
|
|
36430
|
+
const normalizedOptions = getOptions(options);
|
|
36431
|
+
super(normalizedOptions, input);
|
|
36432
|
+
this.options = normalizedOptions;
|
|
36293
36433
|
this.initializeScopes();
|
|
36294
36434
|
this.plugins = pluginsMap;
|
|
36295
|
-
this.filename =
|
|
36296
|
-
this.startIndex =
|
|
36435
|
+
this.filename = normalizedOptions.sourceFilename;
|
|
36436
|
+
this.startIndex = normalizedOptions.startIndex;
|
|
36297
36437
|
let optionFlags = 0;
|
|
36298
36438
|
|
|
36299
|
-
if (
|
|
36439
|
+
if (normalizedOptions.allowAwaitOutsideFunction) {
|
|
36300
36440
|
optionFlags |= 1;
|
|
36301
36441
|
}
|
|
36302
36442
|
|
|
36303
|
-
if (
|
|
36443
|
+
if (normalizedOptions.allowReturnOutsideFunction) {
|
|
36304
36444
|
optionFlags |= 2;
|
|
36305
36445
|
}
|
|
36306
36446
|
|
|
36307
|
-
if (
|
|
36447
|
+
if (normalizedOptions.allowImportExportEverywhere) {
|
|
36308
36448
|
optionFlags |= 8;
|
|
36309
36449
|
}
|
|
36310
36450
|
|
|
36311
|
-
if (
|
|
36451
|
+
if (normalizedOptions.allowSuperOutsideMethod) {
|
|
36312
36452
|
optionFlags |= 16;
|
|
36313
36453
|
}
|
|
36314
36454
|
|
|
36315
|
-
if (
|
|
36455
|
+
if (normalizedOptions.allowUndeclaredExports) {
|
|
36316
36456
|
optionFlags |= 64;
|
|
36317
36457
|
}
|
|
36318
36458
|
|
|
36319
|
-
if (
|
|
36459
|
+
if (normalizedOptions.allowNewTargetOutsideFunction) {
|
|
36320
36460
|
optionFlags |= 4;
|
|
36321
36461
|
}
|
|
36322
36462
|
|
|
36323
|
-
if (
|
|
36463
|
+
if (normalizedOptions.allowYieldOutsideFunction) {
|
|
36324
36464
|
optionFlags |= 32;
|
|
36325
36465
|
}
|
|
36326
36466
|
|
|
36327
|
-
if (
|
|
36467
|
+
if (normalizedOptions.ranges) {
|
|
36328
36468
|
optionFlags |= 128;
|
|
36329
36469
|
}
|
|
36330
36470
|
|
|
36331
|
-
if (
|
|
36471
|
+
if (normalizedOptions.tokens) {
|
|
36332
36472
|
optionFlags |= 256;
|
|
36333
36473
|
}
|
|
36334
36474
|
|
|
36335
|
-
if (
|
|
36475
|
+
if (normalizedOptions.createImportExpressions) {
|
|
36336
36476
|
optionFlags |= 512;
|
|
36337
36477
|
}
|
|
36338
36478
|
|
|
36339
|
-
if (
|
|
36479
|
+
if (normalizedOptions.createParenthesizedExpressions) {
|
|
36340
36480
|
optionFlags |= 1024;
|
|
36341
36481
|
}
|
|
36342
36482
|
|
|
36343
|
-
if (
|
|
36483
|
+
if (normalizedOptions.errorRecovery) {
|
|
36344
36484
|
optionFlags |= 2048;
|
|
36345
36485
|
}
|
|
36346
36486
|
|
|
36347
|
-
if (
|
|
36487
|
+
if (normalizedOptions.attachComment) {
|
|
36348
36488
|
optionFlags |= 4096;
|
|
36349
36489
|
}
|
|
36350
36490
|
|
|
36351
|
-
if (
|
|
36491
|
+
if (normalizedOptions.annexB) {
|
|
36352
36492
|
optionFlags |= 8192;
|
|
36353
36493
|
}
|
|
36354
36494
|
|
|
@@ -36366,10 +36506,11 @@ var Parser = class extends StatementParser {
|
|
|
36366
36506
|
|
|
36367
36507
|
this.nextToken();
|
|
36368
36508
|
file2.errors = null;
|
|
36369
|
-
this.parseTopLevel(file2, program3);
|
|
36370
|
-
|
|
36371
|
-
|
|
36372
|
-
|
|
36509
|
+
const result = this.parseTopLevel(file2, program3);
|
|
36510
|
+
|
|
36511
|
+
result.errors = this.state.errors;
|
|
36512
|
+
result.comments.length = this.state.commentsLen;
|
|
36513
|
+
return result;
|
|
36373
36514
|
}
|
|
36374
36515
|
};
|
|
36375
36516
|
|
|
@@ -36483,7 +36624,7 @@ function getParserClass(pluginsMap) {
|
|
|
36483
36624
|
return cls;
|
|
36484
36625
|
}
|
|
36485
36626
|
|
|
36486
|
-
//
|
|
36627
|
+
// ../babel-babel/packages/babel-code-frame/lib/index.js
|
|
36487
36628
|
var import_picocolors = __toESM(require_picocolors());
|
|
36488
36629
|
var import_js_tokens = __toESM(require_js_tokens());
|
|
36489
36630
|
|
|
@@ -36533,12 +36674,24 @@ var tokenize$2;
|
|
|
36533
36674
|
{
|
|
36534
36675
|
const getTokenType = function(token) {
|
|
36535
36676
|
if (token.type === 'IdentifierName') {
|
|
36536
|
-
|
|
36677
|
+
const tokenValue = token.value;
|
|
36678
|
+
|
|
36679
|
+
if (isKeyword(tokenValue) || isStrictReservedWord(tokenValue, true) || sometimesKeywords.has(tokenValue)) {
|
|
36537
36680
|
return 'keyword';
|
|
36538
36681
|
}
|
|
36539
36682
|
|
|
36540
|
-
|
|
36541
|
-
|
|
36683
|
+
const firstChar = tokenValue.charCodeAt(0);
|
|
36684
|
+
|
|
36685
|
+
if (firstChar < 128) {
|
|
36686
|
+
if (firstChar >= 65 && firstChar <= 90) {
|
|
36687
|
+
return 'capitalized';
|
|
36688
|
+
}
|
|
36689
|
+
} else {
|
|
36690
|
+
const firstChar2 = String.fromCodePoint(tokenValue.codePointAt(0));
|
|
36691
|
+
|
|
36692
|
+
if (firstChar2 !== firstChar2.toLowerCase()) {
|
|
36693
|
+
return 'capitalized';
|
|
36694
|
+
}
|
|
36542
36695
|
}
|
|
36543
36696
|
}
|
|
36544
36697
|
|
|
@@ -36796,7 +36949,7 @@ ${frame}`;
|
|
|
36796
36949
|
}
|
|
36797
36950
|
}
|
|
36798
36951
|
|
|
36799
|
-
//
|
|
36952
|
+
// ../babel-babel/packages/babel-template/lib/index.js
|
|
36800
36953
|
var {assertExpressionStatement: assertExpressionStatement2} = lib_exports;
|
|
36801
36954
|
|
|
36802
36955
|
function makeStatementFormatter(fn) {
|
|
@@ -37463,7 +37616,7 @@ var index$1 = Object.assign(smart.bind(void 0), {
|
|
|
37463
37616
|
ast: smart.ast,
|
|
37464
37617
|
});
|
|
37465
37618
|
|
|
37466
|
-
// node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
37619
|
+
// ../babel-babel/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
37467
37620
|
var comma = ','.charCodeAt(0);
|
|
37468
37621
|
var semicolon = ';'.charCodeAt(0);
|
|
37469
37622
|
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
|
@@ -37712,7 +37865,7 @@ function encode(decoded) {
|
|
|
37712
37865
|
return writer.flush();
|
|
37713
37866
|
}
|
|
37714
37867
|
|
|
37715
|
-
// node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs
|
|
37868
|
+
// ../babel-babel/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs
|
|
37716
37869
|
var schemeRegex = /^[\w+.-]+:\/\//;
|
|
37717
37870
|
var urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;
|
|
37718
37871
|
var fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;
|
|
@@ -37932,7 +38085,7 @@ case 2:
|
|
|
37932
38085
|
}
|
|
37933
38086
|
}
|
|
37934
38087
|
|
|
37935
|
-
// node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs
|
|
38088
|
+
// ../babel-babel/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs
|
|
37936
38089
|
function stripFilename(path) {
|
|
37937
38090
|
if (!path)
|
|
37938
38091
|
return '';
|
|
@@ -38204,7 +38357,7 @@ function traceSegmentInternal(segments, memo, line, column, bias) {
|
|
|
38204
38357
|
return index2;
|
|
38205
38358
|
}
|
|
38206
38359
|
|
|
38207
|
-
// node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs
|
|
38360
|
+
// ../babel-babel/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs
|
|
38208
38361
|
var SetArray = class {
|
|
38209
38362
|
constructor() {
|
|
38210
38363
|
this._indexes = {
|
|
@@ -38473,7 +38626,7 @@ function addMappingInternal(skipable, map, mapping) {
|
|
|
38473
38626
|
return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content);
|
|
38474
38627
|
}
|
|
38475
38628
|
|
|
38476
|
-
//
|
|
38629
|
+
// ../babel-babel/packages/babel-generator/lib/index.js
|
|
38477
38630
|
var import_jsesc = __toESM(require_jsesc());
|
|
38478
38631
|
|
|
38479
38632
|
var SourceMap = class {
|
|
@@ -38484,7 +38637,7 @@ var SourceMap = class {
|
|
|
38484
38637
|
__publicField(this, '_lastGenLine', 0);
|
|
38485
38638
|
__publicField(this, '_lastSourceLine', 0);
|
|
38486
38639
|
__publicField(this, '_lastSourceColumn', 0);
|
|
38487
|
-
__publicField(this, '_inputMap');
|
|
38640
|
+
__publicField(this, '_inputMap', null);
|
|
38488
38641
|
const map = this._map = new GenMapping({
|
|
38489
38642
|
sourceRoot: opts.sourceRoot,
|
|
38490
38643
|
});
|
|
@@ -38544,6 +38697,7 @@ var SourceMap = class {
|
|
|
38544
38697
|
}
|
|
38545
38698
|
} else {
|
|
38546
38699
|
originalMapping = {
|
|
38700
|
+
name: null,
|
|
38547
38701
|
source: filename?.replace(/\\/g, '/') || this._sourceFileName,
|
|
38548
38702
|
line,
|
|
38549
38703
|
column,
|
|
@@ -38795,7 +38949,7 @@ var Buffer2 = class {
|
|
|
38795
38949
|
last2 = i + 1;
|
|
38796
38950
|
|
|
38797
38951
|
if (last2 < len && line !== void 0) {
|
|
38798
|
-
this._mark(++line, 0,
|
|
38952
|
+
this._mark(++line, 0, void 0, void 0, filename);
|
|
38799
38953
|
}
|
|
38800
38954
|
|
|
38801
38955
|
i = str.indexOf('\n', last2);
|
|
@@ -39038,6 +39192,8 @@ var nodes = {
|
|
|
39038
39192
|
if (state.hasCall && state.hasHelper || state.hasFunction) {
|
|
39039
39193
|
return state.hasFunction ? 1 | 2 : 2;
|
|
39040
39194
|
}
|
|
39195
|
+
|
|
39196
|
+
return 0;
|
|
39041
39197
|
},
|
|
39042
39198
|
SwitchCase(node, parent) {
|
|
39043
39199
|
return (!!node.consequent.length || parent.cases[0] === node ? 1 : 0) | (!node.consequent.length && parent.cases[parent.cases.length - 1] === node ? 2 : 0);
|
|
@@ -39046,21 +39202,29 @@ var nodes = {
|
|
|
39046
39202
|
if (isFunction$1$1(node.left) || isFunction$1$1(node.right)) {
|
|
39047
39203
|
return 2;
|
|
39048
39204
|
}
|
|
39205
|
+
|
|
39206
|
+
return 0;
|
|
39049
39207
|
},
|
|
39050
39208
|
Literal(node) {
|
|
39051
39209
|
if (isStringLiteral3(node) && node.value === 'use strict') {
|
|
39052
39210
|
return 2;
|
|
39053
39211
|
}
|
|
39212
|
+
|
|
39213
|
+
return 0;
|
|
39054
39214
|
},
|
|
39055
39215
|
CallExpression(node) {
|
|
39056
39216
|
if (isFunction$1$1(node.callee) || isHelper(node)) {
|
|
39057
39217
|
return 1 | 2;
|
|
39058
39218
|
}
|
|
39219
|
+
|
|
39220
|
+
return 0;
|
|
39059
39221
|
},
|
|
39060
39222
|
OptionalCallExpression(node) {
|
|
39061
39223
|
if (isFunction$1$1(node.callee)) {
|
|
39062
39224
|
return 1 | 2;
|
|
39063
39225
|
}
|
|
39226
|
+
|
|
39227
|
+
return 0;
|
|
39064
39228
|
},
|
|
39065
39229
|
VariableDeclaration(node) {
|
|
39066
39230
|
for (let i = 0; i < node.declarations.length; i++) {
|
|
@@ -39076,11 +39240,15 @@ var nodes = {
|
|
|
39076
39240
|
return 1 | 2;
|
|
39077
39241
|
}
|
|
39078
39242
|
}
|
|
39243
|
+
|
|
39244
|
+
return 0;
|
|
39079
39245
|
},
|
|
39080
39246
|
IfStatement(node) {
|
|
39081
39247
|
if (isBlockStatement2(node.consequent)) {
|
|
39082
39248
|
return 1 | 2;
|
|
39083
39249
|
}
|
|
39250
|
+
|
|
39251
|
+
return 0;
|
|
39084
39252
|
},
|
|
39085
39253
|
};
|
|
39086
39254
|
|
|
@@ -39090,21 +39258,29 @@ nodes.ObjectMethod = function(node, parent) {
|
|
|
39090
39258
|
if (parent.properties[0] === node) {
|
|
39091
39259
|
return 1;
|
|
39092
39260
|
}
|
|
39261
|
+
|
|
39262
|
+
return 0;
|
|
39093
39263
|
};
|
|
39094
39264
|
nodes.ObjectTypeCallProperty = function(node, parent) {
|
|
39095
39265
|
if (parent.callProperties[0] === node && !parent.properties?.length) {
|
|
39096
39266
|
return 1;
|
|
39097
39267
|
}
|
|
39268
|
+
|
|
39269
|
+
return 0;
|
|
39098
39270
|
};
|
|
39099
39271
|
nodes.ObjectTypeIndexer = function(node, parent) {
|
|
39100
39272
|
if (parent.indexers[0] === node && !parent.properties?.length && !parent.callProperties?.length) {
|
|
39101
39273
|
return 1;
|
|
39102
39274
|
}
|
|
39275
|
+
|
|
39276
|
+
return 0;
|
|
39103
39277
|
};
|
|
39104
39278
|
nodes.ObjectTypeInternalSlot = function(node, parent) {
|
|
39105
39279
|
if (parent.internalSlots[0] === node && !parent.properties?.length && !parent.callProperties?.length && !parent.indexers?.length) {
|
|
39106
39280
|
return 1;
|
|
39107
39281
|
}
|
|
39282
|
+
|
|
39283
|
+
return 0;
|
|
39108
39284
|
};
|
|
39109
39285
|
[
|
|
39110
39286
|
['Function', true],
|
|
@@ -39248,8 +39424,6 @@ function Binary(node, parent) {
|
|
|
39248
39424
|
return true;
|
|
39249
39425
|
}
|
|
39250
39426
|
}
|
|
39251
|
-
|
|
39252
|
-
return void 0;
|
|
39253
39427
|
}
|
|
39254
39428
|
|
|
39255
39429
|
function UnionTypeAnnotation$1(node, parent) {
|
|
@@ -39636,7 +39810,7 @@ function needsParens$1(node, parent, tokenContext, getRawIdentifier) {
|
|
|
39636
39810
|
return !isDecoratorMemberExpression(node) && !(isCallExpression$1$1(node) && isDecoratorMemberExpression(node.callee)) && !isParenthesizedExpression2(node);
|
|
39637
39811
|
}
|
|
39638
39812
|
|
|
39639
|
-
return expandedParens.get(node.type)?.(node, parent, tokenContext, getRawIdentifier);
|
|
39813
|
+
return expandedParens.get(node.type)?.(node, parent, tokenContext, getRawIdentifier) || false;
|
|
39640
39814
|
}
|
|
39641
39815
|
|
|
39642
39816
|
function isDecoratorMemberExpression(node) {
|
|
@@ -39702,7 +39876,7 @@ var TokenMap = class {
|
|
|
39702
39876
|
if (indexes.length > 0)
|
|
39703
39877
|
this._nodesToTokenIndexes.set(node, indexes);
|
|
39704
39878
|
});
|
|
39705
|
-
this._tokensCache
|
|
39879
|
+
this._tokensCache.clear();
|
|
39706
39880
|
}
|
|
39707
39881
|
|
|
39708
39882
|
has(node) {
|
|
@@ -39755,7 +39929,7 @@ var TokenMap = class {
|
|
|
39755
39929
|
if (count > 1) {
|
|
39756
39930
|
const cache2 = this._nodesOccurrencesCountCache.get(node);
|
|
39757
39931
|
|
|
39758
|
-
if (cache2
|
|
39932
|
+
if (cache2?.test === test && cache2.count < count) {
|
|
39759
39933
|
i = cache2.i + 1;
|
|
39760
39934
|
occurrenceCount -= cache2.count + 1;
|
|
39761
39935
|
}
|
|
@@ -39832,7 +40006,7 @@ var TokenMap = class {
|
|
|
39832
40006
|
let low = first;
|
|
39833
40007
|
const children = childrenIterator(node);
|
|
39834
40008
|
|
|
39835
|
-
if ((node.type === 'ExportNamedDeclaration' || node.type === 'ExportDefaultDeclaration') && node.declaration
|
|
40009
|
+
if ((node.type === 'ExportNamedDeclaration' || node.type === 'ExportDefaultDeclaration') && node.declaration?.type === 'ClassDeclaration') {
|
|
39836
40010
|
children.next();
|
|
39837
40011
|
}
|
|
39838
40012
|
|
|
@@ -40484,10 +40658,7 @@ function SwitchStatement2(node) {
|
|
|
40484
40658
|
this.tokenChar(41);
|
|
40485
40659
|
this.space();
|
|
40486
40660
|
this.tokenChar(123);
|
|
40487
|
-
this.printSequence(node.cases, true
|
|
40488
|
-
if (!leading && node.cases[node.cases.length - 1] === cas)
|
|
40489
|
-
return -1;
|
|
40490
|
-
});
|
|
40661
|
+
this.printSequence(node.cases, true);
|
|
40491
40662
|
this.rightBrace(node);
|
|
40492
40663
|
}
|
|
40493
40664
|
|
|
@@ -40853,7 +41024,7 @@ function _parameters(parameters, endToken) {
|
|
|
40853
41024
|
this._param(parameters[i]);
|
|
40854
41025
|
|
|
40855
41026
|
if (trailingComma || i < paramLength - 1) {
|
|
40856
|
-
this.token(',',
|
|
41027
|
+
this.token(',', void 0, i);
|
|
40857
41028
|
this.space();
|
|
40858
41029
|
}
|
|
40859
41030
|
}
|
|
@@ -40905,7 +41076,7 @@ function _methodHead(node) {
|
|
|
40905
41076
|
this.tokenChar(63);
|
|
40906
41077
|
}
|
|
40907
41078
|
|
|
40908
|
-
this._params(node, node.computed && node.key.type !== 'StringLiteral' ? void 0 : node.key
|
|
41079
|
+
this._params(node, node.computed && node.key.type !== 'StringLiteral' ? void 0 : node.key);
|
|
40909
41080
|
}
|
|
40910
41081
|
|
|
40911
41082
|
function _predicate(node, noLineTerminatorAfter) {
|
|
@@ -41128,11 +41299,11 @@ function _printAttributes(node, hasPreviousBrace) {
|
|
|
41128
41299
|
this.word(useAssertKeyword ? 'assert' : 'with');
|
|
41129
41300
|
this.space();
|
|
41130
41301
|
const occurrenceCount = hasPreviousBrace ? 1 : 0;
|
|
41131
|
-
this.token('{',
|
|
41302
|
+
this.token('{', void 0, occurrenceCount);
|
|
41132
41303
|
this.space();
|
|
41133
41304
|
this.printList(attributes || assertions, this.shouldPrintTrailingComma('}'));
|
|
41134
41305
|
this.space();
|
|
41135
|
-
this.token('}',
|
|
41306
|
+
this.token('}', void 0, occurrenceCount);
|
|
41136
41307
|
}
|
|
41137
41308
|
|
|
41138
41309
|
function ExportAllDeclaration2(node) {
|
|
@@ -41473,54 +41644,8 @@ function ArrayExpression2(node) {
|
|
|
41473
41644
|
this.tokenChar(93);
|
|
41474
41645
|
}
|
|
41475
41646
|
|
|
41476
|
-
|
|
41477
|
-
|
|
41478
|
-
let startToken;
|
|
41479
|
-
let endToken;
|
|
41480
|
-
|
|
41481
|
-
{
|
|
41482
|
-
startToken = '#{';
|
|
41483
|
-
endToken = '}';
|
|
41484
|
-
}
|
|
41485
|
-
this.token(startToken);
|
|
41486
|
-
|
|
41487
|
-
if (props.length) {
|
|
41488
|
-
this.space();
|
|
41489
|
-
this.printList(props, this.shouldPrintTrailingComma(endToken), true, true);
|
|
41490
|
-
this.space();
|
|
41491
|
-
}
|
|
41492
|
-
|
|
41493
|
-
this.token(endToken);
|
|
41494
|
-
}
|
|
41495
|
-
|
|
41496
|
-
function TupleExpression2(node) {
|
|
41497
|
-
const elems = node.elements;
|
|
41498
|
-
const len = elems.length;
|
|
41499
|
-
let startToken;
|
|
41500
|
-
let endToken;
|
|
41501
|
-
|
|
41502
|
-
{
|
|
41503
|
-
startToken = '#[';
|
|
41504
|
-
endToken = ']';
|
|
41505
|
-
}
|
|
41506
|
-
this.token(startToken);
|
|
41507
|
-
for (let i = 0; i < elems.length; i++) {
|
|
41508
|
-
const elem = elems[i];
|
|
41509
|
-
|
|
41510
|
-
if (elem) {
|
|
41511
|
-
if (i > 0)
|
|
41512
|
-
this.space();
|
|
41513
|
-
|
|
41514
|
-
this.print(elem);
|
|
41515
|
-
|
|
41516
|
-
if (i < len - 1 || this.shouldPrintTrailingComma(endToken)) {
|
|
41517
|
-
this.token(',', false, i);
|
|
41518
|
-
}
|
|
41519
|
-
}
|
|
41520
|
-
}
|
|
41521
|
-
|
|
41522
|
-
this.token(endToken);
|
|
41523
|
-
}
|
|
41647
|
+
var RecordExpression;
|
|
41648
|
+
var TupleExpression;
|
|
41524
41649
|
|
|
41525
41650
|
function RegExpLiteral2(node) {
|
|
41526
41651
|
this.word(`/${node.pattern}/${node.flags}`);
|
|
@@ -41611,10 +41736,7 @@ function VoidPattern2() {
|
|
|
41611
41736
|
this.word('void');
|
|
41612
41737
|
}
|
|
41613
41738
|
|
|
41614
|
-
var {
|
|
41615
|
-
isDeclareExportDeclaration: isDeclareExportDeclaration2,
|
|
41616
|
-
isStatement: isStatement$12,
|
|
41617
|
-
} = lib_exports;
|
|
41739
|
+
var {isDeclareExportDeclaration: isDeclareExportDeclaration2} = lib_exports;
|
|
41618
41740
|
|
|
41619
41741
|
function AnyTypeAnnotation2() {
|
|
41620
41742
|
this.word('any');
|
|
@@ -42109,10 +42231,7 @@ function ObjectTypeAnnotation2(node) {
|
|
|
42109
42231
|
if (props.length) {
|
|
42110
42232
|
this.newline();
|
|
42111
42233
|
this.space();
|
|
42112
|
-
this.printJoin(props, true, true, void 0, void 0,
|
|
42113
|
-
if (leading && !props[0])
|
|
42114
|
-
return 1;
|
|
42115
|
-
}, () => {
|
|
42234
|
+
this.printJoin(props, true, true, void 0, void 0, () => {
|
|
42116
42235
|
if (props.length !== 1 || node.inexact) {
|
|
42117
42236
|
this.tokenChar(44);
|
|
42118
42237
|
this.space();
|
|
@@ -42847,7 +42966,7 @@ function tsPrintUnionOrIntersectionType(printer, node, sep) {
|
|
|
42847
42966
|
|
|
42848
42967
|
printer.printJoin(node.types, void 0, void 0, function(i) {
|
|
42849
42968
|
this.space();
|
|
42850
|
-
this.token(sep,
|
|
42969
|
+
this.token(sep, void 0, i + hasLeadingToken);
|
|
42851
42970
|
this.space();
|
|
42852
42971
|
});
|
|
42853
42972
|
}
|
|
@@ -43097,11 +43216,7 @@ function TSEnumMember2(node) {
|
|
|
43097
43216
|
}
|
|
43098
43217
|
|
|
43099
43218
|
function TSModuleDeclaration2(node) {
|
|
43100
|
-
const {
|
|
43101
|
-
declare,
|
|
43102
|
-
id,
|
|
43103
|
-
kind,
|
|
43104
|
-
} = node;
|
|
43219
|
+
const {declare, kind} = node;
|
|
43105
43220
|
|
|
43106
43221
|
if (declare) {
|
|
43107
43222
|
this.word('declare');
|
|
@@ -43255,6 +43370,8 @@ function printModifiersList(printer, node, modifiers) {
|
|
|
43255
43370
|
|
|
43256
43371
|
return modifiersSet.size === 0;
|
|
43257
43372
|
}
|
|
43373
|
+
|
|
43374
|
+
return false;
|
|
43258
43375
|
});
|
|
43259
43376
|
|
|
43260
43377
|
for (const modifier of modifiersSet) {
|
|
@@ -43406,7 +43523,7 @@ var generatorFunctions = /* @__PURE__ */Object.freeze({
|
|
|
43406
43523
|
PrivateName: PrivateName2,
|
|
43407
43524
|
Program: Program2,
|
|
43408
43525
|
QualifiedTypeIdentifier: QualifiedTypeIdentifier2,
|
|
43409
|
-
RecordExpression
|
|
43526
|
+
RecordExpression,
|
|
43410
43527
|
RegExpLiteral: RegExpLiteral2,
|
|
43411
43528
|
RestElement: RestElement2,
|
|
43412
43529
|
ReturnStatement: ReturnStatement2,
|
|
@@ -43496,7 +43613,7 @@ var generatorFunctions = /* @__PURE__ */Object.freeze({
|
|
|
43496
43613
|
ThrowStatement: ThrowStatement2,
|
|
43497
43614
|
TopicReference: TopicReference2,
|
|
43498
43615
|
TryStatement: TryStatement2,
|
|
43499
|
-
TupleExpression
|
|
43616
|
+
TupleExpression,
|
|
43500
43617
|
TupleTypeAnnotation: TupleTypeAnnotation2,
|
|
43501
43618
|
TypeAlias: TypeAlias2,
|
|
43502
43619
|
TypeAnnotation: TypeAnnotation2,
|
|
@@ -43558,7 +43675,7 @@ function commentIsNewline(c) {
|
|
|
43558
43675
|
var {needsParens} = n;
|
|
43559
43676
|
|
|
43560
43677
|
var Printer = class {
|
|
43561
|
-
constructor(format, map, tokens, originalCode) {
|
|
43678
|
+
constructor(format, map, tokens = null, originalCode = null) {
|
|
43562
43679
|
__publicField(this, 'tokenContext', TokenContext.normal);
|
|
43563
43680
|
__publicField(this, '_tokens', null);
|
|
43564
43681
|
__publicField(this, '_originalCode', null);
|
|
@@ -43584,7 +43701,7 @@ var Printer = class {
|
|
|
43584
43701
|
this._tokens = tokens;
|
|
43585
43702
|
this._originalCode = originalCode;
|
|
43586
43703
|
this._indentRepeat = format.indent.style.length;
|
|
43587
|
-
this._inputMap = map?._inputMap;
|
|
43704
|
+
this._inputMap = map?._inputMap || null;
|
|
43588
43705
|
this._buf = new Buffer2(map, format.indent.style[0]);
|
|
43589
43706
|
}
|
|
43590
43707
|
|
|
@@ -43972,7 +44089,7 @@ var Printer = class {
|
|
|
43972
44089
|
this.print(node);
|
|
43973
44090
|
}
|
|
43974
44091
|
|
|
43975
|
-
print(node, noLineTerminatorAfter, trailingCommentsLineOffset) {
|
|
44092
|
+
print(node, noLineTerminatorAfter = false, trailingCommentsLineOffset) {
|
|
43976
44093
|
if (!node)
|
|
43977
44094
|
return;
|
|
43978
44095
|
|
|
@@ -44043,7 +44160,7 @@ var Printer = class {
|
|
|
44043
44160
|
let oldTokenContext;
|
|
44044
44161
|
|
|
44045
44162
|
if (!shouldPrintParens) {
|
|
44046
|
-
noLineTerminatorAfter || (noLineTerminatorAfter = parent && this._noLineTerminatorAfterNode === parent && isLastChild(parent, node));
|
|
44163
|
+
noLineTerminatorAfter || (noLineTerminatorAfter = !!parent && this._noLineTerminatorAfterNode === parent && isLastChild(parent, node));
|
|
44047
44164
|
|
|
44048
44165
|
if (noLineTerminatorAfter) {
|
|
44049
44166
|
if (node.trailingComments?.some(commentIsNewline)) {
|
|
@@ -44155,7 +44272,7 @@ var Printer = class {
|
|
|
44155
44272
|
}
|
|
44156
44273
|
}
|
|
44157
44274
|
|
|
44158
|
-
printJoin(nodes2, statement2, indent, separator, printTrailingSeparator,
|
|
44275
|
+
printJoin(nodes2, statement2, indent, separator, printTrailingSeparator, iterator, trailingCommentsLineOffset) {
|
|
44159
44276
|
if (!nodes2?.length)
|
|
44160
44277
|
return;
|
|
44161
44278
|
|
|
@@ -44171,7 +44288,6 @@ var Printer = class {
|
|
|
44171
44288
|
this.indent();
|
|
44172
44289
|
|
|
44173
44290
|
const newlineOpts = {
|
|
44174
|
-
addNewlines,
|
|
44175
44291
|
nextNodeStartLine: 0,
|
|
44176
44292
|
};
|
|
44177
44293
|
|
|
@@ -44304,12 +44420,12 @@ var Printer = class {
|
|
|
44304
44420
|
this._indentInnerComments = false;
|
|
44305
44421
|
}
|
|
44306
44422
|
|
|
44307
|
-
printSequence(nodes2, indent, trailingCommentsLineOffset
|
|
44308
|
-
this.printJoin(nodes2, true, indent ?? false, void 0, void 0,
|
|
44423
|
+
printSequence(nodes2, indent, trailingCommentsLineOffset) {
|
|
44424
|
+
this.printJoin(nodes2, true, indent ?? false, void 0, void 0, void 0, trailingCommentsLineOffset);
|
|
44309
44425
|
}
|
|
44310
44426
|
|
|
44311
44427
|
printList(items, printTrailingSeparator, statement2, indent, separator, iterator) {
|
|
44312
|
-
this.printJoin(items, statement2, indent, separator ?? commaSeparator, printTrailingSeparator,
|
|
44428
|
+
this.printJoin(items, statement2, indent, separator ?? commaSeparator, printTrailingSeparator, iterator);
|
|
44313
44429
|
}
|
|
44314
44430
|
|
|
44315
44431
|
shouldPrintTrailingComma(listEnd) {
|
|
@@ -44667,10 +44783,10 @@ function generate$6(ast, opts = {}, code2) {
|
|
|
44667
44783
|
return printer.generate(ast);
|
|
44668
44784
|
}
|
|
44669
44785
|
|
|
44670
|
-
//
|
|
44786
|
+
// ../babel-babel/packages/babel-traverse/lib/index.js
|
|
44671
44787
|
var import_debug = __toESM(require_src());
|
|
44672
44788
|
|
|
44673
|
-
//
|
|
44789
|
+
// ../babel-babel/packages/babel-helper-globals/data/builtin-lower.json
|
|
44674
44790
|
var builtin_lower_default = [
|
|
44675
44791
|
'decodeURI',
|
|
44676
44792
|
'decodeURIComponent',
|
|
@@ -44687,7 +44803,7 @@ var builtin_lower_default = [
|
|
|
44687
44803
|
'unescape',
|
|
44688
44804
|
];
|
|
44689
44805
|
|
|
44690
|
-
//
|
|
44806
|
+
// ../babel-babel/packages/babel-helper-globals/data/builtin-upper.json
|
|
44691
44807
|
var builtin_upper_default = [
|
|
44692
44808
|
'AggregateError',
|
|
44693
44809
|
'Array',
|
|
@@ -44740,7 +44856,7 @@ var builtin_upper_default = [
|
|
|
44740
44856
|
'WeakSet',
|
|
44741
44857
|
];
|
|
44742
44858
|
|
|
44743
|
-
//
|
|
44859
|
+
// ../babel-babel/packages/babel-traverse/lib/index.js
|
|
44744
44860
|
var ReferencedIdentifier = [
|
|
44745
44861
|
'Identifier',
|
|
44746
44862
|
'JSXIdentifier',
|
|
@@ -44756,7 +44872,11 @@ var Scope$1 = [
|
|
|
44756
44872
|
'Pattern',
|
|
44757
44873
|
];
|
|
44758
44874
|
var Referenced = null;
|
|
44759
|
-
var BlockScoped =
|
|
44875
|
+
var BlockScoped = [
|
|
44876
|
+
'FunctionDeclaration',
|
|
44877
|
+
'ClassDeclaration',
|
|
44878
|
+
'VariableDeclaration',
|
|
44879
|
+
];
|
|
44760
44880
|
var Var = [
|
|
44761
44881
|
'VariableDeclaration',
|
|
44762
44882
|
];
|
|
@@ -44836,16 +44956,16 @@ var {isCompatTag: isCompatTag2} = react2;
|
|
|
44836
44956
|
function isReferencedIdentifier(opts) {
|
|
44837
44957
|
const {node, parent} = this;
|
|
44838
44958
|
|
|
44839
|
-
if (
|
|
44840
|
-
|
|
44841
|
-
|
|
44842
|
-
|
|
44843
|
-
} else {
|
|
44959
|
+
if (isIdentifier$6$1(node, opts)) {
|
|
44960
|
+
return nodeIsReferenced(node, parent, this.parentPath.parent);
|
|
44961
|
+
} else if (isJSXIdentifier3(node, opts)) {
|
|
44962
|
+
if (!isJSXMemberExpression2(parent) && isCompatTag2(node.name))
|
|
44844
44963
|
return false;
|
|
44845
|
-
|
|
44964
|
+
|
|
44965
|
+
return nodeIsReferenced(node, parent, this.parentPath.parent);
|
|
44966
|
+
} else {
|
|
44967
|
+
return false;
|
|
44846
44968
|
}
|
|
44847
|
-
|
|
44848
|
-
return nodeIsReferenced(node, parent, this.parentPath.parent);
|
|
44849
44969
|
}
|
|
44850
44970
|
|
|
44851
44971
|
function isReferencedMemberExpression() {
|
|
@@ -44905,7 +45025,7 @@ function isVar2() {
|
|
|
44905
45025
|
}
|
|
44906
45026
|
|
|
44907
45027
|
function isUser() {
|
|
44908
|
-
return
|
|
45028
|
+
return !!this.node?.loc;
|
|
44909
45029
|
}
|
|
44910
45030
|
|
|
44911
45031
|
function isGenerated() {
|
|
@@ -45028,11 +45148,8 @@ function explode$1(visitor) {
|
|
|
45028
45148
|
|
|
45029
45149
|
if (types2 !== null) {
|
|
45030
45150
|
for (const type of types2) {
|
|
45031
|
-
|
|
45032
|
-
|
|
45033
|
-
} else {
|
|
45034
|
-
visitor[type] = fns;
|
|
45035
|
-
}
|
|
45151
|
+
visitor[type] ?? (visitor[type] = {});
|
|
45152
|
+
mergePair(visitor[type], fns);
|
|
45036
45153
|
}
|
|
45037
45154
|
} else {
|
|
45038
45155
|
mergePair(visitor, fns);
|
|
@@ -45098,7 +45215,7 @@ function verify$1(visitor) {
|
|
|
45098
45215
|
continue;
|
|
45099
45216
|
|
|
45100
45217
|
if (!TYPES2.includes(nodeType)) {
|
|
45101
|
-
throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type in @babel/traverse ${'8.0.0-beta.
|
|
45218
|
+
throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type in @babel/traverse ${'8.0.0-beta.3'}`);
|
|
45102
45219
|
}
|
|
45103
45220
|
|
|
45104
45221
|
const visitors2 = visitor[nodeType];
|
|
@@ -45232,7 +45349,7 @@ function wrapCheck(nodeType, fn) {
|
|
|
45232
45349
|
}
|
|
45233
45350
|
|
|
45234
45351
|
function shouldIgnoreKey(key) {
|
|
45235
|
-
if (key
|
|
45352
|
+
if (key.startsWith('_'))
|
|
45236
45353
|
return true;
|
|
45237
45354
|
|
|
45238
45355
|
if (key === 'enter' || key === 'exit' || key === 'shouldSkip')
|
|
@@ -45415,6 +45532,73 @@ var Renamer = class {
|
|
|
45415
45532
|
}
|
|
45416
45533
|
};
|
|
45417
45534
|
|
|
45535
|
+
var {VISITOR_KEYS: VISITOR_KEYS$5} = lib_exports;
|
|
45536
|
+
|
|
45537
|
+
function traverseForScope(path, visitors2, state) {
|
|
45538
|
+
const exploded = explode$1(visitors2);
|
|
45539
|
+
|
|
45540
|
+
if (exploded.enter || exploded.exit) {
|
|
45541
|
+
throw new Error('Should not be used with enter/exit visitors.');
|
|
45542
|
+
}
|
|
45543
|
+
|
|
45544
|
+
_traverse2(path.parentPath, path.parent, path.node, path.container, path.key, path.listKey, path.hub, path);
|
|
45545
|
+
function _traverse2(parentPath, parent, node, container, key, listKey, hub, inPath) {
|
|
45546
|
+
if (!node) {
|
|
45547
|
+
return;
|
|
45548
|
+
}
|
|
45549
|
+
|
|
45550
|
+
const path2 = inPath || NodePath_Final.get({
|
|
45551
|
+
hub,
|
|
45552
|
+
parentPath,
|
|
45553
|
+
parent,
|
|
45554
|
+
container,
|
|
45555
|
+
listKey,
|
|
45556
|
+
key,
|
|
45557
|
+
});
|
|
45558
|
+
|
|
45559
|
+
_forceSetScope.call(path2);
|
|
45560
|
+
const visitor = exploded[node.type];
|
|
45561
|
+
|
|
45562
|
+
if (visitor?.enter) {
|
|
45563
|
+
for (const visit2 of visitor.enter) {
|
|
45564
|
+
visit2.call(state, path2, state);
|
|
45565
|
+
}
|
|
45566
|
+
}
|
|
45567
|
+
|
|
45568
|
+
if (path2.shouldSkip) {
|
|
45569
|
+
return;
|
|
45570
|
+
}
|
|
45571
|
+
|
|
45572
|
+
const keys2 = VISITOR_KEYS$5[node.type];
|
|
45573
|
+
|
|
45574
|
+
if (!keys2?.length) {
|
|
45575
|
+
return;
|
|
45576
|
+
}
|
|
45577
|
+
|
|
45578
|
+
for (const key2 of keys2) {
|
|
45579
|
+
const prop = node[key2];
|
|
45580
|
+
|
|
45581
|
+
if (!prop)
|
|
45582
|
+
continue;
|
|
45583
|
+
|
|
45584
|
+
if (Array.isArray(prop)) {
|
|
45585
|
+
for (let i = 0; i < prop.length; i++) {
|
|
45586
|
+
const value = prop[i];
|
|
45587
|
+
_traverse2(path2, node, value, prop, i, key2);
|
|
45588
|
+
}
|
|
45589
|
+
} else {
|
|
45590
|
+
_traverse2(path2, node, prop, node, key2, null);
|
|
45591
|
+
}
|
|
45592
|
+
}
|
|
45593
|
+
|
|
45594
|
+
if (visitor?.exit) {
|
|
45595
|
+
for (const visit2 of visitor.exit) {
|
|
45596
|
+
visit2.call(state, path2, state);
|
|
45597
|
+
}
|
|
45598
|
+
}
|
|
45599
|
+
}
|
|
45600
|
+
}
|
|
45601
|
+
|
|
45418
45602
|
var Binding = class {
|
|
45419
45603
|
constructor({identifier: identifier4, scope: scope2, path, kind}) {
|
|
45420
45604
|
__publicField(this, 'identifier');
|
|
@@ -45553,9 +45737,8 @@ var cache = /* @__PURE__ */Object.freeze({
|
|
|
45553
45737
|
|
|
45554
45738
|
var {
|
|
45555
45739
|
assignmentExpression: assignmentExpression$3,
|
|
45556
|
-
callExpression: callExpression$3,
|
|
45557
45740
|
cloneNode: cloneNode$3,
|
|
45558
|
-
getBindingIdentifiers: getBindingIdentifiers$
|
|
45741
|
+
getBindingIdentifiers: getBindingIdentifiers$2,
|
|
45559
45742
|
identifier: identifier$3$1,
|
|
45560
45743
|
isArrayExpression: isArrayExpression3,
|
|
45561
45744
|
isBinary: isBinary3,
|
|
@@ -45586,13 +45769,9 @@ var {
|
|
|
45586
45769
|
isVariableDeclaration: isVariableDeclaration$1$1,
|
|
45587
45770
|
expressionStatement: expressionStatement$3$1,
|
|
45588
45771
|
matchesPattern: matchesPattern$1$1,
|
|
45589
|
-
memberExpression: memberExpression$1,
|
|
45590
|
-
numericLiteral: numericLiteral$2,
|
|
45591
45772
|
toIdentifier: toIdentifier2,
|
|
45592
45773
|
variableDeclaration: variableDeclaration$1$1,
|
|
45593
45774
|
variableDeclarator: variableDeclarator$1,
|
|
45594
|
-
isRecordExpression: isRecordExpression2,
|
|
45595
|
-
isTupleExpression: isTupleExpression2,
|
|
45596
45775
|
isObjectProperty: isObjectProperty2,
|
|
45597
45776
|
isTopicReference: isTopicReference2,
|
|
45598
45777
|
isMetaProperty: isMetaProperty2,
|
|
@@ -45757,6 +45936,10 @@ function resetScope(scope2) {
|
|
|
45757
45936
|
scope2.globals = /* @__PURE__ */Object.create(null);
|
|
45758
45937
|
}
|
|
45759
45938
|
|
|
45939
|
+
function isAnonymousFunctionExpression(path) {
|
|
45940
|
+
return path.isFunctionExpression() && !path.node.id || path.isArrowFunctionExpression();
|
|
45941
|
+
}
|
|
45942
|
+
|
|
45760
45943
|
var collectorVisitor = {
|
|
45761
45944
|
ForStatement(path) {
|
|
45762
45945
|
const declar = path.get('init');
|
|
@@ -45830,7 +46013,7 @@ var collectorVisitor = {
|
|
|
45830
46013
|
binding?.reference(path);
|
|
45831
46014
|
} else if (isVariableDeclaration$1$1(declar)) {
|
|
45832
46015
|
for (const decl of declar.declarations) {
|
|
45833
|
-
for (const name of Object.keys(getBindingIdentifiers$
|
|
46016
|
+
for (const name of Object.keys(getBindingIdentifiers$2(decl))) {
|
|
45834
46017
|
const binding = scope2.getBinding(name);
|
|
45835
46018
|
binding?.reference(path);
|
|
45836
46019
|
}
|
|
@@ -46045,7 +46228,7 @@ var _Scope = class _Scope {
|
|
|
46045
46228
|
}
|
|
46046
46229
|
}
|
|
46047
46230
|
|
|
46048
|
-
checkBlockScopedCollisions(local, kind, name
|
|
46231
|
+
checkBlockScopedCollisions(local, kind, name) {
|
|
46049
46232
|
if (kind === 'param')
|
|
46050
46233
|
return;
|
|
46051
46234
|
|
|
@@ -46059,7 +46242,7 @@ var _Scope = class _Scope {
|
|
|
46059
46242
|
|| local.kind === 'param' && kind === 'const';
|
|
46060
46243
|
|
|
46061
46244
|
if (duplicate) {
|
|
46062
|
-
throw
|
|
46245
|
+
throw Error(`Duplicate declaration '${name}'`, TypeError);
|
|
46063
46246
|
}
|
|
46064
46247
|
}
|
|
46065
46248
|
|
|
@@ -46275,14 +46458,14 @@ var _Scope = class _Scope {
|
|
|
46275
46458
|
return true;
|
|
46276
46459
|
} else if (isBinary3(node)) {
|
|
46277
46460
|
return this.isPure(node.left, constantsOnly) && this.isPure(node.right, constantsOnly);
|
|
46278
|
-
} else if (isArrayExpression3(node)
|
|
46461
|
+
} else if (isArrayExpression3(node)) {
|
|
46279
46462
|
for (const elem of node.elements) {
|
|
46280
46463
|
if (elem !== null && !this.isPure(elem, constantsOnly))
|
|
46281
46464
|
return false;
|
|
46282
46465
|
}
|
|
46283
46466
|
|
|
46284
46467
|
return true;
|
|
46285
|
-
} else if (isObjectExpression3(node)
|
|
46468
|
+
} else if (isObjectExpression3(node)) {
|
|
46286
46469
|
for (const prop of node.properties) {
|
|
46287
46470
|
if (!this.isPure(prop, constantsOnly))
|
|
46288
46471
|
return false;
|
|
@@ -46423,10 +46606,6 @@ var _Scope = class _Scope {
|
|
|
46423
46606
|
collectorVisitor]));
|
|
46424
46607
|
|
|
46425
46608
|
if (path.type !== 'Program') {
|
|
46426
|
-
for (const visit2 of scopeVisitor.enter) {
|
|
46427
|
-
visit2.call(state, path, state);
|
|
46428
|
-
}
|
|
46429
|
-
|
|
46430
46609
|
const typeVisitors = scopeVisitor[path.type];
|
|
46431
46610
|
|
|
46432
46611
|
if (typeVisitors) {
|
|
@@ -46436,7 +46615,9 @@ collectorVisitor]));
|
|
|
46436
46615
|
}
|
|
46437
46616
|
}
|
|
46438
46617
|
|
|
46439
|
-
|
|
46618
|
+
{
|
|
46619
|
+
traverseForScope(path, scopeVisitor, state);
|
|
46620
|
+
}
|
|
46440
46621
|
this.crawling = false;
|
|
46441
46622
|
|
|
46442
46623
|
for (const path2 of state.assignments) {
|
|
@@ -46487,7 +46668,7 @@ collectorVisitor]));
|
|
|
46487
46668
|
id,
|
|
46488
46669
|
} = opts;
|
|
46489
46670
|
|
|
46490
|
-
if (!init && !unique && (kind === 'var' || kind === 'let') && path
|
|
46671
|
+
if (!init && !unique && (kind === 'var' || kind === 'let') && isAnonymousFunctionExpression(path) && isCallExpression$12(path.parent, {callee: path.node}) && path.parent.arguments.length <= path.node.params.length && isIdentifier$5$1(id)) {
|
|
46491
46672
|
path.pushContainer('params', id);
|
|
46492
46673
|
path.scope.registerBinding('param', path.get('params')[path.node.params.length - 1]);
|
|
46493
46674
|
return;
|
|
@@ -46721,14 +46902,14 @@ collectorVisitor]));
|
|
|
46721
46902
|
init.push(assignmentExpression$3('=', decl.id, decl.init));
|
|
46722
46903
|
}
|
|
46723
46904
|
|
|
46724
|
-
const ids = Object.keys(getBindingIdentifiers$
|
|
46905
|
+
const ids = Object.keys(getBindingIdentifiers$2(decl, false, true, true));
|
|
46725
46906
|
|
|
46726
46907
|
for (const name2 of ids) {
|
|
46727
46908
|
emit(identifier$3$1(name2), decl.init != null);
|
|
46728
46909
|
}
|
|
46729
46910
|
}
|
|
46730
46911
|
|
|
46731
|
-
if (parentPath.parentPath.
|
|
46912
|
+
if (parentPath.parentPath.isForXStatement({left: parent})) {
|
|
46732
46913
|
parentPath.replaceWith(firstId);
|
|
46733
46914
|
} else if (init.length === 0) {
|
|
46734
46915
|
parentPath.remove();
|
|
@@ -46858,7 +47039,7 @@ function getDeepestCommonAncestorFrom(paths, filter) {
|
|
|
46858
47039
|
|
|
46859
47040
|
const first = ancestries[0];
|
|
46860
47041
|
|
|
46861
|
-
depthLoop:
|
|
47042
|
+
depthLoop: for (let i = 0; i < minDepth; i++) {
|
|
46862
47043
|
const shouldMatch = first[i];
|
|
46863
47044
|
|
|
46864
47045
|
for (const ancestry of ancestries) {
|
|
@@ -46916,7 +47097,6 @@ function inType(...candidateTypes) {
|
|
|
46916
47097
|
var {
|
|
46917
47098
|
createFlowUnionType: createFlowUnionType2,
|
|
46918
47099
|
createTSUnionType: createTSUnionType2,
|
|
46919
|
-
createUnionTypeAnnotation,
|
|
46920
47100
|
isFlowType: isFlowType2,
|
|
46921
47101
|
isTSType: isTSType2,
|
|
46922
47102
|
} = lib_exports;
|
|
@@ -47073,7 +47253,7 @@ function getParentConditionalPath(binding, path, name) {
|
|
|
47073
47253
|
}
|
|
47074
47254
|
|
|
47075
47255
|
if (parentPath.isFunction()) {
|
|
47076
|
-
if (parentPath.parentPath.scope.getBinding(name) !== binding)
|
|
47256
|
+
if (name == null || parentPath.parentPath.scope.getBinding(name) !== binding)
|
|
47077
47257
|
return;
|
|
47078
47258
|
}
|
|
47079
47259
|
|
|
@@ -47590,6 +47770,7 @@ var hooks = [
|
|
|
47590
47770
|
if (parent.isIfStatement() && self.key === 'consequent' || self.key === 'body' && (parent.isLoop() || parent.isArrowFunctionExpression())) {
|
|
47591
47771
|
self.replaceWith({
|
|
47592
47772
|
type: 'BlockStatement',
|
|
47773
|
+
directives: [],
|
|
47593
47774
|
body: [],
|
|
47594
47775
|
});
|
|
47595
47776
|
return true;
|
|
@@ -47597,8 +47778,6 @@ var hooks = [
|
|
|
47597
47778
|
},
|
|
47598
47779
|
];
|
|
47599
47780
|
|
|
47600
|
-
var {getBindingIdentifiers: getBindingIdentifiers$2} = lib_exports;
|
|
47601
|
-
|
|
47602
47781
|
function remove$3() {
|
|
47603
47782
|
_assertUnremoved.call(this);
|
|
47604
47783
|
resync.call(this);
|
|
@@ -47618,7 +47797,7 @@ function remove$3() {
|
|
|
47618
47797
|
}
|
|
47619
47798
|
|
|
47620
47799
|
function _removeFromScope() {
|
|
47621
|
-
const bindings = getBindingIdentifiers
|
|
47800
|
+
const bindings = getBindingIdentifiers(this.node, false, false, true);
|
|
47622
47801
|
Object
|
|
47623
47802
|
.keys(bindings)
|
|
47624
47803
|
.forEach((name) => this.scope.removeBinding(name));
|
|
@@ -48058,7 +48237,7 @@ function _replaceWith(node) {
|
|
|
48058
48237
|
|
|
48059
48238
|
this.debug(`Replace with ${node?.type}`);
|
|
48060
48239
|
getCachedPaths(this)?.set(node, this).delete(this.node);
|
|
48061
|
-
this.node =
|
|
48240
|
+
this.node = node;
|
|
48062
48241
|
this.container[this.key] = node;
|
|
48063
48242
|
}
|
|
48064
48243
|
|
|
@@ -49077,8 +49256,7 @@ function standardizeSuperProperty(superProp) {
|
|
|
49077
49256
|
|
|
49078
49257
|
if (superProp.node.computed) {
|
|
49079
49258
|
const tmp = superProp.scope.generateDeclaredUidIdentifier('tmp');
|
|
49080
|
-
const object = superProp.node
|
|
49081
|
-
const property = superProp.node.property;
|
|
49259
|
+
const {object, property} = superProp.node;
|
|
49082
49260
|
|
|
49083
49261
|
assignmentPath.get('left').replaceWith(memberExpression2(object, assignmentExpression2('=', tmp, property), true));
|
|
49084
49262
|
assignmentPath.get('right').replaceWith(rightExpression(isLogicalAssignment ? '=' : op, memberExpression2(object, identifier3(tmp.name), true), value));
|
|
@@ -49538,7 +49716,7 @@ function referencesImport(moduleSource, importName) {
|
|
|
49538
49716
|
|
|
49539
49717
|
const binding = this.scope.getBinding(this.node.name);
|
|
49540
49718
|
|
|
49541
|
-
if (
|
|
49719
|
+
if (binding?.kind !== 'module')
|
|
49542
49720
|
return false;
|
|
49543
49721
|
|
|
49544
49722
|
const path = binding.path;
|
|
@@ -49958,6 +50136,8 @@ function isInStrictMode() {
|
|
|
49958
50136
|
return true;
|
|
49959
50137
|
}
|
|
49960
50138
|
}
|
|
50139
|
+
|
|
50140
|
+
return false;
|
|
49961
50141
|
});
|
|
49962
50142
|
|
|
49963
50143
|
return !!strictParent;
|
|
@@ -50427,7 +50607,7 @@ function addComments2(type, comments) {
|
|
|
50427
50607
|
|
|
50428
50608
|
var {validate: validate3} = lib_exports;
|
|
50429
50609
|
|
|
50430
|
-
var debug$
|
|
50610
|
+
var debug$9 = (0, import_debug.default)('babel');
|
|
50431
50611
|
var REMOVED = 1 << 0;
|
|
50432
50612
|
var SHOULD_STOP = 1 << 1;
|
|
50433
50613
|
var SHOULD_SKIP = 1 << 2;
|
|
@@ -50436,7 +50616,6 @@ var NodePath_Final = class NodePath {
|
|
|
50436
50616
|
constructor(hub, parent) {
|
|
50437
50617
|
__publicField(this, 'contexts', []);
|
|
50438
50618
|
__publicField(this, 'state', null);
|
|
50439
|
-
__publicField(this, 'opts', null);
|
|
50440
50619
|
__publicField(this, '_traverseFlags', 0);
|
|
50441
50620
|
__publicField(this, 'skipKeys', null);
|
|
50442
50621
|
__publicField(this, 'parentPath', null);
|
|
@@ -50570,10 +50749,10 @@ var NodePath_Final = class NodePath {
|
|
|
50570
50749
|
}
|
|
50571
50750
|
|
|
50572
50751
|
debug(message) {
|
|
50573
|
-
if (!debug$
|
|
50752
|
+
if (!debug$9.enabled)
|
|
50574
50753
|
return;
|
|
50575
50754
|
|
|
50576
|
-
debug$
|
|
50755
|
+
debug$9(`${this.getPathLocation()} ${this.type}: ${message}`);
|
|
50577
50756
|
}
|
|
50578
50757
|
|
|
50579
50758
|
toString() {
|
|
@@ -50686,7 +50865,7 @@ for (const type of TYPES$4) {
|
|
|
50686
50865
|
|
|
50687
50866
|
Object.assign(NodePath_Final.prototype, NodePath_virtual_types_validator);
|
|
50688
50867
|
for (const type of Object.keys(virtualTypes)) {
|
|
50689
|
-
if (type
|
|
50868
|
+
if (type.startsWith('_'))
|
|
50690
50869
|
continue;
|
|
50691
50870
|
|
|
50692
50871
|
if (!TYPES$4.includes(type))
|
|
@@ -50785,13 +50964,13 @@ var TraversalContext = class {
|
|
|
50785
50964
|
visitIndex++;
|
|
50786
50965
|
resync.call(path);
|
|
50787
50966
|
|
|
50967
|
+
if (path.key === null)
|
|
50968
|
+
continue;
|
|
50969
|
+
|
|
50788
50970
|
if (path.contexts.length === 0 || path.contexts[path.contexts.length - 1] !== this) {
|
|
50789
50971
|
pushContext.call(path, this);
|
|
50790
50972
|
}
|
|
50791
50973
|
|
|
50792
|
-
if (path.key === null)
|
|
50793
|
-
continue;
|
|
50794
|
-
|
|
50795
50974
|
const {node} = path;
|
|
50796
50975
|
|
|
50797
50976
|
if (visited.has(node))
|
|
@@ -50816,6 +50995,9 @@ var TraversalContext = class {
|
|
|
50816
50995
|
}
|
|
50817
50996
|
|
|
50818
50997
|
for (let i = 0; i < visitIndex; i++) {
|
|
50998
|
+
if (queue[i].key === null)
|
|
50999
|
+
continue;
|
|
51000
|
+
|
|
50819
51001
|
popContext.call(queue[i]);
|
|
50820
51002
|
}
|
|
50821
51003
|
|
|
@@ -51102,6 +51284,24 @@ function stop() {
|
|
|
51102
51284
|
this._traverseFlags |= SHOULD_SKIP | SHOULD_STOP;
|
|
51103
51285
|
}
|
|
51104
51286
|
|
|
51287
|
+
function _forceSetScope() {
|
|
51288
|
+
let path = this.parentPath;
|
|
51289
|
+
|
|
51290
|
+
if ((this.key === 'key' || this.listKey === 'decorators') && path.isMethod() || this.key === 'discriminant' && path.isSwitchStatement()) {
|
|
51291
|
+
path = path.parentPath;
|
|
51292
|
+
}
|
|
51293
|
+
|
|
51294
|
+
let target;
|
|
51295
|
+
|
|
51296
|
+
while (path && !target) {
|
|
51297
|
+
target = path.scope;
|
|
51298
|
+
path = path.parentPath;
|
|
51299
|
+
}
|
|
51300
|
+
|
|
51301
|
+
this.scope = this.getScope(target);
|
|
51302
|
+
this.scope?.init();
|
|
51303
|
+
}
|
|
51304
|
+
|
|
51105
51305
|
function setScope() {
|
|
51106
51306
|
if (this.opts?.noScope)
|
|
51107
51307
|
return;
|
|
@@ -51294,7 +51494,7 @@ function traverse3(parent, opts = {}, scope2, state, parentPath, visitSelf) {
|
|
|
51294
51494
|
}
|
|
51295
51495
|
|
|
51296
51496
|
explode$1(opts);
|
|
51297
|
-
traverseNode(parent, opts, scope2, state, parentPath,
|
|
51497
|
+
traverseNode(parent, opts, scope2, state, parentPath, void 0, visitSelf);
|
|
51298
51498
|
}
|
|
51299
51499
|
|
|
51300
51500
|
traverse3.visitors = visitors$2;
|
|
@@ -51358,9 +51558,9 @@ var fullstore$3 = (value) => {
|
|
|
51358
51558
|
};
|
|
51359
51559
|
};
|
|
51360
51560
|
|
|
51361
|
-
var types$
|
|
51561
|
+
var types$18 = {};
|
|
51362
51562
|
|
|
51363
|
-
types$
|
|
51563
|
+
types$18.TYPES = {
|
|
51364
51564
|
TOKEN: 'Token',
|
|
51365
51565
|
NEWLINE: 'Newline',
|
|
51366
51566
|
LINEBREAK: 'Linebreak',
|
|
@@ -51380,7 +51580,7 @@ var arrowFunctionExpression = {};
|
|
|
51380
51580
|
|
|
51381
51581
|
var is$3 = {};
|
|
51382
51582
|
|
|
51383
|
-
const {types: types$
|
|
51583
|
+
const {types: types$17} = bundle;
|
|
51384
51584
|
const {
|
|
51385
51585
|
isStringLiteral: isStringLiteral$9,
|
|
51386
51586
|
isIdentifier: isIdentifier$g,
|
|
@@ -51390,9 +51590,9 @@ const {
|
|
|
51390
51590
|
isVariableDeclaration: isVariableDeclaration$4,
|
|
51391
51591
|
isMemberExpression: isMemberExpression$7,
|
|
51392
51592
|
isArrayExpression: isArrayExpression$9,
|
|
51393
|
-
isObjectExpression: isObjectExpression$
|
|
51593
|
+
isObjectExpression: isObjectExpression$9,
|
|
51394
51594
|
isLabeledStatement: isLabeledStatement$1,
|
|
51395
|
-
} = types$
|
|
51595
|
+
} = types$17;
|
|
51396
51596
|
|
|
51397
51597
|
const isParentProgram$1 = (path) => path.parentPath?.isProgram();
|
|
51398
51598
|
const isParentBlock$3 = (path) => path.parentPath.isBlockStatement();
|
|
@@ -51461,10 +51661,10 @@ function isStringAndIdentifier$2([a, b]) {
|
|
|
51461
51661
|
const checkObject = (elements) => {
|
|
51462
51662
|
let a = elements.at(-1);
|
|
51463
51663
|
|
|
51464
|
-
if (!isObjectExpression$
|
|
51664
|
+
if (!isObjectExpression$9(a))
|
|
51465
51665
|
a = elements.at(-2);
|
|
51466
51666
|
|
|
51467
|
-
if (!isObjectExpression$
|
|
51667
|
+
if (!isObjectExpression$9(a))
|
|
51468
51668
|
return false;
|
|
51469
51669
|
|
|
51470
51670
|
return a.node.properties.length;
|
|
@@ -51695,7 +51895,7 @@ commentsPrinter.printTrailingComments = (path, printer, semantics, {currentTrave
|
|
|
51695
51895
|
}
|
|
51696
51896
|
};
|
|
51697
51897
|
|
|
51698
|
-
const {types: types$
|
|
51898
|
+
const {types: types$16} = bundle;
|
|
51699
51899
|
const {
|
|
51700
51900
|
hasTrailingComment: hasTrailingComment$5,
|
|
51701
51901
|
satisfy: satisfy$3,
|
|
@@ -51711,7 +51911,7 @@ const {
|
|
|
51711
51911
|
} = commentsPrinter;
|
|
51712
51912
|
|
|
51713
51913
|
const {
|
|
51714
|
-
isArrowFunctionExpression: isArrowFunctionExpression$
|
|
51914
|
+
isArrowFunctionExpression: isArrowFunctionExpression$2,
|
|
51715
51915
|
isObjectProperty: isObjectProperty$2,
|
|
51716
51916
|
isVariableDeclarator: isVariableDeclarator$3,
|
|
51717
51917
|
isClassProperty,
|
|
@@ -51721,7 +51921,7 @@ const {
|
|
|
51721
51921
|
isBinaryExpression: isBinaryExpression$1,
|
|
51722
51922
|
isClassMethod: isClassMethod$1,
|
|
51723
51923
|
isDecorator: isDecorator$1,
|
|
51724
|
-
} = types$
|
|
51924
|
+
} = types$16;
|
|
51725
51925
|
|
|
51726
51926
|
const isProperty = satisfy$3([
|
|
51727
51927
|
isObjectProperty$2,
|
|
@@ -51737,7 +51937,7 @@ const isInsideVar = (path) => {
|
|
|
51737
51937
|
if (isVariableDeclarator$3(parentPath) && path === parentPath.get('init'))
|
|
51738
51938
|
return true;
|
|
51739
51939
|
|
|
51740
|
-
if (!isArrowFunctionExpression$
|
|
51940
|
+
if (!isArrowFunctionExpression$2(parentPath))
|
|
51741
51941
|
return false;
|
|
51742
51942
|
|
|
51743
51943
|
return isVariableDeclarator$3(parentPath.parentPath);
|
|
@@ -51973,7 +52173,7 @@ function build(path) {
|
|
|
51973
52173
|
return prop;
|
|
51974
52174
|
}
|
|
51975
52175
|
|
|
51976
|
-
const {types: types$
|
|
52176
|
+
const {types: types$15} = bundle;
|
|
51977
52177
|
const {chain: chain$2} = chain$3;
|
|
51978
52178
|
const {satisfy: satisfy$2} = is$3;
|
|
51979
52179
|
|
|
@@ -51982,7 +52182,7 @@ const {
|
|
|
51982
52182
|
isIfStatement: isIfStatement$1,
|
|
51983
52183
|
isCallExpression: isCallExpression$8,
|
|
51984
52184
|
isIdentifier: isIdentifier$f,
|
|
51985
|
-
} = types$
|
|
52185
|
+
} = types$15;
|
|
51986
52186
|
|
|
51987
52187
|
const isArgOfCall = (path) => path.parentPath?.isCallExpression() && path.parentPath.get('arguments.0') === path;
|
|
51988
52188
|
const isCall$1 = (a) => a.type === 'CallExpression';
|
|
@@ -52055,7 +52255,7 @@ const isIfUp = (path) => {
|
|
|
52055
52255
|
return is;
|
|
52056
52256
|
};
|
|
52057
52257
|
|
|
52058
|
-
const {types: types$
|
|
52258
|
+
const {types: types$14} = bundle;
|
|
52059
52259
|
|
|
52060
52260
|
const {
|
|
52061
52261
|
isLast: isLast$c,
|
|
@@ -52075,7 +52275,7 @@ const {
|
|
|
52075
52275
|
isMemberExpression: isMemberExpression$6,
|
|
52076
52276
|
isExpressionStatement: isExpressionStatement$7,
|
|
52077
52277
|
isCallExpression: isCallExpression$7,
|
|
52078
|
-
} = types$
|
|
52278
|
+
} = types$14;
|
|
52079
52279
|
|
|
52080
52280
|
const hasBody$1 = (path) => {
|
|
52081
52281
|
if (path.isTSModuleDeclaration())
|
|
@@ -52434,7 +52634,7 @@ arrowFunctionExpression.ArrowFunctionExpression = maybeParens$d((path, printer,
|
|
|
52434
52634
|
|
|
52435
52635
|
var functionDeclaration = {};
|
|
52436
52636
|
|
|
52437
|
-
const {types: types$
|
|
52637
|
+
const {types: types$13} = bundle;
|
|
52438
52638
|
const {markAfter: markAfter$b} = mark;
|
|
52439
52639
|
const {isNext: isNext$n, isNextParent: isNextParent$4} = is$3;
|
|
52440
52640
|
const {printParams: printParams$b} = params;
|
|
@@ -52450,7 +52650,7 @@ const {
|
|
|
52450
52650
|
isExpressionStatement: isExpressionStatement$6,
|
|
52451
52651
|
isFunctionDeclaration: isFunctionDeclaration$2,
|
|
52452
52652
|
isExportDefaultDeclaration,
|
|
52453
|
-
} = types$
|
|
52653
|
+
} = types$13;
|
|
52454
52654
|
|
|
52455
52655
|
const isInsideNamedExport$1 = ({parentPath}) => isExportNamedDeclaration$2(parentPath);
|
|
52456
52656
|
|
|
@@ -52891,38 +53091,46 @@ function printUnary(name, {print}) {
|
|
|
52891
53091
|
|
|
52892
53092
|
var memberExpressions$1 = {};
|
|
52893
53093
|
|
|
53094
|
+
const {types: types$12} = bundle;
|
|
52894
53095
|
const {maybePrintComputed} = maybePrintComputed$2;
|
|
52895
53096
|
const {maybeParens: maybeParens$a} = maybeParens$e;
|
|
52896
53097
|
const {isLooksLikeChain: isLooksLikeChain$2} = isLooksLikeChain$4;
|
|
52897
53098
|
|
|
52898
|
-
|
|
52899
|
-
|
|
52900
|
-
|
|
52901
|
-
|
|
52902
|
-
|
|
52903
|
-
|
|
52904
|
-
|
|
52905
|
-
|
|
52906
|
-
|
|
52907
|
-
|
|
52908
|
-
|
|
52909
|
-
|
|
52910
|
-
|
|
52911
|
-
|
|
52912
|
-
|
|
52913
|
-
|
|
52914
|
-
|
|
52915
|
-
|
|
52916
|
-
|
|
52917
|
-
|
|
52918
|
-
|
|
52919
|
-
|
|
52920
|
-
|
|
52921
|
-
|
|
52922
|
-
|
|
52923
|
-
|
|
52924
|
-
|
|
52925
|
-
|
|
53099
|
+
const {
|
|
53100
|
+
isObjectExpression: isObjectExpression$8,
|
|
53101
|
+
isArrowFunctionExpression: isArrowFunctionExpression$1,
|
|
53102
|
+
} = types$12;
|
|
53103
|
+
|
|
53104
|
+
memberExpressions$1.MemberExpression = maybeParens$a({
|
|
53105
|
+
checkParens: false,
|
|
53106
|
+
condition: (path) => isObjectInsideArrow(path),
|
|
53107
|
+
print: (path, printer) => {
|
|
53108
|
+
const {
|
|
53109
|
+
print,
|
|
53110
|
+
maybe,
|
|
53111
|
+
traverse,
|
|
53112
|
+
} = printer;
|
|
53113
|
+
|
|
53114
|
+
const object = path.get('object');
|
|
53115
|
+
const property = path.get('property');
|
|
53116
|
+
|
|
53117
|
+
const {computed} = path.node;
|
|
53118
|
+
|
|
53119
|
+
const isChain = isLooksLikeChain$2(path);
|
|
53120
|
+
|
|
53121
|
+
traverse(object);
|
|
53122
|
+
|
|
53123
|
+
if (computed)
|
|
53124
|
+
return maybePrintComputed(path, property, printer);
|
|
53125
|
+
|
|
53126
|
+
maybe.indent.inc(isChain);
|
|
53127
|
+
maybe.print.breakline(isChain);
|
|
53128
|
+
|
|
53129
|
+
print('.');
|
|
53130
|
+
print('__property');
|
|
53131
|
+
maybe.indent.dec(isChain);
|
|
53132
|
+
},
|
|
53133
|
+
});
|
|
52926
53134
|
|
|
52927
53135
|
memberExpressions$1.OptionalMemberExpression = maybeParens$a((path, {print, maybe}) => {
|
|
52928
53136
|
const {computed, optional} = path.node;
|
|
@@ -52943,6 +53151,13 @@ memberExpressions$1.OptionalMemberExpression = maybeParens$a((path, {print, mayb
|
|
|
52943
53151
|
print('__property');
|
|
52944
53152
|
});
|
|
52945
53153
|
|
|
53154
|
+
const isObjectInsideArrow = ({node, parentPath}) => {
|
|
53155
|
+
if (!isObjectExpression$8(node.object))
|
|
53156
|
+
return false;
|
|
53157
|
+
|
|
53158
|
+
return isArrowFunctionExpression$1(parentPath);
|
|
53159
|
+
};
|
|
53160
|
+
|
|
52946
53161
|
var _class = {};
|
|
52947
53162
|
|
|
52948
53163
|
var maybeDeclare$6 = {};
|
|
@@ -54076,6 +54291,9 @@ maybeParensCondition.condition = (path, printer, semantics) => {
|
|
|
54076
54291
|
if (path.node.left.type === 'ObjectPattern')
|
|
54077
54292
|
return true;
|
|
54078
54293
|
|
|
54294
|
+
if (parentPath.type === 'MemberExpression')
|
|
54295
|
+
return true;
|
|
54296
|
+
|
|
54079
54297
|
if (type === 'LogicalExpression')
|
|
54080
54298
|
return true;
|
|
54081
54299
|
|
|
@@ -60054,9 +60272,9 @@ function objectPlugin(plugin, path, printer, semantics) {
|
|
|
60054
60272
|
after(path, printer, semantics);
|
|
60055
60273
|
}
|
|
60056
60274
|
|
|
60057
|
-
var debug$
|
|
60275
|
+
var debug$8 = {};
|
|
60058
60276
|
|
|
60059
|
-
var require$$0$
|
|
60277
|
+
var require$$0$3 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_process);
|
|
60060
60278
|
|
|
60061
60279
|
var justSnakeCase = snakeCase;
|
|
60062
60280
|
|
|
@@ -60087,10 +60305,10 @@ function snakeCase(str) {
|
|
|
60087
60305
|
.join('_');
|
|
60088
60306
|
}
|
|
60089
60307
|
|
|
60090
|
-
const process$1 = require$$0$
|
|
60308
|
+
const process$1 = require$$0$3;
|
|
60091
60309
|
const toSnakeCase = justSnakeCase;
|
|
60092
60310
|
const {codeFrameColumns: codeFrameColumns$1} = bundle;
|
|
60093
|
-
const {TYPES: TYPES$2} = types$
|
|
60311
|
+
const {TYPES: TYPES$2} = types$18;
|
|
60094
60312
|
|
|
60095
60313
|
const {stringify: stringify$7} = JSON;
|
|
60096
60314
|
const {
|
|
@@ -60101,7 +60319,7 @@ const {
|
|
|
60101
60319
|
LOG_DEBUG,
|
|
60102
60320
|
} = {};
|
|
60103
60321
|
|
|
60104
|
-
debug$
|
|
60322
|
+
debug$8.createDebug = (tokens) => (a) => {
|
|
60105
60323
|
if (!LOG_DEBUG)
|
|
60106
60324
|
return;
|
|
60107
60325
|
|
|
@@ -60111,7 +60329,7 @@ debug$9.createDebug = (tokens) => (a) => {
|
|
|
60111
60329
|
});
|
|
60112
60330
|
};
|
|
60113
60331
|
|
|
60114
|
-
debug$
|
|
60332
|
+
debug$8.createLog = ({newline = '\n', store = createStore$1()} = {}) => ({type, value}) => {
|
|
60115
60333
|
if (LOG_TOKENS) {
|
|
60116
60334
|
console.log(codeFrameColumns$1(stringify$7({
|
|
60117
60335
|
type,
|
|
@@ -60277,7 +60495,7 @@ const initSemantics = (format, semantics = {}) => ({
|
|
|
60277
60495
|
const fullstore$2 = fullstore$3;
|
|
60278
60496
|
|
|
60279
60497
|
const babelTraverse$2 = bundle.traverse;
|
|
60280
|
-
const {TYPES: TYPES$1} = types$
|
|
60498
|
+
const {TYPES: TYPES$1} = types$18;
|
|
60281
60499
|
const baseVisitors = visitors$1;
|
|
60282
60500
|
|
|
60283
60501
|
const {
|
|
@@ -60286,7 +60504,7 @@ const {
|
|
|
60286
60504
|
maybeThrow,
|
|
60287
60505
|
} = maybe;
|
|
60288
60506
|
|
|
60289
|
-
const {createDebug: createDebug$
|
|
60507
|
+
const {createDebug: createDebug$a, createLog} = debug$8;
|
|
60290
60508
|
const {maybeMarkAfter} = mark;
|
|
60291
60509
|
|
|
60292
60510
|
const {
|
|
@@ -60321,7 +60539,7 @@ tokenize$1.tokenize = (ast, overrides) => {
|
|
|
60321
60539
|
|
|
60322
60540
|
const tokens = [];
|
|
60323
60541
|
const addToken = createAddToken(tokens);
|
|
60324
|
-
const debug = createDebug$
|
|
60542
|
+
const debug = createDebug$a(tokens);
|
|
60325
60543
|
|
|
60326
60544
|
const write = (value) => {
|
|
60327
60545
|
addToken({
|
|
@@ -61518,7 +61736,7 @@ var acornPrivateMethods = /*#__PURE__*/Object.freeze({
|
|
|
61518
61736
|
default: privateMethods
|
|
61519
61737
|
});
|
|
61520
61738
|
|
|
61521
|
-
var require$$2
|
|
61739
|
+
var require$$2 = /*@__PURE__*/getAugmentedNamespace(acornPrivateMethods);
|
|
61522
61740
|
|
|
61523
61741
|
var acornStage3;
|
|
61524
61742
|
var hasRequiredAcornStage3;
|
|
@@ -61531,7 +61749,7 @@ function requireAcornStage3 () {
|
|
|
61531
61749
|
return Parser.extend(
|
|
61532
61750
|
require$$1$1,
|
|
61533
61751
|
require$$1$1,
|
|
61534
|
-
require$$2
|
|
61752
|
+
require$$2
|
|
61535
61753
|
)
|
|
61536
61754
|
};
|
|
61537
61755
|
return acornStage3;
|
|
@@ -62405,7 +62623,7 @@ var _polyfillNode_path$1 = /*#__PURE__*/Object.freeze({
|
|
|
62405
62623
|
sep: sep
|
|
62406
62624
|
});
|
|
62407
62625
|
|
|
62408
|
-
var require$$0$
|
|
62626
|
+
var require$$0$2 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_path$1);
|
|
62409
62627
|
|
|
62410
62628
|
var tryToCatch$1 = async (fn, ...args) => {
|
|
62411
62629
|
check$d(fn);
|
|
@@ -62430,8 +62648,8 @@ simpleImport$1.simpleImport = async (url) => {
|
|
|
62430
62648
|
return result.default || result;
|
|
62431
62649
|
};
|
|
62432
62650
|
|
|
62433
|
-
const process = require$$0$
|
|
62434
|
-
const {join: join$3} = require$$0$
|
|
62651
|
+
const process = require$$0$3;
|
|
62652
|
+
const {join: join$3} = require$$0$2;
|
|
62435
62653
|
const once$1 = onceExports;
|
|
62436
62654
|
const {nanomemoize} = require$$3;
|
|
62437
62655
|
const tryToCatch = tryToCatch$1;
|
|
@@ -62929,7 +63147,7 @@ function isExactRuleEnabled(name, status, rules) {
|
|
|
62929
63147
|
return false;
|
|
62930
63148
|
}
|
|
62931
63149
|
|
|
62932
|
-
const {basename: basename$2} = require$$0$
|
|
63150
|
+
const {basename: basename$2} = require$$0$2;
|
|
62933
63151
|
|
|
62934
63152
|
const {isEnabled: isEnabled$1} = rules;
|
|
62935
63153
|
|
|
@@ -63050,9 +63268,9 @@ function requireLoad () {
|
|
|
63050
63268
|
if (hasRequiredLoad) return load;
|
|
63051
63269
|
hasRequiredLoad = 1;
|
|
63052
63270
|
|
|
63053
|
-
const process = require$$0$
|
|
63271
|
+
const process = require$$0$3;
|
|
63054
63272
|
const {createRequire} = require$$1;
|
|
63055
|
-
const {join} = require$$0$
|
|
63273
|
+
const {join} = require$$0$2;
|
|
63056
63274
|
const tryCatch = tryCatch$7;
|
|
63057
63275
|
const once = onceExports;
|
|
63058
63276
|
const {assign} = Object;
|
|
@@ -63323,23 +63541,23 @@ lib$1.validateRulesRelations = validateRulesRelations$1;
|
|
|
63323
63541
|
|
|
63324
63542
|
var lib = {};
|
|
63325
63543
|
|
|
63326
|
-
|
|
63544
|
+
var debug$7 = {};
|
|
63545
|
+
|
|
63546
|
+
function createDebug$9() {
|
|
63327
63547
|
return () => {}
|
|
63328
63548
|
}
|
|
63329
63549
|
|
|
63330
|
-
var debug$
|
|
63550
|
+
var debug$6 = /*#__PURE__*/Object.freeze({
|
|
63331
63551
|
__proto__: null,
|
|
63332
|
-
|
|
63552
|
+
createDebug: createDebug$9
|
|
63333
63553
|
});
|
|
63334
63554
|
|
|
63335
|
-
var require$$
|
|
63555
|
+
var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(debug$6);
|
|
63336
63556
|
|
|
63337
|
-
|
|
63557
|
+
const {createDebug: createDebug$8} = require$$0$1;
|
|
63338
63558
|
|
|
63339
|
-
|
|
63340
|
-
|
|
63341
|
-
debug$6.createDebug = (namespace) => {
|
|
63342
|
-
const log = debug$5(namespace);
|
|
63559
|
+
debug$7.createDebug = (namespace) => {
|
|
63560
|
+
const log = createDebug$8(namespace);
|
|
63343
63561
|
|
|
63344
63562
|
return new Proxy(log, {
|
|
63345
63563
|
apply(target, thisArg, args) {
|
|
@@ -63356,13 +63574,13 @@ debug$6.createDebug = (namespace) => {
|
|
|
63356
63574
|
};
|
|
63357
63575
|
|
|
63358
63576
|
const tryCatch$4 = tryCatch$7;
|
|
63359
|
-
const {createDebug: createDebug$
|
|
63577
|
+
const {createDebug: createDebug$7} = debug$7;
|
|
63360
63578
|
|
|
63361
63579
|
const {stringify: stringify$5} = JSON;
|
|
63362
63580
|
|
|
63363
63581
|
const isFn$4 = (a) => typeof a === 'function';
|
|
63364
63582
|
const getPath$2 = (path) => path.path || path;
|
|
63365
|
-
const debug$
|
|
63583
|
+
const debug$5 = createDebug$7('putout:runner:fix');
|
|
63366
63584
|
|
|
63367
63585
|
const chooseFixArgs = ({path, pathOptions, options}) => {
|
|
63368
63586
|
if (pathOptions)
|
|
@@ -63407,8 +63625,8 @@ var runFix$3 = (is, fix, {path, pathOptions, rule, position, options}) => {
|
|
|
63407
63625
|
if (!is)
|
|
63408
63626
|
return;
|
|
63409
63627
|
|
|
63410
|
-
if (debug$
|
|
63411
|
-
debug$
|
|
63628
|
+
if (debug$5.enabled)
|
|
63629
|
+
debug$5(`${rule}:`, position, getPath$2(path).toString());
|
|
63412
63630
|
|
|
63413
63631
|
validate$3('fix', fix);
|
|
63414
63632
|
|
|
@@ -64417,7 +64635,29 @@ var runComparators$1 = {};
|
|
|
64417
64635
|
|
|
64418
64636
|
var log$5 = {exports: {}};
|
|
64419
64637
|
|
|
64420
|
-
|
|
64638
|
+
var debug$4 = {};
|
|
64639
|
+
|
|
64640
|
+
const {createDebug: createDebug$6} = require$$0$1;
|
|
64641
|
+
|
|
64642
|
+
debug$4.createDebug = (namespace) => {
|
|
64643
|
+
const log = createDebug$6(namespace);
|
|
64644
|
+
|
|
64645
|
+
return new Proxy(log, {
|
|
64646
|
+
apply(target, thisArg, args) {
|
|
64647
|
+
commonjsGlobal.__putout_debug?.(namespace, ...args);
|
|
64648
|
+
return target(...args);
|
|
64649
|
+
},
|
|
64650
|
+
get(target, prop) {
|
|
64651
|
+
if (commonjsGlobal.__putout_debug?.[prop])
|
|
64652
|
+
return true;
|
|
64653
|
+
|
|
64654
|
+
return target[prop];
|
|
64655
|
+
},
|
|
64656
|
+
});
|
|
64657
|
+
};
|
|
64658
|
+
|
|
64659
|
+
const {createDebug: createDebug$5} = debug$4;
|
|
64660
|
+
const debug$3 = createDebug$5('putout:compare');
|
|
64421
64661
|
|
|
64422
64662
|
const {isArray: isArray$5} = Array;
|
|
64423
64663
|
const isObject$4 = (a) => a && typeof a === 'object';
|
|
@@ -64949,8 +65189,8 @@ const {
|
|
|
64949
65189
|
} = compare$5;
|
|
64950
65190
|
|
|
64951
65191
|
const maybeArray$3 = maybeArray_1;
|
|
64952
|
-
const {createDebug: createDebug$
|
|
64953
|
-
const debug$2 = createDebug$
|
|
65192
|
+
const {createDebug: createDebug$4} = debug$7;
|
|
65193
|
+
const debug$2 = createDebug$4('putout:runner:template');
|
|
64954
65194
|
|
|
64955
65195
|
const {entries: entries$5} = Object;
|
|
64956
65196
|
const isFn$2 = (a) => typeof a === 'function';
|
|
@@ -65599,10 +65839,11 @@ tryThrowWithReason$1.tryThrowWithReason = (fn, ...args) => {
|
|
|
65599
65839
|
|
|
65600
65840
|
var includer = {};
|
|
65601
65841
|
|
|
65602
|
-
const
|
|
65842
|
+
const {createDebug: createDebug$3} = debug$7;
|
|
65843
|
+
|
|
65603
65844
|
const maybeArray$2 = maybeArray_1;
|
|
65604
65845
|
const {validate} = validate$2;
|
|
65605
|
-
|
|
65846
|
+
const log$2 = createDebug$3('putout:runner:include');
|
|
65606
65847
|
const stub$1 = () => [];
|
|
65607
65848
|
const good = () => true;
|
|
65608
65849
|
|
|
@@ -65805,8 +66046,8 @@ const {
|
|
|
65805
66046
|
|
|
65806
66047
|
const maybeArray$1 = maybeArray_1;
|
|
65807
66048
|
const watermark = watermarkExports;
|
|
65808
|
-
const {createDebug} = debug$
|
|
65809
|
-
const debug$1 = createDebug('putout:runner:replace');
|
|
66049
|
+
const {createDebug: createDebug$2} = debug$7;
|
|
66050
|
+
const debug$1 = createDebug$2('putout:runner:replace');
|
|
65810
66051
|
|
|
65811
66052
|
const log$1 = (from, path) => {
|
|
65812
66053
|
debug$1.enabled && debug$1(`${from} -> ${path}\n`);
|
|
@@ -66383,7 +66624,7 @@ const {
|
|
|
66383
66624
|
join: join$2,
|
|
66384
66625
|
basename: basename$1,
|
|
66385
66626
|
dirname: dirname$1,
|
|
66386
|
-
} = require$$0$
|
|
66627
|
+
} = require$$0$2;
|
|
66387
66628
|
|
|
66388
66629
|
const {types: types$8} = bundle;
|
|
66389
66630
|
const tryCatch$1 = tryCatch$7;
|
|
@@ -66824,7 +67065,7 @@ filesystem.start = maybeFS.start;
|
|
|
66824
67065
|
|
|
66825
67066
|
var convertSimpleFilesystemToFilesystem = {};
|
|
66826
67067
|
|
|
66827
|
-
const {basename, dirname} = require$$0$
|
|
67068
|
+
const {basename, dirname} = require$$0$2;
|
|
66828
67069
|
const {types: types$7} = bundle;
|
|
66829
67070
|
const {
|
|
66830
67071
|
createDirectory,
|
|
@@ -67044,10 +67285,10 @@ const {
|
|
|
67044
67285
|
start,
|
|
67045
67286
|
} = filesystem;
|
|
67046
67287
|
|
|
67047
|
-
const log = require$$2('putout:runner:scanner');
|
|
67048
|
-
|
|
67049
67288
|
const fromSimple = convertSimpleFilesystemToFilesystem;
|
|
67050
67289
|
const toSimple = convertFilesystemToSimpleFilesystem;
|
|
67290
|
+
const {createDebug: createDebug$1} = debug$7;
|
|
67291
|
+
const log = createDebug$1('putout:runner:scanner');
|
|
67051
67292
|
|
|
67052
67293
|
scanner.scan = ({rule, plugin, msg, options}, {progress}) => {
|
|
67053
67294
|
const {
|
|
@@ -67195,7 +67436,7 @@ function parseVisitor(visitors) {
|
|
|
67195
67436
|
|
|
67196
67437
|
const {traverse: defaultTraverse} = bundle;
|
|
67197
67438
|
const once = onceExports;
|
|
67198
|
-
const
|
|
67439
|
+
const {createDebug} = debug$7;
|
|
67199
67440
|
|
|
67200
67441
|
const runFix = runFix$3;
|
|
67201
67442
|
const mergeVisitors = mergeVisitors$1;
|
|
@@ -67210,7 +67451,7 @@ const {declare} = declarator;
|
|
|
67210
67451
|
const {scan: scan$1} = scanner;
|
|
67211
67452
|
|
|
67212
67453
|
const {getPath, getPosition} = getPosition$2;
|
|
67213
|
-
|
|
67454
|
+
const debug = createDebug('putout:runner:find');
|
|
67214
67455
|
const isRemoved = (a) => a?.removed;
|
|
67215
67456
|
|
|
67216
67457
|
lib.runPlugins = ({ast, shebang, fix, fixCount = 2, plugins, progress = createProgress$1(), traverse = defaultTraverse}) => {
|
|
@@ -75209,7 +75450,7 @@ keyword.isTSKeyword = (name) => {
|
|
|
75209
75450
|
|
|
75210
75451
|
var matchFiles = {};
|
|
75211
75452
|
|
|
75212
|
-
const {relative} = require$$0$
|
|
75453
|
+
const {relative} = require$$0$2;
|
|
75213
75454
|
const ignore$1 = require$$1$1;
|
|
75214
75455
|
|
|
75215
75456
|
const isNegative = (a) => !a.indexOf('!');
|
|
@@ -75240,7 +75481,7 @@ function mergeIgnores(ignores) {
|
|
|
75240
75481
|
|
|
75241
75482
|
ignores$2.default;
|
|
75242
75483
|
|
|
75243
|
-
const path = require$$0$
|
|
75484
|
+
const path = require$$0$2;
|
|
75244
75485
|
|
|
75245
75486
|
const {parse: parse$2, print: print$1} = parser$5;
|
|
75246
75487
|
const {transform: transform$1} = transform$5;
|
|
@@ -75456,7 +75697,7 @@ function parseOptions(inputFilename, rawOptions) {
|
|
|
75456
75697
|
|
|
75457
75698
|
var renameFiles = {};
|
|
75458
75699
|
|
|
75459
|
-
const {join} = require$$0$
|
|
75700
|
+
const {join} = require$$0$2;
|
|
75460
75701
|
|
|
75461
75702
|
const {
|
|
75462
75703
|
getParentDirectory,
|