sveast 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -9
- package/index.d.ts +37 -14
- package/index.js +1 -1
- package/is-valid-type.js +1 -0
- package/package.json +1 -1
- package/parse-module.js +1 -1
- package/parse.js +2 -2
- package/shared-rhdkc546.js +12 -0
- package/shared-xbh87rns.js +10 -0
- package/shared-6xjb6x65.js +0 -64
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var oe=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],Lt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],he="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",_t="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",pt={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",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},lt="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",ue={5:lt,"5module":lt+" export import",6:lt+" const class extends export import super"},Rt=/^in(stanceof)?$/,ce=new RegExp("["+_t+"]"),pe=new RegExp("["+_t+he+"]");function ft(t,r){var o=65536;for(var u=0;u<r.length;u+=2){if(o+=r[u],o>t)return!1;if(o+=r[u+1],o>=t)return!0}return!1}function s(t,r){if(t<65)return t===36;if(t<91)return!0;if(t<97)return t===95;if(t<123)return!0;if(t<=65535)return t>=170&&ce.test(String.fromCharCode(t));if(r===!1)return!1;return ft(t,Lt)}function a(t,r){if(t<48)return t===36;if(t<58)return!0;if(t<65)return!1;if(t<91)return!0;if(t<97)return t===95;if(t<123)return!0;if(t<=65535)return t>=170&&pe.test(String.fromCharCode(t));if(r===!1)return!1;return ft(t,Lt)||ft(t,oe)}var w=function(r,o){if(o===void 0)o={};this.label=r,this.keyword=o.keyword,this.beforeExpr=!!o.beforeExpr,this.startsExpr=!!o.startsExpr,this.isLoop=!!o.isLoop,this.isAssign=!!o.isAssign,this.prefix=!!o.prefix,this.postfix=!!o.postfix,this.binop=o.binop||null,this.updateContext=null};function L(t,r){return new w(t,{beforeExpr:!0,binop:r})}var _={beforeExpr:!0},P={startsExpr:!0},c={};function S(t,r){if(r===void 0)r={};return r.keyword=t,c[t]=new w(t,r)}var e={num:new w("num",P),regexp:new w("regexp",P),string:new w("string",P),name:new w("name",P),privateId:new w("privateId",P),eof:new w("eof"),bracketL:new w("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new w("]"),braceL:new w("{",{beforeExpr:!0,startsExpr:!0}),braceR:new w("}"),parenL:new w("(",{beforeExpr:!0,startsExpr:!0}),parenR:new w(")"),comma:new w(",",_),semi:new w(";",_),colon:new w(":",_),dot:new w("."),question:new w("?",_),questionDot:new w("?."),arrow:new w("=>",_),template:new w("template"),invalidTemplate:new w("invalidTemplate"),ellipsis:new w("...",_),backQuote:new w("`",P),dollarBraceL:new w("${",{beforeExpr:!0,startsExpr:!0}),eq:new w("=",{beforeExpr:!0,isAssign:!0}),assign:new w("_=",{beforeExpr:!0,isAssign:!0}),incDec:new w("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new w("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:L("||",1),logicalAND:L("&&",2),bitwiseOR:L("|",3),bitwiseXOR:L("^",4),bitwiseAND:L("&",5),equality:L("==/!=/===/!==",6),relational:L("</>/<=/>=",7),bitShift:L("<</>>/>>>",8),plusMin:new w("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:L("%",10),star:L("*",10),slash:L("/",10),starstar:new w("**",{beforeExpr:!0}),coalesce:L("??",1),_break:S("break"),_case:S("case",_),_catch:S("catch"),_continue:S("continue"),_debugger:S("debugger"),_default:S("default",_),_do:S("do",{isLoop:!0,beforeExpr:!0}),_else:S("else",_),_finally:S("finally"),_for:S("for",{isLoop:!0}),_function:S("function",P),_if:S("if"),_return:S("return",_),_switch:S("switch"),_throw:S("throw",_),_try:S("try"),_var:S("var"),_const:S("const"),_while:S("while",{isLoop:!0}),_with:S("with"),_new:S("new",{beforeExpr:!0,startsExpr:!0}),_this:S("this",P),_super:S("super",P),_class:S("class",P),_extends:S("extends",_),_export:S("export"),_import:S("import",P),_null:S("null",P),_true:S("true",P),_false:S("false",P),_in:S("in",{beforeExpr:!0,binop:7}),_instanceof:S("instanceof",{beforeExpr:!0,binop:7}),_typeof:S("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:S("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:S("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},I=/\r\n?|\n|\u2028|\u2029/,le=new RegExp(I.source,"g");function z(t){return t===10||t===13||t===8232||t===8233}function Vt(t,r,o){if(o===void 0)o=t.length;for(var u=r;u<o;u++){var p=t.charCodeAt(u);if(z(p))return u<o-1&&p===13&&t.charCodeAt(u+1)===10?u+2:u+1}return-1}var Ot=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,T=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ft=Object.prototype,{hasOwnProperty:fe,toString:de}=Ft,G=Object.hasOwn||function(t,r){return fe.call(t,r)},$t=Array.isArray||function(t){return de.call(t)==="[object Array]"},Pt=Object.create(null);function Z(t){return Pt[t]||(Pt[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function it(t){if(t<=65535)return String.fromCharCode(t);return t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320)}var me=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,H=function(r,o){this.line=r,this.column=o};H.prototype.offset=function(r){return new H(this.line,this.column+r)};var at=function(r,o,u){if(this.start=o,this.end=u,r.sourceFile!==null)this.source=r.sourceFile};function Bt(t,r){for(var o=1,u=0;;){var p=Vt(t,u,r);if(p<0)return new H(o,r-u);++o,u=p}}var dt={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},It=!1;function ye(t){var r={};for(var o in dt)r[o]=t&&G(t,o)?t[o]:dt[o];if(r.ecmaVersion==="latest")r.ecmaVersion=1e8;else if(r.ecmaVersion==null){if(!It&&typeof console==="object"&&console.warn)It=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
2
|
+
Defaulting to 2020, but this will stop working in the future.`);r.ecmaVersion=11}else if(r.ecmaVersion>=2015)r.ecmaVersion-=2009;if(r.allowReserved==null)r.allowReserved=r.ecmaVersion<5;if(!t||t.allowHashBang==null)r.allowHashBang=r.ecmaVersion>=14;if($t(r.onToken)){var u=r.onToken;r.onToken=function(p){return u.push(p)}}if($t(r.onComment))r.onComment=xe(r,r.onComment);if(r.sourceType==="commonjs"&&r.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return r}function xe(t,r){return function(o,u,p,n,h,d){var l={type:o?"Block":"Line",value:u,start:p,end:n};if(t.locations)l.loc=new at(this,h,d);if(t.ranges)l.range=[p,n];r.push(l)}}var M=1,D=2,xt=4,Mt=8,bt=16,Dt=32,rt=64,qt=128,q=256,Q=512,Ut=1024,nt=M|D|q;function vt(t,r){return D|(t?xt:0)|(r?Mt:0)}var tt=0,kt=1,F=2,jt=3,zt=4,Wt=5,i=function(r,o,u){this.options=r=ye(r),this.sourceFile=r.sourceFile,this.keywords=Z(ue[r.ecmaVersion>=6?6:r.sourceType==="module"?"5module":5]);var p="";if(r.allowReserved!==!0){if(p=pt[r.ecmaVersion>=6?6:r.ecmaVersion===5?5:3],r.sourceType==="module")p+=" await"}this.reservedWords=Z(p);var n=(p?p+" ":"")+pt.strict;if(this.reservedWordsStrict=Z(n),this.reservedWordsStrictBind=Z(n+" "+pt.strictBind),this.input=String(o),this.containsEsc=!1,this.pos=u||0,this.curLine=1,r.startLocation)this.lineStart=this.pos-r.startLocation.column,this.curLine=r.startLocation.line;else if(u){if(this.lineStart=this.input.lastIndexOf(`
|
|
3
|
+
`,u-1)+1,this.options.locations)this.curLine=this.input.slice(0,this.lineStart).split(I).length}else this.lineStart=0;if(this.type=e.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=r.sourceType==="module",this.strict=this.inModule||r.strict===!0||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&r.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?D:M),this.regexpState=null,this.privateNameStack=[]},R={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};i.prototype.parse=function(){var r=this,o=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return r.parseTopLevel(o)})};R.inFunction.get=function(){return(this.currentVarScope().flags&D)>0};R.inGenerator.get=function(){return(this.currentVarScope().flags&Mt)>0};R.inAsync.get=function(){return(this.currentVarScope().flags&xt)>0};R.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var r=this.scopeStack[t],o=r.flags;if(o&(q|Q))return!1;if(o&D)return(o&xt)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};R.allowReturn.get=function(){if(this.inFunction)return!0;if(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&M)return!0;return!1};R.allowSuper.get=function(){var t=this.currentThisScope(),r=t.flags;return(r&rt)>0||this.options.allowSuperOutsideMethod};R.allowDirectSuper.get=function(){return(this.currentThisScope().flags&qt)>0};R.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};R.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var r=this.scopeStack[t],o=r.flags;if(o&(q|Q)||o&D&&!(o&bt))return!0}return!1};R.allowUsing.get=function(){var t=this.currentScope(),r=t.flags;if(r&Ut)return!1;if(!this.inModule&&r&M)return!1;return!0};R.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&q)>0};i.extend=function(){var r=[],o=arguments.length;while(o--)r[o]=arguments[o];var u=this;for(var p=0;p<r.length;p++)u=r[p](u);return u};i.parse=function(r,o){return new this(o,r).parse()};i.parseExpressionAt=function(r,o,u){var p=new this(u,r,o);return p.nextToken(),p.parseExpression()};i.tokenizer=function(r,o){return new this(o,r)};Object.defineProperties(i.prototype,R);var E=i.prototype,be=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;E.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){T.lastIndex=t,t+=T.exec(this.input)[0].length;var r=be.exec(this.input.slice(t));if(!r)return!1;if((r[1]||r[2])==="use strict"){T.lastIndex=t+r[0].length;var o=T.exec(this.input),u=o.index+o[0].length,p=this.input.charAt(u);return p===";"||p==="}"||I.test(o[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(p)||p==="!"&&this.input.charAt(u+1)==="=")}if(t+=r[0].length,T.lastIndex=t,t+=T.exec(this.input)[0].length,this.input[t]===";")t++}};E.eat=function(t){if(this.type===t)return this.next(),!0;else return!1};E.isContextual=function(t){return this.type===e.name&&this.value===t&&!this.containsEsc};E.eatContextual=function(t){if(!this.isContextual(t))return!1;return this.next(),!0};E.catchStackOverflow=function(t){try{return t()}catch(r){if(r instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(r.message)||/\btoo much recursion\b/i.test(r.message)))this.raise(this.start,"Not enough stack space to parse input");else throw r}};E.expectContextual=function(t){if(!this.eatContextual(t))this.unexpected()};E.canInsertSemicolon=function(){return this.type===e.eof||this.type===e.braceR||I.test(this.input.slice(this.lastTokEnd,this.start))};E.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};E.semicolon=function(){if(!this.eat(e.semi)&&!this.insertSemicolon())this.unexpected()};E.afterTrailingComma=function(t,r){if(this.type===t){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!r)this.next();return!0}};E.expect=function(t){this.eat(t)||this.unexpected()};E.unexpected=function(t){this.raise(t!=null?t:this.start,"Unexpected token")};var ot=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};E.checkPatternErrors=function(t,r){if(!t)return;if(t.trailingComma>-1)this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var o=r?t.parenthesizedAssign:t.parenthesizedBind;if(o>-1)this.raiseRecoverable(o,r?"Assigning to rvalue":"Parenthesized pattern")};E.checkExpressionErrors=function(t,r){if(!t)return!1;var{shorthandAssign:o,doubleProto:u}=t;if(!r)return o>=0||u>=0;if(o>=0)this.raise(o,"Shorthand property assignments are valid only in destructuring patterns");if(u>=0)this.raiseRecoverable(u,"Redefinition of __proto__ property")};E.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos))this.raise(this.yieldPos,"Yield expression cannot be a default value");if(this.awaitPos)this.raise(this.awaitPos,"Await expression cannot be a default value")};E.isSimpleAssignTarget=function(t){if(t.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(t.expression);return t.type==="Identifier"||t.type==="MemberExpression"};var b=i.prototype;b.parseTopLevel=function(t){var r=Object.create(null);if(!t.body)t.body=[];while(this.type!==e.eof){var o=this.parseStatement(null,!0,r);t.body.push(o)}if(this.inModule)for(var u=0,p=Object.keys(this.undefinedExports);u<p.length;u+=1){var n=p[u];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(t,"Program")};var gt={kind:"loop"},ve={kind:"switch"};b.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;T.lastIndex=this.pos;var r=T.exec(this.input),o=this.pos+r[0].length,u=this.fullCharCodeAt(o);if(u===91||u===92)return!0;if(t)return!1;if(u===123)return!0;if(s(u)){var p=o;do o+=u<=65535?1:2;while(a(u=this.fullCharCodeAt(o)));if(u===92)return!0;var n=this.input.slice(p,o);if(!Rt.test(n))return!0}return!1};b.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;T.lastIndex=this.pos;var t=T.exec(this.input),r=this.pos+t[0].length,o;return!I.test(this.input.slice(this.pos,r))&&this.input.slice(r,r+8)==="function"&&(r+8===this.input.length||!(a(o=this.fullCharCodeAt(r+8))||o===92))};b.isUsingKeyword=function(t,r){if(this.options.ecmaVersion<17||!this.isContextual(t?"await":"using"))return!1;T.lastIndex=this.pos;var o=T.exec(this.input),u=this.pos+o[0].length;if(I.test(this.input.slice(this.pos,u)))return!1;if(t){var p=u+5,n;if(this.input.slice(u,p)!=="using"||p===this.input.length||a(n=this.fullCharCodeAt(p))||n===92)return!1;T.lastIndex=p;var h=T.exec(this.input);if(u=p+h[0].length,h&&I.test(this.input.slice(p,u)))return!1}var d=this.fullCharCodeAt(u);if(!s(d)&&d!==92)return!1;var l=u;do u+=d<=65535?1:2;while(a(d=this.fullCharCodeAt(u)));if(d===92)return!0;var m=this.input.slice(l,u);if(Rt.test(m))return!1;if(r&&!t&&m==="of"){T.lastIndex=u;var y=T.exec(this.input);if(u=u+y[0].length,this.input.charCodeAt(u)!==61||(d=this.input.charCodeAt(u+1))===61||d===62)return!1}return!0};b.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)};b.isUsing=function(t){return this.isUsingKeyword(!1,t)};b.parseStatement=function(t,r,o){var u=this.type,p=this.startNode(),n;if(this.isLet(t))u=e._var,n="let";switch(u){case e._break:case e._continue:return this.parseBreakContinueStatement(p,u.keyword);case e._debugger:return this.parseDebuggerStatement(p);case e._do:return this.parseDoStatement(p);case e._for:return this.parseForStatement(p);case e._function:if(t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(p,!1,!t);case e._class:if(t)this.unexpected();return this.parseClass(p,!0);case e._if:return this.parseIfStatement(p);case e._return:return this.parseReturnStatement(p);case e._switch:return this.parseSwitchStatement(p);case e._throw:return this.parseThrowStatement(p);case e._try:return this.parseTryStatement(p);case e._const:case e._var:if(n=n||this.value,t&&n!=="var")this.unexpected();return this.parseVarStatement(p,n);case e._while:return this.parseWhileStatement(p);case e._with:return this.parseWithStatement(p);case e.braceL:return this.parseBlock(!0,p);case e.semi:return this.parseEmptyStatement(p);case e._export:case e._import:if(this.options.ecmaVersion>10&&u===e._import){T.lastIndex=this.pos;var h=T.exec(this.input),d=this.pos+h[0].length,l=this.input.charCodeAt(d);if(l===40||l===46)return this.parseExpressionStatement(p,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!r)this.raise(this.start,"'import' and 'export' may only appear at the top level");if(!this.inModule)this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}return u===e._import?this.parseImport(p):this.parseExport(p,o);default:if(this.isAsyncFunction()){if(t)this.unexpected();return this.next(),this.parseFunctionStatement(p,!0,!t)}var m=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(m){if(!this.allowUsing)this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement");if(t)this.raise(this.start,"Using declaration is not allowed in single-statement positions");if(m==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.next(),this.parseVar(p,!1,m),this.semicolon(),this.finishNode(p,"VariableDeclaration")}var y=this.value,x=this.parseExpression();if(u===e.name&&x.type==="Identifier"&&this.eat(e.colon))return this.parseLabeledStatement(p,y,x,t);else return this.parseExpressionStatement(p,x)}};b.parseBreakContinueStatement=function(t,r){var o=r==="break";if(this.next(),this.eat(e.semi)||this.insertSemicolon())t.label=null;else if(this.type!==e.name)this.unexpected();else t.label=this.parseIdent(),this.semicolon();var u=0;for(;u<this.labels.length;++u){var p=this.labels[u];if(t.label==null||p.name===t.label.name){if(p.kind!=null&&(o||p.kind==="loop"))break;if(t.label&&o)break}}if(u===this.labels.length)this.raise(t.start,"Unsyntactic "+r);return this.finishNode(t,o?"BreakStatement":"ContinueStatement")};b.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")};b.parseDoStatement=function(t){if(this.next(),this.labels.push(gt),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(e._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(e.semi);else this.semicolon();return this.finishNode(t,"DoWhileStatement")};b.parseForStatement=function(t){this.next();var r=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(gt),this.enterScope(0),this.expect(e.parenL),this.type===e.semi){if(r>-1)this.unexpected(r);return this.parseFor(t,null)}var o=this.isLet();if(this.type===e._var||this.type===e._const||o){var u=this.startNode(),p=o?"let":this.value;return this.next(),this.parseVar(u,!0,p),this.finishNode(u,"VariableDeclaration"),this.parseForAfterInit(t,u,r)}var n=this.isContextual("let"),h=!1,d=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(d){var l=this.startNode();if(this.next(),d==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.parseVar(l,!0,d),this.finishNode(l,"VariableDeclaration"),this.parseForAfterInit(t,l,r)}var m=this.containsEsc,y=new ot,x=this.start,v=r>-1?this.parseExprSubscripts(y,"await"):this.parseExpression(!0,y);if(this.type===e._in||(h=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(r>-1){if(this.type===e._in)this.unexpected(r);t.await=!0}else if(h&&this.options.ecmaVersion>=8){if(v.start===x&&!m&&v.type==="Identifier"&&v.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)t.await=!1}if(n&&h)this.raise(v.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(v,!1,y),this.checkLValPattern(v),this.parseForIn(t,v)}else this.checkExpressionErrors(y,!0);if(r>-1)this.unexpected(r);return this.parseFor(t,v)};b.parseForAfterInit=function(t,r,o){if((this.type===e._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&r.declarations.length===1){if(this.type===e._in){if((r.kind==="using"||r.kind==="await using")&&!r.declarations[0].init)this.raise(this.start,"Using declaration is not allowed in for-in loops");if(this.options.ecmaVersion>=9&&o>-1)this.unexpected(o)}else if(this.options.ecmaVersion>=9)t.await=o>-1;return this.parseForIn(t,r)}if(o>-1)this.unexpected(o);return this.parseFor(t,r)};b.parseFunctionStatement=function(t,r,o){return this.next(),this.parseFunction(t,K|(o?0:mt),!1,r)};b.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(e._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")};b.parseReturnStatement=function(t){if(!this.allowReturn)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(e.semi)||this.insertSemicolon())t.argument=null;else t.argument=this.parseExpression(),this.semicolon();return this.finishNode(t,"ReturnStatement")};b.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(e.braceL),this.labels.push(ve),this.enterScope(Ut);var r;for(var o=!1;this.type!==e.braceR;)if(this.type===e._case||this.type===e._default){var u=this.type===e._case;if(r)this.finishNode(r,"SwitchCase");if(t.cases.push(r=this.startNode()),r.consequent=[],this.next(),u)r.test=this.parseExpression();else{if(o)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");o=!0,r.test=null}this.expect(e.colon)}else{if(!r)this.unexpected();r.consequent.push(this.parseStatement(null))}if(this.exitScope(),r)this.finishNode(r,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")};b.parseThrowStatement=function(t){if(this.next(),I.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var ke=[];b.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),r=t.type==="Identifier";return this.enterScope(r?Dt:0),this.checkLValPattern(t,r?zt:F),this.expect(e.parenR),t};b.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===e._catch){var r=this.startNode();if(this.next(),this.eat(e.parenL))r.param=this.parseCatchClauseParam();else{if(this.options.ecmaVersion<10)this.unexpected();r.param=null,this.enterScope(0)}r.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(r,"CatchClause")}if(t.finalizer=this.eat(e._finally)?this.parseBlock():null,!t.handler&&!t.finalizer)this.raise(t.start,"Missing catch or finally clause");return this.finishNode(t,"TryStatement")};b.parseVarStatement=function(t,r,o){return this.next(),this.parseVar(t,!1,r,o),this.semicolon(),this.finishNode(t,"VariableDeclaration")};b.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(gt),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")};b.parseWithStatement=function(t){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")};b.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")};b.parseLabeledStatement=function(t,r,o,u){for(var p=0,n=this.labels;p<n.length;p+=1){var h=n[p];if(h.name===r)this.raise(o.start,"Label '"+r+"' is already declared")}var d=this.type.isLoop?"loop":this.type===e._switch?"switch":null;for(var l=this.labels.length-1;l>=0;l--){var m=this.labels[l];if(m.statementStart===t.start)m.statementStart=this.start,m.kind=d;else break}return this.labels.push({name:r,kind:d,statementStart:this.start}),t.body=this.parseStatement(u?u.indexOf("label")===-1?u+"label":u:"label"),this.labels.pop(),t.label=o,this.finishNode(t,"LabeledStatement")};b.parseExpressionStatement=function(t,r){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")};b.parseBlock=function(t,r,o){if(t===void 0)t=!0;if(r===void 0)r=this.startNode();if(r.body=[],this.expect(e.braceL),t)this.enterScope(0);while(this.type!==e.braceR){var u=this.parseStatement(null);r.body.push(u)}if(o)this.strict=!1;if(this.next(),t)this.exitScope();return this.finishNode(r,"BlockStatement")};b.parseFor=function(t,r){return t.init=r,this.expect(e.semi),t.test=this.type===e.semi?null:this.parseExpression(),this.expect(e.semi),t.update=this.type===e.parenR?null:this.parseExpression(),this.expect(e.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")};b.parseForIn=function(t,r){var o=this.type===e._in;if(this.next(),r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!o||this.options.ecmaVersion<8||this.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier"))this.raise(r.start,(o?"for-in":"for-of")+" loop variable declaration may not have an initializer");return t.left=r,t.right=o?this.parseExpression():this.parseMaybeAssign(),this.expect(e.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,o?"ForInStatement":"ForOfStatement")};b.parseVar=function(t,r,o,u){t.declarations=[],t.kind=o;for(;;){var p=this.startNode();if(this.parseVarId(p,o),this.eat(e.eq))p.init=this.parseMaybeAssign(r);else if(!u&&o==="const"&&!(this.type===e._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!u&&(o==="using"||o==="await using")&&this.options.ecmaVersion>=17&&this.type!==e._in&&!this.isContextual("of"))this.raise(this.lastTokEnd,"Missing initializer in "+o+" declaration");else if(!u&&p.id.type!=="Identifier"&&!(r&&(this.type===e._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else p.init=null;if(t.declarations.push(this.finishNode(p,"VariableDeclarator")),!this.eat(e.comma))break}return t};b.parseVarId=function(t,r){t.id=r==="using"||r==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(t.id,r==="var"?kt:F,!1)};var K=1,mt=2,Kt=4;b.parseFunction=function(t,r,o,u,p){if(this.initFunction(t),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!u){if(this.type===e.star&&r&mt)this.unexpected();t.generator=this.eat(e.star)}if(this.options.ecmaVersion>=8)t.async=!!u;if(r&K){if(t.id=r&Kt&&this.type!==e.name?null:this.parseIdent(),t.id&&!(r&mt))this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?kt:F:jt)}var n=this.yieldPos,h=this.awaitPos,d=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(vt(t.async,t.generator)),!(r&K))t.id=this.type===e.name?this.parseIdent():null;return this.parseFunctionParams(t),this.parseFunctionBody(t,o,!1,p),this.yieldPos=n,this.awaitPos=h,this.awaitIdentPos=d,this.finishNode(t,r&K?"FunctionDeclaration":"FunctionExpression")};b.parseFunctionParams=function(t){this.expect(e.parenL),t.params=this.parseBindingList(e.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};b.parseClass=function(t,r){this.next();var o=this.strict;this.strict=!0,this.parseClassId(t,r),this.parseClassSuper(t);var u=this.enterClassBody(),p=this.startNode(),n=!1;p.body=[],this.expect(e.braceL);while(this.type!==e.braceR){var h=this.parseClassElement(t.superClass!==null);if(h){if(p.body.push(h),h.type==="MethodDefinition"&&h.kind==="constructor"){if(n)this.raiseRecoverable(h.start,"Duplicate constructor in the same class");n=!0}else if(h.key&&h.key.type==="PrivateIdentifier"&&ge(u,h))this.raiseRecoverable(h.key.start,"Identifier '#"+h.key.name+"' has already been declared")}}return this.strict=o,this.next(),t.body=this.finishNode(p,"ClassBody"),this.exitClassBody(),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")};b.parseClassElement=function(t){if(this.eat(e.semi))return null;var r=this.options.ecmaVersion,o=this.startNode(),u="",p=!1,n=!1,h="method",d=!1;if(this.eatContextual("static")){if(r>=13&&this.eat(e.braceL))return this.parseClassStaticBlock(o),o;if(this.isClassElementNameStart()||this.type===e.star)d=!0;else u="static"}if(o.static=d,!u&&r>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===e.star)&&!this.canInsertSemicolon())n=!0;else u="async";if(!u&&(r>=9||!n)&&this.eat(e.star))p=!0;if(!u&&!n&&!p){var l=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())h=l;else u=l}if(u)o.computed=!1,o.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),o.key.name=u,this.finishNode(o.key,"Identifier");else this.parseClassElementName(o);if(r<13||this.type===e.parenL||h!=="method"||p||n){var m=!o.static&&et(o,"constructor"),y=m&&t;if(m&&h!=="method")this.raise(o.key.start,"Constructor can't have get/set modifier");o.kind=m?"constructor":h,this.parseClassMethod(o,p,n,y)}else this.parseClassField(o);return o};b.isClassElementNameStart=function(){return this.type===e.name||this.type===e.privateId||this.type===e.num||this.type===e.string||this.type===e.bracketL||this.type.keyword};b.parseClassElementName=function(t){if(this.type===e.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");t.computed=!1,t.key=this.parsePrivateIdent()}else this.parsePropertyName(t)};b.parseClassMethod=function(t,r,o,u){var p=t.key;if(t.kind==="constructor"){if(r)this.raise(p.start,"Constructor can't be a generator");if(o)this.raise(p.start,"Constructor can't be an async method")}else if(t.static&&et(t,"prototype"))this.raise(p.start,"Classes may not have a static property named prototype");var n=t.value=this.parseMethod(r,o,u);if(t.kind==="get"&&n.params.length!==0)this.raiseRecoverable(n.start,"getter should have no params");if(t.kind==="set"&&n.params.length!==1)this.raiseRecoverable(n.start,"setter should have exactly one param");if(t.kind==="set"&&n.params[0].type==="RestElement")this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params");return this.finishNode(t,"MethodDefinition")};b.parseClassField=function(t){if(et(t,"constructor"))this.raise(t.key.start,"Classes can't have a field named 'constructor'");else if(t.static&&et(t,"prototype"))this.raise(t.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(e.eq))this.enterScope(Q|rt),t.value=this.parseMaybeAssign(),this.exitScope();else t.value=null;return this.semicolon(),this.finishNode(t,"PropertyDefinition")};b.parseClassStaticBlock=function(t){t.body=[];var r=this.labels;this.labels=[],this.enterScope(q|rt);while(this.type!==e.braceR){var o=this.parseStatement(null);t.body.push(o)}return this.next(),this.exitScope(),this.labels=r,this.finishNode(t,"StaticBlock")};b.parseClassId=function(t,r){if(this.type===e.name){if(t.id=this.parseIdent(),r)this.checkLValSimple(t.id,F,!1)}else{if(r===!0)this.unexpected();t.id=null}};b.parseClassSuper=function(t){t.superClass=this.eat(e._extends)?this.parseExprSubscripts(null,!1):null};b.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared};b.exitClassBody=function(){var t=this.privateNameStack.pop(),{declared:r,used:o}=t;if(!this.options.checkPrivateFields)return;var u=this.privateNameStack.length,p=u===0?null:this.privateNameStack[u-1];for(var n=0;n<o.length;++n){var h=o[n];if(!G(r,h.name))if(p)p.used.push(h);else this.raiseRecoverable(h.start,"Private field '#"+h.name+"' must be declared in an enclosing class")}};function ge(t,r){var o=r.key.name,u=t[o],p="true";if(r.type==="MethodDefinition"&&(r.kind==="get"||r.kind==="set"))p=(r.static?"s":"i")+r.kind;if(u==="iget"&&p==="iset"||u==="iset"&&p==="iget"||u==="sget"&&p==="sset"||u==="sset"&&p==="sget")return t[o]="true",!1;else if(!u)return t[o]=p,!1;else return!0}function et(t,r){var{computed:o,key:u}=t;return!o&&(u.type==="Identifier"&&u.name===r||u.type==="Literal"&&u.value===r)}b.parseExportAllDeclaration=function(t,r){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))t.exported=this.parseModuleExportName(),this.checkExport(r,t.exported,this.lastTokStart);else t.exported=null;if(this.expectContextual("from"),this.type!==e.string)this.unexpected();if(t.source=this.parseExprAtom(),this.options.ecmaVersion>=16)t.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(t,"ExportAllDeclaration")};b.parseExport=function(t,r){if(this.next(),this.eat(e.star))return this.parseExportAllDeclaration(t,r);if(this.eat(e._default))return this.checkExport(r,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(t.declaration=this.parseExportDeclaration(t),t.declaration.type==="VariableDeclaration")this.checkVariableExport(r,t.declaration.declarations);else this.checkExport(r,t.declaration.id,t.declaration.id.start);if(t.specifiers=[],t.source=null,this.options.ecmaVersion>=16)t.attributes=[]}else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(r),this.eatContextual("from")){if(this.type!==e.string)this.unexpected();if(t.source=this.parseExprAtom(),this.options.ecmaVersion>=16)t.attributes=this.parseWithClause()}else{for(var o=0,u=t.specifiers;o<u.length;o+=1){var p=u[o];if(this.checkUnreserved(p.local),this.checkLocalExport(p.local),p.local.type==="Literal")this.raise(p.local.start,"A string literal cannot be used as an exported binding without `from`.")}if(t.source=null,this.options.ecmaVersion>=16)t.attributes=[]}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")};b.parseExportDeclaration=function(t){return this.parseStatement(null)};b.parseExportDefaultDeclaration=function(){var t;if(this.type===e._function||(t=this.isAsyncFunction())){var r=this.startNode();if(this.next(),t)this.next();return this.parseFunction(r,K|Kt,!1,t)}else if(this.type===e._class){var o=this.startNode();return this.parseClass(o,"nullableID")}else{var u=this.parseMaybeAssign();return this.semicolon(),u}};b.checkExport=function(t,r,o){if(!t)return;if(typeof r!=="string")r=r.type==="Identifier"?r.name:r.value;if(G(t,r))this.raiseRecoverable(o,"Duplicate export '"+r+"'");t[r]=!0};b.checkPatternExport=function(t,r){var o=r.type;if(o==="Identifier")this.checkExport(t,r,r.start);else if(o==="ObjectPattern")for(var u=0,p=r.properties;u<p.length;u+=1){var n=p[u];this.checkPatternExport(t,n)}else if(o==="ArrayPattern")for(var h=0,d=r.elements;h<d.length;h+=1){var l=d[h];if(l)this.checkPatternExport(t,l)}else if(o==="Property")this.checkPatternExport(t,r.value);else if(o==="AssignmentPattern")this.checkPatternExport(t,r.left);else if(o==="RestElement")this.checkPatternExport(t,r.argument)};b.checkVariableExport=function(t,r){if(!t)return;for(var o=0,u=r;o<u.length;o+=1){var p=u[o];this.checkPatternExport(t,p.id)}};b.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};b.parseExportSpecifier=function(t){var r=this.startNode();return r.local=this.parseModuleExportName(),r.exported=this.eatContextual("as")?this.parseModuleExportName():r.local,this.checkExport(t,r.exported,r.exported.start),this.finishNode(r,"ExportSpecifier")};b.parseExportSpecifiers=function(t){var r=[],o=!0;this.expect(e.braceL);while(!this.eat(e.braceR)){if(!o){if(this.expect(e.comma),this.afterTrailingComma(e.braceR))break}else o=!1;r.push(this.parseExportSpecifier(t))}return r};b.parseImport=function(t){if(this.next(),this.type===e.string)t.specifiers=ke,t.source=this.parseExprAtom();else t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===e.string?this.parseExprAtom():this.unexpected();if(this.options.ecmaVersion>=16)t.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(t,"ImportDeclaration")};b.parseImportSpecifier=function(){var t=this.startNode();if(t.imported=this.parseModuleExportName(),this.eatContextual("as"))t.local=this.parseIdent();else this.checkUnreserved(t.imported),t.local=t.imported;return this.checkLValSimple(t.local,F),this.finishNode(t,"ImportSpecifier")};b.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,F),this.finishNode(t,"ImportDefaultSpecifier")};b.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,F),this.finishNode(t,"ImportNamespaceSpecifier")};b.parseImportSpecifiers=function(){var t=[],r=!0;if(this.type===e.name){if(t.push(this.parseImportDefaultSpecifier()),!this.eat(e.comma))return t}if(this.type===e.star)return t.push(this.parseImportNamespaceSpecifier()),t;this.expect(e.braceL);while(!this.eat(e.braceR)){if(!r){if(this.expect(e.comma),this.afterTrailingComma(e.braceR))break}else r=!1;t.push(this.parseImportSpecifier())}return t};b.parseWithClause=function(){var t=[];if(!this.eat(e._with))return t;this.expect(e.braceL);var r={},o=!0;while(!this.eat(e.braceR)){if(!o){if(this.expect(e.comma),this.afterTrailingComma(e.braceR))break}else o=!1;var u=this.parseImportAttribute(),p=u.key.type==="Identifier"?u.key.name:u.key.value;if(G(r,p))this.raiseRecoverable(u.key.start,"Duplicate attribute key '"+p+"'");r[p]=!0,t.push(u)}return t};b.parseImportAttribute=function(){var t=this.startNode();if(t.key=this.type===e.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(e.colon),this.type!==e.string)this.unexpected();return t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")};b.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===e.string){var t=this.parseLiteral(this.value);if(me.test(t.value))this.raise(t.start,"An export name cannot include a lone surrogate.");return t}return this.parseIdent(!0)};b.adaptDirectivePrologue=function(t){for(var r=0;r<t.length&&this.isDirectiveCandidate(t[r]);++r)t[r].directive=t[r].expression.raw.slice(1,-1)};b.isDirectiveCandidate=function(t){return this.options.ecmaVersion>=5&&t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value==="string"&&(this.input[t.start]==='"'||this.input[t.start]==="'")};var V=i.prototype;V.toAssignable=function(t,r,o){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":if(this.inAsync&&t.name==="await")this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(t.type="ObjectPattern",o)this.checkPatternErrors(o,!0);for(var u=0,p=t.properties;u<p.length;u+=1){var n=p[u];if(this.toAssignable(n,r),n.type==="RestElement"&&(n.argument.type==="ArrayPattern"||n.argument.type==="ObjectPattern"))this.raise(n.argument.start,"Unexpected token")}break;case"Property":if(t.kind!=="init")this.raise(t.key.start,"Object pattern can't contain getter or setter");this.toAssignable(t.value,r);break;case"ArrayExpression":if(t.type="ArrayPattern",o)this.checkPatternErrors(o,!0);this.toAssignableList(t.elements,r);break;case"SpreadElement":if(t.type="RestElement",this.toAssignable(t.argument,r),t.argument.type==="AssignmentPattern")this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(t.operator!=="=")this.raise(t.left.end,"Only '=' operator can be used for specifying default value.");t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,r);break;case"ParenthesizedExpression":this.toAssignable(t.expression,r,o);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!r)break;default:this.raise(t.start,"Assigning to rvalue")}else if(o)this.checkPatternErrors(o,!0);return t};V.toAssignableList=function(t,r){var o=t.length;for(var u=0;u<o;u++){var p=t[u];if(p)this.toAssignable(p,r)}if(o){var n=t[o-1];if(this.options.ecmaVersion===6&&r&&n&&n.type==="RestElement"&&n.argument.type!=="Identifier")this.unexpected(n.argument.start)}return t};V.parseSpread=function(t){var r=this.startNode();return this.next(),r.argument=this.parseMaybeAssign(!1,t),this.finishNode(r,"SpreadElement")};V.parseRestBinding=function(){var t=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==e.name)this.unexpected();return t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")};V.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case e.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(e.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case e.braceL:return this.parseObj(!0)}return this.parseIdent()};V.parseBindingList=function(t,r,o,u){var p=[],n=!0;while(!this.eat(t)){if(n)n=!1;else this.expect(e.comma);if(r&&this.type===e.comma)p.push(null);else if(o&&this.afterTrailingComma(t))break;else if(this.type===e.ellipsis){var h=this.parseRestBinding();if(this.parseBindingListItem(h),p.push(h),this.type===e.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");this.expect(t);break}else p.push(this.parseAssignableListItem(u))}return p};V.parseAssignableListItem=function(t){var r=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(r),r};V.parseBindingListItem=function(t){return t};V.parseMaybeDefault=function(t,r,o){if(o=o||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(e.eq))return o;var u=this.startNodeAt(t,r);return u.left=o,u.right=this.parseMaybeAssign(),this.finishNode(u,"AssignmentPattern")};V.checkLValSimple=function(t,r,o){if(r===void 0)r=tt;var u=r!==tt;switch(t.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(t.name))this.raiseRecoverable(t.start,(u?"Binding ":"Assigning to ")+t.name+" in strict mode");if(u){if(r===F&&t.name==="let")this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name");if(o){if(G(o,t.name))this.raiseRecoverable(t.start,"Argument name clash");o[t.name]=!0}if(r!==Wt)this.declareName(t.name,r,t.start)}break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(u)this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":if(u)this.raiseRecoverable(t.start,"Binding parenthesized expression");return this.checkLValSimple(t.expression,r,o);default:this.raise(t.start,(u?"Binding":"Assigning to")+" rvalue")}};V.checkLValPattern=function(t,r,o){if(r===void 0)r=tt;switch(t.type){case"ObjectPattern":for(var u=0,p=t.properties;u<p.length;u+=1){var n=p[u];this.checkLValInnerPattern(n,r,o)}break;case"ArrayPattern":for(var h=0,d=t.elements;h<d.length;h+=1){var l=d[h];if(l)this.checkLValInnerPattern(l,r,o)}break;default:this.checkLValSimple(t,r,o)}};V.checkLValInnerPattern=function(t,r,o){if(r===void 0)r=tt;switch(t.type){case"Property":this.checkLValInnerPattern(t.value,r,o);break;case"AssignmentPattern":this.checkLValPattern(t.left,r,o);break;case"RestElement":this.checkLValPattern(t.argument,r,o);break;default:this.checkLValPattern(t,r,o)}};var O=function(r,o,u,p,n){this.token=r,this.isExpr=!!o,this.preserveSpace=!!u,this.override=p,this.generator=!!n},N={b_stat:new O("{",!1),b_expr:new O("{",!0),b_tmpl:new O("${",!1),p_stat:new O("(",!1),p_expr:new O("(",!0),q_tmpl:new O("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new O("function",!1),f_expr:new O("function",!0),f_expr_gen:new O("function",!0,!1,null,!0),f_gen:new O("function",!1,!1,null,!0)},W=i.prototype;W.initialContext=function(){return[N.b_stat]};W.curContext=function(){return this.context[this.context.length-1]};W.braceIsBlock=function(t){var r=this.curContext();if(r===N.f_expr||r===N.f_stat)return!0;if(t===e.colon&&(r===N.b_stat||r===N.b_expr))return!r.isExpr;if(t===e._return||t===e.name&&this.exprAllowed)return I.test(this.input.slice(this.lastTokEnd,this.start));if(t===e._else||t===e.semi||t===e.eof||t===e.parenR||t===e.arrow)return!0;if(t===e.braceL)return r===N.b_stat;if(t===e._var||t===e._const||t===e.name)return!1;return!this.exprAllowed};W.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var r=this.context[t];if(r.token==="function")return r.generator}return!1};W.updateContext=function(t){var r,o=this.type;if(o.keyword&&t===e.dot)this.exprAllowed=!1;else if(r=o.updateContext)r.call(this,t);else this.exprAllowed=o.beforeExpr};W.overrideContext=function(t){if(this.curContext()!==t)this.context[this.context.length-1]=t};e.parenR.updateContext=e.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var t=this.context.pop();if(t===N.b_stat&&this.curContext().token==="function")t=this.context.pop();this.exprAllowed=!t.isExpr};e.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?N.b_stat:N.b_expr),this.exprAllowed=!0};e.dollarBraceL.updateContext=function(){this.context.push(N.b_tmpl),this.exprAllowed=!0};e.parenL.updateContext=function(t){var r=t===e._if||t===e._for||t===e._with||t===e._while;this.context.push(r?N.p_stat:N.p_expr),this.exprAllowed=!0};e.incDec.updateContext=function(){};e._function.updateContext=e._class.updateContext=function(t){if(t.beforeExpr&&t!==e._else&&!(t===e.semi&&this.curContext()!==N.p_stat)&&!(t===e._return&&I.test(this.input.slice(this.lastTokEnd,this.start)))&&!((t===e.colon||t===e.braceL)&&this.curContext()===N.b_stat))this.context.push(N.f_expr);else this.context.push(N.f_stat);this.exprAllowed=!1};e.colon.updateContext=function(){if(this.curContext().token==="function")this.context.pop();this.exprAllowed=!0};e.backQuote.updateContext=function(){if(this.curContext()===N.q_tmpl)this.context.pop();else this.context.push(N.q_tmpl);this.exprAllowed=!1};e.star.updateContext=function(t){if(t===e._function){var r=this.context.length-1;if(this.context[r]===N.f_expr)this.context[r]=N.f_expr_gen;else this.context[r]=N.f_gen}this.exprAllowed=!0};e.name.updateContext=function(t){var r=!1;if(this.options.ecmaVersion>=6&&t!==e.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())r=!0}this.exprAllowed=r};var k=i.prototype;k.checkPropClash=function(t,r,o){if(this.options.ecmaVersion>=9&&t.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))return;var u=t.key,p;switch(u.type){case"Identifier":p=u.name;break;case"Literal":p=String(u.value);break;default:return}var n=t.kind;if(this.options.ecmaVersion>=6){if(p==="__proto__"&&n==="init"){if(r.proto)if(o){if(o.doubleProto<0)o.doubleProto=u.start}else this.raiseRecoverable(u.start,"Redefinition of __proto__ property");r.proto=!0}return}p="$"+p;var h=r[p];if(h){var d;if(n==="init")d=this.strict&&h.init||h.get||h.set;else d=h.init||h[n];if(d)this.raiseRecoverable(u.start,"Redefinition of property")}else h=r[p]={init:!1,get:!1,set:!1};h[n]=!0};k.parseExpression=function(t,r){var o=this;return this.catchStackOverflow(function(){var{start:u,startLoc:p}=o,n=o.parseMaybeAssign(t,r);if(o.type===e.comma){var h=o.startNodeAt(u,p);h.expressions=[n];while(o.eat(e.comma))h.expressions.push(o.parseMaybeAssign(t,r));return o.finishNode(h,"SequenceExpression")}return n})};k.parseMaybeAssign=function(t,r,o){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(t);else this.exprAllowed=!1;var u=!1,p=-1,n=-1,h=-1;if(r)p=r.parenthesizedAssign,n=r.trailingComma,h=r.doubleProto,r.parenthesizedAssign=r.trailingComma=-1;else r=new ot,u=!0;var d=this.start,l=this.startLoc;if(this.type===e.parenL||this.type===e.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=t==="await";var m=this.parseMaybeConditional(t,r);if(o)m=o.call(this,m,d,l);if(this.type.isAssign){var y=this.startNodeAt(d,l);if(y.operator=this.value,this.type===e.eq)m=this.toAssignable(m,!1,r);if(!u)r.parenthesizedAssign=r.trailingComma=r.doubleProto=-1;if(r.shorthandAssign>=m.start)r.shorthandAssign=-1;if(this.type===e.eq)this.checkLValPattern(m);else this.checkLValSimple(m);if(y.left=m,this.next(),y.right=this.parseMaybeAssign(t),h>-1)r.doubleProto=h;return this.finishNode(y,"AssignmentExpression")}else if(u)this.checkExpressionErrors(r,!0);if(p>-1)r.parenthesizedAssign=p;if(n>-1)r.trailingComma=n;return m};k.parseMaybeConditional=function(t,r){var o=this.start,u=this.startLoc,p=this.parseExprOps(t,r);if(this.checkExpressionErrors(r))return p;if(!(p.type==="ArrowFunctionExpression"&&p.start===o)&&this.eat(e.question)){var n=this.startNodeAt(o,u);return n.test=p,n.consequent=this.parseMaybeAssign(),this.expect(e.colon),n.alternate=this.parseMaybeAssign(t),this.finishNode(n,"ConditionalExpression")}return p};k.parseExprOps=function(t,r){var o=this.start,u=this.startLoc,p=this.parseMaybeUnary(r,!1,!1,t);if(this.checkExpressionErrors(r))return p;return p.start===o&&p.type==="ArrowFunctionExpression"?p:this.parseExprOp(p,o,u,-1,t)};k.parseExprOp=function(t,r,o,u,p){var n=this.type.binop;if(n!=null&&(!p||this.type!==e._in)){if(n>u){var h=this.type===e.logicalOR||this.type===e.logicalAND,d=this.type===e.coalesce;if(d)n=e.logicalAND.binop;var l=this.value;this.next();var m=this.start,y=this.startLoc,x=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,p),m,y,n,p),v=this.buildBinary(r,o,t,x,l,h||d);if(h&&this.type===e.coalesce||d&&(this.type===e.logicalOR||this.type===e.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(v,r,o,u,p)}}return t};k.buildBinary=function(t,r,o,u,p,n){if(u.type==="PrivateIdentifier")this.raise(u.start,"Private identifier can only be left side of binary expression");var h=this.startNodeAt(t,r);return h.left=o,h.operator=p,h.right=u,this.finishNode(h,n?"LogicalExpression":"BinaryExpression")};k.parseMaybeUnary=function(t,r,o,u){var p=this.start,n=this.startLoc,h;if(this.isContextual("await")&&this.canAwait)h=this.parseAwait(u),r=!0;else if(this.type.prefix){var d=this.startNode(),l=this.type===e.incDec;if(d.operator=this.value,d.prefix=!0,this.next(),d.argument=this.parseMaybeUnary(null,!0,l,u),this.checkExpressionErrors(t,!0),l)this.checkLValSimple(d.argument);else if(this.strict&&d.operator==="delete"&&Ht(d.argument))this.raiseRecoverable(d.start,"Deleting local variable in strict mode");else if(d.operator==="delete"&&yt(d.argument))this.raiseRecoverable(d.start,"Private fields can not be deleted");else r=!0;h=this.finishNode(d,l?"UpdateExpression":"UnaryExpression")}else if(!r&&this.type===e.privateId){if((u||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(h=this.parsePrivateIdent(),this.type!==e._in)this.unexpected()}else{if(h=this.parseExprSubscripts(t,u),this.checkExpressionErrors(t))return h;while(this.type.postfix&&!this.canInsertSemicolon()){var m=this.startNodeAt(p,n);m.operator=this.value,m.prefix=!1,m.argument=h,this.checkLValSimple(h),this.next(),h=this.finishNode(m,"UpdateExpression")}}if(!o&&!(h.type==="ArrowFunctionExpression"&&h.start===p)&&this.eat(e.starstar))if(r)this.unexpected(this.lastTokStart);else return this.buildBinary(p,n,h,this.parseMaybeUnary(null,!1,!1,u),"**",!1);else return h};function Ht(t){return t.type==="Identifier"||t.type==="ParenthesizedExpression"&&Ht(t.expression)}function yt(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&yt(t.expression)||t.type==="ParenthesizedExpression"&&yt(t.expression)}k.parseExprSubscripts=function(t,r){var o=this.start,u=this.startLoc,p=this.parseExprAtom(t,r);if(p.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return p;var n=this.parseSubscripts(p,o,u,!1,r);if(t&&n.type==="MemberExpression"){if(t.parenthesizedAssign>=n.start)t.parenthesizedAssign=-1;if(t.parenthesizedBind>=n.start)t.parenthesizedBind=-1;if(t.trailingComma>=n.start)t.trailingComma=-1}return n};k.parseSubscripts=function(t,r,o,u,p){var n=this.options.ecmaVersion>=8&&t.type==="Identifier"&&t.name==="async"&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,h=!1;while(!0){var d=this.parseSubscript(t,r,o,u,n,h,p);if(d.optional)h=!0;if(d===t||d.type==="ArrowFunctionExpression"){if(h){var l=this.startNodeAt(r,o);l.expression=d,d=this.finishNode(l,"ChainExpression")}return d}t=d}};k.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(e.arrow)};k.parseSubscriptAsyncArrow=function(t,r,o,u){return this.parseArrowExpression(this.startNodeAt(t,r),o,!0,u)};k.parseSubscript=function(t,r,o,u,p,n,h){var d=this.options.ecmaVersion>=11,l=d&&this.eat(e.questionDot);if(u&&l)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var m=this.eat(e.bracketL);if(m||l&&this.type!==e.parenL&&this.type!==e.backQuote||this.eat(e.dot)){var y=this.startNodeAt(r,o);if(y.object=t,m)y.property=this.parseExpression(),this.expect(e.bracketR);else if(this.type===e.privateId&&t.type!=="Super")y.property=this.parsePrivateIdent();else y.property=this.parseIdent(this.options.allowReserved!=="never");if(y.computed=!!m,d)y.optional=l;t=this.finishNode(y,"MemberExpression")}else if(!u&&this.eat(e.parenL)){var x=new ot,v=this.yieldPos,C=this.awaitPos,A=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var J=this.parseExprList(e.parenR,this.options.ecmaVersion>=8,!1,x);if(p&&!l&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(x,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=v,this.awaitPos=C,this.awaitIdentPos=A,this.parseSubscriptAsyncArrow(r,o,J,h)}this.checkExpressionErrors(x,!0),this.yieldPos=v||this.yieldPos,this.awaitPos=C||this.awaitPos,this.awaitIdentPos=A||this.awaitIdentPos;var U=this.startNodeAt(r,o);if(U.callee=t,U.arguments=J,d)U.optional=l;t=this.finishNode(U,"CallExpression")}else if(this.type===e.backQuote){if(l||n)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var j=this.startNodeAt(r,o);j.tag=t,j.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(j,"TaggedTemplateExpression")}return t};k.parseExprAtom=function(t,r,o){if(this.type===e.slash)this.readRegexp();var u,p=this.potentialArrowAt===this.start;switch(this.type){case e._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(u=this.startNode(),this.next(),this.type===e.parenL&&!this.allowDirectSuper)this.raise(u.start,"super() call outside constructor of a subclass");if(this.type!==e.dot&&this.type!==e.bracketL&&this.type!==e.parenL)this.unexpected();return this.finishNode(u,"Super");case e._this:return u=this.startNode(),this.next(),this.finishNode(u,"ThisExpression");case e.name:var n=this.start,h=this.startLoc,d=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!d&&l.name==="async"&&!this.canInsertSemicolon()&&this.eat(e._function))return this.overrideContext(N.f_expr),this.parseFunction(this.startNodeAt(n,h),0,!1,!0,r);if(p&&!this.canInsertSemicolon()){if(this.eat(e.arrow))return this.parseArrowExpression(this.startNodeAt(n,h),[l],!1,r);if(this.options.ecmaVersion>=8&&l.name==="async"&&this.type===e.name&&!d&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(l=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(e.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(n,h),[l],!0,r)}}return l;case e.regexp:var m=this.value;return u=this.parseLiteral(m.value),u.regex={pattern:m.pattern,flags:m.flags},u;case e.num:case e.string:return this.parseLiteral(this.value);case e._null:case e._true:case e._false:return u=this.startNode(),u.value=this.type===e._null?null:this.type===e._true,u.raw=this.type.keyword,this.next(),this.finishNode(u,"Literal");case e.parenL:var y=this.start,x=this.parseParenAndDistinguishExpression(p,r);if(t){if(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(x))t.parenthesizedAssign=y;if(t.parenthesizedBind<0)t.parenthesizedBind=y}return x;case e.bracketL:return u=this.startNode(),this.next(),u.elements=this.parseExprList(e.bracketR,!0,!0,t),this.finishNode(u,"ArrayExpression");case e.braceL:return this.overrideContext(N.b_expr),this.parseObj(!1,t);case e._function:return u=this.startNode(),this.next(),this.parseFunction(u,0);case e._class:return this.parseClass(this.startNode(),!1);case e._new:return this.parseNew();case e.backQuote:return this.parseTemplate();case e._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(o);else return this.unexpected();default:return this.parseExprAtomDefault()}};k.parseExprAtomDefault=function(){this.unexpected()};k.parseExprImport=function(t){var r=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");if(this.next(),this.type===e.parenL&&!t)return this.parseDynamicImport(r);else if(this.type===e.dot){var o=this.startNodeAt(r.start,r.loc&&r.loc.start);return o.name="import",r.meta=this.finishNode(o,"Identifier"),this.parseImportMeta(r)}else this.unexpected()};k.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)if(!this.eat(e.parenR))if(this.expect(e.comma),!this.afterTrailingComma(e.parenR)){if(t.options=this.parseMaybeAssign(),!this.eat(e.parenR)){if(this.expect(e.comma),!this.afterTrailingComma(e.parenR))this.unexpected()}}else t.options=null;else t.options=null;else if(!this.eat(e.parenR)){var r=this.start;if(this.eat(e.comma)&&this.eat(e.parenR))this.raiseRecoverable(r,"Trailing comma is not allowed in import()");else this.unexpected(r)}return this.finishNode(t,"ImportExpression")};k.parseImportMeta=function(t){this.next();var r=this.containsEsc;if(t.property=this.parseIdent(!0),t.property.name!=="meta")this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'");if(r)this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module");return this.finishNode(t,"MetaProperty")};k.parseLiteral=function(t){var r=this.startNode();if(r.value=t,r.raw=this.input.slice(this.start,this.end),r.raw.charCodeAt(r.raw.length-1)===110)r.bigint=r.value!=null?r.value.toString():r.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(r,"Literal")};k.parseParenExpression=function(){this.expect(e.parenL);var t=this.parseExpression();return this.expect(e.parenR),t};k.shouldParseArrow=function(t){return!this.canInsertSemicolon()};k.parseParenAndDistinguishExpression=function(t,r){var o=this.start,u=this.startLoc,p,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var h=this.start,d=this.startLoc,l=[],m=!0,y=!1,x=new ot,v=this.yieldPos,C=this.awaitPos,A;this.yieldPos=0,this.awaitPos=0;while(this.type!==e.parenR)if(m?m=!1:this.expect(e.comma),n&&this.afterTrailingComma(e.parenR,!0)){y=!0;break}else if(this.type===e.ellipsis){if(A=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===e.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else l.push(this.parseMaybeAssign(!1,x,this.parseParenItem));var J=this.lastTokEnd,U=this.lastTokEndLoc;if(this.expect(e.parenR),t&&this.shouldParseArrow(l)&&this.eat(e.arrow))return this.checkPatternErrors(x,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=v,this.awaitPos=C,this.parseParenArrowList(o,u,l,r);if(!l.length||y)this.unexpected(this.lastTokStart);if(A)this.unexpected(A);if(this.checkExpressionErrors(x,!0),this.yieldPos=v||this.yieldPos,this.awaitPos=C||this.awaitPos,l.length>1)p=this.startNodeAt(h,d),p.expressions=l,this.finishNodeAt(p,"SequenceExpression",J,U);else p=l[0]}else p=this.parseParenExpression();if(this.options.preserveParens){var j=this.startNodeAt(o,u);return j.expression=p,this.finishNode(j,"ParenthesizedExpression")}else return p};k.parseParenItem=function(t){return t};k.parseParenArrowList=function(t,r,o,u){return this.parseArrowExpression(this.startNodeAt(t,r),o,!1,u)};var Se=[];k.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===e.dot){var r=this.startNodeAt(t.start,t.loc&&t.loc.start);r.name="new",t.meta=this.finishNode(r,"Identifier"),this.next();var o=this.containsEsc;if(t.property=this.parseIdent(!0),t.property.name!=="target")this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'");if(o)this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block");return this.finishNode(t,"MetaProperty")}var u=this.start,p=this.startLoc;if(t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),u,p,!0,!1),t.callee.type==="Super")this.raiseRecoverable(u,"Invalid use of 'super'");if(this.eat(e.parenL))t.arguments=this.parseExprList(e.parenR,this.options.ecmaVersion>=8,!1);else t.arguments=Se;return this.finishNode(t,"NewExpression")};k.parseTemplateElement=function(t){var r=t.isTagged,o=this.startNode();if(this.type===e.invalidTemplate){if(!r)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");o.value={raw:this.value.replace(/\r\n?/g,`
|
|
4
|
+
`),cooked:null}}else o.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
5
|
+
`),cooked:this.value};return this.next(),o.tail=this.type===e.backQuote,this.finishNode(o,"TemplateElement")};k.parseTemplate=function(t){if(t===void 0)t={};var r=t.isTagged;if(r===void 0)r=!1;var o=this.startNode();this.next(),o.expressions=[];var u=this.parseTemplateElement({isTagged:r});o.quasis=[u];while(!u.tail){if(this.type===e.eof)this.raise(this.pos,"Unterminated template literal");this.expect(e.dollarBraceL),o.expressions.push(this.parseExpression()),this.expect(e.braceR),o.quasis.push(u=this.parseTemplateElement({isTagged:r}))}return this.next(),this.finishNode(o,"TemplateLiteral")};k.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===e.name||this.type===e.num||this.type===e.string||this.type===e.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===e.star)&&!I.test(this.input.slice(this.lastTokEnd,this.start))};k.parseObj=function(t,r){var o=this.startNode(),u=!0,p={};o.properties=[],this.next();while(!this.eat(e.braceR)){if(!u){if(this.expect(e.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(e.braceR))break}else u=!1;var n=this.parseProperty(t,r);if(!t)this.checkPropClash(n,p,r);o.properties.push(n)}return this.finishNode(o,t?"ObjectPattern":"ObjectExpression")};k.parseProperty=function(t,r){var o=this.startNode(),u,p,n,h;if(this.options.ecmaVersion>=9&&this.eat(e.ellipsis)){if(t){if(o.argument=this.parseIdent(!1),this.type===e.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");return this.finishNode(o,"RestElement")}if(o.argument=this.parseMaybeAssign(!1,r),this.type===e.comma&&r&&r.trailingComma<0)r.trailingComma=this.start;return this.finishNode(o,"SpreadElement")}if(this.options.ecmaVersion>=6){if(o.method=!1,o.shorthand=!1,t||r)n=this.start,h=this.startLoc;if(!t)u=this.eat(e.star)}var d=this.containsEsc;if(this.parsePropertyName(o),!t&&!d&&this.options.ecmaVersion>=8&&!u&&this.isAsyncProp(o))p=!0,u=this.options.ecmaVersion>=9&&this.eat(e.star),this.parsePropertyName(o);else p=!1;return this.parsePropertyValue(o,t,u,p,n,h,r,d),this.finishNode(o,"Property")};k.parseGetterSetter=function(t){var r=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=r;var o=t.kind==="get"?0:1;if(t.value.params.length!==o){var u=t.value.start;if(t.kind==="get")this.raiseRecoverable(u,"getter should have no params");else this.raiseRecoverable(u,"setter should have exactly one param")}else if(t.kind==="set"&&t.value.params[0].type==="RestElement")this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")};k.parsePropertyValue=function(t,r,o,u,p,n,h,d){if((o||u)&&this.type===e.colon)this.unexpected();if(this.eat(e.colon))t.value=r?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,h),t.kind="init";else if(this.options.ecmaVersion>=6&&this.type===e.parenL){if(r)this.unexpected();t.method=!0,t.value=this.parseMethod(o,u),t.kind="init"}else if(!r&&!d&&this.options.ecmaVersion>=5&&!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&(this.type!==e.comma&&this.type!==e.braceR&&this.type!==e.eq)){if(o||u)this.unexpected();this.parseGetterSetter(t)}else if(this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"){if(o||u)this.unexpected();if(this.checkUnreserved(t.key),t.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=p;if(r)t.value=this.parseMaybeDefault(p,n,this.copyNode(t.key));else if(this.type===e.eq&&h){if(h.shorthandAssign<0)h.shorthandAssign=this.start;t.value=this.parseMaybeDefault(p,n,this.copyNode(t.key))}else t.value=this.copyNode(t.key);t.kind="init",t.shorthand=!0}else this.unexpected()};k.parsePropertyName=function(t){if(this.options.ecmaVersion>=6)if(this.eat(e.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(e.bracketR),t.key;else t.computed=!1;return t.key=this.type===e.num||this.type===e.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};k.initFunction=function(t){if(t.id=null,this.options.ecmaVersion>=6)t.generator=t.expression=!1;if(this.options.ecmaVersion>=8)t.async=!1};k.parseMethod=function(t,r,o){var u=this.startNode(),p=this.yieldPos,n=this.awaitPos,h=this.awaitIdentPos;if(this.initFunction(u),this.options.ecmaVersion>=6)u.generator=t;if(this.options.ecmaVersion>=8)u.async=!!r;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(vt(r,u.generator)|rt|(o?qt:0)),this.expect(e.parenL),u.params=this.parseBindingList(e.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(u,!1,!0,!1),this.yieldPos=p,this.awaitPos=n,this.awaitIdentPos=h,this.finishNode(u,"FunctionExpression")};k.parseArrowExpression=function(t,r,o,u){var p=this.yieldPos,n=this.awaitPos,h=this.awaitIdentPos;if(this.enterScope(vt(o,!1)|bt),this.initFunction(t),this.options.ecmaVersion>=8)t.async=!!o;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(r,!0),this.parseFunctionBody(t,!0,!1,u),this.yieldPos=p,this.awaitPos=n,this.awaitIdentPos=h,this.finishNode(t,"ArrowFunctionExpression")};k.parseFunctionBody=function(t,r,o,u){var p=r&&this.type!==e.braceL,n=this.strict,h=!1;if(p)t.body=this.parseMaybeAssign(u),t.expression=!0,this.checkParams(t,!1);else{var d=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);if(!n||d){if(h=this.strictDirective(this.end),h&&d)this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var l=this.labels;if(this.labels=[],h)this.strict=!0;if(this.checkParams(t,!n&&!h&&!r&&!o&&this.isSimpleParamList(t.params)),this.strict&&t.id)this.checkLValSimple(t.id,Wt);t.body=this.parseBlock(!1,void 0,h&&!n),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=l}this.exitScope()};k.isSimpleParamList=function(t){for(var r=0,o=t;r<o.length;r+=1){var u=o[r];if(u.type!=="Identifier")return!1}return!0};k.checkParams=function(t,r){var o=Object.create(null);for(var u=0,p=t.params;u<p.length;u+=1){var n=p[u];this.checkLValInnerPattern(n,kt,r?null:o)}};k.parseExprList=function(t,r,o,u){var p=[],n=!0;while(!this.eat(t)){if(!n){if(this.expect(e.comma),r&&this.afterTrailingComma(t))break}else n=!1;var h=void 0;if(o&&this.type===e.comma)h=null;else if(this.type===e.ellipsis){if(h=this.parseSpread(u),u&&this.type===e.comma&&u.trailingComma<0)u.trailingComma=this.start}else h=this.parseMaybeAssign(!1,u);p.push(h)}return p};k.checkUnreserved=function(t){var{start:r,end:o,name:u}=t;if(this.inGenerator&&u==="yield")this.raiseRecoverable(r,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&u==="await")this.raiseRecoverable(r,"Cannot use 'await' as identifier inside an async function");if(!(this.currentThisScope().flags&nt)&&u==="arguments")this.raiseRecoverable(r,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(u==="arguments"||u==="await"))this.raise(r,"Cannot use "+u+" in class static initialization block");if(this.keywords.test(u))this.raise(r,"Unexpected keyword '"+u+"'");if(this.options.ecmaVersion<6&&this.input.slice(r,o).indexOf("\\")!==-1)return;var p=this.strict?this.reservedWordsStrict:this.reservedWords;if(p.test(u)){if(!this.inAsync&&u==="await")this.raiseRecoverable(r,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(r,"The keyword '"+u+"' is reserved")}};k.parseIdent=function(t){var r=this.parseIdentNode();if(this.next(!!t),this.finishNode(r,"Identifier"),!t){if(this.checkUnreserved(r),r.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=r.start}return r};k.parseIdentNode=function(){var t=this.startNode();if(this.type===e.name)t.name=this.value;else if(this.type.keyword){if(t.name=this.type.keyword,(t.name==="class"||t.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop();this.type=e.name}else this.unexpected();return t};k.parsePrivateIdent=function(){var t=this.startNode();if(this.type===e.privateId)t.name=this.value;else this.unexpected();if(this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields)if(this.privateNameStack.length===0)this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(t);return t};k.parseYield=function(t){if(!this.yieldPos)this.yieldPos=this.start;var r=this.startNode();if(this.next(),this.type===e.semi||this.canInsertSemicolon()||this.type!==e.star&&!this.type.startsExpr)r.delegate=!1,r.argument=null;else r.delegate=this.eat(e.star),r.argument=this.parseMaybeAssign(t);return this.finishNode(r,"YieldExpression")};k.parseAwait=function(t){if(!this.awaitPos)this.awaitPos=this.start;var r=this.startNode();return this.next(),r.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(r,"AwaitExpression")};var st=i.prototype;st.raise=function(t,r){var o=Bt(this.input,t);if(r+=" ("+o.line+":"+o.column+")",this.sourceFile)r+=" in "+this.sourceFile;var u=SyntaxError(r);throw u.pos=t,u.loc=o,u.raisedAt=this.pos,u};st.raiseRecoverable=st.raise;st.curPosition=function(){if(this.options.locations)return new H(this.curLine,this.pos-this.lineStart)};var B=i.prototype,we=function(r){this.flags=r,this.var=[],this.lexical=[],this.functions=[]};B.enterScope=function(t){this.scopeStack.push(new we(t))};B.exitScope=function(){this.scopeStack.pop()};B.treatFunctionsAsVarInScope=function(t){return t.flags&D||!this.inModule&&t.flags&M};B.declareName=function(t,r,o){var u=!1;if(r===F){var p=this.currentScope();if(u=p.lexical.indexOf(t)>-1||p.functions.indexOf(t)>-1||p.var.indexOf(t)>-1,p.lexical.push(t),this.inModule&&p.flags&M)delete this.undefinedExports[t]}else if(r===zt){var n=this.currentScope();n.lexical.push(t)}else if(r===jt){var h=this.currentScope();if(this.treatFunctionsAsVar)u=h.lexical.indexOf(t)>-1;else u=h.lexical.indexOf(t)>-1||h.var.indexOf(t)>-1;h.functions.push(t)}else for(var d=this.scopeStack.length-1;d>=0;--d){var l=this.scopeStack[d];if(l.lexical.indexOf(t)>-1&&!(l.flags&Dt&&l.lexical[0]===t)||!this.treatFunctionsAsVarInScope(l)&&l.functions.indexOf(t)>-1){u=!0;break}if(l.var.push(t),this.inModule&&l.flags&M)delete this.undefinedExports[t];if(l.flags&nt)break}if(u)this.raiseRecoverable(o,"Identifier '"+t+"' has already been declared")};B.checkLocalExport=function(t){if(this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1)this.undefinedExports[t.name]=t};B.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};B.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var r=this.scopeStack[t];if(r.flags&(nt|Q|q))return r}};B.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var r=this.scopeStack[t];if(r.flags&(nt|Q|q)&&!(r.flags&bt))return r}};var ht=function(r,o,u){if(this.type="",this.start=o,this.end=0,r.options.locations)this.loc=new at(r,u);if(r.options.directSourceFile)this.sourceFile=r.options.directSourceFile;if(r.options.ranges)this.range=[o,0]},Y=i.prototype;Y.startNode=function(){return new ht(this,this.start,this.startLoc)};Y.startNodeAt=function(t,r){return new ht(this,t,r)};function Gt(t,r,o,u){if(t.type=r,t.end=o,this.options.locations)t.loc.end=u;if(this.options.ranges)t.range[1]=o;return t}Y.finishNode=function(t,r){return Gt.call(this,t,r,this.lastTokEnd,this.lastTokEndLoc)};Y.finishNodeAt=function(t,r,o,u){return Gt.call(this,t,r,o,u)};Y.copyNode=function(t){var r=new ht(this,t.start,this.startLoc);for(var o in t)r[o]=t[o];return r};var Qt=function(){};Qt.prototype.reset=function(){};i.prototype.validateRegExpFlags=function(){};i.prototype.validateRegExpPattern=function(){};var St=function(r){if(this.type=r.type,this.value=r.value,this.start=r.start,this.end=r.end,r.options.locations)this.loc=new at(r,r.startLoc,r.endLoc);if(r.options.ranges)this.range=[r.start,r.end]},g=i.prototype;g.next=function(t){if(!t&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new St(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};g.getToken=function(){return this.next(),new St(this)};if(typeof Symbol<"u")g[Symbol.iterator]=function(){var t=this;return{next:function(){var r=t.getToken();return{done:r.type===e.eof,value:r}}}};g.nextToken=function(){var t=this.curContext();if(!t||!t.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(e.eof);if(t.override)return t.override(this);else this.readToken(this.fullCharCodeAtPos())};g.readToken=function(t){if(s(t,this.options.ecmaVersion>=6)||t===92)return this.readWord();return this.getTokenFromCode(t)};g.fullCharCodeAt=function(t){var r=this.input.charCodeAt(t);if(r<=55295||r>=56320)return r;var o=this.input.charCodeAt(t+1);return o<=56319||o>=57344?r:(r<<10)+o-56613888};g.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};g.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),r=this.pos,o=this.input.indexOf("*/",this.pos+=2);if(o===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=o+2,this.options.locations)for(var u=void 0,p=r;(u=Vt(this.input,p,this.pos))>-1;)++this.curLine,p=this.lineStart=u;if(this.options.onComment)this.options.onComment(!0,this.input.slice(r+2,o),r,this.pos,t,this.curPosition())};g.skipLineComment=function(t){var r=this.pos,o=this.options.onComment&&this.curPosition(),u=this.input.charCodeAt(this.pos+=t);while(this.pos<this.input.length&&!z(u))u=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(r+t,this.pos),r,this.pos,o,this.curPosition())};g.skipSpace=function(){t:while(this.pos<this.input.length){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10)++this.pos;case 10:case 8232:case 8233:if(++this.pos,this.options.locations)++this.curLine,this.lineStart=this.pos;break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(t>8&&t<14||t>=5760&&Ot.test(String.fromCharCode(t)))++this.pos;else break t}}};g.finishToken=function(t,r){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var o=this.type;this.type=t,this.value=r,this.updateContext(o)};g.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var r=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&t===46&&r===46)return this.pos+=3,this.finishToken(e.ellipsis);else return++this.pos,this.finishToken(e.dot)};g.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(t===61)return this.finishOp(e.assign,2);return this.finishOp(e.slash,1)};g.readToken_mult_modulo_exp=function(t){var r=this.input.charCodeAt(this.pos+1),o=1,u=t===42?e.star:e.modulo;if(this.options.ecmaVersion>=7&&t===42&&r===42)++o,u=e.starstar,r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(e.assign,o+1);return this.finishOp(u,o)};g.readToken_pipe_amp=function(t){var r=this.input.charCodeAt(this.pos+1);if(r===t){if(this.options.ecmaVersion>=12){var o=this.input.charCodeAt(this.pos+2);if(o===61)return this.finishOp(e.assign,3)}return this.finishOp(t===124?e.logicalOR:e.logicalAND,2)}if(r===61)return this.finishOp(e.assign,2);return this.finishOp(t===124?e.bitwiseOR:e.bitwiseAND,1)};g.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);if(t===61)return this.finishOp(e.assign,2);return this.finishOp(e.bitwiseXOR,1)};g.readToken_plus_min=function(t){var r=this.input.charCodeAt(this.pos+1);if(r===t){if(r===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||I.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(e.incDec,2)}if(r===61)return this.finishOp(e.assign,2);return this.finishOp(e.plusMin,1)};g.readToken_lt_gt=function(t){var r=this.input.charCodeAt(this.pos+1),o=1;if(r===t){if(o=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+o)===61)return this.finishOp(e.assign,o+1);return this.finishOp(e.bitShift,o)}if(r===33&&t===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45)return this.skipLineComment(4),this.skipSpace(),this.nextToken();if(r===61)o=2;return this.finishOp(e.relational,o)};g.readToken_eq_excl=function(t){var r=this.input.charCodeAt(this.pos+1);if(r===61)return this.finishOp(e.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(t===61&&r===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(e.arrow);return this.finishOp(t===61?e.eq:e.prefix,1)};g.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var r=this.input.charCodeAt(this.pos+1);if(r===46){var o=this.input.charCodeAt(this.pos+2);if(o<48||o>57)return this.finishOp(e.questionDot,2)}if(r===63){if(t>=12){var u=this.input.charCodeAt(this.pos+2);if(u===61)return this.finishOp(e.assign,3)}return this.finishOp(e.coalesce,2)}}return this.finishOp(e.question,1)};g.readToken_numberSign=function(){var t=this.options.ecmaVersion,r=35;if(t>=13){if(++this.pos,r=this.fullCharCodeAtPos(),s(r,!0)||r===92)return this.finishToken(e.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+it(r)+"'")};g.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(e.parenL);case 41:return++this.pos,this.finishToken(e.parenR);case 59:return++this.pos,this.finishToken(e.semi);case 44:return++this.pos,this.finishToken(e.comma);case 91:return++this.pos,this.finishToken(e.bracketL);case 93:return++this.pos,this.finishToken(e.bracketR);case 123:return++this.pos,this.finishToken(e.braceL);case 125:return++this.pos,this.finishToken(e.braceR);case 58:return++this.pos,this.finishToken(e.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(e.backQuote);case 48:var r=this.input.charCodeAt(this.pos+1);if(r===120||r===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(r===111||r===79)return this.readRadixNumber(8);if(r===98||r===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(e.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+it(t)+"'")};g.finishOp=function(t,r){var o=this.input.slice(this.pos,this.pos+r);return this.pos+=r,this.finishToken(t,o)};g.readRegexp=function(){var t,r,o=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(o,"Unterminated regular expression");var u=this.input.charAt(this.pos);if(I.test(u))this.raise(o,"Unterminated regular expression");if(!t){if(u==="[")r=!0;else if(u==="]"&&r)r=!1;else if(u==="/"&&!r)break;t=u==="\\"}else t=!1;++this.pos}var p=this.input.slice(o,this.pos);++this.pos;var n=this.pos,h=this.readWord1();if(this.containsEsc)this.unexpected(n);var d=this.regexpState||(this.regexpState=new Qt(this));d.reset(o,p,h),this.validateRegExpFlags(d),this.validateRegExpPattern(d);var l=null;try{l=new RegExp(p,h)}catch(m){}return this.finishToken(e.regexp,{pattern:p,flags:h,value:l})};g.readInt=function(t,r,o){var u=this.options.ecmaVersion>=12&&r===void 0,p=o&&this.input.charCodeAt(this.pos)===48,n=this.pos,h=0,d=0;for(var l=0,m=r==null?1/0:r;l<m;++l,++this.pos){var y=this.input.charCodeAt(this.pos),x=void 0;if(u&&y===95){if(p)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(d===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(l===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");d=y;continue}if(y>=97)x=y-97+10;else if(y>=65)x=y-65+10;else if(y>=48&&y<=57)x=y-48;else x=1/0;if(x>=t)break;d=y,h=h*t+x}if(u&&d===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===n||r!=null&&this.pos-n!==r)return null;return h};function Ae(t,r){if(r)return parseInt(t,8);return parseFloat(t.replace(/_/g,""))}function Yt(t){if(typeof BigInt!=="function")return null;return BigInt(t.replace(/_/g,""))}g.readRadixNumber=function(t){var r=this.pos;this.pos+=2;var o=this.readInt(t);if(o==null)this.raise(this.start+2,"Expected number in radix "+t);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)o=Yt(this.input.slice(r,this.pos)),++this.pos;else if(s(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(e.num,o)};g.readNumber=function(t){var r=this.pos;if(!t&&this.readInt(10,void 0,!0)===null)this.raise(r,"Invalid number");var o=this.pos-r>=2&&this.input.charCodeAt(r)===48;if(o&&this.strict)this.raise(r,"Invalid number");var u=this.input.charCodeAt(this.pos);if(!o&&!t&&this.options.ecmaVersion>=11&&u===110){var p=Yt(this.input.slice(r,this.pos));if(++this.pos,s(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(e.num,p)}if(o&&/[89]/.test(this.input.slice(r,this.pos)))o=!1;if(u===46&&!o)++this.pos,this.readInt(10),u=this.input.charCodeAt(this.pos);if((u===69||u===101)&&!o){if(u=this.input.charCodeAt(++this.pos),u===43||u===45)++this.pos;if(this.readInt(10)===null)this.raise(r,"Invalid number")}if(s(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var n=Ae(this.input.slice(r,this.pos),o);return this.finishToken(e.num,n)};g.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),r;if(t===123){if(this.options.ecmaVersion<6)this.unexpected();var o=++this.pos;if(r=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,r>1114111)this.invalidStringToken(o,"Code point out of bounds")}else r=this.readHexChar(4);return r};g.readString=function(t){var r="",o=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var u=this.input.charCodeAt(this.pos);if(u===t)break;if(u===92)r+=this.input.slice(o,this.pos),r+=this.readEscapedChar(!1),o=this.pos;else if(u===8232||u===8233){if(this.options.ecmaVersion<10)this.raise(this.start,"Unterminated string constant");if(++this.pos,this.options.locations)this.curLine++,this.lineStart=this.pos}else{if(z(u))this.raise(this.start,"Unterminated string constant");++this.pos}}return r+=this.input.slice(o,this.pos++),this.finishToken(e.string,r)};var Xt={};g.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===Xt)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1};g.invalidStringToken=function(t,r){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Xt;else this.raise(t,r)};g.readTmplToken=function(){var t="",r=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var o=this.input.charCodeAt(this.pos);if(o===96||o===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===e.template||this.type===e.invalidTemplate))if(o===36)return this.pos+=2,this.finishToken(e.dollarBraceL);else return++this.pos,this.finishToken(e.backQuote);return t+=this.input.slice(r,this.pos),this.finishToken(e.template,t)}if(o===92)t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!0),r=this.pos;else if(z(o)){switch(t+=this.input.slice(r,this.pos),++this.pos,o){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:t+=`
|
|
6
|
+
`;break;default:t+=String.fromCharCode(o);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;r=this.pos}else++this.pos}};g.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(e.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":if(this.input[this.pos+1]===`
|
|
7
|
+
`)++this.pos;case`
|
|
8
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};g.readEscapedChar=function(t){var r=this.input.charCodeAt(++this.pos);switch(++this.pos,r){case 110:return`
|
|
9
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return it(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:if(this.options.locations)this.lineStart=this.pos,++this.curLine;return"";case 56:case 57:if(this.strict)this.invalidStringToken(this.pos-1,"Invalid escape sequence");if(t){var o=this.pos-1;this.invalidStringToken(o,"Invalid escape sequence in template string")}default:if(r>=48&&r<=55){var u=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],p=parseInt(u,8);if(p>255)u=u.slice(0,-1),p=parseInt(u,8);if(this.pos+=u.length-1,r=this.input.charCodeAt(this.pos),(u!=="0"||r===56||r===57)&&(this.strict||t))this.invalidStringToken(this.pos-1-u.length,t?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(p)}if(z(r)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(r)}};g.readHexChar=function(t){var r=this.pos,o=this.readInt(16,t);if(o===null)this.invalidStringToken(r,"Bad character escape sequence");return o};g.readWord1=function(){this.containsEsc=!1;var t="",r=!0,o=this.pos,u=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var p=this.fullCharCodeAtPos();if(a(p,u))this.pos+=p<=65535?1:2;else if(p===92){this.containsEsc=!0,t+=this.input.slice(o,this.pos);var n=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var h=this.readCodePoint();if(!(r?s:a)(h,u))this.invalidStringToken(n,"Invalid Unicode escape");t+=it(h),o=this.pos}else break;r=!1}return t+this.input.slice(o,this.pos)};g.readWord=function(){var t=this.readWord1(),r=e.name;if(this.keywords.test(t))r=c[t];return this.finishToken(r,t)};var Ne="8.18.0";i.acorn={Parser:i,version:Ne,defaultOptions:dt,Position:H,SourceLocation:at,getLineInfo:Bt,Node:ht,TokenType:w,tokTypes:e,keywordTypes:c,TokContext:O,tokContexts:N,isIdentifierChar:a,isIdentifierStart:s,Token:St,isNewLine:z,lineBreak:I,lineBreakG:le,nonASCIIwhitespace:Ot};var wt=/(?:\s|\/\/.*|\/\*[\s\S]*?\*\/)*/g,Ce=new Map([["any","TSAnyKeyword"],["bigint","TSBigIntKeyword"],["boolean","TSBooleanKeyword"],["never","TSNeverKeyword"],["null","TSNullKeyword"],["number","TSNumberKeyword"],["object","TSObjectKeyword"],["string","TSStringKeyword"],["symbol","TSSymbolKeyword"],["undefined","TSUndefinedKeyword"],["unknown","TSUnknownKeyword"],["void","TSVoidKeyword"]]),Te=new Set("public private protected readonly declare abstract override static accessor".split(" ")),Ee=new Set("public private protected readonly override".split(" ")),$e=new Set("var let const function class abstract enum interface type namespace module global".split(" ")),Pe=new Set("var let const function class interface enum".split(" ")),Jt=new Set(["TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"]),Zt=1,Ie=32,Le=256,_e=0,Re=1,X=2,Ve=3,Oe=4,At=6,te=7,ne=256,Et=1024,Fe=8|Et,Be=X|ne,ee=1,Me=2,se=40,De=41,qe=44,ie=46,ae=58,ut=61,re=60,ct=123,Ue=91,Nt=42,je=35,Ct=34,Tt=39,ze=SyntaxError("speculative parse failed");function f(t){let r=t,o=r.acorn.tokTypes,u=new r.acorn.TokenType("@");class p extends r{inType=!1;$5=!1;$6=!1;$8=null;$o=null;$p=!1;$q=!1;$i=null;$b=[[]];$r=0;$13=0;constructor(n,h,d){super(n,h,d);let l=this.options.onComment;if(typeof l==="function")this.options.onComment=(m,y,x,v,C,A)=>{if(x<this.$13)return;this.$13=v,l.call(this,m,y,x,v,C,A)}}getTokenFromCode(n){if(n===64)return++this.pos,this.finishToken(u);return super.getTokenFromCode(n)}readToken_lt_gt(n){if(this.inType)return this.finishOp(o.relational,1);return super.readToken_lt_gt(n)}$9(n){let h=this.inType;this.inType=!0;let d=n();if(this.inType=h,!h&&this.type===o.relational)this.pos=this.start,this.nextToken();return d}$1(){return this.type===o.relational&&this.value==="<"}$k(){if(this.type===o.bitShift&&this.value==="<<")this.pos=this.start+1,this.finishToken(o.relational,"<");return this.$1()}$c(){return this.type===o.relational&&this.value===">"}$s(){return this.type===o.prefix&&this.value==="!"}hasPrecedingLineBreak(){return this.$14(this.lastTokEnd,this.start)}$14(n,h){for(let d=n;d<h;d++){let l=this.input.charCodeAt(d);if(l===10||l===13||l===8232||l===8233)return!0}return!1}$d(n=this.pos){return wt.lastIndex=n,wt.exec(this.input),wt.lastIndex}$2(){return this.input.charCodeAt(this.$d())}$3(){let n=this.$d(),h=n;while(h<this.input.length&&a(this.input.charCodeAt(h)))h++;return this.input.slice(n,h)}$a(){return!this.$14(this.pos,this.$d())}$15(){return this.$a()&&s(this.$2())&&!Object.hasOwn(c,this.$3())}$16(){return{pos:this.pos,type:this.type,value:this.value,start:this.start,end:this.end,startLoc:this.startLoc,endLoc:this.endLoc,lastTokStart:this.lastTokStart,lastTokEnd:this.lastTokEnd,lastTokStartLoc:this.lastTokStartLoc,lastTokEndLoc:this.lastTokEndLoc,curLine:this.curLine,lineStart:this.lineStart,context:this.context.slice(),exprAllowed:this.exprAllowed,containsEsc:this.containsEsc,inType:this.inType,$5:this.$5,$6:this.$6,$8:this.$8,scopes:this.scopeStack.length,privateNames:this.privateNameStack.length,labels:this.labels,labelCount:this.labels.length,strict:this.strict,yieldPos:this.yieldPos,awaitPos:this.awaitPos,awaitIdentPos:this.awaitIdentPos,potentialArrowAt:this.potentialArrowAt,potentialArrowInForAwait:this.potentialArrowInForAwait}}$17(n){this.pos=n.pos,this.type=n.type,this.value=n.value,this.start=n.start,this.end=n.end,this.startLoc=n.startLoc,this.endLoc=n.endLoc,this.lastTokStart=n.lastTokStart,this.lastTokEnd=n.lastTokEnd,this.lastTokStartLoc=n.lastTokStartLoc,this.lastTokEndLoc=n.lastTokEndLoc,this.curLine=n.curLine,this.lineStart=n.lineStart,this.context=n.context,this.exprAllowed=n.exprAllowed,this.containsEsc=n.containsEsc,this.inType=n.inType,this.$5=n.$5,this.$6=n.$6,this.$8=n.$8,this.scopeStack.length=n.scopes,this.privateNameStack.length=n.privateNames,this.labels=n.labels,this.labels.length=n.labelCount,this.strict=n.strict,this.yieldPos=n.yieldPos,this.awaitPos=n.awaitPos,this.awaitIdentPos=n.awaitIdentPos,this.potentialArrowAt=n.potentialArrowAt,this.potentialArrowInForAwait=n.potentialArrowInForAwait}raise(n,h){if(this.$r>0)throw ze;return super.raise(n,h)}$1z(n,h){try{super.raise(n,h)}catch(d){throw d.$t=!0,d}throw Error("unreachable")}$f(n,h=!1){let d=this.$16();this.$r++;try{let l=n();if(h||l===void 0)this.$17(d);return l}catch(l){if(!(l instanceof SyntaxError)||!h&&l.$t)throw l;this.$17(d);return}finally{this.$r--}}$u(n){return this.$f(n,!0)===!0}$18(n){if(n.end=this.lastTokEnd,this.options.locations)n.loc.end=this.lastTokEndLoc}$l(n,h){if(n.start=h.start,this.options.locations)n.loc.start=h.loc.start}$4(n=!1){let h=this.startNode();return h.typeAnnotation=this.$9(()=>(this.next(),n?this.$20():this.$0())),this.finishNode(h,"TSTypeAnnotation")}$g(n,h){if(h&&this.eat(o.question))n.optional=!0,this.$18(n);if(this.type===o.colon)n.typeAnnotation=this.$4(),this.$18(n);return n}$20(){if(this.type!==o.name&&this.type!==o._this)return this.$0();if(this.isContextual("asserts")&&this.$a()&&s(this.$2())){let n=this.startNode();if(this.next(),n.parameterName=this.type===o._this?this.$v():this.parseIdent(),this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.$w(n,!0);return n.asserts=!0,n.typeAnnotation=null,this.finishNode(n,"TSTypePredicate")}if(this.$3()==="is"&&this.$a()){let n=this.startNode();return n.parameterName=this.type===o._this?this.$v():this.parseIdent(!0),this.$w(n,!1)}return this.$0()}$w(n,h){this.next();let d=this.startNode();return d.typeAnnotation=this.$0(),n.typeAnnotation=this.finishNode(d,"TSTypeAnnotation"),n.asserts=h,this.finishNode(n,"TSTypePredicate")}$v(){let n=this.startNode();return this.next(),this.finishNode(n,"TSThisType")}parseWholeType(){this.inType=!0,this.nextToken();let n=this.$0();if(this.type!==o.eof)this.unexpected();return n}$0(){let n=this.$19();if(this.$5||this.type!==o._extends||this.hasPrecedingLineBreak())return n;let h=this.startNodeAt(n.start,n.loc?.start);return this.next(),h.checkType=n,h.extendsType=this.$h(!0,()=>this.$19()),this.expect(o.question),h.trueType=this.$h(!1,()=>this.$0()),this.expect(o.colon),h.falseType=this.$h(!1,()=>this.$0()),this.finishNode(h,"TSConditionalType")}$h(n,h){let d=this.$5;this.$5=n;let l=h();return this.$5=d,l}$19(){if(this.$21())return this.$1a("TSFunctionType");if(this.type===o._new||this.isContextual("abstract")&&this.$3()==="new")return this.$1a("TSConstructorType");return this.$1b("TSUnionType",o.bitwiseOR,()=>this.$1b("TSIntersectionType",o.bitwiseAND,()=>this.$1c()))}$1a(n){let h=this.startNode();if(n==="TSConstructorType"){if(h.abstract=this.isContextual("abstract"),h.abstract)this.next();this.next()}return this.$h(!1,()=>this.$m(h,o.arrow)),this.finishNode(h,n)}$m(n,h){if(this.$1())n.typeParameters=this.$7();if(this.expect(o.parenL),n.parameters=this.parseBindingList(o.parenR,!1,!0),this.type===h)n.typeAnnotation=this.$4(!0);else if(h===o.arrow)this.unexpected()}$21(){if(this.$1())return!0;if(this.type!==o.parenL)return!1;return this.$u(()=>{if(this.next(),this.type===o.parenR||this.type===o.ellipsis)return!0;if(this.type===o.name||this.type===o._this)this.next();else if(this.type===o.braceL||this.type===o.bracketL)this.parseBindingAtom();else return!1;let n=this.type;if(n===o.colon||n===o.comma||n===o.question||n===o.eq)return!0;if(n!==o.parenR)return!1;return this.next(),this.type===o.arrow})}$1b(n,h,d){let l=this.startNode(),m=this.eat(h),y=[];do y.push(d());while(this.eat(h));if(y.length===1&&!m)return y[0];return l.types=y,this.finishNode(l,n)}$1c(){if(this.type===o.name&&!this.containsEsc){let n=this.value;if(n==="keyof"||n==="unique"||n==="readonly"){let h=this.startNode();return this.next(),h.operator=n,h.typeAnnotation=this.$1c(),this.finishNode(h,"TSTypeOperator")}if(n==="infer"){let h=this.startNode();this.next();let d=this.startNode();d.name=this.$x();let l=this.$f(()=>this.$22());if(l)d.constraint=l;return h.typeParameter=this.finishNode(d,"TSTypeParameter"),this.finishNode(h,"TSInferType")}}return this.$h(!1,()=>this.$23())}$22(){if(!this.eat(o._extends))return;let n=this.$h(!0,()=>this.$0());if(this.$5||this.type!==o.question)return n;return}$x(){if(this.type!==o.name&&!this.type.keyword)this.unexpected();let n=this.type===o.name?this.value:this.type.keyword;return this.next(),n}$23(){let n=this.$24();while(!this.hasPrecedingLineBreak()&&this.eat(o.bracketL)){let h=this.startNodeAt(n.start,n.loc?.start);if(this.eat(o.bracketR))h.elementType=n,n=this.finishNode(h,"TSArrayType");else h.objectType=n,h.indexType=this.$0(),this.expect(o.bracketR),n=this.finishNode(h,"TSIndexedAccessType")}return n}$24(){switch(this.type){case o.name:case o._void:case o._null:{let n=Ce.get(this.value);if(n&&(this.type!==o.name||!this.containsEsc&&this.$2()!==ie)){let h=this.startNode();return this.next(),this.finishNode(h,n)}return this.$1d()}case o.string:case o.num:case o._true:case o._false:{let n=this.startNode();return n.literal=this.parseExprAtom(),this.finishNode(n,"TSLiteralType")}case o.plusMin:{if(this.value!=="-")break;let n=this.startNode(),h=this.startNode();if(this.next(),this.type!==o.num)this.unexpected();return h.operator="-",h.prefix=!0,h.argument=this.parseExprAtom(),n.literal=this.finishNode(h,"UnaryExpression"),this.finishNode(n,"TSLiteralType")}case o.backQuote:return this.$25();case o._this:{let n=this.$v();if(this.isContextual("is")&&!this.hasPrecedingLineBreak()){let h=this.startNodeAt(n.start,n.loc?.start);return h.parameterName=n,this.$w(h,!1)}return n}case o._typeof:return this.$26();case o._import:return this.$1e();case o.braceL:return this.$27()?this.$28():this.$29();case o.bracketL:return this.$2a();case o.parenL:{let n=this.startNode();return this.next(),n.typeAnnotation=this.$0(),this.expect(o.parenR),this.finishNode(n,"TSParenthesizedType")}default:if(this.type.keyword)return this.$1d()}return this.unexpected()}$1d(){let n=this.startNode();if(n.typeName=this.$j(),!this.hasPrecedingLineBreak()&&this.$1())n.typeArguments=this.$e();return this.finishNode(n,"TSTypeReference")}$j(){let n=this.parseIdent(!0);while(this.eat(o.dot)){let h=this.startNodeAt(n.start,n.loc?.start);h.left=n,h.right=this.parseIdent(!0),n=this.finishNode(h,"TSQualifiedName")}return n}$26(){let n=this.startNode();if(this.next(),n.exprName=this.type===o._import?this.$1e():this.$j(),!this.hasPrecedingLineBreak()&&this.$1())n.typeArguments=this.$e();return this.finishNode(n,"TSTypeQuery")}$1e(){let n=this.startNode();if(this.next(),n.argument=this.$1f(),this.eat(o.dot))n.qualifier=this.$j();if(this.$1())n.typeArguments=this.$e();return this.finishNode(n,"TSImportType")}$y(){if(this.type!==o.string)this.unexpected();return this.parseExprAtom()}$1f(){this.expect(o.parenL);let n=this.$y();return this.expect(o.parenR),n}$25(){let n=this.startNode(),h=this.startNode();this.next(),h.expressions=[];let d=this.parseTemplateElement({isTagged:!1});h.quasis=[d];while(!d.tail){if(this.type===o.eof)this.raise(this.pos,"Unterminated template literal");this.expect(o.dollarBraceL),h.expressions.push(this.$0()),this.expect(o.braceR),d=this.parseTemplateElement({isTagged:!1}),h.quasis.push(d)}return this.next(),n.literal=this.finishNode(h,"TemplateLiteral"),this.finishNode(n,"TSLiteralType")}$27(){return this.$u(()=>{if(this.next(),this.type===o.plusMin)return this.next(),this.isContextual("readonly");if(this.isContextual("readonly"))this.next();if(this.type!==o.bracketL)return!1;if(this.next(),this.type!==o.name)return!1;return this.next(),this.type===o._in})}$28(){let n=this.startNode();if(this.expect(o.braceL),this.type===o.plusMin)n.readonly=this.value,this.next(),this.expectContextual("readonly");else if(this.eatContextual("readonly"))n.readonly=!0;this.expect(o.bracketL);let h=this.startNode();if(h.name=this.$x(),this.expect(o._in),h.constraint=this.$0(),n.typeParameter=this.finishNode(h,"TSTypeParameter"),n.nameType=this.eatContextual("as")?this.$0():null,this.expect(o.bracketR),this.type===o.plusMin)n.optional=this.value,this.next(),this.expect(o.question);else if(this.eat(o.question))n.optional=!0;if(this.eat(o.colon))n.typeAnnotation=this.$0();return this.semicolon(),this.expect(o.braceR),this.finishNode(n,"TSMappedType")}$29(){let n=this.startNode();return n.members=this.$1g(),this.finishNode(n,"TSTypeLiteral")}$1g(){this.expect(o.braceL);let n=[];while(!this.eat(o.braceR))n.push(this.$2b());return n}$2b(){let n=this.startNode(),h="TSPropertySignature",d=this.type===o._new?this.$2():-1;if(this.type===o.parenL||this.$1())h="TSCallSignatureDeclaration",this.$m(n,o.colon);else if(d===se||d===re)h="TSConstructSignatureDeclaration",this.next(),this.$m(n,o.colon);else{let l=this.type===o._new?this.parseIdent(!0):null;if(this.isContextual("readonly")&&this.$n(!0))this.next(),n.readonly=!0;if(this.type===o.bracketL&&this.$1h())return this.$1i(n);let m="method";if(l)n.key=l;else{if((this.isContextual("get")||this.isContextual("set"))&&this.$n(!1))m=this.value,this.next();this.parsePropertyName(n)}if(this.eat(o.question))n.optional=!0;if(this.type===o.parenL||this.$1()){if(h="TSMethodSignature",m!=="method")n.kind=m;this.$m(n,o.colon),n.kind=m}else if(this.type===o.colon)n.typeAnnotation=this.$4()}return this.$1j(),this.finishNode(n,h)}$1j(){if(!this.eat(o.comma))this.semicolon()}$1h(){return this.$u(()=>{if(this.next(),this.type!==o.name)return!1;return this.next(),this.type===o.colon})}$1i(n){if(this.expect(o.bracketL),n.parameters=[this.$g(this.parseIdent(),!1)],this.expect(o.bracketR),this.type===o.colon)n.typeAnnotation=this.$4();return this.$1j(),this.finishNode(n,"TSIndexSignature")}$2a(){let n=this.startNode();this.expect(o.bracketL),n.elementTypes=[];while(!this.eat(o.bracketR))if(n.elementTypes.push(this.$2c()),this.type!==o.bracketR)this.expect(o.comma);return this.finishNode(n,"TSTupleType")}$2c(){let n=this.start,h=this.startLoc,d=this.eat(o.ellipsis),l;if((this.type===o.name||this.type.keyword)&&this.$2d()){let m=this.startNode();m.label=this.parseIdent(!0),m.optional=this.eat(o.question),this.expect(o.colon),m.elementType=this.$0(),l=this.finishNode(m,"TSNamedTupleMember")}else if(l=this.$0(),this.eat(o.question)){let m=this.startNodeAt(l.start,l.loc?.start);m.typeAnnotation=l,l=this.finishNode(m,"TSOptionalType")}if(d){let m=this.startNodeAt(n,h);m.typeAnnotation=l,l=this.finishNode(m,"TSRestType")}return l}$2d(){let n=this.$d();if(this.input.charCodeAt(n)===63)n=this.$d(n+1);return this.input.charCodeAt(n)===ae}$7(){return this.$9(()=>{let n=this.startNode();this.next(),n.params=[];while(!this.$c()){let h=this.startNode();while((this.type===o._const||this.type===o._in||this.isContextual("out"))&&s(this.$2()))h[this.value]=!0,this.next();if(h.name=this.$x(),this.eat(o._extends))h.constraint=this.$0();if(this.eat(o.eq))h.default=this.$0();if(n.params.push(this.finishNode(h,"TSTypeParameter")),!this.$c()){if(this.expect(o.comma),this.$c())n.extra={trailingComma:this.lastTokStart}}}if(this.next(),n.params.length===0)this.$1z(this.start,"Type parameter list cannot be empty.");return this.finishNode(n,"TSTypeParameterDeclaration")})}$e(){return this.$9(()=>{let n=this.startNode();this.next(),n.params=[];while(!this.$c())if(n.params.push(this.$0()),!this.$c())this.expect(o.comma);if(n.params.length===0)this.unexpected();return this.next(),this.finishNode(n,"TSTypeParameterInstantiation")})}$1k(){let n=[];do{let h=this.startNode();if(h.expression=this.$j(),this.$1())h.typeParameters=this.$e();n.push(this.finishNode(h,"TSExpressionWithTypeArguments"))}while(this.eat(o.comma));return n}$1l(n=!1){if(this.type!==o.name||this.containsEsc){if(this.type===o._const&&this.$3()==="enum")return this.$z(this.startNode());return}if(!this.$2e(this.value))return;if(this.value==="declare")return this.$2f(n);return this.$1m(this.startNode(),this.value)}$2e(n){switch(n){case"interface":case"type":case"namespace":return this.$15();case"enum":return s(this.$2());case"abstract":return this.$a()&&this.$3()==="class";case"module":{let h=this.$2();return this.$a()&&(h===Ct||h===Tt||s(h))}case"declare":return this.$a()&&$e.has(this.$3());case"global":return this.$a()&&this.$2()===ct}return!1}$1m(n,h){switch(h){case"interface":return this.$1n(n);case"type":return this.$2g(n);case"enum":return this.$z(n);case"abstract":return this.$1o(n,!0);case"global":return n.global=!0,n.id=this.parseIdent(),n.body=this.$10(),this.finishNode(n,"TSModuleDeclaration")}return this.$2h(n)}$2f(n){let h=this.$6;this.$6=!0;let d=this.startNode();this.next();let l=this.value;if(l==="const"&&this.$3()==="enum")d.const=!0;if(!n&&Pe.has(l))d.declare=!0;let m;if(d.const)m=this.$z(d);else if(l==="var"||l==="let"||l==="const")m=this.parseVarStatement(d,l,!0);else if(l==="function")this.next(),m=this.parseFunction(d,ee,!1,!1);else if(l==="class")m=this.parseClass(d,!0);else m=this.$1m(d,l);return m.declare=!0,this.$6=h,m}$1o(n,h){return this.next(),n.abstract=!0,this.parseClass(n,h)}$1n(n){if(this.next(),n.id=this.parseIdent(),this.checkLValSimple(n.id,te),this.$1())n.typeParameters=this.$7();return this.$9(()=>{if(this.eat(o._extends))n.extends=this.$1k();let h=this.startNode();h.body=this.$1g(),n.body=this.finishNode(h,"TSInterfaceBody")}),this.finishNode(n,"TSInterfaceDeclaration")}$2g(n){if(this.next(),n.id=this.parseIdent(),this.checkLValSimple(n.id,At),this.$1())n.typeParameters=this.$7();return n.typeAnnotation=this.$9(()=>(this.expect(o.eq),this.$0())),this.semicolon(),this.finishNode(n,"TSTypeAliasDeclaration")}$z(n){if(this.type===o._const)n.const=!0,this.next();this.next(),n.id=this.parseIdent(),this.checkLValSimple(n.id,Be),this.expect(o.braceL),n.members=[];while(!this.eat(o.braceR)){let h=this.startNode();if(h.id=this.type===o.string?this.parseExprAtom():this.parseIdent(!0),this.eat(o.eq))h.initializer=this.parseMaybeAssign();if(n.members.push(this.finishNode(h,"TSEnumMember")),this.type!==o.braceR)this.expect(o.comma)}return this.finishNode(n,"TSEnumDeclaration")}$2h(n){if(this.next(),this.type===o.string){if(n.id=this.parseExprAtom(),this.type===o.braceL)n.body=this.$10();else this.semicolon();return this.finishNode(n,"TSModuleDeclaration")}return n.id=this.parseIdent(),this.checkLValSimple(n.id,Fe),this.$1p(n)}$1p(n){if(this.eat(o.dot)){let h=this.startNode();h.id=this.parseIdent(),n.body=this.$1p(h)}else n.body=this.$10();return this.finishNode(n,"TSModuleDeclaration")}$10(){this.enterScope(Le);let n=this.startNode();this.enterScope(0),this.expect(o.braceL),n.body=[];while(!this.eat(o.braceR))n.body.push(this.parseStatement(null,!0));return this.exitScope(),this.exitScope(),this.finishNode(n,"TSModuleBlock")}$1q(n,h){if(n.isExport=h,n.id=this.parseIdent(),this.checkLValSimple(n.id,X),this.expect(o.eq),this.isContextual("require")&&this.$2()===se){let d=this.startNode();this.next(),d.expression=this.$1f(),n.moduleReference=this.finishNode(d,"TSExternalModuleReference")}else n.moduleReference=this.$j();return this.semicolon(),this.finishNode(n,"TSImportEqualsDeclaration")}$2i(){let n=this.$d();if(this.input.charCodeAt(n)!==ut)return!1;let h=this.input.charCodeAt(n+1);return h!==ut&&h!==62}parseStatement(n,h,d){if(this.type===u)this.$1r(!0);let l=this.$1l();if(l)return l;return super.parseStatement(n,h,d)}parseVarStatement(n,h,d){return super.parseVarStatement(n,h,d||this.$6)}parseVarId(n,h){if(super.parseVarId(n,h),n.id.type==="Identifier"&&this.$s()&&!this.hasPrecedingLineBreak())this.next(),n.definite=!0;this.$g(n.id,!1)}parseCatchClauseParam(){let n=this.$g(this.parseBindingAtom(),!1),h=n.type==="Identifier";return this.enterScope(h?Ie:0),this.checkLValPattern(n,h?Oe:X),this.expect(o.parenR),n}parseImport(n){if(this.next(),n.importKind="value",this.type===o.string)n.specifiers=[],n.source=this.parseExprAtom();else{if(this.isContextual("type")){let h=this.$2();if(h===ct||h===Nt||s(h)&&this.$3()!=="from")n.importKind="type",this.next()}if(this.type===o.name&&this.$2i())return this.$1q(n,!1);n.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),n.source=this.$y()}return this.$1s(n),this.semicolon(),this.finishNode(n,"ImportDeclaration")}parseWithClause(){if(this.isContextual("assert")&&!this.hasPrecedingLineBreak())this.type=o._with;return this.type===o._with?super.parseWithClause():void 0}$1s(n){let h=this.parseWithClause();if(h)n.attributes=h}parseImportSpecifier(){return this.$1t("importKind",()=>super.parseImportSpecifier())}parseExportSpecifier(n){return this.$1t("exportKind",()=>super.parseExportSpecifier(n))}$1t(n,h){let d=this.isContextual("type")?this.$2():-1;if(d===Ct||d===Tt||s(d)&&this.$3()!=="as"){let m=this.startNode();this.next();let y=h();return this.$l(y,m),y[n]="type",y}let l=h();return l[n]="value",l}parseExport(n,h){if(this.next(),this.eat(o._import)){if(n.importKind="value",this.isContextual("type")&&s(this.$2())&&this.$3()!=="from")n.importKind="type",this.next();return this.$1q(n,!0)}if(this.eat(o.eq))return n.expression=this.parseExpression(),this.semicolon(),this.finishNode(n,"TSExportAssignment");if(this.eatContextual("as"))return this.expectContextual("namespace"),n.id=this.parseIdent(),this.semicolon(),this.finishNode(n,"TSNamespaceExportDeclaration");if(n.exportKind="value",this.isContextual("type")){let m=this.$2();if(m===ct||m===Nt)n.exportKind="type",this.next()}if(this.eat(o.star))return this.parseExportAllDeclaration(n,h);if(this.eat(o._default)){if(this.isContextual("interface")&&this.$15())n.declaration=this.$1n(this.startNode());else if(this.isContextual("abstract")&&this.$3()==="class")n.declaration=this.$1o(this.startNode(),"nullableID");else n.declaration=this.parseExportDefaultDeclaration();return this.finishNode(n,"ExportDefaultDeclaration")}let d=this.isContextual("declare"),l=this.$1l(!0);if(l||this.shouldParseExportStatement()){if(n.declaration=l??this.parseStatement(null),d||n.declaration.type==="TSInterfaceDeclaration"||n.declaration.type==="TSTypeAliasDeclaration")n.exportKind="type";return n.specifiers=[],n.source=null,this.finishNode(n,"ExportNamedDeclaration")}if(n.declaration=null,n.specifiers=this.parseExportSpecifiers(h),this.eatContextual("from"))n.source=this.$y(),this.$1s(n);else{for(let m of n.specifiers)if(this.checkUnreserved(m.local),this.checkLocalExport(m.local),m.local.type==="Literal")this.raise(m.local.start,"A string literal cannot be used as an exported binding without `from`.");n.source=null}return this.semicolon(),this.finishNode(n,"ExportNamedDeclaration")}parseFunction(n,h,d,l,m){let y=hⅇif(y)this.$i=n;super.parseFunction(n,h,d,l,m),this.$i=null;let x=!n.body;if(x)n.type="TSDeclareFunction";if(y&&n.id){if(x){if(this.$6&&this.currentScope().flags&Zt)this.declareName(n.id.name,Et,n.id.start);this.checkLValSimple(n.id,_e)}else if(!(h&Me))this.checkLValSimple(n.id,this.strict||n.generator||n.async?this.treatFunctionsAsVar?Re:X:Ve)}return n}parseFunctionParams(n){if(this.$1())n.typeParameters=this.$7();if(super.parseFunctionParams(n),this.type===o.colon)n.returnType=this.$4(!0)}parseFunctionBody(n,h,d,l){if(d&&this.type===o.colon)n.returnType=this.$4(!0);if(h||this.type===o.braceL){super.parseFunctionBody(n,h,d,l);return}this.semicolon(),this.exitScope()}parseMethod(n,h,d){let l=this.$o;this.$o=null;let m=super.parseMethod(n,h,d);if(!m.body)m.type="TSDeclareMethod";if(l)m.typeParameters=l;return m}parseBindingList(n,h,d,l){let m=l||this.$p;return this.$p=!1,super.parseBindingList(n,h,d,m)}$n(n){if(!n&&!this.$a())return!1;let h=this.$2();return h===Ue||h===ct||h===Nt||h===ie||h===je||h===Ct||h===Tt||h>=48&&h<=57||s(h)}parseAssignableListItem(n){let h=this.$11(),d=this.start,l=this.startLoc,m,y=!1,x=!1;if(n)while(this.type===o.name&&Ee.has(this.value)&&!this.containsEsc&&this.$n(!1)){if(this.value==="readonly")y=!0;else if(this.value==="override")x=!0;else m=this.value;this.next()}let v;if(this.type===o._this)v=this.startNode(),v.name="this",this.next(),this.finishNode(v,"Identifier");else v=this.parseBindingAtom();let C=this.type===o.eq?this.parseMaybeDefault(d,l,v):this.parseMaybeDefault(v.start,v.loc?.start,this.$g(v,!0));if(h.length>0)C.decorators=h;if(!m&&!y&&!x)return C;let A=this.startNodeAt(d,l);if(m)A.accessibility=m;if(y)A.readonly=!0;if(x)A.override=!0;return A.parameter=C,this.finishNode(A,"TSParameterProperty")}parseBindingListItem(n){if(n.type==="RestElement")this.$g(n,!0);return n}checkLValSimple(n,h,d){if(this.$i&&n===this.$i.id){this.$i=null;return}if(!h&&Jt.has(n.type))return this.checkLValSimple(n.expression,h,d);switch(n.type){case"TSParameterProperty":return this.checkLValInnerPattern(n.parameter,h,d);case"Identifier":if(n.name==="this")return}return super.checkLValSimple(n,h,d)}toAssignable(n,h,d){if(n&&!h&&Jt.has(n.type))return n;return super.toAssignable(n,h,d)}declareName(n,h,d){let l=this.currentScope();if(h&Et){this.$1u(l,n),l.$1v??=[],l.$1v.push(n);return}if(h===At||h===te){if(l.$12??=[],h===At&&l.$12.includes(n))this.raise(d,`type '${n}' has already been declared.`);l.$12.push(n),this.$1u(l,n);return}if(h&ne){if(l.$1w??=[],l.$1w.includes(n))return;super.declareName(n,X,d),l.$1w.push(n);return}super.declareName(n,h,d)}$1u(n,h){if(this.inModule&&n.flags&Zt)delete this.undefinedExports[h]}checkLocalExport(n){for(let h=this.scopeStack.length-1;h>=0;h--){let d=this.scopeStack[h];if(d.$12?.includes(n.name)||d.$1v?.includes(n.name))return}super.checkLocalExport(n)}checkExport(){}raiseRecoverable(n,h){if(h==="Duplicate constructor in the same class")return;super.raiseRecoverable(n,h)}$11(){let n=[];while(this.type===u)n.push(this.$1x());return n}$1r(n){let h=this.$b[this.$b.length-1];while(this.type===u)h.push(this.$1x());if(this.type===o._export){if(!n)this.unexpected()}else if(this.type!==o._class&&!((this.isContextual("abstract")||this.isContextual("declare"))&&this.$3()==="class"))this.raise(this.start,"Leading decorators must be attached to a class declaration.")}$1x(){let n=this.startNode();this.next(),this.$b.push([]);let h=this.start,d=this.startLoc,l;if(this.type===o.parenL){if(this.next(),l=this.parseExpression(),this.expect(o.parenR),this.options.preserveParens){let y=this.startNodeAt(h,d);y.expression=l,l=this.finishNode(y,"ParenthesizedExpression")}}else{l=this.parseIdent(!1);while(this.eat(o.dot)){let y=this.startNodeAt(h,d);y.object=l,y.property=this.parseIdent(!0),y.computed=!1,l=this.finishNode(y,"MemberExpression")}}let m=this.$k()?this.$e():void 0;if(this.eat(o.parenL)){let y=this.startNodeAt(l.start,l.loc?.start);if(y.callee=l,y.arguments=this.parseExprList(o.parenR,!1,!1),m)y.typeArguments=m;l=this.finishNode(y,"CallExpression")}else if(m){let y=this.startNodeAt(l.start,l.loc?.start);y.expression=l,y.typeArguments=m,l=this.finishNode(y,"TSInstantiationExpression")}return n.expression=l,this.$b.pop(),this.finishNode(n,"Decorator")}shouldParseExportStatement(){return this.type===u||super.shouldParseExportStatement()}parseExprAtom(n,h,d){if(this.type===u)this.$1r(!1);return super.parseExprAtom(n,h,d)}parseProperty(n,h){if(n||this.type!==u)return super.parseProperty(n,h);let d=this.$11(),l=super.parseProperty(n,h);if(l.type==="SpreadElement")this.raise(l.start,"Decorators can't be used with SpreadElement");return l.decorators=d,l}parseClassId(n,h){let d=this.$b.length-1,l=this.$b[d];if(l.length>0)n.decorators=l,this.$l(n,l[0]),this.$b[d]=[];if(!this.isContextual("implements")||h===!0)super.parseClassId(n,h);if(this.$1())n.typeParameters=this.$7()}parseClassSuper(n){if(super.parseClassSuper(n),n.superClass&&this.$1())n.superTypeParameters=this.$e();if(this.eatContextual("implements"))n.implements=this.$9(()=>this.$1k())}parseClassElement(n){if(this.type===u){let x=this.$11();if(this.type===o.braceR)this.raise(this.start,"Decorators must be attached to a class element.");let v=this.parseClassElement(n);return v.decorators=x,this.$l(v,x[0]),v}if(this.eat(o.semi))return null;let h=this.startNode();while(this.type===o.name&&Te.has(this.value)&&!this.containsEsc&&this.$n(this.value==="static")){let x=this.value;if(this.next(),x==="static"&&this.type===o.braceL)return this.next(),this.parseClassStaticBlock(h),h;if(x==="public"||x==="private"||x==="protected")h.accessibility=x;else h[x]=!0}if(this.type===o.bracketL&&this.$1h())return this.$1i(h);h.static??=!1;let d="",l=!1,m=!1,y="method";if(this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===o.star)&&!this.canInsertSemicolon())m=!0;else d="async";if(!d&&this.eat(o.star))l=!0;if(!d&&!m&&!l){let x=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())y=x;else d=x}if(d)h.computed=!1,h.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),h.key.name=d,this.finishNode(h.key,"Identifier");else this.parseClassElementName(h);if(this.eat(o.question))h.optional=!0;if(this.type===o.parenL||this.$1()||y!=="method"||l||m){let x=h.key,v=!h.static&&!h.computed&&(x.type==="Identifier"&&x.name==="constructor"||x.type==="Literal"&&x.value==="constructor");if(h.kind=v?"constructor":y,this.$1())h.typeParameters=this.$7();this.$p=v,this.parseClassMethod(h,l,m,v&&n)}else{if(!h.optional&&this.$s())this.next(),h.definite=!0;if(this.type===o.colon)h.typeAnnotation=this.$4();this.parseClassField(h)}return h}parseMaybeAssign(n,h,d){if(this.$k()){let l=this.$f(()=>{let m=this.$7(),y=super.parseMaybeAssign(n,h,d);if(y.type!=="ArrowFunctionExpression")return;return y.typeParameters=m,this.$l(y,m),y});if(l)return l}return super.parseMaybeAssign(n,h,d)}parseMaybeUnary(n,h,d,l){if(this.$k()){let m=this.startNode();return m.typeAnnotation=this.$9(()=>{this.next();let y=this.$0();if(!this.$c())this.unexpected();return this.next(),y}),m.expression=this.parseMaybeUnary(null,!1,!1,l),this.finishNode(m,"TSTypeAssertion")}return super.parseMaybeUnary(n,h,d,l)}parseMaybeConditional(n,h){let d=this.start,l=this.startLoc,m=this.parseExprOps(n,h);if(this.checkExpressionErrors(h))return m;if(this.type===o.question&&!(m.type==="ArrowFunctionExpression"&&m.start===d)&&!this.$2j()){this.next();let y=this.startNodeAt(d,l);return y.test=m,y.consequent=this.parseMaybeAssign(),this.expect(o.colon),y.alternate=this.parseMaybeAssign(n),this.finishNode(y,"ConditionalExpression")}return m}$2j(){let n=this.$d(),h=this.input.charCodeAt(n);if(h===ae||h===qe||h===De)return!0;return h===ut&&this.input.charCodeAt(n+1)!==ut}parseParenItem(n){return this.$g(n,!0)}$1y(){if(this.type!==o.colon)return!0;let n=this.$f(()=>{let h=this.$4(!0);return this.type===o.arrow&&!this.canInsertSemicolon()?h:void 0});if(!n)return!1;return this.$8=n,!0}shouldParseArrow(n){return this.$1y()&&super.shouldParseArrow(n)}shouldParseAsyncArrow(){return this.$1y()&&super.shouldParseAsyncArrow()}parseArrowExpression(n,h,d,l){if(this.$8)n.returnType=this.$8,this.$8=null;return super.parseArrowExpression(n,h,d,l)}parseExprList(n,h,d,l){if(!this.$q)return super.parseExprList(n,h,d,l);this.$q=!1;let m=[],y=!0;while(!this.eat(n)){if(y)y=!1;else if(this.expect(o.comma),h&&this.afterTrailingComma(n))break;if(this.type===o.ellipsis){let x=this.parseSpread(l);if(this.eat(o.question))x.optional=!0;if(this.type===o.colon)x.typeAnnotation=this.$4();m.push(x)}else m.push(this.parseMaybeAssign(!1,l,this.parseParenItem))}return m}parseSubscript(n,h,d,l,m,y,x){if(this.$s()&&!this.hasPrecedingLineBreak()){let C=this.startNodeAt(h,d);return this.exprAllowed=!1,this.next(),C.expression=n,this.finishNode(C,"TSNonNullExpression")}if(m&&this.$1()){let C=this.$f(()=>this.$2k(h,d,x));if(C)return C}let v=this.type===o.questionDot&&this.$2()===re;if(this.$1()||v||this.type===o.bitShift&&this.value==="<<"){let C=this.$f(()=>{if(v)this.next();this.$k();let A=this.$e();if(this.type===o.parenL&&!l)return A;if(this.type===o.backQuote)return v?void 0:A;if(v)return;if(this.$c()||this.type===o.bitShift||this.type.startsExpr&&this.type!==o.parenL&&!this.hasPrecedingLineBreak())return;return A});if(C){let A=this.startNodeAt(h,d);if(this.type===o.parenL&&!l){if(this.next(),A.callee=n,A.arguments=this.parseExprList(o.parenR,!0,!1),A.typeArguments=C,v)n.optional=!0;if(v||y)A.optional=v;return this.finishNode(A,"CallExpression")}if(this.type===o.backQuote)return A.tag=n,A.quasi=this.parseTemplate({isTagged:!0}),A.typeArguments=C,this.finishNode(A,"TaggedTemplateExpression");return A.expression=n,A.typeArguments=C,this.finishNode(A,"TSInstantiationExpression")}}if(m&&this.type===o.parenL)this.$q=!0;return super.parseSubscript(n,h,d,l,m,y,x)}$2k(n,h,d){let l=this.startNodeAt(n,h);if(l.typeParameters=this.$7(),this.expect(o.parenL),l.params=this.parseBindingList(o.parenR,!1,!0),this.type===o.colon)l.returnType=this.$4(!0);if(this.type!==o.arrow||this.canInsertSemicolon())return;return this.next(),this.parseArrowExpression(l,l.params,!0,d)}parseDynamicImport(n){if(this.next(),n.source=this.parseMaybeAssign(),this.eat(o.comma)&&this.type!==o.parenR)n.arguments=[this.parseExpression()];return this.expect(o.parenR),this.finishNode(n,"ImportExpression")}parseNew(){let n=super.parseNew();if(n.callee?.type!=="TSInstantiationExpression")return n;let h=this.startNodeAt(n.start,n.loc?.start);return h.callee=n.callee.expression,h.typeArguments=n.callee.typeArguments,h.arguments=n.arguments,this.finishNodeAt(h,"NewExpression",n.end,n.loc?.end)}parseExprOp(n,h,d,l,m){if(o._in.binop>l&&this.type===o.name&&(this.value==="as"||this.value==="satisfies")&&!this.containsEsc&&!this.hasPrecedingLineBreak()){let y=this.value==="satisfies",x=this.startNodeAt(h,d);return x.expression=n,x.typeAnnotation=this.$9(()=>{if(this.next(),!y&&this.type===o._const){let v=this.startNode();return v.typeName=this.parseIdent(!0),this.finishNode(v,"TSTypeReference")}return this.$0()}),this.finishNode(x,y?"TSSatisfiesExpression":"TSAsExpression"),this.parseExprOp(x,h,d,l,m)}return super.parseExprOp(n,h,d,l,m)}parseGetterSetter(n){n.kind=n.key.name,super.parseGetterSetter(n)}parsePropertyValue(n,h,d,l,m,y,x,v){if(!h&&this.$1()){if(this.$o=this.$7(),this.type!==o.parenL)this.unexpected();n.kind="init"}return super.parsePropertyValue(n,h,d,l,m,y,x,v)}}return p}
|
|
10
|
+
export{s,a,c,e,i,f};
|