@tinacms/mdx 1.3.20 → 1.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.browser.mjs +897 -331
- package/dist/index.js +898 -331
- package/dist/index.mjs +897 -331
- package/dist/parse/acorn.d.ts +0 -5
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -129,9 +129,9 @@ var require_extend = __commonJS({
|
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
131
|
|
|
132
|
-
// ../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.
|
|
132
|
+
// ../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.9.0/node_modules/acorn-jsx/xhtml.js
|
|
133
133
|
var require_xhtml = __commonJS({
|
|
134
|
-
"../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.
|
|
134
|
+
"../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.9.0/node_modules/acorn-jsx/xhtml.js"(exports, module) {
|
|
135
135
|
module.exports = {
|
|
136
136
|
quot: '"',
|
|
137
137
|
amp: "&",
|
|
@@ -390,16 +390,16 @@ var require_xhtml = __commonJS({
|
|
|
390
390
|
}
|
|
391
391
|
});
|
|
392
392
|
|
|
393
|
-
// ../../../node_modules/.pnpm/acorn@8.
|
|
393
|
+
// ../../../node_modules/.pnpm/acorn@8.9.0/node_modules/acorn/dist/acorn.js
|
|
394
394
|
var require_acorn = __commonJS({
|
|
395
|
-
"../../../node_modules/.pnpm/acorn@8.
|
|
395
|
+
"../../../node_modules/.pnpm/acorn@8.9.0/node_modules/acorn/dist/acorn.js"(exports, module) {
|
|
396
396
|
(function(global2, factory) {
|
|
397
397
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.acorn = {}));
|
|
398
398
|
})(exports, function(exports2) {
|
|
399
399
|
"use strict";
|
|
400
|
-
var astralIdentifierCodes3 = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1,
|
|
401
|
-
var astralIdentifierStartCodes3 = [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, 68, 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, 349, 41, 7, 1, 79, 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,
|
|
402
|
-
var nonASCIIidentifierChars3 = "\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\u0898-\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\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-\
|
|
400
|
+
var astralIdentifierCodes3 = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 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, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 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, 406, 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, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 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, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
401
|
+
var astralIdentifierStartCodes3 = [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, 68, 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, 349, 41, 7, 1, 79, 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, 159, 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, 264, 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, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 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, 757, 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, 3104, 541, 1507, 4938, 6, 4191];
|
|
402
|
+
var nonASCIIidentifierChars3 = "\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\u0898-\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\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\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";
|
|
403
403
|
var nonASCIIidentifierStartChars3 = "\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-\u1C88\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-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\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";
|
|
404
404
|
var reservedWords3 = {
|
|
405
405
|
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",
|
|
@@ -429,6 +429,7 @@ var require_acorn = __commonJS({
|
|
|
429
429
|
return true;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
+
return false;
|
|
432
433
|
}
|
|
433
434
|
function isIdentifierStart3(code3, astral) {
|
|
434
435
|
if (code3 < 65) {
|
|
@@ -684,7 +685,7 @@ var require_acorn = __commonJS({
|
|
|
684
685
|
if (options.allowReserved == null) {
|
|
685
686
|
options.allowReserved = options.ecmaVersion < 5;
|
|
686
687
|
}
|
|
687
|
-
if (opts.allowHashBang == null) {
|
|
688
|
+
if (!opts || opts.allowHashBang == null) {
|
|
688
689
|
options.allowHashBang = options.ecmaVersion >= 14;
|
|
689
690
|
}
|
|
690
691
|
if (isArray4(options.onToken)) {
|
|
@@ -995,13 +996,13 @@ var require_acorn = __commonJS({
|
|
|
995
996
|
skipWhiteSpace3.lastIndex = this.pos;
|
|
996
997
|
var skip = skipWhiteSpace3.exec(this.input);
|
|
997
998
|
var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);
|
|
998
|
-
if (nextCh === 91 || nextCh === 92
|
|
999
|
+
if (nextCh === 91 || nextCh === 92) {
|
|
999
1000
|
return true;
|
|
1000
1001
|
}
|
|
1001
1002
|
if (context) {
|
|
1002
1003
|
return false;
|
|
1003
1004
|
}
|
|
1004
|
-
if (nextCh === 123) {
|
|
1005
|
+
if (nextCh === 123 || nextCh > 55295 && nextCh < 56320) {
|
|
1005
1006
|
return true;
|
|
1006
1007
|
}
|
|
1007
1008
|
if (isIdentifierStart3(nextCh, true)) {
|
|
@@ -1299,6 +1300,14 @@ var require_acorn = __commonJS({
|
|
|
1299
1300
|
return this.finishNode(node, "ThrowStatement");
|
|
1300
1301
|
};
|
|
1301
1302
|
var empty$13 = [];
|
|
1303
|
+
pp$83.parseCatchClauseParam = function() {
|
|
1304
|
+
var param = this.parseBindingAtom();
|
|
1305
|
+
var simple = param.type === "Identifier";
|
|
1306
|
+
this.enterScope(simple ? SCOPE_SIMPLE_CATCH3 : 0);
|
|
1307
|
+
this.checkLValPattern(param, simple ? BIND_SIMPLE_CATCH3 : BIND_LEXICAL3);
|
|
1308
|
+
this.expect(types$13.parenR);
|
|
1309
|
+
return param;
|
|
1310
|
+
};
|
|
1302
1311
|
pp$83.parseTryStatement = function(node) {
|
|
1303
1312
|
this.next();
|
|
1304
1313
|
node.block = this.parseBlock();
|
|
@@ -1307,11 +1316,7 @@ var require_acorn = __commonJS({
|
|
|
1307
1316
|
var clause = this.startNode();
|
|
1308
1317
|
this.next();
|
|
1309
1318
|
if (this.eat(types$13.parenL)) {
|
|
1310
|
-
clause.param = this.
|
|
1311
|
-
var simple = clause.param.type === "Identifier";
|
|
1312
|
-
this.enterScope(simple ? SCOPE_SIMPLE_CATCH3 : 0);
|
|
1313
|
-
this.checkLValPattern(clause.param, simple ? BIND_SIMPLE_CATCH3 : BIND_LEXICAL3);
|
|
1314
|
-
this.expect(types$13.parenR);
|
|
1319
|
+
clause.param = this.parseCatchClauseParam();
|
|
1315
1320
|
} else {
|
|
1316
1321
|
if (this.options.ecmaVersion < 10) {
|
|
1317
1322
|
this.unexpected();
|
|
@@ -1329,9 +1334,9 @@ var require_acorn = __commonJS({
|
|
|
1329
1334
|
}
|
|
1330
1335
|
return this.finishNode(node, "TryStatement");
|
|
1331
1336
|
};
|
|
1332
|
-
pp$83.parseVarStatement = function(node, kind) {
|
|
1337
|
+
pp$83.parseVarStatement = function(node, kind, allowMissingInitializer) {
|
|
1333
1338
|
this.next();
|
|
1334
|
-
this.parseVar(node, false, kind);
|
|
1339
|
+
this.parseVar(node, false, kind, allowMissingInitializer);
|
|
1335
1340
|
this.semicolon();
|
|
1336
1341
|
return this.finishNode(node, "VariableDeclaration");
|
|
1337
1342
|
};
|
|
@@ -1436,7 +1441,7 @@ var require_acorn = __commonJS({
|
|
|
1436
1441
|
this.labels.pop();
|
|
1437
1442
|
return this.finishNode(node, isForIn ? "ForInStatement" : "ForOfStatement");
|
|
1438
1443
|
};
|
|
1439
|
-
pp$83.parseVar = function(node, isFor, kind) {
|
|
1444
|
+
pp$83.parseVar = function(node, isFor, kind, allowMissingInitializer) {
|
|
1440
1445
|
node.declarations = [];
|
|
1441
1446
|
node.kind = kind;
|
|
1442
1447
|
for (; ; ) {
|
|
@@ -1444,9 +1449,9 @@ var require_acorn = __commonJS({
|
|
|
1444
1449
|
this.parseVarId(decl, kind);
|
|
1445
1450
|
if (this.eat(types$13.eq)) {
|
|
1446
1451
|
decl.init = this.parseMaybeAssign(isFor);
|
|
1447
|
-
} else if (kind === "const" && !(this.type === types$13._in || this.options.ecmaVersion >= 6 && this.isContextual("of"))) {
|
|
1452
|
+
} else if (!allowMissingInitializer && kind === "const" && !(this.type === types$13._in || this.options.ecmaVersion >= 6 && this.isContextual("of"))) {
|
|
1448
1453
|
this.unexpected();
|
|
1449
|
-
} else if (decl.id.type !== "Identifier" && !(isFor && (this.type === types$13._in || this.isContextual("of")))) {
|
|
1454
|
+
} else if (!allowMissingInitializer && decl.id.type !== "Identifier" && !(isFor && (this.type === types$13._in || this.isContextual("of")))) {
|
|
1450
1455
|
this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value");
|
|
1451
1456
|
} else {
|
|
1452
1457
|
decl.init = null;
|
|
@@ -1517,7 +1522,7 @@ var require_acorn = __commonJS({
|
|
|
1517
1522
|
classBody.body.push(element);
|
|
1518
1523
|
if (element.type === "MethodDefinition" && element.kind === "constructor") {
|
|
1519
1524
|
if (hadConstructor) {
|
|
1520
|
-
this.
|
|
1525
|
+
this.raiseRecoverable(element.start, "Duplicate constructor in the same class");
|
|
1521
1526
|
}
|
|
1522
1527
|
hadConstructor = true;
|
|
1523
1528
|
} else if (element.key && element.key.type === "PrivateIdentifier" && isPrivateNameConflicted3(privateNameMap, element)) {
|
|
@@ -1679,7 +1684,7 @@ var require_acorn = __commonJS({
|
|
|
1679
1684
|
}
|
|
1680
1685
|
};
|
|
1681
1686
|
pp$83.parseClassSuper = function(node) {
|
|
1682
|
-
node.superClass = this.eat(types$13._extends) ? this.parseExprSubscripts(false) : null;
|
|
1687
|
+
node.superClass = this.eat(types$13._extends) ? this.parseExprSubscripts(null, false) : null;
|
|
1683
1688
|
};
|
|
1684
1689
|
pp$83.enterClassBody = function() {
|
|
1685
1690
|
var element = { declared: /* @__PURE__ */ Object.create(null), used: [] };
|
|
@@ -1725,46 +1730,35 @@ var require_acorn = __commonJS({
|
|
|
1725
1730
|
var key = node.key;
|
|
1726
1731
|
return !computed && (key.type === "Identifier" && key.name === name2 || key.type === "Literal" && key.value === name2);
|
|
1727
1732
|
}
|
|
1733
|
+
pp$83.parseExportAllDeclaration = function(node, exports3) {
|
|
1734
|
+
if (this.options.ecmaVersion >= 11) {
|
|
1735
|
+
if (this.eatContextual("as")) {
|
|
1736
|
+
node.exported = this.parseModuleExportName();
|
|
1737
|
+
this.checkExport(exports3, node.exported, this.lastTokStart);
|
|
1738
|
+
} else {
|
|
1739
|
+
node.exported = null;
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
this.expectContextual("from");
|
|
1743
|
+
if (this.type !== types$13.string) {
|
|
1744
|
+
this.unexpected();
|
|
1745
|
+
}
|
|
1746
|
+
node.source = this.parseExprAtom();
|
|
1747
|
+
this.semicolon();
|
|
1748
|
+
return this.finishNode(node, "ExportAllDeclaration");
|
|
1749
|
+
};
|
|
1728
1750
|
pp$83.parseExport = function(node, exports3) {
|
|
1729
1751
|
this.next();
|
|
1730
1752
|
if (this.eat(types$13.star)) {
|
|
1731
|
-
|
|
1732
|
-
if (this.eatContextual("as")) {
|
|
1733
|
-
node.exported = this.parseModuleExportName();
|
|
1734
|
-
this.checkExport(exports3, node.exported, this.lastTokStart);
|
|
1735
|
-
} else {
|
|
1736
|
-
node.exported = null;
|
|
1737
|
-
}
|
|
1738
|
-
}
|
|
1739
|
-
this.expectContextual("from");
|
|
1740
|
-
if (this.type !== types$13.string) {
|
|
1741
|
-
this.unexpected();
|
|
1742
|
-
}
|
|
1743
|
-
node.source = this.parseExprAtom();
|
|
1744
|
-
this.semicolon();
|
|
1745
|
-
return this.finishNode(node, "ExportAllDeclaration");
|
|
1753
|
+
return this.parseExportAllDeclaration(node, exports3);
|
|
1746
1754
|
}
|
|
1747
1755
|
if (this.eat(types$13._default)) {
|
|
1748
1756
|
this.checkExport(exports3, "default", this.lastTokStart);
|
|
1749
|
-
|
|
1750
|
-
if (this.type === types$13._function || (isAsync = this.isAsyncFunction())) {
|
|
1751
|
-
var fNode = this.startNode();
|
|
1752
|
-
this.next();
|
|
1753
|
-
if (isAsync) {
|
|
1754
|
-
this.next();
|
|
1755
|
-
}
|
|
1756
|
-
node.declaration = this.parseFunction(fNode, FUNC_STATEMENT3 | FUNC_NULLABLE_ID3, false, isAsync);
|
|
1757
|
-
} else if (this.type === types$13._class) {
|
|
1758
|
-
var cNode = this.startNode();
|
|
1759
|
-
node.declaration = this.parseClass(cNode, "nullableID");
|
|
1760
|
-
} else {
|
|
1761
|
-
node.declaration = this.parseMaybeAssign();
|
|
1762
|
-
this.semicolon();
|
|
1763
|
-
}
|
|
1757
|
+
node.declaration = this.parseExportDefaultDeclaration();
|
|
1764
1758
|
return this.finishNode(node, "ExportDefaultDeclaration");
|
|
1765
1759
|
}
|
|
1766
1760
|
if (this.shouldParseExportStatement()) {
|
|
1767
|
-
node.declaration = this.
|
|
1761
|
+
node.declaration = this.parseExportDeclaration(node);
|
|
1768
1762
|
if (node.declaration.type === "VariableDeclaration") {
|
|
1769
1763
|
this.checkVariableExport(exports3, node.declaration.declarations);
|
|
1770
1764
|
} else {
|
|
@@ -1795,6 +1789,27 @@ var require_acorn = __commonJS({
|
|
|
1795
1789
|
}
|
|
1796
1790
|
return this.finishNode(node, "ExportNamedDeclaration");
|
|
1797
1791
|
};
|
|
1792
|
+
pp$83.parseExportDeclaration = function(node) {
|
|
1793
|
+
return this.parseStatement(null);
|
|
1794
|
+
};
|
|
1795
|
+
pp$83.parseExportDefaultDeclaration = function() {
|
|
1796
|
+
var isAsync;
|
|
1797
|
+
if (this.type === types$13._function || (isAsync = this.isAsyncFunction())) {
|
|
1798
|
+
var fNode = this.startNode();
|
|
1799
|
+
this.next();
|
|
1800
|
+
if (isAsync) {
|
|
1801
|
+
this.next();
|
|
1802
|
+
}
|
|
1803
|
+
return this.parseFunction(fNode, FUNC_STATEMENT3 | FUNC_NULLABLE_ID3, false, isAsync);
|
|
1804
|
+
} else if (this.type === types$13._class) {
|
|
1805
|
+
var cNode = this.startNode();
|
|
1806
|
+
return this.parseClass(cNode, "nullableID");
|
|
1807
|
+
} else {
|
|
1808
|
+
var declaration = this.parseMaybeAssign();
|
|
1809
|
+
this.semicolon();
|
|
1810
|
+
return declaration;
|
|
1811
|
+
}
|
|
1812
|
+
};
|
|
1798
1813
|
pp$83.checkExport = function(exports3, name2, pos) {
|
|
1799
1814
|
if (!exports3) {
|
|
1800
1815
|
return;
|
|
@@ -1845,6 +1860,17 @@ var require_acorn = __commonJS({
|
|
|
1845
1860
|
pp$83.shouldParseExportStatement = function() {
|
|
1846
1861
|
return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
|
|
1847
1862
|
};
|
|
1863
|
+
pp$83.parseExportSpecifier = function(exports3) {
|
|
1864
|
+
var node = this.startNode();
|
|
1865
|
+
node.local = this.parseModuleExportName();
|
|
1866
|
+
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
|
1867
|
+
this.checkExport(
|
|
1868
|
+
exports3,
|
|
1869
|
+
node.exported,
|
|
1870
|
+
node.exported.start
|
|
1871
|
+
);
|
|
1872
|
+
return this.finishNode(node, "ExportSpecifier");
|
|
1873
|
+
};
|
|
1848
1874
|
pp$83.parseExportSpecifiers = function(exports3) {
|
|
1849
1875
|
var nodes = [], first = true;
|
|
1850
1876
|
this.expect(types$13.braceL);
|
|
@@ -1857,15 +1883,7 @@ var require_acorn = __commonJS({
|
|
|
1857
1883
|
} else {
|
|
1858
1884
|
first = false;
|
|
1859
1885
|
}
|
|
1860
|
-
|
|
1861
|
-
node.local = this.parseModuleExportName();
|
|
1862
|
-
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
|
1863
|
-
this.checkExport(
|
|
1864
|
-
exports3,
|
|
1865
|
-
node.exported,
|
|
1866
|
-
node.exported.start
|
|
1867
|
-
);
|
|
1868
|
-
nodes.push(this.finishNode(node, "ExportSpecifier"));
|
|
1886
|
+
nodes.push(this.parseExportSpecifier(exports3));
|
|
1869
1887
|
}
|
|
1870
1888
|
return nodes;
|
|
1871
1889
|
};
|
|
@@ -1882,24 +1900,42 @@ var require_acorn = __commonJS({
|
|
|
1882
1900
|
this.semicolon();
|
|
1883
1901
|
return this.finishNode(node, "ImportDeclaration");
|
|
1884
1902
|
};
|
|
1903
|
+
pp$83.parseImportSpecifier = function() {
|
|
1904
|
+
var node = this.startNode();
|
|
1905
|
+
node.imported = this.parseModuleExportName();
|
|
1906
|
+
if (this.eatContextual("as")) {
|
|
1907
|
+
node.local = this.parseIdent();
|
|
1908
|
+
} else {
|
|
1909
|
+
this.checkUnreserved(node.imported);
|
|
1910
|
+
node.local = node.imported;
|
|
1911
|
+
}
|
|
1912
|
+
this.checkLValSimple(node.local, BIND_LEXICAL3);
|
|
1913
|
+
return this.finishNode(node, "ImportSpecifier");
|
|
1914
|
+
};
|
|
1915
|
+
pp$83.parseImportDefaultSpecifier = function() {
|
|
1916
|
+
var node = this.startNode();
|
|
1917
|
+
node.local = this.parseIdent();
|
|
1918
|
+
this.checkLValSimple(node.local, BIND_LEXICAL3);
|
|
1919
|
+
return this.finishNode(node, "ImportDefaultSpecifier");
|
|
1920
|
+
};
|
|
1921
|
+
pp$83.parseImportNamespaceSpecifier = function() {
|
|
1922
|
+
var node = this.startNode();
|
|
1923
|
+
this.next();
|
|
1924
|
+
this.expectContextual("as");
|
|
1925
|
+
node.local = this.parseIdent();
|
|
1926
|
+
this.checkLValSimple(node.local, BIND_LEXICAL3);
|
|
1927
|
+
return this.finishNode(node, "ImportNamespaceSpecifier");
|
|
1928
|
+
};
|
|
1885
1929
|
pp$83.parseImportSpecifiers = function() {
|
|
1886
1930
|
var nodes = [], first = true;
|
|
1887
1931
|
if (this.type === types$13.name) {
|
|
1888
|
-
|
|
1889
|
-
node.local = this.parseIdent();
|
|
1890
|
-
this.checkLValSimple(node.local, BIND_LEXICAL3);
|
|
1891
|
-
nodes.push(this.finishNode(node, "ImportDefaultSpecifier"));
|
|
1932
|
+
nodes.push(this.parseImportDefaultSpecifier());
|
|
1892
1933
|
if (!this.eat(types$13.comma)) {
|
|
1893
1934
|
return nodes;
|
|
1894
1935
|
}
|
|
1895
1936
|
}
|
|
1896
1937
|
if (this.type === types$13.star) {
|
|
1897
|
-
|
|
1898
|
-
this.next();
|
|
1899
|
-
this.expectContextual("as");
|
|
1900
|
-
node$1.local = this.parseIdent();
|
|
1901
|
-
this.checkLValSimple(node$1.local, BIND_LEXICAL3);
|
|
1902
|
-
nodes.push(this.finishNode(node$1, "ImportNamespaceSpecifier"));
|
|
1938
|
+
nodes.push(this.parseImportNamespaceSpecifier());
|
|
1903
1939
|
return nodes;
|
|
1904
1940
|
}
|
|
1905
1941
|
this.expect(types$13.braceL);
|
|
@@ -1912,16 +1948,7 @@ var require_acorn = __commonJS({
|
|
|
1912
1948
|
} else {
|
|
1913
1949
|
first = false;
|
|
1914
1950
|
}
|
|
1915
|
-
|
|
1916
|
-
node$2.imported = this.parseModuleExportName();
|
|
1917
|
-
if (this.eatContextual("as")) {
|
|
1918
|
-
node$2.local = this.parseIdent();
|
|
1919
|
-
} else {
|
|
1920
|
-
this.checkUnreserved(node$2.imported);
|
|
1921
|
-
node$2.local = node$2.imported;
|
|
1922
|
-
}
|
|
1923
|
-
this.checkLValSimple(node$2.local, BIND_LEXICAL3);
|
|
1924
|
-
nodes.push(this.finishNode(node$2, "ImportSpecifier"));
|
|
1951
|
+
nodes.push(this.parseImportSpecifier());
|
|
1925
1952
|
}
|
|
1926
1953
|
return nodes;
|
|
1927
1954
|
};
|
|
@@ -2061,7 +2088,7 @@ var require_acorn = __commonJS({
|
|
|
2061
2088
|
}
|
|
2062
2089
|
return this.parseIdent();
|
|
2063
2090
|
};
|
|
2064
|
-
pp$73.parseBindingList = function(close, allowEmpty, allowTrailingComma) {
|
|
2091
|
+
pp$73.parseBindingList = function(close, allowEmpty, allowTrailingComma, allowModifiers) {
|
|
2065
2092
|
var elts = [], first = true;
|
|
2066
2093
|
while (!this.eat(close)) {
|
|
2067
2094
|
if (first) {
|
|
@@ -2078,18 +2105,21 @@ var require_acorn = __commonJS({
|
|
|
2078
2105
|
this.parseBindingListItem(rest);
|
|
2079
2106
|
elts.push(rest);
|
|
2080
2107
|
if (this.type === types$13.comma) {
|
|
2081
|
-
this.
|
|
2108
|
+
this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
|
|
2082
2109
|
}
|
|
2083
2110
|
this.expect(close);
|
|
2084
2111
|
break;
|
|
2085
2112
|
} else {
|
|
2086
|
-
|
|
2087
|
-
this.parseBindingListItem(elem);
|
|
2088
|
-
elts.push(elem);
|
|
2113
|
+
elts.push(this.parseAssignableListItem(allowModifiers));
|
|
2089
2114
|
}
|
|
2090
2115
|
}
|
|
2091
2116
|
return elts;
|
|
2092
2117
|
};
|
|
2118
|
+
pp$73.parseAssignableListItem = function(allowModifiers) {
|
|
2119
|
+
var elem = this.parseMaybeDefault(this.start, this.startLoc);
|
|
2120
|
+
this.parseBindingListItem(elem);
|
|
2121
|
+
return elem;
|
|
2122
|
+
};
|
|
2093
2123
|
pp$73.parseBindingListItem = function(param) {
|
|
2094
2124
|
return param;
|
|
2095
2125
|
};
|
|
@@ -2606,6 +2636,12 @@ var require_acorn = __commonJS({
|
|
|
2606
2636
|
base2 = element;
|
|
2607
2637
|
}
|
|
2608
2638
|
};
|
|
2639
|
+
pp$53.shouldParseAsyncArrow = function() {
|
|
2640
|
+
return !this.canInsertSemicolon() && this.eat(types$13.arrow);
|
|
2641
|
+
};
|
|
2642
|
+
pp$53.parseSubscriptAsyncArrow = function(startPos, startLoc, exprList, forInit) {
|
|
2643
|
+
return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, true, forInit);
|
|
2644
|
+
};
|
|
2609
2645
|
pp$53.parseSubscript = function(base2, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) {
|
|
2610
2646
|
var optionalSupported = this.options.ecmaVersion >= 11;
|
|
2611
2647
|
var optional = optionalSupported && this.eat(types$13.questionDot);
|
|
@@ -2635,7 +2671,7 @@ var require_acorn = __commonJS({
|
|
|
2635
2671
|
this.awaitPos = 0;
|
|
2636
2672
|
this.awaitIdentPos = 0;
|
|
2637
2673
|
var exprList = this.parseExprList(types$13.parenR, this.options.ecmaVersion >= 8, false, refDestructuringErrors);
|
|
2638
|
-
if (maybeAsyncArrow && !optional &&
|
|
2674
|
+
if (maybeAsyncArrow && !optional && this.shouldParseAsyncArrow()) {
|
|
2639
2675
|
this.checkPatternErrors(refDestructuringErrors, false);
|
|
2640
2676
|
this.checkYieldAwaitInDefaultParams();
|
|
2641
2677
|
if (this.awaitIdentPos > 0) {
|
|
@@ -2644,7 +2680,7 @@ var require_acorn = __commonJS({
|
|
|
2644
2680
|
this.yieldPos = oldYieldPos;
|
|
2645
2681
|
this.awaitPos = oldAwaitPos;
|
|
2646
2682
|
this.awaitIdentPos = oldAwaitIdentPos;
|
|
2647
|
-
return this.
|
|
2683
|
+
return this.parseSubscriptAsyncArrow(startPos, startLoc, exprList, forInit);
|
|
2648
2684
|
}
|
|
2649
2685
|
this.checkExpressionErrors(refDestructuringErrors, true);
|
|
2650
2686
|
this.yieldPos = oldYieldPos || this.yieldPos;
|
|
@@ -2668,7 +2704,7 @@ var require_acorn = __commonJS({
|
|
|
2668
2704
|
}
|
|
2669
2705
|
return base2;
|
|
2670
2706
|
};
|
|
2671
|
-
pp$53.parseExprAtom = function(refDestructuringErrors, forInit) {
|
|
2707
|
+
pp$53.parseExprAtom = function(refDestructuringErrors, forInit, forNew) {
|
|
2672
2708
|
if (this.type === types$13.slash) {
|
|
2673
2709
|
this.readRegexp();
|
|
2674
2710
|
}
|
|
@@ -2758,28 +2794,30 @@ var require_acorn = __commonJS({
|
|
|
2758
2794
|
return this.parseTemplate();
|
|
2759
2795
|
case types$13._import:
|
|
2760
2796
|
if (this.options.ecmaVersion >= 11) {
|
|
2761
|
-
return this.parseExprImport();
|
|
2797
|
+
return this.parseExprImport(forNew);
|
|
2762
2798
|
} else {
|
|
2763
2799
|
return this.unexpected();
|
|
2764
2800
|
}
|
|
2765
2801
|
default:
|
|
2766
|
-
this.
|
|
2802
|
+
return this.parseExprAtomDefault();
|
|
2767
2803
|
}
|
|
2768
2804
|
};
|
|
2769
|
-
pp$53.
|
|
2805
|
+
pp$53.parseExprAtomDefault = function() {
|
|
2806
|
+
this.unexpected();
|
|
2807
|
+
};
|
|
2808
|
+
pp$53.parseExprImport = function(forNew) {
|
|
2770
2809
|
var node = this.startNode();
|
|
2771
2810
|
if (this.containsEsc) {
|
|
2772
2811
|
this.raiseRecoverable(this.start, "Escape sequence in keyword import");
|
|
2773
2812
|
}
|
|
2774
2813
|
var meta = this.parseIdent(true);
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
this.unexpected();
|
|
2814
|
+
if (this.type === types$13.parenL && !forNew) {
|
|
2815
|
+
return this.parseDynamicImport(node);
|
|
2816
|
+
} else if (this.type === types$13.dot) {
|
|
2817
|
+
node.meta = meta;
|
|
2818
|
+
return this.parseImportMeta(node);
|
|
2819
|
+
} else {
|
|
2820
|
+
this.unexpected();
|
|
2783
2821
|
}
|
|
2784
2822
|
};
|
|
2785
2823
|
pp$53.parseDynamicImport = function(node) {
|
|
@@ -2826,6 +2864,9 @@ var require_acorn = __commonJS({
|
|
|
2826
2864
|
this.expect(types$13.parenR);
|
|
2827
2865
|
return val;
|
|
2828
2866
|
};
|
|
2867
|
+
pp$53.shouldParseArrow = function(exprList) {
|
|
2868
|
+
return !this.canInsertSemicolon();
|
|
2869
|
+
};
|
|
2829
2870
|
pp$53.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {
|
|
2830
2871
|
var startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8;
|
|
2831
2872
|
if (this.options.ecmaVersion >= 6) {
|
|
@@ -2844,7 +2885,10 @@ var require_acorn = __commonJS({
|
|
|
2844
2885
|
spreadStart = this.start;
|
|
2845
2886
|
exprList.push(this.parseParenItem(this.parseRestBinding()));
|
|
2846
2887
|
if (this.type === types$13.comma) {
|
|
2847
|
-
this.
|
|
2888
|
+
this.raiseRecoverable(
|
|
2889
|
+
this.start,
|
|
2890
|
+
"Comma is not permitted after the rest element"
|
|
2891
|
+
);
|
|
2848
2892
|
}
|
|
2849
2893
|
break;
|
|
2850
2894
|
} else {
|
|
@@ -2853,7 +2897,7 @@ var require_acorn = __commonJS({
|
|
|
2853
2897
|
}
|
|
2854
2898
|
var innerEndPos = this.lastTokEnd, innerEndLoc = this.lastTokEndLoc;
|
|
2855
2899
|
this.expect(types$13.parenR);
|
|
2856
|
-
if (canBeArrow &&
|
|
2900
|
+
if (canBeArrow && this.shouldParseArrow(exprList) && this.eat(types$13.arrow)) {
|
|
2857
2901
|
this.checkPatternErrors(refDestructuringErrors, false);
|
|
2858
2902
|
this.checkYieldAwaitInDefaultParams();
|
|
2859
2903
|
this.yieldPos = oldYieldPos;
|
|
@@ -2915,11 +2959,8 @@ var require_acorn = __commonJS({
|
|
|
2915
2959
|
}
|
|
2916
2960
|
return this.finishNode(node, "MetaProperty");
|
|
2917
2961
|
}
|
|
2918
|
-
var startPos = this.start, startLoc = this.startLoc
|
|
2919
|
-
node.callee = this.parseSubscripts(this.parseExprAtom(), startPos, startLoc, true, false);
|
|
2920
|
-
if (isImport && node.callee.type === "ImportExpression") {
|
|
2921
|
-
this.raise(startPos, "Cannot use new with import()");
|
|
2922
|
-
}
|
|
2962
|
+
var startPos = this.start, startLoc = this.startLoc;
|
|
2963
|
+
node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false);
|
|
2923
2964
|
if (this.eat(types$13.parenL)) {
|
|
2924
2965
|
node.arguments = this.parseExprList(types$13.parenR, this.options.ecmaVersion >= 8, false);
|
|
2925
2966
|
} else {
|
|
@@ -3001,7 +3042,7 @@ var require_acorn = __commonJS({
|
|
|
3001
3042
|
if (isPattern) {
|
|
3002
3043
|
prop.argument = this.parseIdent(false);
|
|
3003
3044
|
if (this.type === types$13.comma) {
|
|
3004
|
-
this.
|
|
3045
|
+
this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
|
|
3005
3046
|
}
|
|
3006
3047
|
return this.finishNode(prop, "RestElement");
|
|
3007
3048
|
}
|
|
@@ -3027,13 +3068,31 @@ var require_acorn = __commonJS({
|
|
|
3027
3068
|
if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) {
|
|
3028
3069
|
isAsync = true;
|
|
3029
3070
|
isGenerator = this.options.ecmaVersion >= 9 && this.eat(types$13.star);
|
|
3030
|
-
this.parsePropertyName(prop
|
|
3071
|
+
this.parsePropertyName(prop);
|
|
3031
3072
|
} else {
|
|
3032
3073
|
isAsync = false;
|
|
3033
3074
|
}
|
|
3034
3075
|
this.parsePropertyValue(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc);
|
|
3035
3076
|
return this.finishNode(prop, "Property");
|
|
3036
3077
|
};
|
|
3078
|
+
pp$53.parseGetterSetter = function(prop) {
|
|
3079
|
+
prop.kind = prop.key.name;
|
|
3080
|
+
this.parsePropertyName(prop);
|
|
3081
|
+
prop.value = this.parseMethod(false);
|
|
3082
|
+
var paramCount = prop.kind === "get" ? 0 : 1;
|
|
3083
|
+
if (prop.value.params.length !== paramCount) {
|
|
3084
|
+
var start3 = prop.value.start;
|
|
3085
|
+
if (prop.kind === "get") {
|
|
3086
|
+
this.raiseRecoverable(start3, "getter should have no params");
|
|
3087
|
+
} else {
|
|
3088
|
+
this.raiseRecoverable(start3, "setter should have exactly one param");
|
|
3089
|
+
}
|
|
3090
|
+
} else {
|
|
3091
|
+
if (prop.kind === "set" && prop.value.params[0].type === "RestElement") {
|
|
3092
|
+
this.raiseRecoverable(prop.value.params[0].start, "Setter cannot use rest params");
|
|
3093
|
+
}
|
|
3094
|
+
}
|
|
3095
|
+
};
|
|
3037
3096
|
pp$53.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) {
|
|
3038
3097
|
if ((isGenerator || isAsync) && this.type === types$13.colon) {
|
|
3039
3098
|
this.unexpected();
|
|
@@ -3052,22 +3111,7 @@ var require_acorn = __commonJS({
|
|
|
3052
3111
|
if (isGenerator || isAsync) {
|
|
3053
3112
|
this.unexpected();
|
|
3054
3113
|
}
|
|
3055
|
-
|
|
3056
|
-
this.parsePropertyName(prop);
|
|
3057
|
-
prop.value = this.parseMethod(false);
|
|
3058
|
-
var paramCount = prop.kind === "get" ? 0 : 1;
|
|
3059
|
-
if (prop.value.params.length !== paramCount) {
|
|
3060
|
-
var start3 = prop.value.start;
|
|
3061
|
-
if (prop.kind === "get") {
|
|
3062
|
-
this.raiseRecoverable(start3, "getter should have no params");
|
|
3063
|
-
} else {
|
|
3064
|
-
this.raiseRecoverable(start3, "setter should have exactly one param");
|
|
3065
|
-
}
|
|
3066
|
-
} else {
|
|
3067
|
-
if (prop.kind === "set" && prop.value.params[0].type === "RestElement") {
|
|
3068
|
-
this.raiseRecoverable(prop.value.params[0].start, "Setter cannot use rest params");
|
|
3069
|
-
}
|
|
3070
|
-
}
|
|
3114
|
+
this.parseGetterSetter(prop);
|
|
3071
3115
|
} else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === "Identifier") {
|
|
3072
3116
|
if (isGenerator || isAsync) {
|
|
3073
3117
|
this.unexpected();
|
|
@@ -3256,7 +3300,19 @@ var require_acorn = __commonJS({
|
|
|
3256
3300
|
this.raiseRecoverable(start3, "The keyword '" + name2 + "' is reserved");
|
|
3257
3301
|
}
|
|
3258
3302
|
};
|
|
3259
|
-
pp$53.parseIdent = function(liberal
|
|
3303
|
+
pp$53.parseIdent = function(liberal) {
|
|
3304
|
+
var node = this.parseIdentNode();
|
|
3305
|
+
this.next(!!liberal);
|
|
3306
|
+
this.finishNode(node, "Identifier");
|
|
3307
|
+
if (!liberal) {
|
|
3308
|
+
this.checkUnreserved(node);
|
|
3309
|
+
if (node.name === "await" && !this.awaitIdentPos) {
|
|
3310
|
+
this.awaitIdentPos = node.start;
|
|
3311
|
+
}
|
|
3312
|
+
}
|
|
3313
|
+
return node;
|
|
3314
|
+
};
|
|
3315
|
+
pp$53.parseIdentNode = function() {
|
|
3260
3316
|
var node = this.startNode();
|
|
3261
3317
|
if (this.type === types$13.name) {
|
|
3262
3318
|
node.name = this.value;
|
|
@@ -3268,14 +3324,6 @@ var require_acorn = __commonJS({
|
|
|
3268
3324
|
} else {
|
|
3269
3325
|
this.unexpected();
|
|
3270
3326
|
}
|
|
3271
|
-
this.next(!!liberal);
|
|
3272
|
-
this.finishNode(node, "Identifier");
|
|
3273
|
-
if (!liberal) {
|
|
3274
|
-
this.checkUnreserved(node);
|
|
3275
|
-
if (node.name === "await" && !this.awaitIdentPos) {
|
|
3276
|
-
this.awaitIdentPos = node.start;
|
|
3277
|
-
}
|
|
3278
|
-
}
|
|
3279
3327
|
return node;
|
|
3280
3328
|
};
|
|
3281
3329
|
pp$53.parsePrivateIdent = function() {
|
|
@@ -3465,12 +3513,23 @@ var require_acorn = __commonJS({
|
|
|
3465
3513
|
var ecma11BinaryProperties3 = ecma10BinaryProperties3;
|
|
3466
3514
|
var ecma12BinaryProperties3 = ecma11BinaryProperties3 + " EBase EComp EMod EPres ExtPict";
|
|
3467
3515
|
var ecma13BinaryProperties3 = ecma12BinaryProperties3;
|
|
3516
|
+
var ecma14BinaryProperties3 = ecma13BinaryProperties3;
|
|
3468
3517
|
var unicodeBinaryProperties3 = {
|
|
3469
3518
|
9: ecma9BinaryProperties3,
|
|
3470
3519
|
10: ecma10BinaryProperties3,
|
|
3471
3520
|
11: ecma11BinaryProperties3,
|
|
3472
3521
|
12: ecma12BinaryProperties3,
|
|
3473
|
-
13: ecma13BinaryProperties3
|
|
3522
|
+
13: ecma13BinaryProperties3,
|
|
3523
|
+
14: ecma14BinaryProperties3
|
|
3524
|
+
};
|
|
3525
|
+
var ecma14BinaryPropertiesOfStrings2 = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji";
|
|
3526
|
+
var unicodeBinaryPropertiesOfStrings2 = {
|
|
3527
|
+
9: "",
|
|
3528
|
+
10: "",
|
|
3529
|
+
11: "",
|
|
3530
|
+
12: "",
|
|
3531
|
+
13: "",
|
|
3532
|
+
14: ecma14BinaryPropertiesOfStrings2
|
|
3474
3533
|
};
|
|
3475
3534
|
var unicodeGeneralCategoryValues3 = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu";
|
|
3476
3535
|
var ecma9ScriptValues3 = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb";
|
|
@@ -3478,17 +3537,20 @@ var require_acorn = __commonJS({
|
|
|
3478
3537
|
var ecma11ScriptValues3 = ecma10ScriptValues3 + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
|
|
3479
3538
|
var ecma12ScriptValues3 = ecma11ScriptValues3 + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
|
|
3480
3539
|
var ecma13ScriptValues3 = ecma12ScriptValues3 + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
|
|
3540
|
+
var ecma14ScriptValues3 = ecma13ScriptValues3 + " Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz";
|
|
3481
3541
|
var unicodeScriptValues3 = {
|
|
3482
3542
|
9: ecma9ScriptValues3,
|
|
3483
3543
|
10: ecma10ScriptValues3,
|
|
3484
3544
|
11: ecma11ScriptValues3,
|
|
3485
3545
|
12: ecma12ScriptValues3,
|
|
3486
|
-
13: ecma13ScriptValues3
|
|
3546
|
+
13: ecma13ScriptValues3,
|
|
3547
|
+
14: ecma14ScriptValues3
|
|
3487
3548
|
};
|
|
3488
3549
|
var data3 = {};
|
|
3489
3550
|
function buildUnicodeData3(ecmaVersion2) {
|
|
3490
3551
|
var d = data3[ecmaVersion2] = {
|
|
3491
3552
|
binary: wordsRegexp3(unicodeBinaryProperties3[ecmaVersion2] + " " + unicodeGeneralCategoryValues3),
|
|
3553
|
+
binaryOfStrings: wordsRegexp3(unicodeBinaryPropertiesOfStrings2[ecmaVersion2]),
|
|
3492
3554
|
nonBinary: {
|
|
3493
3555
|
General_Category: wordsRegexp3(unicodeGeneralCategoryValues3),
|
|
3494
3556
|
Script: wordsRegexp3(unicodeScriptValues3[ecmaVersion2])
|
|
@@ -3499,19 +3561,20 @@ var require_acorn = __commonJS({
|
|
|
3499
3561
|
d.nonBinary.sc = d.nonBinary.Script;
|
|
3500
3562
|
d.nonBinary.scx = d.nonBinary.Script_Extensions;
|
|
3501
3563
|
}
|
|
3502
|
-
for (var i = 0, list3 = [9, 10, 11, 12, 13]; i < list3.length; i += 1) {
|
|
3564
|
+
for (var i = 0, list3 = [9, 10, 11, 12, 13, 14]; i < list3.length; i += 1) {
|
|
3503
3565
|
var ecmaVersion = list3[i];
|
|
3504
3566
|
buildUnicodeData3(ecmaVersion);
|
|
3505
3567
|
}
|
|
3506
3568
|
var pp$13 = Parser5.prototype;
|
|
3507
3569
|
var RegExpValidationState5 = function RegExpValidationState6(parser) {
|
|
3508
3570
|
this.parser = parser;
|
|
3509
|
-
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "");
|
|
3510
|
-
this.unicodeProperties = data3[parser.options.ecmaVersion >=
|
|
3571
|
+
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : "");
|
|
3572
|
+
this.unicodeProperties = data3[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];
|
|
3511
3573
|
this.source = "";
|
|
3512
3574
|
this.flags = "";
|
|
3513
3575
|
this.start = 0;
|
|
3514
3576
|
this.switchU = false;
|
|
3577
|
+
this.switchV = false;
|
|
3515
3578
|
this.switchN = false;
|
|
3516
3579
|
this.pos = 0;
|
|
3517
3580
|
this.lastIntValue = 0;
|
|
@@ -3523,12 +3586,20 @@ var require_acorn = __commonJS({
|
|
|
3523
3586
|
this.backReferenceNames = [];
|
|
3524
3587
|
};
|
|
3525
3588
|
RegExpValidationState5.prototype.reset = function reset3(start3, pattern, flags) {
|
|
3589
|
+
var unicodeSets = flags.indexOf("v") !== -1;
|
|
3526
3590
|
var unicode = flags.indexOf("u") !== -1;
|
|
3527
3591
|
this.start = start3 | 0;
|
|
3528
3592
|
this.source = pattern + "";
|
|
3529
3593
|
this.flags = flags;
|
|
3530
|
-
|
|
3531
|
-
|
|
3594
|
+
if (unicodeSets && this.parser.options.ecmaVersion >= 15) {
|
|
3595
|
+
this.switchU = true;
|
|
3596
|
+
this.switchV = true;
|
|
3597
|
+
this.switchN = true;
|
|
3598
|
+
} else {
|
|
3599
|
+
this.switchU = unicode && this.parser.options.ecmaVersion >= 6;
|
|
3600
|
+
this.switchV = false;
|
|
3601
|
+
this.switchN = unicode && this.parser.options.ecmaVersion >= 9;
|
|
3602
|
+
}
|
|
3532
3603
|
};
|
|
3533
3604
|
RegExpValidationState5.prototype.raise = function raise3(message) {
|
|
3534
3605
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
|
|
@@ -3586,9 +3657,26 @@ var require_acorn = __commonJS({
|
|
|
3586
3657
|
}
|
|
3587
3658
|
return false;
|
|
3588
3659
|
};
|
|
3660
|
+
RegExpValidationState5.prototype.eatChars = function eatChars2(chs, forceU) {
|
|
3661
|
+
if (forceU === void 0)
|
|
3662
|
+
forceU = false;
|
|
3663
|
+
var pos = this.pos;
|
|
3664
|
+
for (var i2 = 0, list4 = chs; i2 < list4.length; i2 += 1) {
|
|
3665
|
+
var ch2 = list4[i2];
|
|
3666
|
+
var current3 = this.at(pos, forceU);
|
|
3667
|
+
if (current3 === -1 || current3 !== ch2) {
|
|
3668
|
+
return false;
|
|
3669
|
+
}
|
|
3670
|
+
pos = this.nextIndex(pos, forceU);
|
|
3671
|
+
}
|
|
3672
|
+
this.pos = pos;
|
|
3673
|
+
return true;
|
|
3674
|
+
};
|
|
3589
3675
|
pp$13.validateRegExpFlags = function(state) {
|
|
3590
3676
|
var validFlags = state.validFlags;
|
|
3591
3677
|
var flags = state.flags;
|
|
3678
|
+
var u = false;
|
|
3679
|
+
var v = false;
|
|
3592
3680
|
for (var i2 = 0; i2 < flags.length; i2++) {
|
|
3593
3681
|
var flag = flags.charAt(i2);
|
|
3594
3682
|
if (validFlags.indexOf(flag) === -1) {
|
|
@@ -3597,6 +3685,15 @@ var require_acorn = __commonJS({
|
|
|
3597
3685
|
if (flags.indexOf(flag, i2 + 1) > -1) {
|
|
3598
3686
|
this.raise(state.start, "Duplicate regular expression flag");
|
|
3599
3687
|
}
|
|
3688
|
+
if (flag === "u") {
|
|
3689
|
+
u = true;
|
|
3690
|
+
}
|
|
3691
|
+
if (flag === "v") {
|
|
3692
|
+
v = true;
|
|
3693
|
+
}
|
|
3694
|
+
}
|
|
3695
|
+
if (this.options.ecmaVersion >= 15 && u && v) {
|
|
3696
|
+
this.raise(state.start, "Invalid regular expression flag");
|
|
3600
3697
|
}
|
|
3601
3698
|
};
|
|
3602
3699
|
pp$13.validateRegExpPattern = function(state) {
|
|
@@ -4045,22 +4142,30 @@ var require_acorn = __commonJS({
|
|
|
4045
4142
|
}
|
|
4046
4143
|
return false;
|
|
4047
4144
|
};
|
|
4145
|
+
var CharSetNone2 = 0;
|
|
4146
|
+
var CharSetOk2 = 1;
|
|
4147
|
+
var CharSetString2 = 2;
|
|
4048
4148
|
pp$13.regexp_eatCharacterClassEscape = function(state) {
|
|
4049
4149
|
var ch2 = state.current();
|
|
4050
4150
|
if (isCharacterClassEscape3(ch2)) {
|
|
4051
4151
|
state.lastIntValue = -1;
|
|
4052
4152
|
state.advance();
|
|
4053
|
-
return
|
|
4153
|
+
return CharSetOk2;
|
|
4054
4154
|
}
|
|
4055
|
-
|
|
4155
|
+
var negate = false;
|
|
4156
|
+
if (state.switchU && this.options.ecmaVersion >= 9 && ((negate = ch2 === 80) || ch2 === 112)) {
|
|
4056
4157
|
state.lastIntValue = -1;
|
|
4057
4158
|
state.advance();
|
|
4058
|
-
|
|
4059
|
-
|
|
4159
|
+
var result;
|
|
4160
|
+
if (state.eat(123) && (result = this.regexp_eatUnicodePropertyValueExpression(state)) && state.eat(125)) {
|
|
4161
|
+
if (negate && result === CharSetString2) {
|
|
4162
|
+
state.raise("Invalid property name");
|
|
4163
|
+
}
|
|
4164
|
+
return result;
|
|
4060
4165
|
}
|
|
4061
4166
|
state.raise("Invalid property name");
|
|
4062
4167
|
}
|
|
4063
|
-
return
|
|
4168
|
+
return CharSetNone2;
|
|
4064
4169
|
};
|
|
4065
4170
|
function isCharacterClassEscape3(ch2) {
|
|
4066
4171
|
return ch2 === 100 || ch2 === 68 || ch2 === 115 || ch2 === 83 || ch2 === 119 || ch2 === 87;
|
|
@@ -4072,16 +4177,15 @@ var require_acorn = __commonJS({
|
|
|
4072
4177
|
if (this.regexp_eatUnicodePropertyValue(state)) {
|
|
4073
4178
|
var value = state.lastStringValue;
|
|
4074
4179
|
this.regexp_validateUnicodePropertyNameAndValue(state, name2, value);
|
|
4075
|
-
return
|
|
4180
|
+
return CharSetOk2;
|
|
4076
4181
|
}
|
|
4077
4182
|
}
|
|
4078
4183
|
state.pos = start3;
|
|
4079
4184
|
if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) {
|
|
4080
4185
|
var nameOrValue = state.lastStringValue;
|
|
4081
|
-
this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue);
|
|
4082
|
-
return true;
|
|
4186
|
+
return this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue);
|
|
4083
4187
|
}
|
|
4084
|
-
return
|
|
4188
|
+
return CharSetNone2;
|
|
4085
4189
|
};
|
|
4086
4190
|
pp$13.regexp_validateUnicodePropertyNameAndValue = function(state, name2, value) {
|
|
4087
4191
|
if (!hasOwn3(state.unicodeProperties.nonBinary, name2)) {
|
|
@@ -4092,9 +4196,13 @@ var require_acorn = __commonJS({
|
|
|
4092
4196
|
}
|
|
4093
4197
|
};
|
|
4094
4198
|
pp$13.regexp_validateUnicodePropertyNameOrValue = function(state, nameOrValue) {
|
|
4095
|
-
if (
|
|
4096
|
-
|
|
4199
|
+
if (state.unicodeProperties.binary.test(nameOrValue)) {
|
|
4200
|
+
return CharSetOk2;
|
|
4201
|
+
}
|
|
4202
|
+
if (state.switchV && state.unicodeProperties.binaryOfStrings.test(nameOrValue)) {
|
|
4203
|
+
return CharSetString2;
|
|
4097
4204
|
}
|
|
4205
|
+
state.raise("Invalid property name");
|
|
4098
4206
|
};
|
|
4099
4207
|
pp$13.regexp_eatUnicodePropertyName = function(state) {
|
|
4100
4208
|
var ch2 = 0;
|
|
@@ -4125,16 +4233,29 @@ var require_acorn = __commonJS({
|
|
|
4125
4233
|
};
|
|
4126
4234
|
pp$13.regexp_eatCharacterClass = function(state) {
|
|
4127
4235
|
if (state.eat(91)) {
|
|
4128
|
-
state.eat(94);
|
|
4129
|
-
this.
|
|
4130
|
-
if (state.eat(93)) {
|
|
4131
|
-
|
|
4236
|
+
var negate = state.eat(94);
|
|
4237
|
+
var result = this.regexp_classContents(state);
|
|
4238
|
+
if (!state.eat(93)) {
|
|
4239
|
+
state.raise("Unterminated character class");
|
|
4132
4240
|
}
|
|
4133
|
-
|
|
4241
|
+
if (negate && result === CharSetString2) {
|
|
4242
|
+
state.raise("Negated character class may contain strings");
|
|
4243
|
+
}
|
|
4244
|
+
return true;
|
|
4134
4245
|
}
|
|
4135
4246
|
return false;
|
|
4136
4247
|
};
|
|
4137
|
-
pp$13.
|
|
4248
|
+
pp$13.regexp_classContents = function(state) {
|
|
4249
|
+
if (state.current() === 93) {
|
|
4250
|
+
return CharSetOk2;
|
|
4251
|
+
}
|
|
4252
|
+
if (state.switchV) {
|
|
4253
|
+
return this.regexp_classSetExpression(state);
|
|
4254
|
+
}
|
|
4255
|
+
this.regexp_nonEmptyClassRanges(state);
|
|
4256
|
+
return CharSetOk2;
|
|
4257
|
+
};
|
|
4258
|
+
pp$13.regexp_nonEmptyClassRanges = function(state) {
|
|
4138
4259
|
while (this.regexp_eatClassAtom(state)) {
|
|
4139
4260
|
var left = state.lastIntValue;
|
|
4140
4261
|
if (state.eat(45) && this.regexp_eatClassAtom(state)) {
|
|
@@ -4189,6 +4310,168 @@ var require_acorn = __commonJS({
|
|
|
4189
4310
|
}
|
|
4190
4311
|
return this.regexp_eatCharacterClassEscape(state) || this.regexp_eatCharacterEscape(state);
|
|
4191
4312
|
};
|
|
4313
|
+
pp$13.regexp_classSetExpression = function(state) {
|
|
4314
|
+
var result = CharSetOk2, subResult;
|
|
4315
|
+
if (this.regexp_eatClassSetRange(state))
|
|
4316
|
+
;
|
|
4317
|
+
else if (subResult = this.regexp_eatClassSetOperand(state)) {
|
|
4318
|
+
if (subResult === CharSetString2) {
|
|
4319
|
+
result = CharSetString2;
|
|
4320
|
+
}
|
|
4321
|
+
var start3 = state.pos;
|
|
4322
|
+
while (state.eatChars([38, 38])) {
|
|
4323
|
+
if (state.current() !== 38 && (subResult = this.regexp_eatClassSetOperand(state))) {
|
|
4324
|
+
if (subResult !== CharSetString2) {
|
|
4325
|
+
result = CharSetOk2;
|
|
4326
|
+
}
|
|
4327
|
+
continue;
|
|
4328
|
+
}
|
|
4329
|
+
state.raise("Invalid character in character class");
|
|
4330
|
+
}
|
|
4331
|
+
if (start3 !== state.pos) {
|
|
4332
|
+
return result;
|
|
4333
|
+
}
|
|
4334
|
+
while (state.eatChars([45, 45])) {
|
|
4335
|
+
if (this.regexp_eatClassSetOperand(state)) {
|
|
4336
|
+
continue;
|
|
4337
|
+
}
|
|
4338
|
+
state.raise("Invalid character in character class");
|
|
4339
|
+
}
|
|
4340
|
+
if (start3 !== state.pos) {
|
|
4341
|
+
return result;
|
|
4342
|
+
}
|
|
4343
|
+
} else {
|
|
4344
|
+
state.raise("Invalid character in character class");
|
|
4345
|
+
}
|
|
4346
|
+
for (; ; ) {
|
|
4347
|
+
if (this.regexp_eatClassSetRange(state)) {
|
|
4348
|
+
continue;
|
|
4349
|
+
}
|
|
4350
|
+
subResult = this.regexp_eatClassSetOperand(state);
|
|
4351
|
+
if (!subResult) {
|
|
4352
|
+
return result;
|
|
4353
|
+
}
|
|
4354
|
+
if (subResult === CharSetString2) {
|
|
4355
|
+
result = CharSetString2;
|
|
4356
|
+
}
|
|
4357
|
+
}
|
|
4358
|
+
};
|
|
4359
|
+
pp$13.regexp_eatClassSetRange = function(state) {
|
|
4360
|
+
var start3 = state.pos;
|
|
4361
|
+
if (this.regexp_eatClassSetCharacter(state)) {
|
|
4362
|
+
var left = state.lastIntValue;
|
|
4363
|
+
if (state.eat(45) && this.regexp_eatClassSetCharacter(state)) {
|
|
4364
|
+
var right = state.lastIntValue;
|
|
4365
|
+
if (left !== -1 && right !== -1 && left > right) {
|
|
4366
|
+
state.raise("Range out of order in character class");
|
|
4367
|
+
}
|
|
4368
|
+
return true;
|
|
4369
|
+
}
|
|
4370
|
+
state.pos = start3;
|
|
4371
|
+
}
|
|
4372
|
+
return false;
|
|
4373
|
+
};
|
|
4374
|
+
pp$13.regexp_eatClassSetOperand = function(state) {
|
|
4375
|
+
if (this.regexp_eatClassSetCharacter(state)) {
|
|
4376
|
+
return CharSetOk2;
|
|
4377
|
+
}
|
|
4378
|
+
return this.regexp_eatClassStringDisjunction(state) || this.regexp_eatNestedClass(state);
|
|
4379
|
+
};
|
|
4380
|
+
pp$13.regexp_eatNestedClass = function(state) {
|
|
4381
|
+
var start3 = state.pos;
|
|
4382
|
+
if (state.eat(91)) {
|
|
4383
|
+
var negate = state.eat(94);
|
|
4384
|
+
var result = this.regexp_classContents(state);
|
|
4385
|
+
if (state.eat(93)) {
|
|
4386
|
+
if (negate && result === CharSetString2) {
|
|
4387
|
+
state.raise("Negated character class may contain strings");
|
|
4388
|
+
}
|
|
4389
|
+
return result;
|
|
4390
|
+
}
|
|
4391
|
+
state.pos = start3;
|
|
4392
|
+
}
|
|
4393
|
+
if (state.eat(92)) {
|
|
4394
|
+
var result$1 = this.regexp_eatCharacterClassEscape(state);
|
|
4395
|
+
if (result$1) {
|
|
4396
|
+
return result$1;
|
|
4397
|
+
}
|
|
4398
|
+
state.pos = start3;
|
|
4399
|
+
}
|
|
4400
|
+
return null;
|
|
4401
|
+
};
|
|
4402
|
+
pp$13.regexp_eatClassStringDisjunction = function(state) {
|
|
4403
|
+
var start3 = state.pos;
|
|
4404
|
+
if (state.eatChars([92, 113])) {
|
|
4405
|
+
if (state.eat(123)) {
|
|
4406
|
+
var result = this.regexp_classStringDisjunctionContents(state);
|
|
4407
|
+
if (state.eat(125)) {
|
|
4408
|
+
return result;
|
|
4409
|
+
}
|
|
4410
|
+
} else {
|
|
4411
|
+
state.raise("Invalid escape");
|
|
4412
|
+
}
|
|
4413
|
+
state.pos = start3;
|
|
4414
|
+
}
|
|
4415
|
+
return null;
|
|
4416
|
+
};
|
|
4417
|
+
pp$13.regexp_classStringDisjunctionContents = function(state) {
|
|
4418
|
+
var result = this.regexp_classString(state);
|
|
4419
|
+
while (state.eat(124)) {
|
|
4420
|
+
if (this.regexp_classString(state) === CharSetString2) {
|
|
4421
|
+
result = CharSetString2;
|
|
4422
|
+
}
|
|
4423
|
+
}
|
|
4424
|
+
return result;
|
|
4425
|
+
};
|
|
4426
|
+
pp$13.regexp_classString = function(state) {
|
|
4427
|
+
var count = 0;
|
|
4428
|
+
while (this.regexp_eatClassSetCharacter(state)) {
|
|
4429
|
+
count++;
|
|
4430
|
+
}
|
|
4431
|
+
return count === 1 ? CharSetOk2 : CharSetString2;
|
|
4432
|
+
};
|
|
4433
|
+
pp$13.regexp_eatClassSetCharacter = function(state) {
|
|
4434
|
+
var start3 = state.pos;
|
|
4435
|
+
if (state.eat(92)) {
|
|
4436
|
+
if (this.regexp_eatCharacterEscape(state) || this.regexp_eatClassSetReservedPunctuator(state)) {
|
|
4437
|
+
return true;
|
|
4438
|
+
}
|
|
4439
|
+
if (state.eat(98)) {
|
|
4440
|
+
state.lastIntValue = 8;
|
|
4441
|
+
return true;
|
|
4442
|
+
}
|
|
4443
|
+
state.pos = start3;
|
|
4444
|
+
return false;
|
|
4445
|
+
}
|
|
4446
|
+
var ch2 = state.current();
|
|
4447
|
+
if (ch2 < 0 || ch2 === state.lookahead() && isClassSetReservedDoublePunctuatorCharacter2(ch2)) {
|
|
4448
|
+
return false;
|
|
4449
|
+
}
|
|
4450
|
+
if (isClassSetSyntaxCharacter2(ch2)) {
|
|
4451
|
+
return false;
|
|
4452
|
+
}
|
|
4453
|
+
state.advance();
|
|
4454
|
+
state.lastIntValue = ch2;
|
|
4455
|
+
return true;
|
|
4456
|
+
};
|
|
4457
|
+
function isClassSetReservedDoublePunctuatorCharacter2(ch2) {
|
|
4458
|
+
return ch2 === 33 || ch2 >= 35 && ch2 <= 38 || ch2 >= 42 && ch2 <= 44 || ch2 === 46 || ch2 >= 58 && ch2 <= 64 || ch2 === 94 || ch2 === 96 || ch2 === 126;
|
|
4459
|
+
}
|
|
4460
|
+
function isClassSetSyntaxCharacter2(ch2) {
|
|
4461
|
+
return ch2 === 40 || ch2 === 41 || ch2 === 45 || ch2 === 47 || ch2 >= 91 && ch2 <= 93 || ch2 >= 123 && ch2 <= 125;
|
|
4462
|
+
}
|
|
4463
|
+
pp$13.regexp_eatClassSetReservedPunctuator = function(state) {
|
|
4464
|
+
var ch2 = state.current();
|
|
4465
|
+
if (isClassSetReservedPunctuator2(ch2)) {
|
|
4466
|
+
state.lastIntValue = ch2;
|
|
4467
|
+
state.advance();
|
|
4468
|
+
return true;
|
|
4469
|
+
}
|
|
4470
|
+
return false;
|
|
4471
|
+
};
|
|
4472
|
+
function isClassSetReservedPunctuator2(ch2) {
|
|
4473
|
+
return ch2 === 33 || ch2 === 35 || ch2 === 37 || ch2 === 38 || ch2 === 44 || ch2 === 45 || ch2 >= 58 && ch2 <= 62 || ch2 === 64 || ch2 === 96 || ch2 === 126;
|
|
4474
|
+
}
|
|
4192
4475
|
pp$13.regexp_eatClassControlLetter = function(state) {
|
|
4193
4476
|
var ch2 = state.current();
|
|
4194
4477
|
if (isDecimalDigit3(ch2) || ch2 === 95) {
|
|
@@ -5031,7 +5314,6 @@ var require_acorn = __commonJS({
|
|
|
5031
5314
|
codePos,
|
|
5032
5315
|
"Invalid escape sequence in template string"
|
|
5033
5316
|
);
|
|
5034
|
-
return null;
|
|
5035
5317
|
}
|
|
5036
5318
|
default:
|
|
5037
5319
|
if (ch2 >= 48 && ch2 <= 55) {
|
|
@@ -5102,7 +5384,7 @@ var require_acorn = __commonJS({
|
|
|
5102
5384
|
}
|
|
5103
5385
|
return this.finishToken(type, word);
|
|
5104
5386
|
};
|
|
5105
|
-
var version3 = "8.
|
|
5387
|
+
var version3 = "8.9.0";
|
|
5106
5388
|
Parser5.acorn = {
|
|
5107
5389
|
Parser: Parser5,
|
|
5108
5390
|
version: version3,
|
|
@@ -5155,14 +5437,13 @@ var require_acorn = __commonJS({
|
|
|
5155
5437
|
exports2.tokTypes = types$13;
|
|
5156
5438
|
exports2.tokenizer = tokenizer4;
|
|
5157
5439
|
exports2.version = version3;
|
|
5158
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5159
5440
|
});
|
|
5160
5441
|
}
|
|
5161
5442
|
});
|
|
5162
5443
|
|
|
5163
|
-
// ../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.
|
|
5444
|
+
// ../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.9.0/node_modules/acorn-jsx/index.js
|
|
5164
5445
|
var require_acorn_jsx = __commonJS({
|
|
5165
|
-
"../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.
|
|
5446
|
+
"../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.9.0/node_modules/acorn-jsx/index.js"(exports, module) {
|
|
5166
5447
|
"use strict";
|
|
5167
5448
|
var XHTMLEntities = require_xhtml();
|
|
5168
5449
|
var hexNumber = /^[\da-fA-F]+$/;
|
|
@@ -14396,10 +14677,10 @@ var remark_stringify_default = remarkStringify;
|
|
|
14396
14677
|
// ../../../node_modules/.pnpm/remark@14.0.2/node_modules/remark/index.js
|
|
14397
14678
|
var remark = unified().use(remark_parse_default).use(remark_stringify_default).freeze();
|
|
14398
14679
|
|
|
14399
|
-
// ../../../node_modules/.pnpm/acorn@8.
|
|
14400
|
-
var 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, 370, 1,
|
|
14401
|
-
var 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, 68, 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, 349, 41, 7, 1, 79, 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,
|
|
14402
|
-
var 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\u0898-\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\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-\
|
|
14680
|
+
// ../../../node_modules/.pnpm/acorn@8.9.0/node_modules/acorn/dist/acorn.mjs
|
|
14681
|
+
var 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, 370, 1, 81, 2, 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, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 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, 406, 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, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 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, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
14682
|
+
var 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, 68, 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, 349, 41, 7, 1, 79, 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, 159, 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, 264, 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, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 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, 757, 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, 3104, 541, 1507, 4938, 6, 4191];
|
|
14683
|
+
var 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\u0898-\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\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\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";
|
|
14403
14684
|
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-\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-\u1C88\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-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\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";
|
|
14404
14685
|
var reservedWords = {
|
|
14405
14686
|
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",
|
|
@@ -14429,6 +14710,7 @@ function isInAstralSet(code3, set) {
|
|
|
14429
14710
|
return true;
|
|
14430
14711
|
}
|
|
14431
14712
|
}
|
|
14713
|
+
return false;
|
|
14432
14714
|
}
|
|
14433
14715
|
function isIdentifierStart(code3, astral) {
|
|
14434
14716
|
if (code3 < 65) {
|
|
@@ -14685,7 +14967,7 @@ function getOptions(opts) {
|
|
|
14685
14967
|
if (options.allowReserved == null) {
|
|
14686
14968
|
options.allowReserved = options.ecmaVersion < 5;
|
|
14687
14969
|
}
|
|
14688
|
-
if (opts.allowHashBang == null) {
|
|
14970
|
+
if (!opts || opts.allowHashBang == null) {
|
|
14689
14971
|
options.allowHashBang = options.ecmaVersion >= 14;
|
|
14690
14972
|
}
|
|
14691
14973
|
if (isArray(options.onToken)) {
|
|
@@ -15011,13 +15293,13 @@ pp$8.isLet = function(context) {
|
|
|
15011
15293
|
skipWhiteSpace.lastIndex = this.pos;
|
|
15012
15294
|
var skip = skipWhiteSpace.exec(this.input);
|
|
15013
15295
|
var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);
|
|
15014
|
-
if (nextCh === 91 || nextCh === 92
|
|
15296
|
+
if (nextCh === 91 || nextCh === 92) {
|
|
15015
15297
|
return true;
|
|
15016
15298
|
}
|
|
15017
15299
|
if (context) {
|
|
15018
15300
|
return false;
|
|
15019
15301
|
}
|
|
15020
|
-
if (nextCh === 123) {
|
|
15302
|
+
if (nextCh === 123 || nextCh > 55295 && nextCh < 56320) {
|
|
15021
15303
|
return true;
|
|
15022
15304
|
}
|
|
15023
15305
|
if (isIdentifierStart(nextCh, true)) {
|
|
@@ -15315,6 +15597,14 @@ pp$8.parseThrowStatement = function(node) {
|
|
|
15315
15597
|
return this.finishNode(node, "ThrowStatement");
|
|
15316
15598
|
};
|
|
15317
15599
|
var empty$1 = [];
|
|
15600
|
+
pp$8.parseCatchClauseParam = function() {
|
|
15601
|
+
var param = this.parseBindingAtom();
|
|
15602
|
+
var simple = param.type === "Identifier";
|
|
15603
|
+
this.enterScope(simple ? SCOPE_SIMPLE_CATCH : 0);
|
|
15604
|
+
this.checkLValPattern(param, simple ? BIND_SIMPLE_CATCH : BIND_LEXICAL);
|
|
15605
|
+
this.expect(types$1.parenR);
|
|
15606
|
+
return param;
|
|
15607
|
+
};
|
|
15318
15608
|
pp$8.parseTryStatement = function(node) {
|
|
15319
15609
|
this.next();
|
|
15320
15610
|
node.block = this.parseBlock();
|
|
@@ -15323,11 +15613,7 @@ pp$8.parseTryStatement = function(node) {
|
|
|
15323
15613
|
var clause = this.startNode();
|
|
15324
15614
|
this.next();
|
|
15325
15615
|
if (this.eat(types$1.parenL)) {
|
|
15326
|
-
clause.param = this.
|
|
15327
|
-
var simple = clause.param.type === "Identifier";
|
|
15328
|
-
this.enterScope(simple ? SCOPE_SIMPLE_CATCH : 0);
|
|
15329
|
-
this.checkLValPattern(clause.param, simple ? BIND_SIMPLE_CATCH : BIND_LEXICAL);
|
|
15330
|
-
this.expect(types$1.parenR);
|
|
15616
|
+
clause.param = this.parseCatchClauseParam();
|
|
15331
15617
|
} else {
|
|
15332
15618
|
if (this.options.ecmaVersion < 10) {
|
|
15333
15619
|
this.unexpected();
|
|
@@ -15345,9 +15631,9 @@ pp$8.parseTryStatement = function(node) {
|
|
|
15345
15631
|
}
|
|
15346
15632
|
return this.finishNode(node, "TryStatement");
|
|
15347
15633
|
};
|
|
15348
|
-
pp$8.parseVarStatement = function(node, kind) {
|
|
15634
|
+
pp$8.parseVarStatement = function(node, kind, allowMissingInitializer) {
|
|
15349
15635
|
this.next();
|
|
15350
|
-
this.parseVar(node, false, kind);
|
|
15636
|
+
this.parseVar(node, false, kind, allowMissingInitializer);
|
|
15351
15637
|
this.semicolon();
|
|
15352
15638
|
return this.finishNode(node, "VariableDeclaration");
|
|
15353
15639
|
};
|
|
@@ -15452,7 +15738,7 @@ pp$8.parseForIn = function(node, init2) {
|
|
|
15452
15738
|
this.labels.pop();
|
|
15453
15739
|
return this.finishNode(node, isForIn ? "ForInStatement" : "ForOfStatement");
|
|
15454
15740
|
};
|
|
15455
|
-
pp$8.parseVar = function(node, isFor, kind) {
|
|
15741
|
+
pp$8.parseVar = function(node, isFor, kind, allowMissingInitializer) {
|
|
15456
15742
|
node.declarations = [];
|
|
15457
15743
|
node.kind = kind;
|
|
15458
15744
|
for (; ; ) {
|
|
@@ -15460,9 +15746,9 @@ pp$8.parseVar = function(node, isFor, kind) {
|
|
|
15460
15746
|
this.parseVarId(decl, kind);
|
|
15461
15747
|
if (this.eat(types$1.eq)) {
|
|
15462
15748
|
decl.init = this.parseMaybeAssign(isFor);
|
|
15463
|
-
} else if (kind === "const" && !(this.type === types$1._in || this.options.ecmaVersion >= 6 && this.isContextual("of"))) {
|
|
15749
|
+
} else if (!allowMissingInitializer && kind === "const" && !(this.type === types$1._in || this.options.ecmaVersion >= 6 && this.isContextual("of"))) {
|
|
15464
15750
|
this.unexpected();
|
|
15465
|
-
} else if (decl.id.type !== "Identifier" && !(isFor && (this.type === types$1._in || this.isContextual("of")))) {
|
|
15751
|
+
} else if (!allowMissingInitializer && decl.id.type !== "Identifier" && !(isFor && (this.type === types$1._in || this.isContextual("of")))) {
|
|
15466
15752
|
this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value");
|
|
15467
15753
|
} else {
|
|
15468
15754
|
decl.init = null;
|
|
@@ -15535,7 +15821,7 @@ pp$8.parseClass = function(node, isStatement) {
|
|
|
15535
15821
|
classBody.body.push(element);
|
|
15536
15822
|
if (element.type === "MethodDefinition" && element.kind === "constructor") {
|
|
15537
15823
|
if (hadConstructor) {
|
|
15538
|
-
this.
|
|
15824
|
+
this.raiseRecoverable(element.start, "Duplicate constructor in the same class");
|
|
15539
15825
|
}
|
|
15540
15826
|
hadConstructor = true;
|
|
15541
15827
|
} else if (element.key && element.key.type === "PrivateIdentifier" && isPrivateNameConflicted(privateNameMap, element)) {
|
|
@@ -15697,7 +15983,7 @@ pp$8.parseClassId = function(node, isStatement) {
|
|
|
15697
15983
|
}
|
|
15698
15984
|
};
|
|
15699
15985
|
pp$8.parseClassSuper = function(node) {
|
|
15700
|
-
node.superClass = this.eat(types$1._extends) ? this.parseExprSubscripts(false) : null;
|
|
15986
|
+
node.superClass = this.eat(types$1._extends) ? this.parseExprSubscripts(null, false) : null;
|
|
15701
15987
|
};
|
|
15702
15988
|
pp$8.enterClassBody = function() {
|
|
15703
15989
|
var element = { declared: /* @__PURE__ */ Object.create(null), used: [] };
|
|
@@ -15743,46 +16029,35 @@ function checkKeyName(node, name2) {
|
|
|
15743
16029
|
var key = node.key;
|
|
15744
16030
|
return !computed && (key.type === "Identifier" && key.name === name2 || key.type === "Literal" && key.value === name2);
|
|
15745
16031
|
}
|
|
16032
|
+
pp$8.parseExportAllDeclaration = function(node, exports) {
|
|
16033
|
+
if (this.options.ecmaVersion >= 11) {
|
|
16034
|
+
if (this.eatContextual("as")) {
|
|
16035
|
+
node.exported = this.parseModuleExportName();
|
|
16036
|
+
this.checkExport(exports, node.exported, this.lastTokStart);
|
|
16037
|
+
} else {
|
|
16038
|
+
node.exported = null;
|
|
16039
|
+
}
|
|
16040
|
+
}
|
|
16041
|
+
this.expectContextual("from");
|
|
16042
|
+
if (this.type !== types$1.string) {
|
|
16043
|
+
this.unexpected();
|
|
16044
|
+
}
|
|
16045
|
+
node.source = this.parseExprAtom();
|
|
16046
|
+
this.semicolon();
|
|
16047
|
+
return this.finishNode(node, "ExportAllDeclaration");
|
|
16048
|
+
};
|
|
15746
16049
|
pp$8.parseExport = function(node, exports) {
|
|
15747
16050
|
this.next();
|
|
15748
16051
|
if (this.eat(types$1.star)) {
|
|
15749
|
-
|
|
15750
|
-
if (this.eatContextual("as")) {
|
|
15751
|
-
node.exported = this.parseModuleExportName();
|
|
15752
|
-
this.checkExport(exports, node.exported, this.lastTokStart);
|
|
15753
|
-
} else {
|
|
15754
|
-
node.exported = null;
|
|
15755
|
-
}
|
|
15756
|
-
}
|
|
15757
|
-
this.expectContextual("from");
|
|
15758
|
-
if (this.type !== types$1.string) {
|
|
15759
|
-
this.unexpected();
|
|
15760
|
-
}
|
|
15761
|
-
node.source = this.parseExprAtom();
|
|
15762
|
-
this.semicolon();
|
|
15763
|
-
return this.finishNode(node, "ExportAllDeclaration");
|
|
16052
|
+
return this.parseExportAllDeclaration(node, exports);
|
|
15764
16053
|
}
|
|
15765
16054
|
if (this.eat(types$1._default)) {
|
|
15766
16055
|
this.checkExport(exports, "default", this.lastTokStart);
|
|
15767
|
-
|
|
15768
|
-
if (this.type === types$1._function || (isAsync = this.isAsyncFunction())) {
|
|
15769
|
-
var fNode = this.startNode();
|
|
15770
|
-
this.next();
|
|
15771
|
-
if (isAsync) {
|
|
15772
|
-
this.next();
|
|
15773
|
-
}
|
|
15774
|
-
node.declaration = this.parseFunction(fNode, FUNC_STATEMENT | FUNC_NULLABLE_ID, false, isAsync);
|
|
15775
|
-
} else if (this.type === types$1._class) {
|
|
15776
|
-
var cNode = this.startNode();
|
|
15777
|
-
node.declaration = this.parseClass(cNode, "nullableID");
|
|
15778
|
-
} else {
|
|
15779
|
-
node.declaration = this.parseMaybeAssign();
|
|
15780
|
-
this.semicolon();
|
|
15781
|
-
}
|
|
16056
|
+
node.declaration = this.parseExportDefaultDeclaration();
|
|
15782
16057
|
return this.finishNode(node, "ExportDefaultDeclaration");
|
|
15783
16058
|
}
|
|
15784
16059
|
if (this.shouldParseExportStatement()) {
|
|
15785
|
-
node.declaration = this.
|
|
16060
|
+
node.declaration = this.parseExportDeclaration(node);
|
|
15786
16061
|
if (node.declaration.type === "VariableDeclaration") {
|
|
15787
16062
|
this.checkVariableExport(exports, node.declaration.declarations);
|
|
15788
16063
|
} else {
|
|
@@ -15813,6 +16088,27 @@ pp$8.parseExport = function(node, exports) {
|
|
|
15813
16088
|
}
|
|
15814
16089
|
return this.finishNode(node, "ExportNamedDeclaration");
|
|
15815
16090
|
};
|
|
16091
|
+
pp$8.parseExportDeclaration = function(node) {
|
|
16092
|
+
return this.parseStatement(null);
|
|
16093
|
+
};
|
|
16094
|
+
pp$8.parseExportDefaultDeclaration = function() {
|
|
16095
|
+
var isAsync;
|
|
16096
|
+
if (this.type === types$1._function || (isAsync = this.isAsyncFunction())) {
|
|
16097
|
+
var fNode = this.startNode();
|
|
16098
|
+
this.next();
|
|
16099
|
+
if (isAsync) {
|
|
16100
|
+
this.next();
|
|
16101
|
+
}
|
|
16102
|
+
return this.parseFunction(fNode, FUNC_STATEMENT | FUNC_NULLABLE_ID, false, isAsync);
|
|
16103
|
+
} else if (this.type === types$1._class) {
|
|
16104
|
+
var cNode = this.startNode();
|
|
16105
|
+
return this.parseClass(cNode, "nullableID");
|
|
16106
|
+
} else {
|
|
16107
|
+
var declaration = this.parseMaybeAssign();
|
|
16108
|
+
this.semicolon();
|
|
16109
|
+
return declaration;
|
|
16110
|
+
}
|
|
16111
|
+
};
|
|
15816
16112
|
pp$8.checkExport = function(exports, name2, pos) {
|
|
15817
16113
|
if (!exports) {
|
|
15818
16114
|
return;
|
|
@@ -15863,6 +16159,17 @@ pp$8.checkVariableExport = function(exports, decls) {
|
|
|
15863
16159
|
pp$8.shouldParseExportStatement = function() {
|
|
15864
16160
|
return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
|
|
15865
16161
|
};
|
|
16162
|
+
pp$8.parseExportSpecifier = function(exports) {
|
|
16163
|
+
var node = this.startNode();
|
|
16164
|
+
node.local = this.parseModuleExportName();
|
|
16165
|
+
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
|
16166
|
+
this.checkExport(
|
|
16167
|
+
exports,
|
|
16168
|
+
node.exported,
|
|
16169
|
+
node.exported.start
|
|
16170
|
+
);
|
|
16171
|
+
return this.finishNode(node, "ExportSpecifier");
|
|
16172
|
+
};
|
|
15866
16173
|
pp$8.parseExportSpecifiers = function(exports) {
|
|
15867
16174
|
var nodes = [], first = true;
|
|
15868
16175
|
this.expect(types$1.braceL);
|
|
@@ -15875,15 +16182,7 @@ pp$8.parseExportSpecifiers = function(exports) {
|
|
|
15875
16182
|
} else {
|
|
15876
16183
|
first = false;
|
|
15877
16184
|
}
|
|
15878
|
-
|
|
15879
|
-
node.local = this.parseModuleExportName();
|
|
15880
|
-
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
|
15881
|
-
this.checkExport(
|
|
15882
|
-
exports,
|
|
15883
|
-
node.exported,
|
|
15884
|
-
node.exported.start
|
|
15885
|
-
);
|
|
15886
|
-
nodes.push(this.finishNode(node, "ExportSpecifier"));
|
|
16185
|
+
nodes.push(this.parseExportSpecifier(exports));
|
|
15887
16186
|
}
|
|
15888
16187
|
return nodes;
|
|
15889
16188
|
};
|
|
@@ -15900,24 +16199,42 @@ pp$8.parseImport = function(node) {
|
|
|
15900
16199
|
this.semicolon();
|
|
15901
16200
|
return this.finishNode(node, "ImportDeclaration");
|
|
15902
16201
|
};
|
|
16202
|
+
pp$8.parseImportSpecifier = function() {
|
|
16203
|
+
var node = this.startNode();
|
|
16204
|
+
node.imported = this.parseModuleExportName();
|
|
16205
|
+
if (this.eatContextual("as")) {
|
|
16206
|
+
node.local = this.parseIdent();
|
|
16207
|
+
} else {
|
|
16208
|
+
this.checkUnreserved(node.imported);
|
|
16209
|
+
node.local = node.imported;
|
|
16210
|
+
}
|
|
16211
|
+
this.checkLValSimple(node.local, BIND_LEXICAL);
|
|
16212
|
+
return this.finishNode(node, "ImportSpecifier");
|
|
16213
|
+
};
|
|
16214
|
+
pp$8.parseImportDefaultSpecifier = function() {
|
|
16215
|
+
var node = this.startNode();
|
|
16216
|
+
node.local = this.parseIdent();
|
|
16217
|
+
this.checkLValSimple(node.local, BIND_LEXICAL);
|
|
16218
|
+
return this.finishNode(node, "ImportDefaultSpecifier");
|
|
16219
|
+
};
|
|
16220
|
+
pp$8.parseImportNamespaceSpecifier = function() {
|
|
16221
|
+
var node = this.startNode();
|
|
16222
|
+
this.next();
|
|
16223
|
+
this.expectContextual("as");
|
|
16224
|
+
node.local = this.parseIdent();
|
|
16225
|
+
this.checkLValSimple(node.local, BIND_LEXICAL);
|
|
16226
|
+
return this.finishNode(node, "ImportNamespaceSpecifier");
|
|
16227
|
+
};
|
|
15903
16228
|
pp$8.parseImportSpecifiers = function() {
|
|
15904
16229
|
var nodes = [], first = true;
|
|
15905
16230
|
if (this.type === types$1.name) {
|
|
15906
|
-
|
|
15907
|
-
node.local = this.parseIdent();
|
|
15908
|
-
this.checkLValSimple(node.local, BIND_LEXICAL);
|
|
15909
|
-
nodes.push(this.finishNode(node, "ImportDefaultSpecifier"));
|
|
16231
|
+
nodes.push(this.parseImportDefaultSpecifier());
|
|
15910
16232
|
if (!this.eat(types$1.comma)) {
|
|
15911
16233
|
return nodes;
|
|
15912
16234
|
}
|
|
15913
16235
|
}
|
|
15914
16236
|
if (this.type === types$1.star) {
|
|
15915
|
-
|
|
15916
|
-
this.next();
|
|
15917
|
-
this.expectContextual("as");
|
|
15918
|
-
node$1.local = this.parseIdent();
|
|
15919
|
-
this.checkLValSimple(node$1.local, BIND_LEXICAL);
|
|
15920
|
-
nodes.push(this.finishNode(node$1, "ImportNamespaceSpecifier"));
|
|
16237
|
+
nodes.push(this.parseImportNamespaceSpecifier());
|
|
15921
16238
|
return nodes;
|
|
15922
16239
|
}
|
|
15923
16240
|
this.expect(types$1.braceL);
|
|
@@ -15930,16 +16247,7 @@ pp$8.parseImportSpecifiers = function() {
|
|
|
15930
16247
|
} else {
|
|
15931
16248
|
first = false;
|
|
15932
16249
|
}
|
|
15933
|
-
|
|
15934
|
-
node$2.imported = this.parseModuleExportName();
|
|
15935
|
-
if (this.eatContextual("as")) {
|
|
15936
|
-
node$2.local = this.parseIdent();
|
|
15937
|
-
} else {
|
|
15938
|
-
this.checkUnreserved(node$2.imported);
|
|
15939
|
-
node$2.local = node$2.imported;
|
|
15940
|
-
}
|
|
15941
|
-
this.checkLValSimple(node$2.local, BIND_LEXICAL);
|
|
15942
|
-
nodes.push(this.finishNode(node$2, "ImportSpecifier"));
|
|
16250
|
+
nodes.push(this.parseImportSpecifier());
|
|
15943
16251
|
}
|
|
15944
16252
|
return nodes;
|
|
15945
16253
|
};
|
|
@@ -16079,7 +16387,7 @@ pp$7.parseBindingAtom = function() {
|
|
|
16079
16387
|
}
|
|
16080
16388
|
return this.parseIdent();
|
|
16081
16389
|
};
|
|
16082
|
-
pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma) {
|
|
16390
|
+
pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma, allowModifiers) {
|
|
16083
16391
|
var elts = [], first = true;
|
|
16084
16392
|
while (!this.eat(close)) {
|
|
16085
16393
|
if (first) {
|
|
@@ -16096,18 +16404,21 @@ pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma) {
|
|
|
16096
16404
|
this.parseBindingListItem(rest);
|
|
16097
16405
|
elts.push(rest);
|
|
16098
16406
|
if (this.type === types$1.comma) {
|
|
16099
|
-
this.
|
|
16407
|
+
this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
|
|
16100
16408
|
}
|
|
16101
16409
|
this.expect(close);
|
|
16102
16410
|
break;
|
|
16103
16411
|
} else {
|
|
16104
|
-
|
|
16105
|
-
this.parseBindingListItem(elem);
|
|
16106
|
-
elts.push(elem);
|
|
16412
|
+
elts.push(this.parseAssignableListItem(allowModifiers));
|
|
16107
16413
|
}
|
|
16108
16414
|
}
|
|
16109
16415
|
return elts;
|
|
16110
16416
|
};
|
|
16417
|
+
pp$7.parseAssignableListItem = function(allowModifiers) {
|
|
16418
|
+
var elem = this.parseMaybeDefault(this.start, this.startLoc);
|
|
16419
|
+
this.parseBindingListItem(elem);
|
|
16420
|
+
return elem;
|
|
16421
|
+
};
|
|
16111
16422
|
pp$7.parseBindingListItem = function(param) {
|
|
16112
16423
|
return param;
|
|
16113
16424
|
};
|
|
@@ -16624,6 +16935,12 @@ pp$5.parseSubscripts = function(base2, startPos, startLoc, noCalls, forInit) {
|
|
|
16624
16935
|
base2 = element;
|
|
16625
16936
|
}
|
|
16626
16937
|
};
|
|
16938
|
+
pp$5.shouldParseAsyncArrow = function() {
|
|
16939
|
+
return !this.canInsertSemicolon() && this.eat(types$1.arrow);
|
|
16940
|
+
};
|
|
16941
|
+
pp$5.parseSubscriptAsyncArrow = function(startPos, startLoc, exprList, forInit) {
|
|
16942
|
+
return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, true, forInit);
|
|
16943
|
+
};
|
|
16627
16944
|
pp$5.parseSubscript = function(base2, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) {
|
|
16628
16945
|
var optionalSupported = this.options.ecmaVersion >= 11;
|
|
16629
16946
|
var optional = optionalSupported && this.eat(types$1.questionDot);
|
|
@@ -16653,7 +16970,7 @@ pp$5.parseSubscript = function(base2, startPos, startLoc, noCalls, maybeAsyncArr
|
|
|
16653
16970
|
this.awaitPos = 0;
|
|
16654
16971
|
this.awaitIdentPos = 0;
|
|
16655
16972
|
var exprList = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false, refDestructuringErrors);
|
|
16656
|
-
if (maybeAsyncArrow && !optional &&
|
|
16973
|
+
if (maybeAsyncArrow && !optional && this.shouldParseAsyncArrow()) {
|
|
16657
16974
|
this.checkPatternErrors(refDestructuringErrors, false);
|
|
16658
16975
|
this.checkYieldAwaitInDefaultParams();
|
|
16659
16976
|
if (this.awaitIdentPos > 0) {
|
|
@@ -16662,7 +16979,7 @@ pp$5.parseSubscript = function(base2, startPos, startLoc, noCalls, maybeAsyncArr
|
|
|
16662
16979
|
this.yieldPos = oldYieldPos;
|
|
16663
16980
|
this.awaitPos = oldAwaitPos;
|
|
16664
16981
|
this.awaitIdentPos = oldAwaitIdentPos;
|
|
16665
|
-
return this.
|
|
16982
|
+
return this.parseSubscriptAsyncArrow(startPos, startLoc, exprList, forInit);
|
|
16666
16983
|
}
|
|
16667
16984
|
this.checkExpressionErrors(refDestructuringErrors, true);
|
|
16668
16985
|
this.yieldPos = oldYieldPos || this.yieldPos;
|
|
@@ -16686,7 +17003,7 @@ pp$5.parseSubscript = function(base2, startPos, startLoc, noCalls, maybeAsyncArr
|
|
|
16686
17003
|
}
|
|
16687
17004
|
return base2;
|
|
16688
17005
|
};
|
|
16689
|
-
pp$5.parseExprAtom = function(refDestructuringErrors, forInit) {
|
|
17006
|
+
pp$5.parseExprAtom = function(refDestructuringErrors, forInit, forNew) {
|
|
16690
17007
|
if (this.type === types$1.slash) {
|
|
16691
17008
|
this.readRegexp();
|
|
16692
17009
|
}
|
|
@@ -16776,28 +17093,30 @@ pp$5.parseExprAtom = function(refDestructuringErrors, forInit) {
|
|
|
16776
17093
|
return this.parseTemplate();
|
|
16777
17094
|
case types$1._import:
|
|
16778
17095
|
if (this.options.ecmaVersion >= 11) {
|
|
16779
|
-
return this.parseExprImport();
|
|
17096
|
+
return this.parseExprImport(forNew);
|
|
16780
17097
|
} else {
|
|
16781
17098
|
return this.unexpected();
|
|
16782
17099
|
}
|
|
16783
17100
|
default:
|
|
16784
|
-
this.
|
|
17101
|
+
return this.parseExprAtomDefault();
|
|
16785
17102
|
}
|
|
16786
17103
|
};
|
|
16787
|
-
pp$5.
|
|
17104
|
+
pp$5.parseExprAtomDefault = function() {
|
|
17105
|
+
this.unexpected();
|
|
17106
|
+
};
|
|
17107
|
+
pp$5.parseExprImport = function(forNew) {
|
|
16788
17108
|
var node = this.startNode();
|
|
16789
17109
|
if (this.containsEsc) {
|
|
16790
17110
|
this.raiseRecoverable(this.start, "Escape sequence in keyword import");
|
|
16791
17111
|
}
|
|
16792
17112
|
var meta = this.parseIdent(true);
|
|
16793
|
-
|
|
16794
|
-
|
|
16795
|
-
|
|
16796
|
-
|
|
16797
|
-
|
|
16798
|
-
|
|
16799
|
-
|
|
16800
|
-
this.unexpected();
|
|
17113
|
+
if (this.type === types$1.parenL && !forNew) {
|
|
17114
|
+
return this.parseDynamicImport(node);
|
|
17115
|
+
} else if (this.type === types$1.dot) {
|
|
17116
|
+
node.meta = meta;
|
|
17117
|
+
return this.parseImportMeta(node);
|
|
17118
|
+
} else {
|
|
17119
|
+
this.unexpected();
|
|
16801
17120
|
}
|
|
16802
17121
|
};
|
|
16803
17122
|
pp$5.parseDynamicImport = function(node) {
|
|
@@ -16844,6 +17163,9 @@ pp$5.parseParenExpression = function() {
|
|
|
16844
17163
|
this.expect(types$1.parenR);
|
|
16845
17164
|
return val;
|
|
16846
17165
|
};
|
|
17166
|
+
pp$5.shouldParseArrow = function(exprList) {
|
|
17167
|
+
return !this.canInsertSemicolon();
|
|
17168
|
+
};
|
|
16847
17169
|
pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {
|
|
16848
17170
|
var startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8;
|
|
16849
17171
|
if (this.options.ecmaVersion >= 6) {
|
|
@@ -16862,7 +17184,10 @@ pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {
|
|
|
16862
17184
|
spreadStart = this.start;
|
|
16863
17185
|
exprList.push(this.parseParenItem(this.parseRestBinding()));
|
|
16864
17186
|
if (this.type === types$1.comma) {
|
|
16865
|
-
this.
|
|
17187
|
+
this.raiseRecoverable(
|
|
17188
|
+
this.start,
|
|
17189
|
+
"Comma is not permitted after the rest element"
|
|
17190
|
+
);
|
|
16866
17191
|
}
|
|
16867
17192
|
break;
|
|
16868
17193
|
} else {
|
|
@@ -16871,7 +17196,7 @@ pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {
|
|
|
16871
17196
|
}
|
|
16872
17197
|
var innerEndPos = this.lastTokEnd, innerEndLoc = this.lastTokEndLoc;
|
|
16873
17198
|
this.expect(types$1.parenR);
|
|
16874
|
-
if (canBeArrow &&
|
|
17199
|
+
if (canBeArrow && this.shouldParseArrow(exprList) && this.eat(types$1.arrow)) {
|
|
16875
17200
|
this.checkPatternErrors(refDestructuringErrors, false);
|
|
16876
17201
|
this.checkYieldAwaitInDefaultParams();
|
|
16877
17202
|
this.yieldPos = oldYieldPos;
|
|
@@ -16933,11 +17258,8 @@ pp$5.parseNew = function() {
|
|
|
16933
17258
|
}
|
|
16934
17259
|
return this.finishNode(node, "MetaProperty");
|
|
16935
17260
|
}
|
|
16936
|
-
var startPos = this.start, startLoc = this.startLoc
|
|
16937
|
-
node.callee = this.parseSubscripts(this.parseExprAtom(), startPos, startLoc, true, false);
|
|
16938
|
-
if (isImport && node.callee.type === "ImportExpression") {
|
|
16939
|
-
this.raise(startPos, "Cannot use new with import()");
|
|
16940
|
-
}
|
|
17261
|
+
var startPos = this.start, startLoc = this.startLoc;
|
|
17262
|
+
node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false);
|
|
16941
17263
|
if (this.eat(types$1.parenL)) {
|
|
16942
17264
|
node.arguments = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false);
|
|
16943
17265
|
} else {
|
|
@@ -17019,7 +17341,7 @@ pp$5.parseProperty = function(isPattern, refDestructuringErrors) {
|
|
|
17019
17341
|
if (isPattern) {
|
|
17020
17342
|
prop.argument = this.parseIdent(false);
|
|
17021
17343
|
if (this.type === types$1.comma) {
|
|
17022
|
-
this.
|
|
17344
|
+
this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
|
|
17023
17345
|
}
|
|
17024
17346
|
return this.finishNode(prop, "RestElement");
|
|
17025
17347
|
}
|
|
@@ -17045,13 +17367,31 @@ pp$5.parseProperty = function(isPattern, refDestructuringErrors) {
|
|
|
17045
17367
|
if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) {
|
|
17046
17368
|
isAsync = true;
|
|
17047
17369
|
isGenerator = this.options.ecmaVersion >= 9 && this.eat(types$1.star);
|
|
17048
|
-
this.parsePropertyName(prop
|
|
17370
|
+
this.parsePropertyName(prop);
|
|
17049
17371
|
} else {
|
|
17050
17372
|
isAsync = false;
|
|
17051
17373
|
}
|
|
17052
17374
|
this.parsePropertyValue(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc);
|
|
17053
17375
|
return this.finishNode(prop, "Property");
|
|
17054
17376
|
};
|
|
17377
|
+
pp$5.parseGetterSetter = function(prop) {
|
|
17378
|
+
prop.kind = prop.key.name;
|
|
17379
|
+
this.parsePropertyName(prop);
|
|
17380
|
+
prop.value = this.parseMethod(false);
|
|
17381
|
+
var paramCount = prop.kind === "get" ? 0 : 1;
|
|
17382
|
+
if (prop.value.params.length !== paramCount) {
|
|
17383
|
+
var start3 = prop.value.start;
|
|
17384
|
+
if (prop.kind === "get") {
|
|
17385
|
+
this.raiseRecoverable(start3, "getter should have no params");
|
|
17386
|
+
} else {
|
|
17387
|
+
this.raiseRecoverable(start3, "setter should have exactly one param");
|
|
17388
|
+
}
|
|
17389
|
+
} else {
|
|
17390
|
+
if (prop.kind === "set" && prop.value.params[0].type === "RestElement") {
|
|
17391
|
+
this.raiseRecoverable(prop.value.params[0].start, "Setter cannot use rest params");
|
|
17392
|
+
}
|
|
17393
|
+
}
|
|
17394
|
+
};
|
|
17055
17395
|
pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) {
|
|
17056
17396
|
if ((isGenerator || isAsync) && this.type === types$1.colon) {
|
|
17057
17397
|
this.unexpected();
|
|
@@ -17070,22 +17410,7 @@ pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startP
|
|
|
17070
17410
|
if (isGenerator || isAsync) {
|
|
17071
17411
|
this.unexpected();
|
|
17072
17412
|
}
|
|
17073
|
-
|
|
17074
|
-
this.parsePropertyName(prop);
|
|
17075
|
-
prop.value = this.parseMethod(false);
|
|
17076
|
-
var paramCount = prop.kind === "get" ? 0 : 1;
|
|
17077
|
-
if (prop.value.params.length !== paramCount) {
|
|
17078
|
-
var start3 = prop.value.start;
|
|
17079
|
-
if (prop.kind === "get") {
|
|
17080
|
-
this.raiseRecoverable(start3, "getter should have no params");
|
|
17081
|
-
} else {
|
|
17082
|
-
this.raiseRecoverable(start3, "setter should have exactly one param");
|
|
17083
|
-
}
|
|
17084
|
-
} else {
|
|
17085
|
-
if (prop.kind === "set" && prop.value.params[0].type === "RestElement") {
|
|
17086
|
-
this.raiseRecoverable(prop.value.params[0].start, "Setter cannot use rest params");
|
|
17087
|
-
}
|
|
17088
|
-
}
|
|
17413
|
+
this.parseGetterSetter(prop);
|
|
17089
17414
|
} else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === "Identifier") {
|
|
17090
17415
|
if (isGenerator || isAsync) {
|
|
17091
17416
|
this.unexpected();
|
|
@@ -17274,7 +17599,19 @@ pp$5.checkUnreserved = function(ref3) {
|
|
|
17274
17599
|
this.raiseRecoverable(start3, "The keyword '" + name2 + "' is reserved");
|
|
17275
17600
|
}
|
|
17276
17601
|
};
|
|
17277
|
-
pp$5.parseIdent = function(liberal
|
|
17602
|
+
pp$5.parseIdent = function(liberal) {
|
|
17603
|
+
var node = this.parseIdentNode();
|
|
17604
|
+
this.next(!!liberal);
|
|
17605
|
+
this.finishNode(node, "Identifier");
|
|
17606
|
+
if (!liberal) {
|
|
17607
|
+
this.checkUnreserved(node);
|
|
17608
|
+
if (node.name === "await" && !this.awaitIdentPos) {
|
|
17609
|
+
this.awaitIdentPos = node.start;
|
|
17610
|
+
}
|
|
17611
|
+
}
|
|
17612
|
+
return node;
|
|
17613
|
+
};
|
|
17614
|
+
pp$5.parseIdentNode = function() {
|
|
17278
17615
|
var node = this.startNode();
|
|
17279
17616
|
if (this.type === types$1.name) {
|
|
17280
17617
|
node.name = this.value;
|
|
@@ -17286,14 +17623,6 @@ pp$5.parseIdent = function(liberal, isBinding) {
|
|
|
17286
17623
|
} else {
|
|
17287
17624
|
this.unexpected();
|
|
17288
17625
|
}
|
|
17289
|
-
this.next(!!liberal);
|
|
17290
|
-
this.finishNode(node, "Identifier");
|
|
17291
|
-
if (!liberal) {
|
|
17292
|
-
this.checkUnreserved(node);
|
|
17293
|
-
if (node.name === "await" && !this.awaitIdentPos) {
|
|
17294
|
-
this.awaitIdentPos = node.start;
|
|
17295
|
-
}
|
|
17296
|
-
}
|
|
17297
17626
|
return node;
|
|
17298
17627
|
};
|
|
17299
17628
|
pp$5.parsePrivateIdent = function() {
|
|
@@ -17483,12 +17812,23 @@ var ecma10BinaryProperties = ecma9BinaryProperties + " Extended_Pictographic";
|
|
|
17483
17812
|
var ecma11BinaryProperties = ecma10BinaryProperties;
|
|
17484
17813
|
var ecma12BinaryProperties = ecma11BinaryProperties + " EBase EComp EMod EPres ExtPict";
|
|
17485
17814
|
var ecma13BinaryProperties = ecma12BinaryProperties;
|
|
17815
|
+
var ecma14BinaryProperties = ecma13BinaryProperties;
|
|
17486
17816
|
var unicodeBinaryProperties = {
|
|
17487
17817
|
9: ecma9BinaryProperties,
|
|
17488
17818
|
10: ecma10BinaryProperties,
|
|
17489
17819
|
11: ecma11BinaryProperties,
|
|
17490
17820
|
12: ecma12BinaryProperties,
|
|
17491
|
-
13: ecma13BinaryProperties
|
|
17821
|
+
13: ecma13BinaryProperties,
|
|
17822
|
+
14: ecma14BinaryProperties
|
|
17823
|
+
};
|
|
17824
|
+
var ecma14BinaryPropertiesOfStrings = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji";
|
|
17825
|
+
var unicodeBinaryPropertiesOfStrings = {
|
|
17826
|
+
9: "",
|
|
17827
|
+
10: "",
|
|
17828
|
+
11: "",
|
|
17829
|
+
12: "",
|
|
17830
|
+
13: "",
|
|
17831
|
+
14: ecma14BinaryPropertiesOfStrings
|
|
17492
17832
|
};
|
|
17493
17833
|
var unicodeGeneralCategoryValues = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu";
|
|
17494
17834
|
var ecma9ScriptValues = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb";
|
|
@@ -17496,17 +17836,20 @@ var ecma10ScriptValues = ecma9ScriptValues + " Dogra Dogr Gunjala_Gondi Gong Han
|
|
|
17496
17836
|
var ecma11ScriptValues = ecma10ScriptValues + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
|
|
17497
17837
|
var ecma12ScriptValues = ecma11ScriptValues + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
|
|
17498
17838
|
var ecma13ScriptValues = ecma12ScriptValues + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
|
|
17839
|
+
var ecma14ScriptValues = ecma13ScriptValues + " Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz";
|
|
17499
17840
|
var unicodeScriptValues = {
|
|
17500
17841
|
9: ecma9ScriptValues,
|
|
17501
17842
|
10: ecma10ScriptValues,
|
|
17502
17843
|
11: ecma11ScriptValues,
|
|
17503
17844
|
12: ecma12ScriptValues,
|
|
17504
|
-
13: ecma13ScriptValues
|
|
17845
|
+
13: ecma13ScriptValues,
|
|
17846
|
+
14: ecma14ScriptValues
|
|
17505
17847
|
};
|
|
17506
17848
|
var data = {};
|
|
17507
17849
|
function buildUnicodeData(ecmaVersion) {
|
|
17508
17850
|
var d = data[ecmaVersion] = {
|
|
17509
17851
|
binary: wordsRegexp(unicodeBinaryProperties[ecmaVersion] + " " + unicodeGeneralCategoryValues),
|
|
17852
|
+
binaryOfStrings: wordsRegexp(unicodeBinaryPropertiesOfStrings[ecmaVersion]),
|
|
17510
17853
|
nonBinary: {
|
|
17511
17854
|
General_Category: wordsRegexp(unicodeGeneralCategoryValues),
|
|
17512
17855
|
Script: wordsRegexp(unicodeScriptValues[ecmaVersion])
|
|
@@ -17517,7 +17860,7 @@ function buildUnicodeData(ecmaVersion) {
|
|
|
17517
17860
|
d.nonBinary.sc = d.nonBinary.Script;
|
|
17518
17861
|
d.nonBinary.scx = d.nonBinary.Script_Extensions;
|
|
17519
17862
|
}
|
|
17520
|
-
for (i = 0, list3 = [9, 10, 11, 12, 13]; i < list3.length; i += 1) {
|
|
17863
|
+
for (i = 0, list3 = [9, 10, 11, 12, 13, 14]; i < list3.length; i += 1) {
|
|
17521
17864
|
ecmaVersion = list3[i];
|
|
17522
17865
|
buildUnicodeData(ecmaVersion);
|
|
17523
17866
|
}
|
|
@@ -17527,12 +17870,13 @@ var list3;
|
|
|
17527
17870
|
var pp$1 = Parser.prototype;
|
|
17528
17871
|
var RegExpValidationState = function RegExpValidationState2(parser) {
|
|
17529
17872
|
this.parser = parser;
|
|
17530
|
-
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "");
|
|
17531
|
-
this.unicodeProperties = data[parser.options.ecmaVersion >=
|
|
17873
|
+
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : "");
|
|
17874
|
+
this.unicodeProperties = data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];
|
|
17532
17875
|
this.source = "";
|
|
17533
17876
|
this.flags = "";
|
|
17534
17877
|
this.start = 0;
|
|
17535
17878
|
this.switchU = false;
|
|
17879
|
+
this.switchV = false;
|
|
17536
17880
|
this.switchN = false;
|
|
17537
17881
|
this.pos = 0;
|
|
17538
17882
|
this.lastIntValue = 0;
|
|
@@ -17544,12 +17888,20 @@ var RegExpValidationState = function RegExpValidationState2(parser) {
|
|
|
17544
17888
|
this.backReferenceNames = [];
|
|
17545
17889
|
};
|
|
17546
17890
|
RegExpValidationState.prototype.reset = function reset(start3, pattern, flags) {
|
|
17891
|
+
var unicodeSets = flags.indexOf("v") !== -1;
|
|
17547
17892
|
var unicode = flags.indexOf("u") !== -1;
|
|
17548
17893
|
this.start = start3 | 0;
|
|
17549
17894
|
this.source = pattern + "";
|
|
17550
17895
|
this.flags = flags;
|
|
17551
|
-
|
|
17552
|
-
|
|
17896
|
+
if (unicodeSets && this.parser.options.ecmaVersion >= 15) {
|
|
17897
|
+
this.switchU = true;
|
|
17898
|
+
this.switchV = true;
|
|
17899
|
+
this.switchN = true;
|
|
17900
|
+
} else {
|
|
17901
|
+
this.switchU = unicode && this.parser.options.ecmaVersion >= 6;
|
|
17902
|
+
this.switchV = false;
|
|
17903
|
+
this.switchN = unicode && this.parser.options.ecmaVersion >= 9;
|
|
17904
|
+
}
|
|
17553
17905
|
};
|
|
17554
17906
|
RegExpValidationState.prototype.raise = function raise(message) {
|
|
17555
17907
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
|
|
@@ -17607,9 +17959,26 @@ RegExpValidationState.prototype.eat = function eat(ch2, forceU) {
|
|
|
17607
17959
|
}
|
|
17608
17960
|
return false;
|
|
17609
17961
|
};
|
|
17962
|
+
RegExpValidationState.prototype.eatChars = function eatChars(chs, forceU) {
|
|
17963
|
+
if (forceU === void 0)
|
|
17964
|
+
forceU = false;
|
|
17965
|
+
var pos = this.pos;
|
|
17966
|
+
for (var i = 0, list3 = chs; i < list3.length; i += 1) {
|
|
17967
|
+
var ch2 = list3[i];
|
|
17968
|
+
var current3 = this.at(pos, forceU);
|
|
17969
|
+
if (current3 === -1 || current3 !== ch2) {
|
|
17970
|
+
return false;
|
|
17971
|
+
}
|
|
17972
|
+
pos = this.nextIndex(pos, forceU);
|
|
17973
|
+
}
|
|
17974
|
+
this.pos = pos;
|
|
17975
|
+
return true;
|
|
17976
|
+
};
|
|
17610
17977
|
pp$1.validateRegExpFlags = function(state) {
|
|
17611
17978
|
var validFlags = state.validFlags;
|
|
17612
17979
|
var flags = state.flags;
|
|
17980
|
+
var u = false;
|
|
17981
|
+
var v = false;
|
|
17613
17982
|
for (var i = 0; i < flags.length; i++) {
|
|
17614
17983
|
var flag = flags.charAt(i);
|
|
17615
17984
|
if (validFlags.indexOf(flag) === -1) {
|
|
@@ -17618,6 +17987,15 @@ pp$1.validateRegExpFlags = function(state) {
|
|
|
17618
17987
|
if (flags.indexOf(flag, i + 1) > -1) {
|
|
17619
17988
|
this.raise(state.start, "Duplicate regular expression flag");
|
|
17620
17989
|
}
|
|
17990
|
+
if (flag === "u") {
|
|
17991
|
+
u = true;
|
|
17992
|
+
}
|
|
17993
|
+
if (flag === "v") {
|
|
17994
|
+
v = true;
|
|
17995
|
+
}
|
|
17996
|
+
}
|
|
17997
|
+
if (this.options.ecmaVersion >= 15 && u && v) {
|
|
17998
|
+
this.raise(state.start, "Invalid regular expression flag");
|
|
17621
17999
|
}
|
|
17622
18000
|
};
|
|
17623
18001
|
pp$1.validateRegExpPattern = function(state) {
|
|
@@ -18066,22 +18444,30 @@ pp$1.regexp_eatDecimalEscape = function(state) {
|
|
|
18066
18444
|
}
|
|
18067
18445
|
return false;
|
|
18068
18446
|
};
|
|
18447
|
+
var CharSetNone = 0;
|
|
18448
|
+
var CharSetOk = 1;
|
|
18449
|
+
var CharSetString = 2;
|
|
18069
18450
|
pp$1.regexp_eatCharacterClassEscape = function(state) {
|
|
18070
18451
|
var ch2 = state.current();
|
|
18071
18452
|
if (isCharacterClassEscape(ch2)) {
|
|
18072
18453
|
state.lastIntValue = -1;
|
|
18073
18454
|
state.advance();
|
|
18074
|
-
return
|
|
18455
|
+
return CharSetOk;
|
|
18075
18456
|
}
|
|
18076
|
-
|
|
18457
|
+
var negate = false;
|
|
18458
|
+
if (state.switchU && this.options.ecmaVersion >= 9 && ((negate = ch2 === 80) || ch2 === 112)) {
|
|
18077
18459
|
state.lastIntValue = -1;
|
|
18078
18460
|
state.advance();
|
|
18079
|
-
|
|
18080
|
-
|
|
18461
|
+
var result;
|
|
18462
|
+
if (state.eat(123) && (result = this.regexp_eatUnicodePropertyValueExpression(state)) && state.eat(125)) {
|
|
18463
|
+
if (negate && result === CharSetString) {
|
|
18464
|
+
state.raise("Invalid property name");
|
|
18465
|
+
}
|
|
18466
|
+
return result;
|
|
18081
18467
|
}
|
|
18082
18468
|
state.raise("Invalid property name");
|
|
18083
18469
|
}
|
|
18084
|
-
return
|
|
18470
|
+
return CharSetNone;
|
|
18085
18471
|
};
|
|
18086
18472
|
function isCharacterClassEscape(ch2) {
|
|
18087
18473
|
return ch2 === 100 || ch2 === 68 || ch2 === 115 || ch2 === 83 || ch2 === 119 || ch2 === 87;
|
|
@@ -18093,16 +18479,15 @@ pp$1.regexp_eatUnicodePropertyValueExpression = function(state) {
|
|
|
18093
18479
|
if (this.regexp_eatUnicodePropertyValue(state)) {
|
|
18094
18480
|
var value = state.lastStringValue;
|
|
18095
18481
|
this.regexp_validateUnicodePropertyNameAndValue(state, name2, value);
|
|
18096
|
-
return
|
|
18482
|
+
return CharSetOk;
|
|
18097
18483
|
}
|
|
18098
18484
|
}
|
|
18099
18485
|
state.pos = start3;
|
|
18100
18486
|
if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) {
|
|
18101
18487
|
var nameOrValue = state.lastStringValue;
|
|
18102
|
-
this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue);
|
|
18103
|
-
return true;
|
|
18488
|
+
return this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue);
|
|
18104
18489
|
}
|
|
18105
|
-
return
|
|
18490
|
+
return CharSetNone;
|
|
18106
18491
|
};
|
|
18107
18492
|
pp$1.regexp_validateUnicodePropertyNameAndValue = function(state, name2, value) {
|
|
18108
18493
|
if (!hasOwn(state.unicodeProperties.nonBinary, name2)) {
|
|
@@ -18113,9 +18498,13 @@ pp$1.regexp_validateUnicodePropertyNameAndValue = function(state, name2, value)
|
|
|
18113
18498
|
}
|
|
18114
18499
|
};
|
|
18115
18500
|
pp$1.regexp_validateUnicodePropertyNameOrValue = function(state, nameOrValue) {
|
|
18116
|
-
if (
|
|
18117
|
-
|
|
18501
|
+
if (state.unicodeProperties.binary.test(nameOrValue)) {
|
|
18502
|
+
return CharSetOk;
|
|
18503
|
+
}
|
|
18504
|
+
if (state.switchV && state.unicodeProperties.binaryOfStrings.test(nameOrValue)) {
|
|
18505
|
+
return CharSetString;
|
|
18118
18506
|
}
|
|
18507
|
+
state.raise("Invalid property name");
|
|
18119
18508
|
};
|
|
18120
18509
|
pp$1.regexp_eatUnicodePropertyName = function(state) {
|
|
18121
18510
|
var ch2 = 0;
|
|
@@ -18146,16 +18535,29 @@ pp$1.regexp_eatLoneUnicodePropertyNameOrValue = function(state) {
|
|
|
18146
18535
|
};
|
|
18147
18536
|
pp$1.regexp_eatCharacterClass = function(state) {
|
|
18148
18537
|
if (state.eat(91)) {
|
|
18149
|
-
state.eat(94);
|
|
18150
|
-
this.
|
|
18151
|
-
if (state.eat(93)) {
|
|
18152
|
-
|
|
18538
|
+
var negate = state.eat(94);
|
|
18539
|
+
var result = this.regexp_classContents(state);
|
|
18540
|
+
if (!state.eat(93)) {
|
|
18541
|
+
state.raise("Unterminated character class");
|
|
18153
18542
|
}
|
|
18154
|
-
|
|
18543
|
+
if (negate && result === CharSetString) {
|
|
18544
|
+
state.raise("Negated character class may contain strings");
|
|
18545
|
+
}
|
|
18546
|
+
return true;
|
|
18155
18547
|
}
|
|
18156
18548
|
return false;
|
|
18157
18549
|
};
|
|
18158
|
-
pp$1.
|
|
18550
|
+
pp$1.regexp_classContents = function(state) {
|
|
18551
|
+
if (state.current() === 93) {
|
|
18552
|
+
return CharSetOk;
|
|
18553
|
+
}
|
|
18554
|
+
if (state.switchV) {
|
|
18555
|
+
return this.regexp_classSetExpression(state);
|
|
18556
|
+
}
|
|
18557
|
+
this.regexp_nonEmptyClassRanges(state);
|
|
18558
|
+
return CharSetOk;
|
|
18559
|
+
};
|
|
18560
|
+
pp$1.regexp_nonEmptyClassRanges = function(state) {
|
|
18159
18561
|
while (this.regexp_eatClassAtom(state)) {
|
|
18160
18562
|
var left = state.lastIntValue;
|
|
18161
18563
|
if (state.eat(45) && this.regexp_eatClassAtom(state)) {
|
|
@@ -18210,6 +18612,168 @@ pp$1.regexp_eatClassEscape = function(state) {
|
|
|
18210
18612
|
}
|
|
18211
18613
|
return this.regexp_eatCharacterClassEscape(state) || this.regexp_eatCharacterEscape(state);
|
|
18212
18614
|
};
|
|
18615
|
+
pp$1.regexp_classSetExpression = function(state) {
|
|
18616
|
+
var result = CharSetOk, subResult;
|
|
18617
|
+
if (this.regexp_eatClassSetRange(state))
|
|
18618
|
+
;
|
|
18619
|
+
else if (subResult = this.regexp_eatClassSetOperand(state)) {
|
|
18620
|
+
if (subResult === CharSetString) {
|
|
18621
|
+
result = CharSetString;
|
|
18622
|
+
}
|
|
18623
|
+
var start3 = state.pos;
|
|
18624
|
+
while (state.eatChars([38, 38])) {
|
|
18625
|
+
if (state.current() !== 38 && (subResult = this.regexp_eatClassSetOperand(state))) {
|
|
18626
|
+
if (subResult !== CharSetString) {
|
|
18627
|
+
result = CharSetOk;
|
|
18628
|
+
}
|
|
18629
|
+
continue;
|
|
18630
|
+
}
|
|
18631
|
+
state.raise("Invalid character in character class");
|
|
18632
|
+
}
|
|
18633
|
+
if (start3 !== state.pos) {
|
|
18634
|
+
return result;
|
|
18635
|
+
}
|
|
18636
|
+
while (state.eatChars([45, 45])) {
|
|
18637
|
+
if (this.regexp_eatClassSetOperand(state)) {
|
|
18638
|
+
continue;
|
|
18639
|
+
}
|
|
18640
|
+
state.raise("Invalid character in character class");
|
|
18641
|
+
}
|
|
18642
|
+
if (start3 !== state.pos) {
|
|
18643
|
+
return result;
|
|
18644
|
+
}
|
|
18645
|
+
} else {
|
|
18646
|
+
state.raise("Invalid character in character class");
|
|
18647
|
+
}
|
|
18648
|
+
for (; ; ) {
|
|
18649
|
+
if (this.regexp_eatClassSetRange(state)) {
|
|
18650
|
+
continue;
|
|
18651
|
+
}
|
|
18652
|
+
subResult = this.regexp_eatClassSetOperand(state);
|
|
18653
|
+
if (!subResult) {
|
|
18654
|
+
return result;
|
|
18655
|
+
}
|
|
18656
|
+
if (subResult === CharSetString) {
|
|
18657
|
+
result = CharSetString;
|
|
18658
|
+
}
|
|
18659
|
+
}
|
|
18660
|
+
};
|
|
18661
|
+
pp$1.regexp_eatClassSetRange = function(state) {
|
|
18662
|
+
var start3 = state.pos;
|
|
18663
|
+
if (this.regexp_eatClassSetCharacter(state)) {
|
|
18664
|
+
var left = state.lastIntValue;
|
|
18665
|
+
if (state.eat(45) && this.regexp_eatClassSetCharacter(state)) {
|
|
18666
|
+
var right = state.lastIntValue;
|
|
18667
|
+
if (left !== -1 && right !== -1 && left > right) {
|
|
18668
|
+
state.raise("Range out of order in character class");
|
|
18669
|
+
}
|
|
18670
|
+
return true;
|
|
18671
|
+
}
|
|
18672
|
+
state.pos = start3;
|
|
18673
|
+
}
|
|
18674
|
+
return false;
|
|
18675
|
+
};
|
|
18676
|
+
pp$1.regexp_eatClassSetOperand = function(state) {
|
|
18677
|
+
if (this.regexp_eatClassSetCharacter(state)) {
|
|
18678
|
+
return CharSetOk;
|
|
18679
|
+
}
|
|
18680
|
+
return this.regexp_eatClassStringDisjunction(state) || this.regexp_eatNestedClass(state);
|
|
18681
|
+
};
|
|
18682
|
+
pp$1.regexp_eatNestedClass = function(state) {
|
|
18683
|
+
var start3 = state.pos;
|
|
18684
|
+
if (state.eat(91)) {
|
|
18685
|
+
var negate = state.eat(94);
|
|
18686
|
+
var result = this.regexp_classContents(state);
|
|
18687
|
+
if (state.eat(93)) {
|
|
18688
|
+
if (negate && result === CharSetString) {
|
|
18689
|
+
state.raise("Negated character class may contain strings");
|
|
18690
|
+
}
|
|
18691
|
+
return result;
|
|
18692
|
+
}
|
|
18693
|
+
state.pos = start3;
|
|
18694
|
+
}
|
|
18695
|
+
if (state.eat(92)) {
|
|
18696
|
+
var result$1 = this.regexp_eatCharacterClassEscape(state);
|
|
18697
|
+
if (result$1) {
|
|
18698
|
+
return result$1;
|
|
18699
|
+
}
|
|
18700
|
+
state.pos = start3;
|
|
18701
|
+
}
|
|
18702
|
+
return null;
|
|
18703
|
+
};
|
|
18704
|
+
pp$1.regexp_eatClassStringDisjunction = function(state) {
|
|
18705
|
+
var start3 = state.pos;
|
|
18706
|
+
if (state.eatChars([92, 113])) {
|
|
18707
|
+
if (state.eat(123)) {
|
|
18708
|
+
var result = this.regexp_classStringDisjunctionContents(state);
|
|
18709
|
+
if (state.eat(125)) {
|
|
18710
|
+
return result;
|
|
18711
|
+
}
|
|
18712
|
+
} else {
|
|
18713
|
+
state.raise("Invalid escape");
|
|
18714
|
+
}
|
|
18715
|
+
state.pos = start3;
|
|
18716
|
+
}
|
|
18717
|
+
return null;
|
|
18718
|
+
};
|
|
18719
|
+
pp$1.regexp_classStringDisjunctionContents = function(state) {
|
|
18720
|
+
var result = this.regexp_classString(state);
|
|
18721
|
+
while (state.eat(124)) {
|
|
18722
|
+
if (this.regexp_classString(state) === CharSetString) {
|
|
18723
|
+
result = CharSetString;
|
|
18724
|
+
}
|
|
18725
|
+
}
|
|
18726
|
+
return result;
|
|
18727
|
+
};
|
|
18728
|
+
pp$1.regexp_classString = function(state) {
|
|
18729
|
+
var count = 0;
|
|
18730
|
+
while (this.regexp_eatClassSetCharacter(state)) {
|
|
18731
|
+
count++;
|
|
18732
|
+
}
|
|
18733
|
+
return count === 1 ? CharSetOk : CharSetString;
|
|
18734
|
+
};
|
|
18735
|
+
pp$1.regexp_eatClassSetCharacter = function(state) {
|
|
18736
|
+
var start3 = state.pos;
|
|
18737
|
+
if (state.eat(92)) {
|
|
18738
|
+
if (this.regexp_eatCharacterEscape(state) || this.regexp_eatClassSetReservedPunctuator(state)) {
|
|
18739
|
+
return true;
|
|
18740
|
+
}
|
|
18741
|
+
if (state.eat(98)) {
|
|
18742
|
+
state.lastIntValue = 8;
|
|
18743
|
+
return true;
|
|
18744
|
+
}
|
|
18745
|
+
state.pos = start3;
|
|
18746
|
+
return false;
|
|
18747
|
+
}
|
|
18748
|
+
var ch2 = state.current();
|
|
18749
|
+
if (ch2 < 0 || ch2 === state.lookahead() && isClassSetReservedDoublePunctuatorCharacter(ch2)) {
|
|
18750
|
+
return false;
|
|
18751
|
+
}
|
|
18752
|
+
if (isClassSetSyntaxCharacter(ch2)) {
|
|
18753
|
+
return false;
|
|
18754
|
+
}
|
|
18755
|
+
state.advance();
|
|
18756
|
+
state.lastIntValue = ch2;
|
|
18757
|
+
return true;
|
|
18758
|
+
};
|
|
18759
|
+
function isClassSetReservedDoublePunctuatorCharacter(ch2) {
|
|
18760
|
+
return ch2 === 33 || ch2 >= 35 && ch2 <= 38 || ch2 >= 42 && ch2 <= 44 || ch2 === 46 || ch2 >= 58 && ch2 <= 64 || ch2 === 94 || ch2 === 96 || ch2 === 126;
|
|
18761
|
+
}
|
|
18762
|
+
function isClassSetSyntaxCharacter(ch2) {
|
|
18763
|
+
return ch2 === 40 || ch2 === 41 || ch2 === 45 || ch2 === 47 || ch2 >= 91 && ch2 <= 93 || ch2 >= 123 && ch2 <= 125;
|
|
18764
|
+
}
|
|
18765
|
+
pp$1.regexp_eatClassSetReservedPunctuator = function(state) {
|
|
18766
|
+
var ch2 = state.current();
|
|
18767
|
+
if (isClassSetReservedPunctuator(ch2)) {
|
|
18768
|
+
state.lastIntValue = ch2;
|
|
18769
|
+
state.advance();
|
|
18770
|
+
return true;
|
|
18771
|
+
}
|
|
18772
|
+
return false;
|
|
18773
|
+
};
|
|
18774
|
+
function isClassSetReservedPunctuator(ch2) {
|
|
18775
|
+
return ch2 === 33 || ch2 === 35 || ch2 === 37 || ch2 === 38 || ch2 === 44 || ch2 === 45 || ch2 >= 58 && ch2 <= 62 || ch2 === 64 || ch2 === 96 || ch2 === 126;
|
|
18776
|
+
}
|
|
18213
18777
|
pp$1.regexp_eatClassControlLetter = function(state) {
|
|
18214
18778
|
var ch2 = state.current();
|
|
18215
18779
|
if (isDecimalDigit(ch2) || ch2 === 95) {
|
|
@@ -19052,7 +19616,6 @@ pp.readEscapedChar = function(inTemplate) {
|
|
|
19052
19616
|
codePos,
|
|
19053
19617
|
"Invalid escape sequence in template string"
|
|
19054
19618
|
);
|
|
19055
|
-
return null;
|
|
19056
19619
|
}
|
|
19057
19620
|
default:
|
|
19058
19621
|
if (ch2 >= 48 && ch2 <= 55) {
|
|
@@ -19123,7 +19686,7 @@ pp.readWord = function() {
|
|
|
19123
19686
|
}
|
|
19124
19687
|
return this.finishToken(type, word);
|
|
19125
19688
|
};
|
|
19126
|
-
var version = "8.
|
|
19689
|
+
var version = "8.9.0";
|
|
19127
19690
|
Parser.acorn = {
|
|
19128
19691
|
Parser,
|
|
19129
19692
|
version,
|
|
@@ -40227,14 +40790,15 @@ var blockElement = (content3, field, imageCallback) => {
|
|
|
40227
40790
|
const table = content3.props;
|
|
40228
40791
|
return {
|
|
40229
40792
|
type: "table",
|
|
40793
|
+
align: table.align,
|
|
40230
40794
|
children: table.tableRows.map((tableRow) => {
|
|
40231
40795
|
const tr2 = {
|
|
40232
40796
|
type: "tableRow",
|
|
40233
|
-
children: tableRow.tableCells.map(({
|
|
40797
|
+
children: tableRow.tableCells.map(({ value }) => {
|
|
40234
40798
|
return {
|
|
40235
40799
|
type: "tableCell",
|
|
40236
40800
|
children: eat2(
|
|
40237
|
-
|
|
40801
|
+
value?.children?.at(0)?.children || [],
|
|
40238
40802
|
field,
|
|
40239
40803
|
imageCallback
|
|
40240
40804
|
)
|
|
@@ -40896,14 +41460,15 @@ var blockElement2 = (content3, field, imageCallback) => {
|
|
|
40896
41460
|
const table = content3.props;
|
|
40897
41461
|
return {
|
|
40898
41462
|
type: "table",
|
|
41463
|
+
align: table.align,
|
|
40899
41464
|
children: table.tableRows.map((tableRow) => {
|
|
40900
41465
|
const tr2 = {
|
|
40901
41466
|
type: "tableRow",
|
|
40902
|
-
children: tableRow.tableCells.map(({
|
|
41467
|
+
children: tableRow.tableCells.map(({ value }) => {
|
|
40903
41468
|
return {
|
|
40904
41469
|
type: "tableCell",
|
|
40905
41470
|
children: eat3(
|
|
40906
|
-
|
|
41471
|
+
value?.children?.at(0)?.children || [],
|
|
40907
41472
|
field,
|
|
40908
41473
|
imageCallback
|
|
40909
41474
|
)
|
|
@@ -46055,14 +46620,14 @@ var ecma10BinaryProperties2 = ecma9BinaryProperties2 + " Extended_Pictographic";
|
|
|
46055
46620
|
var ecma11BinaryProperties2 = ecma10BinaryProperties2;
|
|
46056
46621
|
var ecma12BinaryProperties2 = ecma11BinaryProperties2 + " EBase EComp EMod EPres ExtPict";
|
|
46057
46622
|
var ecma13BinaryProperties2 = ecma12BinaryProperties2;
|
|
46058
|
-
var
|
|
46623
|
+
var ecma14BinaryProperties2 = ecma13BinaryProperties2;
|
|
46059
46624
|
var unicodeBinaryProperties2 = {
|
|
46060
46625
|
9: ecma9BinaryProperties2,
|
|
46061
46626
|
10: ecma10BinaryProperties2,
|
|
46062
46627
|
11: ecma11BinaryProperties2,
|
|
46063
46628
|
12: ecma12BinaryProperties2,
|
|
46064
46629
|
13: ecma13BinaryProperties2,
|
|
46065
|
-
14:
|
|
46630
|
+
14: ecma14BinaryProperties2
|
|
46066
46631
|
};
|
|
46067
46632
|
var unicodeGeneralCategoryValues2 = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu";
|
|
46068
46633
|
var ecma9ScriptValues2 = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb";
|
|
@@ -46070,14 +46635,14 @@ var ecma10ScriptValues2 = ecma9ScriptValues2 + " Dogra Dogr Gunjala_Gondi Gong H
|
|
|
46070
46635
|
var ecma11ScriptValues2 = ecma10ScriptValues2 + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
|
|
46071
46636
|
var ecma12ScriptValues2 = ecma11ScriptValues2 + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
|
|
46072
46637
|
var ecma13ScriptValues2 = ecma12ScriptValues2 + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
|
|
46073
|
-
var
|
|
46638
|
+
var ecma14ScriptValues2 = ecma13ScriptValues2 + " Kawi Nag_Mundari Nagm";
|
|
46074
46639
|
var unicodeScriptValues2 = {
|
|
46075
46640
|
9: ecma9ScriptValues2,
|
|
46076
46641
|
10: ecma10ScriptValues2,
|
|
46077
46642
|
11: ecma11ScriptValues2,
|
|
46078
46643
|
12: ecma12ScriptValues2,
|
|
46079
46644
|
13: ecma13ScriptValues2,
|
|
46080
|
-
14:
|
|
46645
|
+
14: ecma14ScriptValues2
|
|
46081
46646
|
};
|
|
46082
46647
|
var data2 = {};
|
|
46083
46648
|
function buildUnicodeData2(ecmaVersion) {
|
|
@@ -48239,11 +48804,12 @@ var remarkToSlate = (root3, field, imageCallback, raw, skipMDXProcess) => {
|
|
|
48239
48804
|
children: [{ type: "text", text: "" }],
|
|
48240
48805
|
name: "table",
|
|
48241
48806
|
props: {
|
|
48807
|
+
align: content4.align?.filter((item) => !!item),
|
|
48242
48808
|
tableRows: content4.children.map((child) => {
|
|
48243
48809
|
return {
|
|
48244
48810
|
tableCells: child.children.map((child2) => {
|
|
48245
48811
|
return {
|
|
48246
|
-
|
|
48812
|
+
value: {
|
|
48247
48813
|
type: "root",
|
|
48248
48814
|
children: [
|
|
48249
48815
|
{
|