@storybook/addon-docs 10.5.0-alpha.5 → 10.5.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_browser-chunks/{Color-MQE2NRD4.js → Color-AVMI7ZZZ.js} +3 -3
- package/dist/_browser-chunks/{DocsRenderer-LL677BLK.js → DocsRenderer-JROSPFPF.js} +1 -1
- package/dist/_browser-chunks/{chunk-S4QKU6I5.js → chunk-6Z2O5XYJ.js} +2 -2
- package/dist/_browser-chunks/{chunk-SL3VIQZ3.js → chunk-UAWMPV5J.js} +5 -1
- package/dist/_node-chunks/{chunk-UVV6FRUF.js → chunk-2WTY7RHL.js} +198 -198
- package/dist/_node-chunks/{chunk-CR22MHHI.js → chunk-AR7B7DGI.js} +18 -9
- package/dist/_node-chunks/{chunk-OBCKO6Y3.js → chunk-BS47STAB.js} +6 -6
- package/dist/_node-chunks/{chunk-2QFSQ4RB.js → chunk-ZM6M6OKB.js} +6 -6
- package/dist/_node-chunks/{mdx-plugin-DT6OS2CV.js → mdx-plugin-R2MYDMMD.js} +11 -11
- package/dist/_node-chunks/{rehype-external-links-SIYDSVTO.js → rehype-external-links-QE2YWBRR.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-XCUUIQBS.js → rehype-slug-EPMUVHIS.js} +8 -8
- package/dist/angular/index.js +1 -1
- package/dist/blocks.d.ts +14 -1
- package/dist/blocks.js +286 -112
- package/dist/ember/index.js +1 -1
- package/dist/index.js +2 -2
- package/dist/manager.js +1 -1
- package/dist/mdx-loader.js +10 -10
- package/dist/preset.js +9 -9
- package/dist/preview.js +2 -2
- package/package.json +4 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_6gmdae9o5xc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6gmdae9o5xc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6gmdae9o5xc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6gmdae9o5xc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6gmdae9o5xc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6gmdae9o5xc.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,17 +12,17 @@ var require = CJS_COMPAT_NODE_MODULE_6wwlko1su49.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
esm_default,
|
|
14
14
|
stringify
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BS47STAB.js";
|
|
16
16
|
import {
|
|
17
17
|
visit
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZM6M6OKB.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__esm,
|
|
22
22
|
__export,
|
|
23
23
|
__toCommonJS,
|
|
24
24
|
__toESM
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-AR7B7DGI.js";
|
|
26
26
|
|
|
27
27
|
// ../../../node_modules/acorn-jsx/xhtml.js
|
|
28
28
|
var require_xhtml = __commonJS({
|
|
@@ -312,10 +312,10 @@ __export(acorn_exports, {
|
|
|
312
312
|
version: () => version
|
|
313
313
|
});
|
|
314
314
|
function isInAstralSet(code2, set) {
|
|
315
|
-
for (var pos = 65536,
|
|
316
|
-
if (pos += set[
|
|
315
|
+
for (var pos = 65536, i2 = 0; i2 < set.length; i2 += 2) {
|
|
316
|
+
if (pos += set[i2], pos > code2)
|
|
317
317
|
return !1;
|
|
318
|
-
if (pos += set[
|
|
318
|
+
if (pos += set[i2 + 1], pos >= code2)
|
|
319
319
|
return !0;
|
|
320
320
|
}
|
|
321
321
|
return !1;
|
|
@@ -337,10 +337,10 @@ function isNewLine(code2) {
|
|
|
337
337
|
}
|
|
338
338
|
function nextLineBreak(code2, from, end) {
|
|
339
339
|
end === void 0 && (end = code2.length);
|
|
340
|
-
for (var
|
|
341
|
-
var next = code2.charCodeAt(
|
|
340
|
+
for (var i2 = from; i2 < end; i2++) {
|
|
341
|
+
var next = code2.charCodeAt(i2);
|
|
342
342
|
if (isNewLine(next))
|
|
343
|
-
return
|
|
343
|
+
return i2 < end - 1 && next === 13 && code2.charCodeAt(i2 + 1) === 10 ? i2 + 2 : i2 + 1;
|
|
344
344
|
}
|
|
345
345
|
return -1;
|
|
346
346
|
}
|
|
@@ -402,13 +402,13 @@ function isPrivateFieldAccess(node2) {
|
|
|
402
402
|
function finishNodeAt(node2, type, pos, loc) {
|
|
403
403
|
return node2.type = type, node2.end = pos, this.options.locations && (node2.loc.end = loc), this.options.ranges && (node2.range[1] = pos), node2;
|
|
404
404
|
}
|
|
405
|
-
function buildUnicodeData(
|
|
406
|
-
var d = data[
|
|
407
|
-
binary: wordsRegexp(unicodeBinaryProperties[
|
|
408
|
-
binaryOfStrings: wordsRegexp(unicodeBinaryPropertiesOfStrings[
|
|
405
|
+
function buildUnicodeData(ecmaVersion2) {
|
|
406
|
+
var d = data[ecmaVersion2] = {
|
|
407
|
+
binary: wordsRegexp(unicodeBinaryProperties[ecmaVersion2] + " " + unicodeGeneralCategoryValues),
|
|
408
|
+
binaryOfStrings: wordsRegexp(unicodeBinaryPropertiesOfStrings[ecmaVersion2]),
|
|
409
409
|
nonBinary: {
|
|
410
410
|
General_Category: wordsRegexp(unicodeGeneralCategoryValues),
|
|
411
|
-
Script: wordsRegexp(unicodeScriptValues[
|
|
411
|
+
Script: wordsRegexp(unicodeScriptValues[ecmaVersion2])
|
|
412
412
|
}
|
|
413
413
|
};
|
|
414
414
|
d.nonBinary.Script_Extensions = d.nonBinary.Script, d.nonBinary.gc = d.nonBinary.General_Category, d.nonBinary.sc = d.nonBinary.Script, d.nonBinary.scx = d.nonBinary.Script_Extensions;
|
|
@@ -481,7 +481,7 @@ function parseExpressionAt2(input, pos, options) {
|
|
|
481
481
|
function tokenizer2(input, options) {
|
|
482
482
|
return Parser.tokenizer(input, options);
|
|
483
483
|
}
|
|
484
|
-
var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars, nonASCIIidentifierStartChars, reservedWords, ecma5AndLessKeywords, keywords$1, keywordRelationalOperator, nonASCIIidentifierStart, nonASCIIidentifier, TokenType, beforeExpr, startsExpr, keywords, types$1, lineBreak, lineBreakG, nonASCIIwhitespace, skipWhiteSpace, ref, hasOwnProperty, toString, hasOwn, isArray, regexpCache, loneSurrogate, Position, SourceLocation, defaultOptions, warnedAboutEcmaVersion, SCOPE_TOP, SCOPE_FUNCTION, SCOPE_ASYNC, SCOPE_GENERATOR, SCOPE_ARROW, SCOPE_SIMPLE_CATCH, SCOPE_SUPER, SCOPE_DIRECT_SUPER, SCOPE_CLASS_STATIC_BLOCK, SCOPE_CLASS_FIELD_INIT, SCOPE_VAR, BIND_NONE, BIND_VAR, BIND_LEXICAL, BIND_FUNCTION, BIND_SIMPLE_CATCH, BIND_OUTSIDE, Parser, prototypeAccessors, pp$9, literal, DestructuringErrors, pp$8, loopLabel, switchLabel, empty$1, FUNC_STATEMENT, FUNC_HANGING_STATEMENT, FUNC_NULLABLE_ID, pp$7, TokContext, types, pp$6, pp$5, empty, pp$4, pp$3, Scope, Node, pp$2, scriptValuesAddedInUnicode, ecma9BinaryProperties, ecma10BinaryProperties, ecma11BinaryProperties, ecma12BinaryProperties, ecma13BinaryProperties, ecma14BinaryProperties, unicodeBinaryProperties, ecma14BinaryPropertiesOfStrings, unicodeBinaryPropertiesOfStrings, unicodeGeneralCategoryValues, ecma9ScriptValues, ecma10ScriptValues, ecma11ScriptValues, ecma12ScriptValues, ecma13ScriptValues, ecma14ScriptValues, unicodeScriptValues, data, ecmaVersion, i,
|
|
484
|
+
var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars, nonASCIIidentifierStartChars, reservedWords, ecma5AndLessKeywords, keywords$1, keywordRelationalOperator, nonASCIIidentifierStart, nonASCIIidentifier, TokenType, beforeExpr, startsExpr, keywords, types$1, lineBreak, lineBreakG, nonASCIIwhitespace, skipWhiteSpace, ref, hasOwnProperty, toString, hasOwn, isArray, regexpCache, loneSurrogate, Position, SourceLocation, defaultOptions, warnedAboutEcmaVersion, SCOPE_TOP, SCOPE_FUNCTION, SCOPE_ASYNC, SCOPE_GENERATOR, SCOPE_ARROW, SCOPE_SIMPLE_CATCH, SCOPE_SUPER, SCOPE_DIRECT_SUPER, SCOPE_CLASS_STATIC_BLOCK, SCOPE_CLASS_FIELD_INIT, SCOPE_VAR, BIND_NONE, BIND_VAR, BIND_LEXICAL, BIND_FUNCTION, BIND_SIMPLE_CATCH, BIND_OUTSIDE, Parser, prototypeAccessors, pp$9, literal, DestructuringErrors, pp$8, loopLabel, switchLabel, empty$1, FUNC_STATEMENT, FUNC_HANGING_STATEMENT, FUNC_NULLABLE_ID, pp$7, TokContext, types, pp$6, pp$5, empty, pp$4, pp$3, Scope, Node, pp$2, scriptValuesAddedInUnicode, ecma9BinaryProperties, ecma10BinaryProperties, ecma11BinaryProperties, ecma12BinaryProperties, ecma13BinaryProperties, ecma14BinaryProperties, unicodeBinaryProperties, ecma14BinaryPropertiesOfStrings, unicodeBinaryPropertiesOfStrings, unicodeGeneralCategoryValues, ecma9ScriptValues, ecma10ScriptValues, ecma11ScriptValues, ecma12ScriptValues, ecma13ScriptValues, ecma14ScriptValues, unicodeScriptValues, data, ecmaVersion, i, list, pp$1, BranchID, RegExpValidationState, CharSetNone, CharSetOk, CharSetString, Token, pp, INVALID_TEMPLATE_ESCAPE_ERROR, version, init_acorn = __esm({
|
|
485
485
|
"../../../node_modules/acorn/dist/acorn.mjs"() {
|
|
486
486
|
astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], nonASCIIidentifierChars = "\u200C\u200D\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-\u1ACE\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", 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-\u088E\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\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\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-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\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", reservedWords = {
|
|
487
487
|
3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
|
|
@@ -726,8 +726,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
726
726
|
return (this.currentVarScope().flags & SCOPE_ASYNC) > 0;
|
|
727
727
|
};
|
|
728
728
|
prototypeAccessors.canAwait.get = function() {
|
|
729
|
-
for (var
|
|
730
|
-
var ref2 = this.scopeStack[
|
|
729
|
+
for (var i2 = this.scopeStack.length - 1; i2 >= 0; i2--) {
|
|
730
|
+
var ref2 = this.scopeStack[i2], flags = ref2.flags;
|
|
731
731
|
if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT))
|
|
732
732
|
return !1;
|
|
733
733
|
if (flags & SCOPE_FUNCTION)
|
|
@@ -746,8 +746,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
746
746
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
747
747
|
};
|
|
748
748
|
prototypeAccessors.allowNewDotTarget.get = function() {
|
|
749
|
-
for (var
|
|
750
|
-
var ref2 = this.scopeStack[
|
|
749
|
+
for (var i2 = this.scopeStack.length - 1; i2 >= 0; i2--) {
|
|
750
|
+
var ref2 = this.scopeStack[i2], flags = ref2.flags;
|
|
751
751
|
if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT) || flags & SCOPE_FUNCTION && !(flags & SCOPE_ARROW))
|
|
752
752
|
return !0;
|
|
753
753
|
}
|
|
@@ -758,8 +758,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
758
758
|
};
|
|
759
759
|
Parser.extend = function() {
|
|
760
760
|
for (var plugins = [], len = arguments.length; len--; ) plugins[len] = arguments[len];
|
|
761
|
-
for (var cls = this,
|
|
762
|
-
cls = plugins[
|
|
761
|
+
for (var cls = this, i2 = 0; i2 < plugins.length; i2++)
|
|
762
|
+
cls = plugins[i2](cls);
|
|
763
763
|
return cls;
|
|
764
764
|
};
|
|
765
765
|
Parser.parse = function(input, options) {
|
|
@@ -854,8 +854,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
854
854
|
node2.body.push(stmt);
|
|
855
855
|
}
|
|
856
856
|
if (this.inModule)
|
|
857
|
-
for (var
|
|
858
|
-
var name2 =
|
|
857
|
+
for (var i2 = 0, list4 = Object.keys(this.undefinedExports); i2 < list4.length; i2 += 1) {
|
|
858
|
+
var name2 = list4[i2];
|
|
859
859
|
this.raiseRecoverable(this.undefinedExports[name2].start, "Export '" + name2 + "' is not defined");
|
|
860
860
|
}
|
|
861
861
|
return this.adaptDirectivePrologue(node2.body), this.next(), node2.sourceType = this.options.sourceType, this.finishNode(node2, "Program");
|
|
@@ -984,12 +984,12 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
984
984
|
pp$8.parseBreakContinueStatement = function(node2, keyword) {
|
|
985
985
|
var isBreak = keyword === "break";
|
|
986
986
|
this.next(), this.eat(types$1.semi) || this.insertSemicolon() ? node2.label = null : this.type !== types$1.name ? this.unexpected() : (node2.label = this.parseIdent(), this.semicolon());
|
|
987
|
-
for (var
|
|
988
|
-
var lab = this.labels[
|
|
987
|
+
for (var i2 = 0; i2 < this.labels.length; ++i2) {
|
|
988
|
+
var lab = this.labels[i2];
|
|
989
989
|
if ((node2.label == null || lab.name === node2.label.name) && (lab.kind != null && (isBreak || lab.kind === "loop") || node2.label && isBreak))
|
|
990
990
|
break;
|
|
991
991
|
}
|
|
992
|
-
return
|
|
992
|
+
return i2 === this.labels.length && this.raise(node2.start, "Unsyntactic " + keyword), this.finishNode(node2, isBreak ? "BreakStatement" : "ContinueStatement");
|
|
993
993
|
};
|
|
994
994
|
pp$8.parseDebuggerStatement = function(node2) {
|
|
995
995
|
return this.next(), this.semicolon(), this.finishNode(node2, "DebuggerStatement");
|
|
@@ -1065,12 +1065,12 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
1065
1065
|
return this.next(), this.finishNode(node2, "EmptyStatement");
|
|
1066
1066
|
};
|
|
1067
1067
|
pp$8.parseLabeledStatement = function(node2, maybeName, expr, context) {
|
|
1068
|
-
for (var i$1 = 0,
|
|
1069
|
-
var label =
|
|
1068
|
+
for (var i$1 = 0, list4 = this.labels; i$1 < list4.length; i$1 += 1) {
|
|
1069
|
+
var label = list4[i$1];
|
|
1070
1070
|
label.name === maybeName && this.raise(expr.start, "Label '" + maybeName + "' is already declared");
|
|
1071
1071
|
}
|
|
1072
|
-
for (var kind = this.type.isLoop ? "loop" : this.type === types$1._switch ? "switch" : null,
|
|
1073
|
-
var label$1 = this.labels[
|
|
1072
|
+
for (var kind = this.type.isLoop ? "loop" : this.type === types$1._switch ? "switch" : null, i2 = this.labels.length - 1; i2 >= 0; i2--) {
|
|
1073
|
+
var label$1 = this.labels[i2];
|
|
1074
1074
|
if (label$1.statementStart === node2.start)
|
|
1075
1075
|
label$1.statementStart = this.start, label$1.kind = kind;
|
|
1076
1076
|
else
|
|
@@ -1132,17 +1132,17 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
1132
1132
|
pp$8.parseClassElement = function(constructorAllowsSuper) {
|
|
1133
1133
|
if (this.eat(types$1.semi))
|
|
1134
1134
|
return null;
|
|
1135
|
-
var
|
|
1135
|
+
var ecmaVersion2 = this.options.ecmaVersion, node2 = this.startNode(), keyName = "", isGenerator = !1, isAsync = !1, kind = "method", isStatic = !1;
|
|
1136
1136
|
if (this.eatContextual("static")) {
|
|
1137
|
-
if (
|
|
1137
|
+
if (ecmaVersion2 >= 13 && this.eat(types$1.braceL))
|
|
1138
1138
|
return this.parseClassStaticBlock(node2), node2;
|
|
1139
1139
|
this.isClassElementNameStart() || this.type === types$1.star ? isStatic = !0 : keyName = "static";
|
|
1140
1140
|
}
|
|
1141
|
-
if (node2.static = isStatic, !keyName &&
|
|
1141
|
+
if (node2.static = isStatic, !keyName && ecmaVersion2 >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === types$1.star) && !this.canInsertSemicolon() ? isAsync = !0 : keyName = "async"), !keyName && (ecmaVersion2 >= 9 || !isAsync) && this.eat(types$1.star) && (isGenerator = !0), !keyName && !isAsync && !isGenerator) {
|
|
1142
1142
|
var lastValue = this.value;
|
|
1143
1143
|
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? kind = lastValue : keyName = lastValue);
|
|
1144
1144
|
}
|
|
1145
|
-
if (keyName ? (node2.computed = !1, node2.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), node2.key.name = keyName, this.finishNode(node2.key, "Identifier")) : this.parseClassElementName(node2),
|
|
1145
|
+
if (keyName ? (node2.computed = !1, node2.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), node2.key.name = keyName, this.finishNode(node2.key, "Identifier")) : this.parseClassElementName(node2), ecmaVersion2 < 13 || this.type === types$1.parenL || kind !== "method" || isGenerator || isAsync) {
|
|
1146
1146
|
var isConstructor = !node2.static && checkKeyName(node2, "constructor"), allowsDirectSuper = isConstructor && constructorAllowsSuper;
|
|
1147
1147
|
isConstructor && kind !== "method" && this.raise(node2.key.start, "Constructor can't have get/set modifier"), node2.kind = isConstructor ? "constructor" : kind, this.parseClassMethod(node2, isGenerator, isAsync, allowsDirectSuper);
|
|
1148
1148
|
} else
|
|
@@ -1186,8 +1186,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
1186
1186
|
pp$8.exitClassBody = function() {
|
|
1187
1187
|
var ref2 = this.privateNameStack.pop(), declared = ref2.declared, used = ref2.used;
|
|
1188
1188
|
if (this.options.checkPrivateFields)
|
|
1189
|
-
for (var len = this.privateNameStack.length, parent = len === 0 ? null : this.privateNameStack[len - 1],
|
|
1190
|
-
var id = used[
|
|
1189
|
+
for (var len = this.privateNameStack.length, parent = len === 0 ? null : this.privateNameStack[len - 1], i2 = 0; i2 < used.length; ++i2) {
|
|
1190
|
+
var id = used[i2];
|
|
1191
1191
|
hasOwn(declared, id.name) || (parent ? parent.used.push(id) : this.raiseRecoverable(id.start, "Private field '#" + id.name + "' must be declared in an enclosing class"));
|
|
1192
1192
|
}
|
|
1193
1193
|
};
|
|
@@ -1205,8 +1205,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
1205
1205
|
if (node2.declaration = null, node2.specifiers = this.parseExportSpecifiers(exports), this.eatContextual("from"))
|
|
1206
1206
|
this.type !== types$1.string && this.unexpected(), node2.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (node2.attributes = this.parseWithClause());
|
|
1207
1207
|
else {
|
|
1208
|
-
for (var
|
|
1209
|
-
var spec =
|
|
1208
|
+
for (var i2 = 0, list4 = node2.specifiers; i2 < list4.length; i2 += 1) {
|
|
1209
|
+
var spec = list4[i2];
|
|
1210
1210
|
this.checkUnreserved(spec.local), this.checkLocalExport(spec.local), spec.local.type === "Literal" && this.raise(spec.local.start, "A string literal cannot be used as an exported binding without `from`.");
|
|
1211
1211
|
}
|
|
1212
1212
|
node2.source = null, this.options.ecmaVersion >= 16 && (node2.attributes = []);
|
|
@@ -1239,8 +1239,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
1239
1239
|
if (type === "Identifier")
|
|
1240
1240
|
this.checkExport(exports, pat, pat.start);
|
|
1241
1241
|
else if (type === "ObjectPattern")
|
|
1242
|
-
for (var
|
|
1243
|
-
var prop =
|
|
1242
|
+
for (var i2 = 0, list4 = pat.properties; i2 < list4.length; i2 += 1) {
|
|
1243
|
+
var prop = list4[i2];
|
|
1244
1244
|
this.checkPatternExport(exports, prop);
|
|
1245
1245
|
}
|
|
1246
1246
|
else if (type === "ArrayPattern")
|
|
@@ -1252,8 +1252,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
1252
1252
|
};
|
|
1253
1253
|
pp$8.checkVariableExport = function(exports, decls) {
|
|
1254
1254
|
if (exports)
|
|
1255
|
-
for (var
|
|
1256
|
-
var decl =
|
|
1255
|
+
for (var i2 = 0, list4 = decls; i2 < list4.length; i2 += 1) {
|
|
1256
|
+
var decl = list4[i2];
|
|
1257
1257
|
this.checkPatternExport(exports, decl.id);
|
|
1258
1258
|
}
|
|
1259
1259
|
};
|
|
@@ -1336,8 +1336,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
1336
1336
|
return this.parseIdent(!0);
|
|
1337
1337
|
};
|
|
1338
1338
|
pp$8.adaptDirectivePrologue = function(statements) {
|
|
1339
|
-
for (var
|
|
1340
|
-
statements[
|
|
1339
|
+
for (var i2 = 0; i2 < statements.length && this.isDirectiveCandidate(statements[i2]); ++i2)
|
|
1340
|
+
statements[i2].directive = statements[i2].expression.raw.slice(1, -1);
|
|
1341
1341
|
};
|
|
1342
1342
|
pp$8.isDirectiveCandidate = function(statement) {
|
|
1343
1343
|
return this.options.ecmaVersion >= 5 && statement.type === "ExpressionStatement" && statement.expression.type === "Literal" && typeof statement.expression.value == "string" && // Reject parenthesized strings.
|
|
@@ -1357,8 +1357,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
1357
1357
|
break;
|
|
1358
1358
|
case "ObjectExpression":
|
|
1359
1359
|
node2.type = "ObjectPattern", refDestructuringErrors && this.checkPatternErrors(refDestructuringErrors, !0);
|
|
1360
|
-
for (var
|
|
1361
|
-
var prop =
|
|
1360
|
+
for (var i2 = 0, list4 = node2.properties; i2 < list4.length; i2 += 1) {
|
|
1361
|
+
var prop = list4[i2];
|
|
1362
1362
|
this.toAssignable(prop, isBinding), prop.type === "RestElement" && (prop.argument.type === "ArrayPattern" || prop.argument.type === "ObjectPattern") && this.raise(prop.argument.start, "Unexpected token");
|
|
1363
1363
|
}
|
|
1364
1364
|
break;
|
|
@@ -1390,8 +1390,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
1390
1390
|
return node2;
|
|
1391
1391
|
};
|
|
1392
1392
|
pp$7.toAssignableList = function(exprList, isBinding) {
|
|
1393
|
-
for (var end = exprList.length,
|
|
1394
|
-
var elt = exprList[
|
|
1393
|
+
for (var end = exprList.length, i2 = 0; i2 < end; i2++) {
|
|
1394
|
+
var elt = exprList[i2];
|
|
1395
1395
|
elt && this.toAssignable(elt, isBinding);
|
|
1396
1396
|
}
|
|
1397
1397
|
if (end) {
|
|
@@ -1470,8 +1470,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
1470
1470
|
pp$7.checkLValPattern = function(expr, bindingType, checkClashes) {
|
|
1471
1471
|
switch (bindingType === void 0 && (bindingType = BIND_NONE), expr.type) {
|
|
1472
1472
|
case "ObjectPattern":
|
|
1473
|
-
for (var
|
|
1474
|
-
var prop =
|
|
1473
|
+
for (var i2 = 0, list4 = expr.properties; i2 < list4.length; i2 += 1) {
|
|
1474
|
+
var prop = list4[i2];
|
|
1475
1475
|
this.checkLValInnerPattern(prop, bindingType, checkClashes);
|
|
1476
1476
|
}
|
|
1477
1477
|
break;
|
|
@@ -1527,8 +1527,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
1527
1527
|
return parent === types.f_expr || parent === types.f_stat ? !0 : prevType === types$1.colon && (parent === types.b_stat || parent === types.b_expr) ? !parent.isExpr : prevType === types$1._return || prevType === types$1.name && this.exprAllowed ? lineBreak.test(this.input.slice(this.lastTokEnd, this.start)) : prevType === types$1._else || prevType === types$1.semi || prevType === types$1.eof || prevType === types$1.parenR || prevType === types$1.arrow ? !0 : prevType === types$1.braceL ? parent === types.b_stat : prevType === types$1._var || prevType === types$1._const || prevType === types$1.name ? !1 : !this.exprAllowed;
|
|
1528
1528
|
};
|
|
1529
1529
|
pp$6.inGeneratorContext = function() {
|
|
1530
|
-
for (var
|
|
1531
|
-
var context = this.context[
|
|
1530
|
+
for (var i2 = this.context.length - 1; i2 >= 1; i2--) {
|
|
1531
|
+
var context = this.context[i2];
|
|
1532
1532
|
if (context.token === "function")
|
|
1533
1533
|
return context.generator;
|
|
1534
1534
|
}
|
|
@@ -1975,16 +1975,16 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
1975
1975
|
this.exitScope();
|
|
1976
1976
|
};
|
|
1977
1977
|
pp$5.isSimpleParamList = function(params) {
|
|
1978
|
-
for (var
|
|
1979
|
-
var param =
|
|
1978
|
+
for (var i2 = 0, list4 = params; i2 < list4.length; i2 += 1) {
|
|
1979
|
+
var param = list4[i2];
|
|
1980
1980
|
if (param.type !== "Identifier")
|
|
1981
1981
|
return !1;
|
|
1982
1982
|
}
|
|
1983
1983
|
return !0;
|
|
1984
1984
|
};
|
|
1985
1985
|
pp$5.checkParams = function(node2, allowDuplicates) {
|
|
1986
|
-
for (var nameHash = /* @__PURE__ */ Object.create(null),
|
|
1987
|
-
var param =
|
|
1986
|
+
for (var nameHash = /* @__PURE__ */ Object.create(null), i2 = 0, list4 = node2.params; i2 < list4.length; i2 += 1) {
|
|
1987
|
+
var param = list4[i2];
|
|
1988
1988
|
this.checkLValInnerPattern(param, BIND_VAR, allowDuplicates ? null : nameHash);
|
|
1989
1989
|
}
|
|
1990
1990
|
};
|
|
@@ -2064,8 +2064,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
2064
2064
|
var scope$2 = this.currentScope();
|
|
2065
2065
|
this.treatFunctionsAsVar ? redeclared = scope$2.lexical.indexOf(name2) > -1 : redeclared = scope$2.lexical.indexOf(name2) > -1 || scope$2.var.indexOf(name2) > -1, scope$2.functions.push(name2);
|
|
2066
2066
|
} else
|
|
2067
|
-
for (var
|
|
2068
|
-
var scope$3 = this.scopeStack[
|
|
2067
|
+
for (var i2 = this.scopeStack.length - 1; i2 >= 0; --i2) {
|
|
2068
|
+
var scope$3 = this.scopeStack[i2];
|
|
2069
2069
|
if (scope$3.lexical.indexOf(name2) > -1 && !(scope$3.flags & SCOPE_SIMPLE_CATCH && scope$3.lexical[0] === name2) || !this.treatFunctionsAsVarInScope(scope$3) && scope$3.functions.indexOf(name2) > -1) {
|
|
2070
2070
|
redeclared = !0;
|
|
2071
2071
|
break;
|
|
@@ -2082,15 +2082,15 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
2082
2082
|
return this.scopeStack[this.scopeStack.length - 1];
|
|
2083
2083
|
};
|
|
2084
2084
|
pp$3.currentVarScope = function() {
|
|
2085
|
-
for (var
|
|
2086
|
-
var scope = this.scopeStack[
|
|
2085
|
+
for (var i2 = this.scopeStack.length - 1; ; i2--) {
|
|
2086
|
+
var scope = this.scopeStack[i2];
|
|
2087
2087
|
if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK))
|
|
2088
2088
|
return scope;
|
|
2089
2089
|
}
|
|
2090
2090
|
};
|
|
2091
2091
|
pp$3.currentThisScope = function() {
|
|
2092
|
-
for (var
|
|
2093
|
-
var scope = this.scopeStack[
|
|
2092
|
+
for (var i2 = this.scopeStack.length - 1; ; i2--) {
|
|
2093
|
+
var scope = this.scopeStack[i2];
|
|
2094
2094
|
if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK) && !(scope.flags & SCOPE_ARROW))
|
|
2095
2095
|
return scope;
|
|
2096
2096
|
}
|
|
@@ -2138,8 +2138,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
2138
2138
|
13: ecma13ScriptValues,
|
|
2139
2139
|
14: ecma14ScriptValues
|
|
2140
2140
|
}, data = {};
|
|
2141
|
-
for (i = 0,
|
|
2142
|
-
ecmaVersion =
|
|
2141
|
+
for (i = 0, list = [9, 10, 11, 12, 13, 14]; i < list.length; i += 1)
|
|
2142
|
+
ecmaVersion = list[i], buildUnicodeData(ecmaVersion);
|
|
2143
2143
|
pp$1 = Parser.prototype, BranchID = function(parent, base) {
|
|
2144
2144
|
this.parent = parent, this.base = base || this;
|
|
2145
2145
|
};
|
|
@@ -2163,24 +2163,24 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
2163
2163
|
RegExpValidationState.prototype.raise = function(message) {
|
|
2164
2164
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
|
|
2165
2165
|
};
|
|
2166
|
-
RegExpValidationState.prototype.at = function(
|
|
2166
|
+
RegExpValidationState.prototype.at = function(i2, forceU) {
|
|
2167
2167
|
forceU === void 0 && (forceU = !1);
|
|
2168
2168
|
var s = this.source, l = s.length;
|
|
2169
|
-
if (
|
|
2169
|
+
if (i2 >= l)
|
|
2170
2170
|
return -1;
|
|
2171
|
-
var c = s.charCodeAt(
|
|
2172
|
-
if (!(forceU || this.switchU) || c <= 55295 || c >= 57344 ||
|
|
2171
|
+
var c = s.charCodeAt(i2);
|
|
2172
|
+
if (!(forceU || this.switchU) || c <= 55295 || c >= 57344 || i2 + 1 >= l)
|
|
2173
2173
|
return c;
|
|
2174
|
-
var next = s.charCodeAt(
|
|
2174
|
+
var next = s.charCodeAt(i2 + 1);
|
|
2175
2175
|
return next >= 56320 && next <= 57343 ? (c << 10) + next - 56613888 : c;
|
|
2176
2176
|
};
|
|
2177
|
-
RegExpValidationState.prototype.nextIndex = function(
|
|
2177
|
+
RegExpValidationState.prototype.nextIndex = function(i2, forceU) {
|
|
2178
2178
|
forceU === void 0 && (forceU = !1);
|
|
2179
2179
|
var s = this.source, l = s.length;
|
|
2180
|
-
if (
|
|
2180
|
+
if (i2 >= l)
|
|
2181
2181
|
return l;
|
|
2182
|
-
var c = s.charCodeAt(
|
|
2183
|
-
return !(forceU || this.switchU) || c <= 55295 || c >= 57344 ||
|
|
2182
|
+
var c = s.charCodeAt(i2), next;
|
|
2183
|
+
return !(forceU || this.switchU) || c <= 55295 || c >= 57344 || i2 + 1 >= l || (next = s.charCodeAt(i2 + 1)) < 56320 || next > 57343 ? i2 + 1 : i2 + 2;
|
|
2184
2184
|
};
|
|
2185
2185
|
RegExpValidationState.prototype.current = function(forceU) {
|
|
2186
2186
|
return forceU === void 0 && (forceU = !1), this.at(this.pos, forceU);
|
|
@@ -2196,8 +2196,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
2196
2196
|
};
|
|
2197
2197
|
RegExpValidationState.prototype.eatChars = function(chs, forceU) {
|
|
2198
2198
|
forceU === void 0 && (forceU = !1);
|
|
2199
|
-
for (var pos = this.pos,
|
|
2200
|
-
var ch =
|
|
2199
|
+
for (var pos = this.pos, i2 = 0, list4 = chs; i2 < list4.length; i2 += 1) {
|
|
2200
|
+
var ch = list4[i2], current2 = this.at(pos, forceU);
|
|
2201
2201
|
if (current2 === -1 || current2 !== ch)
|
|
2202
2202
|
return !1;
|
|
2203
2203
|
pos = this.nextIndex(pos, forceU);
|
|
@@ -2205,9 +2205,9 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
2205
2205
|
return this.pos = pos, !0;
|
|
2206
2206
|
};
|
|
2207
2207
|
pp$1.validateRegExpFlags = function(state) {
|
|
2208
|
-
for (var validFlags = state.validFlags, flags = state.flags, u = !1, v = !1,
|
|
2209
|
-
var flag = flags.charAt(
|
|
2210
|
-
validFlags.indexOf(flag) === -1 && this.raise(state.start, "Invalid regular expression flag"), flags.indexOf(flag,
|
|
2208
|
+
for (var validFlags = state.validFlags, flags = state.flags, u = !1, v = !1, i2 = 0; i2 < flags.length; i2++) {
|
|
2209
|
+
var flag = flags.charAt(i2);
|
|
2210
|
+
validFlags.indexOf(flag) === -1 && this.raise(state.start, "Invalid regular expression flag"), flags.indexOf(flag, i2 + 1) > -1 && this.raise(state.start, "Duplicate regular expression flag"), flag === "u" && (u = !0), flag === "v" && (v = !0);
|
|
2211
2211
|
}
|
|
2212
2212
|
this.options.ecmaVersion >= 15 && u && v && this.raise(state.start, "Invalid regular expression flag");
|
|
2213
2213
|
};
|
|
@@ -2225,8 +2225,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
2225
2225
|
125
|
|
2226
2226
|
/* } */
|
|
2227
2227
|
)) && state.raise("Lone quantifier brackets")), state.maxBackReference > state.numCapturingParens && state.raise("Invalid escape");
|
|
2228
|
-
for (var
|
|
2229
|
-
var name2 =
|
|
2228
|
+
for (var i2 = 0, list4 = state.backReferenceNames; i2 < list4.length; i2 += 1) {
|
|
2229
|
+
var name2 = list4[i2];
|
|
2230
2230
|
state.groupNames[name2] || state.raise("Invalid named capture referenced");
|
|
2231
2231
|
}
|
|
2232
2232
|
};
|
|
@@ -2369,9 +2369,9 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
2369
2369
|
/* - */
|
|
2370
2370
|
);
|
|
2371
2371
|
if (addModifiers || hasHyphen) {
|
|
2372
|
-
for (var
|
|
2373
|
-
var modifier = addModifiers.charAt(
|
|
2374
|
-
addModifiers.indexOf(modifier,
|
|
2372
|
+
for (var i2 = 0; i2 < addModifiers.length; i2++) {
|
|
2373
|
+
var modifier = addModifiers.charAt(i2);
|
|
2374
|
+
addModifiers.indexOf(modifier, i2 + 1) > -1 && state.raise("Duplicate regular expression modifiers");
|
|
2375
2375
|
}
|
|
2376
2376
|
if (hasHyphen) {
|
|
2377
2377
|
var removeModifiers = this.regexp_eatModifiers(state);
|
|
@@ -2449,8 +2449,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
2449
2449
|
var trackDisjunction = this.options.ecmaVersion >= 16, known = state.groupNames[state.lastStringValue];
|
|
2450
2450
|
if (known)
|
|
2451
2451
|
if (trackDisjunction)
|
|
2452
|
-
for (var
|
|
2453
|
-
var altID =
|
|
2452
|
+
for (var i2 = 0, list4 = known; i2 < list4.length; i2 += 1) {
|
|
2453
|
+
var altID = list4[i2];
|
|
2454
2454
|
altID.separatedFrom(state.branchID) || state.raise("Duplicate capture group name");
|
|
2455
2455
|
}
|
|
2456
2456
|
else
|
|
@@ -2909,7 +2909,7 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
2909
2909
|
pp$1.regexp_eatFixedHexDigits = function(state, length) {
|
|
2910
2910
|
var start2 = state.pos;
|
|
2911
2911
|
state.lastIntValue = 0;
|
|
2912
|
-
for (var
|
|
2912
|
+
for (var i2 = 0; i2 < length; ++i2) {
|
|
2913
2913
|
var ch = state.current();
|
|
2914
2914
|
if (!isHexDigit(ch))
|
|
2915
2915
|
return state.pos = start2, !1;
|
|
@@ -3066,8 +3066,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
3066
3066
|
return next === 61 ? this.finishOp(types$1.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : code2 === 61 && next === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(types$1.arrow)) : this.finishOp(code2 === 61 ? types$1.eq : types$1.prefix, 1);
|
|
3067
3067
|
};
|
|
3068
3068
|
pp.readToken_question = function() {
|
|
3069
|
-
var
|
|
3070
|
-
if (
|
|
3069
|
+
var ecmaVersion2 = this.options.ecmaVersion;
|
|
3070
|
+
if (ecmaVersion2 >= 11) {
|
|
3071
3071
|
var next = this.input.charCodeAt(this.pos + 1);
|
|
3072
3072
|
if (next === 46) {
|
|
3073
3073
|
var next2 = this.input.charCodeAt(this.pos + 2);
|
|
@@ -3075,7 +3075,7 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
3075
3075
|
return this.finishOp(types$1.questionDot, 2);
|
|
3076
3076
|
}
|
|
3077
3077
|
if (next === 63) {
|
|
3078
|
-
if (
|
|
3078
|
+
if (ecmaVersion2 >= 12) {
|
|
3079
3079
|
var next2$1 = this.input.charCodeAt(this.pos + 2);
|
|
3080
3080
|
if (next2$1 === 61)
|
|
3081
3081
|
return this.finishOp(types$1.assign, 3);
|
|
@@ -3086,8 +3086,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
3086
3086
|
return this.finishOp(types$1.question, 1);
|
|
3087
3087
|
};
|
|
3088
3088
|
pp.readToken_numberSign = function() {
|
|
3089
|
-
var
|
|
3090
|
-
if (
|
|
3089
|
+
var ecmaVersion2 = this.options.ecmaVersion, code2 = 35;
|
|
3090
|
+
if (ecmaVersion2 >= 13 && (++this.pos, code2 = this.fullCharCodeAtPos(), isIdentifierStart(code2, !0) || code2 === 92))
|
|
3091
3091
|
return this.finishToken(types$1.privateId, this.readWord1());
|
|
3092
3092
|
this.raise(this.pos, "Unexpected character '" + codePointToString(code2) + "'");
|
|
3093
3093
|
};
|
|
@@ -3213,10 +3213,10 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
|
|
|
3213
3213
|
return this.finishToken(types$1.regexp, { pattern, flags, value });
|
|
3214
3214
|
};
|
|
3215
3215
|
pp.readInt = function(radix, len, maybeLegacyOctalNumericLiteral) {
|
|
3216
|
-
for (var allowSeparators = this.options.ecmaVersion >= 12 && len === void 0, isLegacyOctalNumericLiteral = maybeLegacyOctalNumericLiteral && this.input.charCodeAt(this.pos) === 48, start2 = this.pos, total = 0, lastCode = 0,
|
|
3216
|
+
for (var allowSeparators = this.options.ecmaVersion >= 12 && len === void 0, isLegacyOctalNumericLiteral = maybeLegacyOctalNumericLiteral && this.input.charCodeAt(this.pos) === 48, start2 = this.pos, total = 0, lastCode = 0, i2 = 0, e = len ?? 1 / 0; i2 < e; ++i2, ++this.pos) {
|
|
3217
3217
|
var code2 = this.input.charCodeAt(this.pos), val = void 0;
|
|
3218
3218
|
if (allowSeparators && code2 === 95) {
|
|
3219
|
-
isLegacyOctalNumericLiteral && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), lastCode === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"),
|
|
3219
|
+
isLegacyOctalNumericLiteral && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), lastCode === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), i2 === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), lastCode = code2;
|
|
3220
3220
|
continue;
|
|
3221
3221
|
}
|
|
3222
3222
|
if (code2 >= 97 ? val = code2 - 97 + 10 : code2 >= 65 ? val = code2 - 65 + 10 : code2 >= 48 && code2 <= 57 ? val = code2 - 48 : val = 1 / 0, val >= radix)
|
|
@@ -3720,8 +3720,8 @@ var require_cjs = __commonJS({
|
|
|
3720
3720
|
function updatePosition(str) {
|
|
3721
3721
|
var lines = str.match(NEWLINE_REGEX);
|
|
3722
3722
|
lines && (lineno += lines.length);
|
|
3723
|
-
var
|
|
3724
|
-
column = ~
|
|
3723
|
+
var i2 = str.lastIndexOf(NEWLINE);
|
|
3724
|
+
column = ~i2 ? str.length - i2 : column + str.length;
|
|
3725
3725
|
}
|
|
3726
3726
|
function position3() {
|
|
3727
3727
|
var start2 = { line: lineno, column };
|
|
@@ -3758,12 +3758,12 @@ var require_cjs = __commonJS({
|
|
|
3758
3758
|
function comment2() {
|
|
3759
3759
|
var pos = position3();
|
|
3760
3760
|
if (!(FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1))) {
|
|
3761
|
-
for (var
|
|
3762
|
-
++
|
|
3763
|
-
if (
|
|
3761
|
+
for (var i2 = 2; EMPTY_STRING != style.charAt(i2) && (ASTERISK != style.charAt(i2) || FORWARD_SLASH != style.charAt(i2 + 1)); )
|
|
3762
|
+
++i2;
|
|
3763
|
+
if (i2 += 2, EMPTY_STRING === style.charAt(i2 - 1))
|
|
3764
3764
|
return error("End of comment missing");
|
|
3765
|
-
var str = style.slice(2,
|
|
3766
|
-
return column += 2, updatePosition(str), style = style.slice(
|
|
3765
|
+
var str = style.slice(2, i2 - 2);
|
|
3766
|
+
return column += 2, updatePosition(str), style = style.slice(i2), column += 2, pos({
|
|
3767
3767
|
type: TYPE_COMMENT,
|
|
3768
3768
|
comment: str
|
|
3769
3769
|
});
|
|
@@ -3891,9 +3891,9 @@ var require_extend = __commonJS({
|
|
|
3891
3891
|
return obj[name2];
|
|
3892
3892
|
};
|
|
3893
3893
|
module.exports = function extend3() {
|
|
3894
|
-
var options, name2, src, copy, copyIsArray, clone, target = arguments[0],
|
|
3895
|
-
for (typeof target == "boolean" && (deep = target, target = arguments[1] || {},
|
|
3896
|
-
if (options = arguments[
|
|
3894
|
+
var options, name2, src, copy, copyIsArray, clone, target = arguments[0], i2 = 1, length = arguments.length, deep = !1;
|
|
3895
|
+
for (typeof target == "boolean" && (deep = target, target = arguments[1] || {}, i2 = 2), (target == null || typeof target != "object" && typeof target != "function") && (target = {}); i2 < length; ++i2)
|
|
3896
|
+
if (options = arguments[i2], options != null)
|
|
3897
3897
|
for (name2 in options)
|
|
3898
3898
|
src = getProperty(target, name2), copy = getProperty(options, name2), target !== copy && (deep && copy && (isPlainObject2(copy) || (copyIsArray = isArray2(copy))) ? (copyIsArray ? (copyIsArray = !1, clone = src && isArray2(src) ? src : []) : clone = src && isPlainObject2(src) ? src : {}, setProperty(target, { name: name2, newValue: extend3(deep, clone, copy) })) : typeof copy < "u" && setProperty(target, { name: name2, newValue: copy }));
|
|
3899
3899
|
return target;
|
|
@@ -4533,9 +4533,9 @@ var SyncWalker = class extends WalkerBase {
|
|
|
4533
4533
|
/** @type {Array<unknown>} */
|
|
4534
4534
|
value
|
|
4535
4535
|
);
|
|
4536
|
-
for (let
|
|
4537
|
-
let item = nodes[
|
|
4538
|
-
isNode(item) && (this.visit(item, node2, key2,
|
|
4536
|
+
for (let i2 = 0; i2 < nodes.length; i2 += 1) {
|
|
4537
|
+
let item = nodes[i2];
|
|
4538
|
+
isNode(item) && (this.visit(item, node2, key2, i2) || i2--);
|
|
4539
4539
|
}
|
|
4540
4540
|
} else isNode(value) && this.visit(value, node2, key2, null);
|
|
4541
4541
|
}
|
|
@@ -4891,8 +4891,8 @@ function formatSequence(state, nodes) {
|
|
|
4891
4891
|
if (state.write("("), nodes != null && nodes.length > 0) {
|
|
4892
4892
|
generator[nodes[0].type](nodes[0], state);
|
|
4893
4893
|
let { length } = nodes;
|
|
4894
|
-
for (let
|
|
4895
|
-
let param = nodes[
|
|
4894
|
+
for (let i2 = 1; i2 < length; i2++) {
|
|
4895
|
+
let param = nodes[i2];
|
|
4896
4896
|
state.write(", "), generator[param.type](param, state);
|
|
4897
4897
|
}
|
|
4898
4898
|
}
|
|
@@ -4914,15 +4914,15 @@ function reindent(state, text5, indent2, lineEnd) {
|
|
|
4914
4914
|
`), end = lines.length - 1;
|
|
4915
4915
|
if (state.write(lines[0].trim()), end > 0) {
|
|
4916
4916
|
state.write(lineEnd);
|
|
4917
|
-
for (let
|
|
4918
|
-
state.write(indent2 + lines[
|
|
4917
|
+
for (let i2 = 1; i2 < end; i2++)
|
|
4918
|
+
state.write(indent2 + lines[i2].trim() + lineEnd);
|
|
4919
4919
|
state.write(indent2 + lines[end].trim());
|
|
4920
4920
|
}
|
|
4921
4921
|
}
|
|
4922
4922
|
function formatComments(state, comments, indent2, lineEnd) {
|
|
4923
4923
|
let { length } = comments;
|
|
4924
|
-
for (let
|
|
4925
|
-
let comment2 = comments[
|
|
4924
|
+
for (let i2 = 0; i2 < length; i2++) {
|
|
4925
|
+
let comment2 = comments[i2];
|
|
4926
4926
|
state.write(indent2), comment2.type[0] === "L" ? state.write("// " + comment2.value.trim() + `
|
|
4927
4927
|
`, comment2) : (state.write("/*"), reindent(state, comment2.value, indent2, lineEnd), state.write("*/" + lineEnd));
|
|
4928
4928
|
}
|
|
@@ -4945,8 +4945,8 @@ function formatVariableDeclaration(state, node2) {
|
|
|
4945
4945
|
let { length } = declarations;
|
|
4946
4946
|
if (length > 0) {
|
|
4947
4947
|
generator.VariableDeclarator(declarations[0], state);
|
|
4948
|
-
for (let
|
|
4949
|
-
state.write(", "), generator.VariableDeclarator(declarations[
|
|
4948
|
+
for (let i2 = 1; i2 < length; i2++)
|
|
4949
|
+
state.write(", "), generator.VariableDeclarator(declarations[i2], state);
|
|
4950
4950
|
}
|
|
4951
4951
|
}
|
|
4952
4952
|
var ForInStatement, FunctionDeclaration, RestElement, BinaryExpression, ArrayExpression, BlockStatement, GENERATOR = {
|
|
@@ -4957,8 +4957,8 @@ var ForInStatement, FunctionDeclaration, RestElement, BinaryExpression, ArrayExp
|
|
|
4957
4957
|
let indent2 = state.indent.repeat(state.indentLevel), { lineEnd, writeComments } = state;
|
|
4958
4958
|
writeComments && node2.comments != null && formatComments(state, node2.comments, indent2, lineEnd);
|
|
4959
4959
|
let statements = node2.body, { length } = statements;
|
|
4960
|
-
for (let
|
|
4961
|
-
let statement = statements[
|
|
4960
|
+
for (let i2 = 0; i2 < length; i2++) {
|
|
4961
|
+
let statement = statements[i2];
|
|
4962
4962
|
writeComments && statement.comments != null && formatComments(state, statement.comments, indent2, lineEnd), state.write(indent2), this[statement.type](statement, state), state.write(lineEnd);
|
|
4963
4963
|
}
|
|
4964
4964
|
writeComments && node2.trailingComments != null && formatComments(state, node2.trailingComments, indent2, lineEnd);
|
|
@@ -4970,8 +4970,8 @@ var ForInStatement, FunctionDeclaration, RestElement, BinaryExpression, ArrayExp
|
|
|
4970
4970
|
if (statements != null && statements.length > 0) {
|
|
4971
4971
|
state.write(lineEnd), writeComments && node2.comments != null && formatComments(state, node2.comments, statementIndent, lineEnd);
|
|
4972
4972
|
let { length } = statements;
|
|
4973
|
-
for (let
|
|
4974
|
-
let statement = statements[
|
|
4973
|
+
for (let i2 = 0; i2 < length; i2++) {
|
|
4974
|
+
let statement = statements[i2];
|
|
4975
4975
|
writeComments && statement.comments != null && formatComments(state, statement.comments, statementIndent, lineEnd), state.write(statementIndent), this[statement.type](statement, state), state.write(lineEnd);
|
|
4976
4976
|
}
|
|
4977
4977
|
state.write(indent2);
|
|
@@ -5011,12 +5011,12 @@ var ForInStatement, FunctionDeclaration, RestElement, BinaryExpression, ArrayExp
|
|
|
5011
5011
|
let caseIndent = indent2 + state.indent, statementIndent = caseIndent + state.indent;
|
|
5012
5012
|
state.write("switch ("), this[node2.discriminant.type](node2.discriminant, state), state.write(") {" + lineEnd);
|
|
5013
5013
|
let { cases: occurences } = node2, { length: occurencesCount } = occurences;
|
|
5014
|
-
for (let
|
|
5015
|
-
let occurence = occurences[
|
|
5014
|
+
for (let i2 = 0; i2 < occurencesCount; i2++) {
|
|
5015
|
+
let occurence = occurences[i2];
|
|
5016
5016
|
writeComments && occurence.comments != null && formatComments(state, occurence.comments, caseIndent, lineEnd), occurence.test ? (state.write(caseIndent + "case "), this[occurence.test.type](occurence.test, state), state.write(":" + lineEnd)) : state.write(caseIndent + "default:" + lineEnd);
|
|
5017
5017
|
let { consequent } = occurence, { length: consequentCount } = consequent;
|
|
5018
|
-
for (let
|
|
5019
|
-
let statement = consequent[
|
|
5018
|
+
for (let i3 = 0; i3 < consequentCount; i3++) {
|
|
5019
|
+
let statement = consequent[i3];
|
|
5020
5020
|
writeComments && statement.comments != null && formatComments(state, statement.comments, statementIndent, lineEnd), state.write(statementIndent), this[statement.type](statement, state), state.write(lineEnd);
|
|
5021
5021
|
}
|
|
5022
5022
|
}
|
|
@@ -5080,22 +5080,22 @@ var ForInStatement, FunctionDeclaration, RestElement, BinaryExpression, ArrayExp
|
|
|
5080
5080
|
},
|
|
5081
5081
|
ImportDeclaration(node2, state) {
|
|
5082
5082
|
state.write("import ");
|
|
5083
|
-
let { specifiers, attributes } = node2, { length } = specifiers,
|
|
5083
|
+
let { specifiers, attributes } = node2, { length } = specifiers, i2 = 0;
|
|
5084
5084
|
if (length > 0) {
|
|
5085
|
-
for (;
|
|
5086
|
-
|
|
5087
|
-
let specifier = specifiers[
|
|
5085
|
+
for (; i2 < length; ) {
|
|
5086
|
+
i2 > 0 && state.write(", ");
|
|
5087
|
+
let specifier = specifiers[i2], type = specifier.type[6];
|
|
5088
5088
|
if (type === "D")
|
|
5089
|
-
state.write(specifier.local.name, specifier),
|
|
5089
|
+
state.write(specifier.local.name, specifier), i2++;
|
|
5090
5090
|
else if (type === "N")
|
|
5091
|
-
state.write("* as " + specifier.local.name, specifier),
|
|
5091
|
+
state.write("* as " + specifier.local.name, specifier), i2++;
|
|
5092
5092
|
else
|
|
5093
5093
|
break;
|
|
5094
5094
|
}
|
|
5095
|
-
if (
|
|
5095
|
+
if (i2 < length) {
|
|
5096
5096
|
for (state.write("{"); ; ) {
|
|
5097
|
-
let specifier = specifiers[
|
|
5098
|
-
if (state.write(name2, specifier), name2 !== specifier.local.name && state.write(" as " + specifier.local.name), ++
|
|
5097
|
+
let specifier = specifiers[i2], { name: name2 } = specifier.imported;
|
|
5098
|
+
if (state.write(name2, specifier), name2 !== specifier.local.name && state.write(" as " + specifier.local.name), ++i2 < length)
|
|
5099
5099
|
state.write(", ");
|
|
5100
5100
|
else
|
|
5101
5101
|
break;
|
|
@@ -5106,8 +5106,8 @@ var ForInStatement, FunctionDeclaration, RestElement, BinaryExpression, ArrayExp
|
|
|
5106
5106
|
}
|
|
5107
5107
|
if (this.Literal(node2.source, state), attributes && attributes.length > 0) {
|
|
5108
5108
|
state.write(" with { ");
|
|
5109
|
-
for (let
|
|
5110
|
-
this.ImportAttribute(attributes[
|
|
5109
|
+
for (let i3 = 0; i3 < attributes.length; i3++)
|
|
5110
|
+
this.ImportAttribute(attributes[i3], state), i3 < attributes.length - 1 && state.write(", ");
|
|
5111
5111
|
state.write(" }");
|
|
5112
5112
|
}
|
|
5113
5113
|
state.write(";");
|
|
@@ -5128,17 +5128,17 @@ var ForInStatement, FunctionDeclaration, RestElement, BinaryExpression, ArrayExp
|
|
|
5128
5128
|
state.write("{");
|
|
5129
5129
|
let { specifiers } = node2, { length } = specifiers;
|
|
5130
5130
|
if (length > 0)
|
|
5131
|
-
for (let
|
|
5132
|
-
let specifier = specifiers[
|
|
5133
|
-
if (state.write(name2, specifier), name2 !== specifier.exported.name && state.write(" as " + specifier.exported.name), ++
|
|
5131
|
+
for (let i2 = 0; ; ) {
|
|
5132
|
+
let specifier = specifiers[i2], { name: name2 } = specifier.local;
|
|
5133
|
+
if (state.write(name2, specifier), name2 !== specifier.exported.name && state.write(" as " + specifier.exported.name), ++i2 < length)
|
|
5134
5134
|
state.write(", ");
|
|
5135
5135
|
else
|
|
5136
5136
|
break;
|
|
5137
5137
|
}
|
|
5138
5138
|
if (state.write("}"), node2.source && (state.write(" from "), this.Literal(node2.source, state)), node2.attributes && node2.attributes.length > 0) {
|
|
5139
5139
|
state.write(" with { ");
|
|
5140
|
-
for (let
|
|
5141
|
-
this.ImportAttribute(node2.attributes[
|
|
5140
|
+
for (let i2 = 0; i2 < node2.attributes.length; i2++)
|
|
5141
|
+
this.ImportAttribute(node2.attributes[i2], state), i2 < node2.attributes.length - 1 && state.write(", ");
|
|
5142
5142
|
state.write(" }");
|
|
5143
5143
|
}
|
|
5144
5144
|
state.write(";");
|
|
@@ -5147,8 +5147,8 @@ var ForInStatement, FunctionDeclaration, RestElement, BinaryExpression, ArrayExp
|
|
|
5147
5147
|
ExportAllDeclaration(node2, state) {
|
|
5148
5148
|
if (node2.exported != null ? state.write("export * as " + node2.exported.name + " from ") : state.write("export * from "), this.Literal(node2.source, state), node2.attributes && node2.attributes.length > 0) {
|
|
5149
5149
|
state.write(" with { ");
|
|
5150
|
-
for (let
|
|
5151
|
-
this.ImportAttribute(node2.attributes[
|
|
5150
|
+
for (let i2 = 0; i2 < node2.attributes.length; i2++)
|
|
5151
|
+
this.ImportAttribute(node2.attributes[i2], state), i2 < node2.attributes.length - 1 && state.write(", ");
|
|
5152
5152
|
state.write(" }");
|
|
5153
5153
|
}
|
|
5154
5154
|
state.write(";");
|
|
@@ -5186,8 +5186,8 @@ var ForInStatement, FunctionDeclaration, RestElement, BinaryExpression, ArrayExp
|
|
|
5186
5186
|
let { quasis, expressions } = node2;
|
|
5187
5187
|
state.write("`");
|
|
5188
5188
|
let { length } = expressions;
|
|
5189
|
-
for (let
|
|
5190
|
-
let expression = expressions[
|
|
5189
|
+
for (let i2 = 0; i2 < length; i2++) {
|
|
5190
|
+
let expression = expressions[i2], quasi2 = quasis[i2];
|
|
5191
5191
|
state.write(quasi2.value.raw, quasi2), state.write("${"), this[expression.type](expression, state), state.write("}");
|
|
5192
5192
|
}
|
|
5193
5193
|
let quasi = quasis[quasis.length - 1];
|
|
@@ -5202,9 +5202,9 @@ var ForInStatement, FunctionDeclaration, RestElement, BinaryExpression, ArrayExp
|
|
|
5202
5202
|
ArrayExpression: ArrayExpression = function(node2, state) {
|
|
5203
5203
|
if (state.write("["), node2.elements.length > 0) {
|
|
5204
5204
|
let { elements } = node2, { length } = elements;
|
|
5205
|
-
for (let
|
|
5206
|
-
let element2 = elements[
|
|
5207
|
-
if (element2 != null && this[element2.type](element2, state), ++
|
|
5205
|
+
for (let i2 = 0; ; ) {
|
|
5206
|
+
let element2 = elements[i2];
|
|
5207
|
+
if (element2 != null && this[element2.type](element2, state), ++i2 < length)
|
|
5208
5208
|
state.write(", ");
|
|
5209
5209
|
else {
|
|
5210
5210
|
element2 == null && state.write(", ");
|
|
@@ -5220,9 +5220,9 @@ var ForInStatement, FunctionDeclaration, RestElement, BinaryExpression, ArrayExp
|
|
|
5220
5220
|
if (state.write("{"), node2.properties.length > 0) {
|
|
5221
5221
|
state.write(lineEnd), writeComments && node2.comments != null && formatComments(state, node2.comments, propertyIndent, lineEnd);
|
|
5222
5222
|
let comma = "," + lineEnd, { properties } = node2, { length } = properties;
|
|
5223
|
-
for (let
|
|
5224
|
-
let property = properties[
|
|
5225
|
-
if (writeComments && property.comments != null && formatComments(state, property.comments, propertyIndent, lineEnd), state.write(propertyIndent), this[property.type](property, state), ++
|
|
5223
|
+
for (let i2 = 0; ; ) {
|
|
5224
|
+
let property = properties[i2];
|
|
5225
|
+
if (writeComments && property.comments != null && formatComments(state, property.comments, propertyIndent, lineEnd), state.write(propertyIndent), this[property.type](property, state), ++i2 < length)
|
|
5226
5226
|
state.write(comma);
|
|
5227
5227
|
else
|
|
5228
5228
|
break;
|
|
@@ -5244,7 +5244,7 @@ var ForInStatement, FunctionDeclaration, RestElement, BinaryExpression, ArrayExp
|
|
|
5244
5244
|
ObjectPattern(node2, state) {
|
|
5245
5245
|
if (state.write("{"), node2.properties.length > 0) {
|
|
5246
5246
|
let { properties } = node2, { length } = properties;
|
|
5247
|
-
for (let
|
|
5247
|
+
for (let i2 = 0; this[properties[i2].type](properties[i2], state), ++i2 < length; )
|
|
5248
5248
|
state.write(", ");
|
|
5249
5249
|
}
|
|
5250
5250
|
state.write("}");
|
|
@@ -5354,8 +5354,8 @@ var State = class {
|
|
|
5354
5354
|
}
|
|
5355
5355
|
if (type[0] === "T" && type[8] === "E" || type[0] === "L" && type[1] === "i" && typeof node2.value == "string") {
|
|
5356
5356
|
let { length: length2 } = code2, { column, line } = this;
|
|
5357
|
-
for (let
|
|
5358
|
-
code2[
|
|
5357
|
+
for (let i2 = 0; i2 < length2; i2++)
|
|
5358
|
+
code2[i2] === `
|
|
5359
5359
|
` ? (column = 0, line++) : column++;
|
|
5360
5360
|
this.column = column, this.line = line;
|
|
5361
5361
|
return;
|
|
@@ -6849,8 +6849,8 @@ function toDash($0) {
|
|
|
6849
6849
|
// ../../../node_modules/estree-util-attach-comments/lib/index.js
|
|
6850
6850
|
var own2 = {}.hasOwnProperty, emptyComments = [];
|
|
6851
6851
|
function attachComments(tree, comments) {
|
|
6852
|
-
let
|
|
6853
|
-
|
|
6852
|
+
let list4 = comments ? [...comments].sort(compare) : emptyComments;
|
|
6853
|
+
list4.length > 0 && walk2(tree, { comments: list4, index: 0 });
|
|
6854
6854
|
}
|
|
6855
6855
|
function walk2(node2, state) {
|
|
6856
6856
|
if (state.index === state.comments.length)
|
|
@@ -10393,7 +10393,7 @@ function color(d) {
|
|
|
10393
10393
|
}
|
|
10394
10394
|
|
|
10395
10395
|
// ../../../node_modules/estree-util-visit/lib/index.js
|
|
10396
|
-
var own7 = {}.hasOwnProperty, CONTINUE = Symbol("continue"), EXIT = Symbol("exit"), SKIP = Symbol("skip");
|
|
10396
|
+
var own7 = {}.hasOwnProperty, CONTINUE = /* @__PURE__ */ Symbol("continue"), EXIT = /* @__PURE__ */ Symbol("exit"), SKIP = /* @__PURE__ */ Symbol("skip");
|
|
10397
10397
|
function visit2(tree, visitor) {
|
|
10398
10398
|
let enter, leave;
|
|
10399
10399
|
typeof visitor == "function" ? enter = visitor : visitor && typeof visitor == "object" && (visitor.enter && (enter = visitor.enter), visitor.leave && (leave = visitor.leave)), build(tree, void 0, void 0, [])();
|
|
@@ -11080,16 +11080,16 @@ function mdxMd() {
|
|
|
11080
11080
|
}
|
|
11081
11081
|
|
|
11082
11082
|
// ../../../node_modules/micromark-util-chunked/index.js
|
|
11083
|
-
function splice(
|
|
11084
|
-
let end =
|
|
11083
|
+
function splice(list4, start2, remove, items) {
|
|
11084
|
+
let end = list4.length, chunkStart = 0, parameters;
|
|
11085
11085
|
if (start2 < 0 ? start2 = -start2 > end ? 0 : end + start2 : start2 = start2 > end ? end : start2, remove = remove > 0 ? remove : 0, items.length < 1e4)
|
|
11086
|
-
parameters = Array.from(items), parameters.unshift(start2, remove),
|
|
11086
|
+
parameters = Array.from(items), parameters.unshift(start2, remove), list4.splice(...parameters);
|
|
11087
11087
|
else
|
|
11088
|
-
for (remove &&
|
|
11089
|
-
parameters = items.slice(chunkStart, chunkStart + 1e4), parameters.unshift(start2, 0),
|
|
11088
|
+
for (remove && list4.splice(start2, remove); chunkStart < items.length; )
|
|
11089
|
+
parameters = items.slice(chunkStart, chunkStart + 1e4), parameters.unshift(start2, 0), list4.splice(...parameters), chunkStart += 1e4, start2 += 1e4;
|
|
11090
11090
|
}
|
|
11091
|
-
function push(
|
|
11092
|
-
return
|
|
11091
|
+
function push(list4, items) {
|
|
11092
|
+
return list4.length > 0 ? (splice(list4, list4.length, 0, items), list4) : items;
|
|
11093
11093
|
}
|
|
11094
11094
|
|
|
11095
11095
|
// ../../../node_modules/micromark-util-classify-character/index.js
|
|
@@ -12413,7 +12413,7 @@ function tokenizeThematicBreak(effects, ok2, nok) {
|
|
|
12413
12413
|
}
|
|
12414
12414
|
|
|
12415
12415
|
// ../../../node_modules/micromark-core-commonmark/lib/list.js
|
|
12416
|
-
var
|
|
12416
|
+
var list2 = {
|
|
12417
12417
|
name: "list",
|
|
12418
12418
|
tokenize: tokenizeListStart,
|
|
12419
12419
|
continuation: {
|
|
@@ -12484,7 +12484,7 @@ function tokenizeListContinuation(effects, ok2, nok) {
|
|
|
12484
12484
|
function notInCurrentItem(code2) {
|
|
12485
12485
|
return self.containerState._closeFlow = !0, self.interrupt = void 0, factorySpace(
|
|
12486
12486
|
effects,
|
|
12487
|
-
effects.attempt(
|
|
12487
|
+
effects.attempt(list2, ok2, nok),
|
|
12488
12488
|
"linePrefix",
|
|
12489
12489
|
self.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
|
12490
12490
|
)(code2);
|
|
@@ -12691,10 +12691,10 @@ function syntaxExtension(all3, extension2) {
|
|
|
12691
12691
|
}
|
|
12692
12692
|
}
|
|
12693
12693
|
}
|
|
12694
|
-
function constructs(existing,
|
|
12694
|
+
function constructs(existing, list4) {
|
|
12695
12695
|
let index2 = -1, before = [];
|
|
12696
|
-
for (; ++index2 <
|
|
12697
|
-
(
|
|
12696
|
+
for (; ++index2 < list4.length; )
|
|
12697
|
+
(list4[index2].add === "after" ? existing : before).push(list4[index2]);
|
|
12698
12698
|
splice(existing, 0, 0, before);
|
|
12699
12699
|
}
|
|
12700
12700
|
|
|
@@ -13037,10 +13037,10 @@ function initializeFactory(field) {
|
|
|
13037
13037
|
function atBreak(code2) {
|
|
13038
13038
|
if (code2 === null)
|
|
13039
13039
|
return !0;
|
|
13040
|
-
let
|
|
13041
|
-
if (
|
|
13042
|
-
for (; ++index2 <
|
|
13043
|
-
let item =
|
|
13040
|
+
let list4 = constructs2[code2], index2 = -1;
|
|
13041
|
+
if (list4)
|
|
13042
|
+
for (; ++index2 < list4.length; ) {
|
|
13043
|
+
let item = list4[index2];
|
|
13044
13044
|
if (!item.previous || item.previous.call(self, self.previous))
|
|
13045
13045
|
return !0;
|
|
13046
13046
|
}
|
|
@@ -13198,17 +13198,17 @@ function createTokenizer(parser, initialize, from) {
|
|
|
13198
13198
|
function handleMapOfConstructs(map) {
|
|
13199
13199
|
return start2;
|
|
13200
13200
|
function start2(code2) {
|
|
13201
|
-
let def = code2 !== null && map[code2], all3 = code2 !== null && map.null,
|
|
13201
|
+
let def = code2 !== null && map[code2], all3 = code2 !== null && map.null, list4 = [
|
|
13202
13202
|
// To do: add more extension tests.
|
|
13203
13203
|
/* c8 ignore next 2 */
|
|
13204
13204
|
...Array.isArray(def) ? def : def ? [def] : [],
|
|
13205
13205
|
...Array.isArray(all3) ? all3 : all3 ? [all3] : []
|
|
13206
13206
|
];
|
|
13207
|
-
return handleListOfConstructs(
|
|
13207
|
+
return handleListOfConstructs(list4)(code2);
|
|
13208
13208
|
}
|
|
13209
13209
|
}
|
|
13210
|
-
function handleListOfConstructs(
|
|
13211
|
-
return listOfConstructs =
|
|
13210
|
+
function handleListOfConstructs(list4) {
|
|
13211
|
+
return listOfConstructs = list4, constructIndex = 0, list4.length === 0 ? bogusState : handleConstruct(list4[constructIndex]);
|
|
13212
13212
|
}
|
|
13213
13213
|
function handleConstruct(construct) {
|
|
13214
13214
|
return start2;
|
|
@@ -13320,19 +13320,19 @@ __export(constructs_exports, {
|
|
|
13320
13320
|
text: () => text3
|
|
13321
13321
|
});
|
|
13322
13322
|
var document2 = {
|
|
13323
|
-
42:
|
|
13324
|
-
43:
|
|
13325
|
-
45:
|
|
13326
|
-
48:
|
|
13327
|
-
49:
|
|
13328
|
-
50:
|
|
13329
|
-
51:
|
|
13330
|
-
52:
|
|
13331
|
-
53:
|
|
13332
|
-
54:
|
|
13333
|
-
55:
|
|
13334
|
-
56:
|
|
13335
|
-
57:
|
|
13323
|
+
42: list2,
|
|
13324
|
+
43: list2,
|
|
13325
|
+
45: list2,
|
|
13326
|
+
48: list2,
|
|
13327
|
+
49: list2,
|
|
13328
|
+
50: list2,
|
|
13329
|
+
51: list2,
|
|
13330
|
+
52: list2,
|
|
13331
|
+
53: list2,
|
|
13332
|
+
54: list2,
|
|
13333
|
+
55: list2,
|
|
13334
|
+
56: list2,
|
|
13335
|
+
57: list2,
|
|
13336
13336
|
62: blockQuote
|
|
13337
13337
|
}, contentInitial = {
|
|
13338
13338
|
91: definition
|
|
@@ -13501,8 +13501,8 @@ function compiler(options) {
|
|
|
13501
13501
|
link: opener(link2),
|
|
13502
13502
|
listItem: opener(listItem2),
|
|
13503
13503
|
listItemValue: onenterlistitemvalue,
|
|
13504
|
-
listOrdered: opener(
|
|
13505
|
-
listUnordered: opener(
|
|
13504
|
+
listOrdered: opener(list4, onenterlistordered),
|
|
13505
|
+
listUnordered: opener(list4),
|
|
13506
13506
|
paragraph: opener(paragraph2),
|
|
13507
13507
|
reference: onenterreference,
|
|
13508
13508
|
referenceString: buffer,
|
|
@@ -13954,7 +13954,7 @@ function compiler(options) {
|
|
|
13954
13954
|
children: []
|
|
13955
13955
|
};
|
|
13956
13956
|
}
|
|
13957
|
-
function
|
|
13957
|
+
function list4(token) {
|
|
13958
13958
|
return {
|
|
13959
13959
|
type: "list",
|
|
13960
13960
|
ordered: token.type === "listOrdered",
|
|
@@ -14276,7 +14276,7 @@ function listItemLoose(node2) {
|
|
|
14276
14276
|
}
|
|
14277
14277
|
|
|
14278
14278
|
// ../../../node_modules/mdast-util-to-hast/lib/handlers/list.js
|
|
14279
|
-
function
|
|
14279
|
+
function list3(state, node2) {
|
|
14280
14280
|
let properties = {}, results = state.all(node2), index2 = -1;
|
|
14281
14281
|
for (typeof node2.start == "number" && node2.start !== 1 && (properties.start = node2.start); ++index2 < results.length; ) {
|
|
14282
14282
|
let child = results[index2];
|
|
@@ -14440,7 +14440,7 @@ var handlers2 = {
|
|
|
14440
14440
|
linkReference,
|
|
14441
14441
|
link,
|
|
14442
14442
|
listItem,
|
|
14443
|
-
list:
|
|
14443
|
+
list: list3,
|
|
14444
14444
|
paragraph,
|
|
14445
14445
|
// @ts-expect-error: root is different, but hard to type.
|
|
14446
14446
|
root: root2,
|