react-code-locator 0.2.9 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.cjs +1 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/esbuild.cjs +16 -16
- package/dist/esbuild.cjs.map +1 -1
- package/dist/esbuild.js +16 -16
- package/dist/esbuild.js.map +1 -1
- package/dist/index.cjs +20 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -20
- package/dist/index.js.map +1 -1
- package/dist/swc.cjs +16 -16
- package/dist/swc.cjs.map +1 -1
- package/dist/swc.js +16 -16
- package/dist/swc.js.map +1 -1
- package/dist/unplugin.cjs +20 -20
- package/dist/unplugin.cjs.map +1 -1
- package/dist/unplugin.js +20 -20
- package/dist/unplugin.js.map +1 -1
- package/dist/webpack.cjs +19 -19
- package/dist/webpack.cjs.map +1 -1
- package/dist/webpack.js +19 -19
- package/dist/webpack.js.map +1 -1
- package/package.json +1 -1
package/dist/swc.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
var qr=Object.create;var pi=Object.defineProperty;var Hr=Object.getOwnPropertyDescriptor;var Wr=Object.getOwnPropertyNames;var zr=Object.getPrototypeOf,Gr=Object.prototype.hasOwnProperty;var li=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),Kr=(t,i)=>{for(var n in i)pi(t,n,{get:i[n],enumerable:!0})},Xr=(t,i,n,u)=>{if(i&&typeof i=="object"||typeof i=="function")for(let p of Wr(i))!Gr.call(t,p)&&p!==n&&pi(t,p,{get:()=>i[p],enumerable:!(u=Hr(i,p))||u.enumerable});return t};var Jr=(t,i,n)=>(n=t!=null?qr(zr(t)):{},Xr(i||!t||!t.__esModule?pi(n,"default",{value:t,enumerable:!0}):n,t));var Ys=li((en,Qs)=>{"use strict";Qs.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}});var Ti=li((si,Zs)=>{"use strict";(function(t,i){typeof si=="object"&&typeof Zs<"u"?i(si):typeof define=="function"&&define.amd?define(["exports"],i):(t=typeof globalThis<"u"?globalThis:t||self,i(t.acorn={}))})(si,(function(t){"use strict";var i=[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],n=[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],u="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",p="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",g={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"},b="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",T={5:b,"5module":b+" export import",6:b+" const class extends export import super"},w=/^in(stanceof)?$/,l=new RegExp("["+p+"]"),W=new RegExp("["+p+u+"]");function Y(e,r){for(var o=65536,h=0;h<r.length;h+=2){if(o+=r[h],o>e)return!1;if(o+=r[h+1],o>=e)return!0}return!1}function tt(e,r){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&l.test(String.fromCharCode(e)):r===!1?!1:Y(e,n)}function E(e,r){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&W.test(String.fromCharCode(e)):r===!1?!1:Y(e,n)||Y(e,i)}var N=function(r,o){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 D(e,r){return new N(e,{beforeExpr:!0,binop:r})}var I={beforeExpr:!0},K={startsExpr:!0},xt={};function G(e,r){return r===void 0&&(r={}),r.keyword=e,xt[e]=new N(e,r)}var f={num:new N("num",K),regexp:new N("regexp",K),string:new N("string",K),name:new N("name",K),privateId:new N("privateId",K),eof:new N("eof"),bracketL:new N("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new N("]"),braceL:new N("{",{beforeExpr:!0,startsExpr:!0}),braceR:new N("}"),parenL:new N("(",{beforeExpr:!0,startsExpr:!0}),parenR:new N(")"),comma:new N(",",I),semi:new N(";",I),colon:new N(":",I),dot:new N("."),question:new N("?",I),questionDot:new N("?."),arrow:new N("=>",I),template:new N("template"),invalidTemplate:new N("invalidTemplate"),ellipsis:new N("...",I),backQuote:new N("`",K),dollarBraceL:new N("${",{beforeExpr:!0,startsExpr:!0}),eq:new N("=",{beforeExpr:!0,isAssign:!0}),assign:new N("_=",{beforeExpr:!0,isAssign:!0}),incDec:new N("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new N("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:D("||",1),logicalAND:D("&&",2),bitwiseOR:D("|",3),bitwiseXOR:D("^",4),bitwiseAND:D("&",5),equality:D("==/!=/===/!==",6),relational:D("</>/<=/>=",7),bitShift:D("<</>>/>>>",8),plusMin:new N("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:D("%",10),star:D("*",10),slash:D("/",10),starstar:new N("**",{beforeExpr:!0}),coalesce:D("??",1),_break:G("break"),_case:G("case",I),_catch:G("catch"),_continue:G("continue"),_debugger:G("debugger"),_default:G("default",I),_do:G("do",{isLoop:!0,beforeExpr:!0}),_else:G("else",I),_finally:G("finally"),_for:G("for",{isLoop:!0}),_function:G("function",K),_if:G("if"),_return:G("return",I),_switch:G("switch"),_throw:G("throw",I),_try:G("try"),_var:G("var"),_const:G("const"),_while:G("while",{isLoop:!0}),_with:G("with"),_new:G("new",{beforeExpr:!0,startsExpr:!0}),_this:G("this",K),_super:G("super",K),_class:G("class",K),_extends:G("extends",I),_export:G("export"),_import:G("import",K),_null:G("null",K),_true:G("true",K),_false:G("false",K),_in:G("in",{beforeExpr:!0,binop:7}),_instanceof:G("instanceof",{beforeExpr:!0,binop:7}),_typeof:G("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:G("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:G("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},yt=/\r\n?|\n|\u2028|\u2029/,nt=new RegExp(yt.source,"g");function Rt(e){return e===10||e===13||e===8232||e===8233}function Me(e,r,o){o===void 0&&(o=e.length);for(var h=r;h<o;h++){var x=e.charCodeAt(h);if(Rt(x))return h<o-1&&x===13&&e.charCodeAt(h+1)===10?h+2:h+1}return-1}var ge=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,vt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,R=Object.prototype,St=R.hasOwnProperty,bt=R.toString,ot=Object.hasOwn||(function(e,r){return St.call(e,r)}),et=Array.isArray||(function(e){return bt.call(e)==="[object Array]"}),y=Object.create(null);function s(e){return y[e]||(y[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function a(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var c=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,m=function(r,o){this.line=r,this.column=o};m.prototype.offset=function(r){return new m(this.line,this.column+r)};var v=function(r,o,h){this.start=o,this.end=h,r.sourceFile!==null&&(this.source=r.sourceFile)};function S(e,r){for(var o=1,h=0;;){var x=Me(e,h,r);if(x<0)return new m(o,r-h);++o,h=x}}var k={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},_=!1;function P(e){var r={};for(var o in k)r[o]=e&&ot(e,o)?e[o]:k[o];if(r.ecmaVersion==="latest"?r.ecmaVersion=1e8:r.ecmaVersion==null?(!_&&typeof console=="object"&&console.warn&&(_=!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):r.ecmaVersion>=2015&&(r.ecmaVersion-=2009),r.allowReserved==null&&(r.allowReserved=r.ecmaVersion<5),(!e||e.allowHashBang==null)&&(r.allowHashBang=r.ecmaVersion>=14),et(r.onToken)){var h=r.onToken;r.onToken=function(x){return h.push(x)}}if(et(r.onComment)&&(r.onComment=V(r,r.onComment)),r.sourceType==="commonjs"&&r.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return r}function V(e,r){return function(o,h,x,C,A,L){var O={type:o?"Block":"Line",value:h,start:x,end:C};e.locations&&(O.loc=new v(this,A,L)),e.ranges&&(O.range=[x,C]),r.push(O)}}var B=1,
|
|
3
|
-
`,h-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(yt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=f.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||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"?z:B),this.regexpState=null,this.privateNameStack=[]},At={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}};at.prototype.parse=function(){var r=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(r)},At.inFunction.get=function(){return(this.currentVarScope().flags&z)>0},At.inGenerator.get=function(){return(this.currentVarScope().flags&ht)>0},At.inAsync.get=function(){return(this.currentVarScope().flags&M)>0},At.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var r=this.scopeStack[e],o=r.flags;if(o&(kt|Wt))return!1;if(o&z)return(o&M)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},At.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&B)},At.allowSuper.get=function(){var e=this.currentThisScope(),r=e.flags;return(r&mt)>0||this.options.allowSuperOutsideMethod},At.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Ct)>0},At.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},At.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var r=this.scopeStack[e],o=r.flags;if(o&(kt|Wt)||o&z&&!(o&ut))return!0}return!1},At.allowUsing.get=function(){var e=this.currentScope(),r=e.flags;return!(r&te||!this.inModule&&r&B)},At.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&kt)>0},at.extend=function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];for(var h=this,x=0;x<r.length;x++)h=r[x](h);return h},at.parse=function(r,o){return new this(o,r).parse()},at.parseExpressionAt=function(r,o,h){var x=new this(h,r,o);return x.nextToken(),x.parseExpression()},at.tokenizer=function(r,o){return new this(o,r)},Object.defineProperties(at.prototype,At);var gt=at.prototype,Ce=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;gt.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){vt.lastIndex=e,e+=vt.exec(this.input)[0].length;var r=Ce.exec(this.input.slice(e));if(!r)return!1;if((r[1]||r[2])==="use strict"){vt.lastIndex=e+r[0].length;var o=vt.exec(this.input),h=o.index+o[0].length,x=this.input.charAt(h);return x===";"||x==="}"||yt.test(o[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(x)||x==="!"&&this.input.charAt(h+1)==="=")}e+=r[0].length,vt.lastIndex=e,e+=vt.exec(this.input)[0].length,this.input[e]===";"&&e++}},gt.eat=function(e){return this.type===e?(this.next(),!0):!1},gt.isContextual=function(e){return this.type===f.name&&this.value===e&&!this.containsEsc},gt.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},gt.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},gt.canInsertSemicolon=function(){return this.type===f.eof||this.type===f.braceR||yt.test(this.input.slice(this.lastTokEnd,this.start))},gt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},gt.semicolon=function(){!this.eat(f.semi)&&!this.insertSemicolon()&&this.unexpected()},gt.afterTrailingComma=function(e,r){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),r||this.next(),!0},gt.expect=function(e){this.eat(e)||this.unexpected()},gt.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Be=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};gt.checkPatternErrors=function(e,r){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var o=r?e.parenthesizedAssign:e.parenthesizedBind;o>-1&&this.raiseRecoverable(o,r?"Assigning to rvalue":"Parenthesized pattern")}},gt.checkExpressionErrors=function(e,r){if(!e)return!1;var o=e.shorthandAssign,h=e.doubleProto;if(!r)return o>=0||h>=0;o>=0&&this.raise(o,"Shorthand property assignments are valid only in destructuring patterns"),h>=0&&this.raiseRecoverable(h,"Redefinition of __proto__ property")},gt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},gt.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var U=at.prototype;U.parseTopLevel=function(e){var r=Object.create(null);for(e.body||(e.body=[]);this.type!==f.eof;){var o=this.parseStatement(null,!0,r);e.body.push(o)}if(this.inModule)for(var h=0,x=Object.keys(this.undefinedExports);h<x.length;h+=1){var C=x[h];this.raiseRecoverable(this.undefinedExports[C].start,"Export '"+C+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var oi={kind:"loop"},dr={kind:"switch"};U.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;vt.lastIndex=this.pos;var r=vt.exec(this.input),o=this.pos+r[0].length,h=this.fullCharCodeAt(o);if(h===91||h===92)return!0;if(e)return!1;if(h===123)return!0;if(tt(h)){var x=o;do o+=h<=65535?1:2;while(E(h=this.fullCharCodeAt(o)));if(h===92)return!0;var C=this.input.slice(x,o);if(!w.test(C))return!0}return!1},U.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;vt.lastIndex=this.pos;var e=vt.exec(this.input),r=this.pos+e[0].length,o;return!yt.test(this.input.slice(this.pos,r))&&this.input.slice(r,r+8)==="function"&&(r+8===this.input.length||!(E(o=this.fullCharCodeAt(r+8))||o===92))},U.isUsingKeyword=function(e,r){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;vt.lastIndex=this.pos;var o=vt.exec(this.input),h=this.pos+o[0].length;if(yt.test(this.input.slice(this.pos,h)))return!1;if(e){var x=h+5,C;if(this.input.slice(h,x)!=="using"||x===this.input.length||E(C=this.fullCharCodeAt(x))||C===92)return!1;vt.lastIndex=x;var A=vt.exec(this.input);if(h=x+A[0].length,A&&yt.test(this.input.slice(x,h)))return!1}var L=this.fullCharCodeAt(h);if(!tt(L)&&L!==92)return!1;var O=h;do h+=L<=65535?1:2;while(E(L=this.fullCharCodeAt(h)));if(L===92)return!0;var X=this.input.slice(O,h);return!(w.test(X)||r&&X==="of")},U.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},U.isUsing=function(e){return this.isUsingKeyword(!1,e)},U.parseStatement=function(e,r,o){var h=this.type,x=this.startNode(),C;switch(this.isLet(e)&&(h=f._var,C="let"),h){case f._break:case f._continue:return this.parseBreakContinueStatement(x,h.keyword);case f._debugger:return this.parseDebuggerStatement(x);case f._do:return this.parseDoStatement(x);case f._for:return this.parseForStatement(x);case f._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(x,!1,!e);case f._class:return e&&this.unexpected(),this.parseClass(x,!0);case f._if:return this.parseIfStatement(x);case f._return:return this.parseReturnStatement(x);case f._switch:return this.parseSwitchStatement(x);case f._throw:return this.parseThrowStatement(x);case f._try:return this.parseTryStatement(x);case f._const:case f._var:return C=C||this.value,e&&C!=="var"&&this.unexpected(),this.parseVarStatement(x,C);case f._while:return this.parseWhileStatement(x);case f._with:return this.parseWithStatement(x);case f.braceL:return this.parseBlock(!0,x);case f.semi:return this.parseEmptyStatement(x);case f._export:case f._import:if(this.options.ecmaVersion>10&&h===f._import){vt.lastIndex=this.pos;var A=vt.exec(this.input),L=this.pos+A[0].length,O=this.input.charCodeAt(L);if(O===40||O===46)return this.parseExpressionStatement(x,this.parseExpression())}return this.options.allowImportExportEverywhere||(r||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),h===f._import?this.parseImport(x):this.parseExport(x,o);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(x,!0,!e);var X=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(X)return 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"),X==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(x,!1,X),this.semicolon(),this.finishNode(x,"VariableDeclaration");var $=this.value,lt=this.parseExpression();return h===f.name&<.type==="Identifier"&&this.eat(f.colon)?this.parseLabeledStatement(x,$,lt,e):this.parseExpressionStatement(x,lt)}},U.parseBreakContinueStatement=function(e,r){var o=r==="break";this.next(),this.eat(f.semi)||this.insertSemicolon()?e.label=null:this.type!==f.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var h=0;h<this.labels.length;++h){var x=this.labels[h];if((e.label==null||x.name===e.label.name)&&(x.kind!=null&&(o||x.kind==="loop")||e.label&&o))break}return h===this.labels.length&&this.raise(e.start,"Unsyntactic "+r),this.finishNode(e,o?"BreakStatement":"ContinueStatement")},U.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},U.parseDoStatement=function(e){return this.next(),this.labels.push(oi),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(f._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(f.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},U.parseForStatement=function(e){this.next();var r=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(oi),this.enterScope(0),this.expect(f.parenL),this.type===f.semi)return r>-1&&this.unexpected(r),this.parseFor(e,null);var o=this.isLet();if(this.type===f._var||this.type===f._const||o){var h=this.startNode(),x=o?"let":this.value;return this.next(),this.parseVar(h,!0,x),this.finishNode(h,"VariableDeclaration"),this.parseForAfterInit(e,h,r)}var C=this.isContextual("let"),A=!1,L=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(L){var O=this.startNode();return this.next(),L==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(O,!0,L),this.finishNode(O,"VariableDeclaration"),this.parseForAfterInit(e,O,r)}var X=this.containsEsc,$=new Be,lt=this.start,_t=r>-1?this.parseExprSubscripts($,"await"):this.parseExpression(!0,$);return this.type===f._in||(A=this.options.ecmaVersion>=6&&this.isContextual("of"))?(r>-1?(this.type===f._in&&this.unexpected(r),e.await=!0):A&&this.options.ecmaVersion>=8&&(_t.start===lt&&!X&&_t.type==="Identifier"&&_t.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),C&&A&&this.raise(_t.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(_t,!1,$),this.checkLValPattern(_t),this.parseForIn(e,_t)):(this.checkExpressionErrors($,!0),r>-1&&this.unexpected(r),this.parseFor(e,_t))},U.parseForAfterInit=function(e,r,o){return(this.type===f._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===f._in?o>-1&&this.unexpected(o):e.await=o>-1),this.parseForIn(e,r)):(o>-1&&this.unexpected(o),this.parseFor(e,r))},U.parseFunctionStatement=function(e,r,o){return this.next(),this.parseFunction(e,ke|(o?0:ui),!1,r)},U.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(f._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},U.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(f.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},U.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(f.braceL),this.labels.push(dr),this.enterScope(te);for(var r,o=!1;this.type!==f.braceR;)if(this.type===f._case||this.type===f._default){var h=this.type===f._case;r&&this.finishNode(r,"SwitchCase"),e.cases.push(r=this.startNode()),r.consequent=[],this.next(),h?r.test=this.parseExpression():(o&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),o=!0,r.test=null),this.expect(f.colon)}else r||this.unexpected(),r.consequent.push(this.parseStatement(null));return this.exitScope(),r&&this.finishNode(r,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},U.parseThrowStatement=function(e){return this.next(),yt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var mr=[];U.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),r=e.type==="Identifier";return this.enterScope(r?ct:0),this.checkLValPattern(e,r?be:Ot),this.expect(f.parenR),e},U.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===f._catch){var r=this.startNode();this.next(),this.eat(f.parenL)?r.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),r.param=null,this.enterScope(0)),r.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(r,"CatchClause")}return e.finalizer=this.eat(f._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},U.parseVarStatement=function(e,r,o){return this.next(),this.parseVar(e,!1,r,o),this.semicolon(),this.finishNode(e,"VariableDeclaration")},U.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(oi),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},U.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},U.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},U.parseLabeledStatement=function(e,r,o,h){for(var x=0,C=this.labels;x<C.length;x+=1){var A=C[x];A.name===r&&this.raise(o.start,"Label '"+r+"' is already declared")}for(var L=this.type.isLoop?"loop":this.type===f._switch?"switch":null,O=this.labels.length-1;O>=0;O--){var X=this.labels[O];if(X.statementStart===e.start)X.statementStart=this.start,X.kind=L;else break}return this.labels.push({name:r,kind:L,statementStart:this.start}),e.body=this.parseStatement(h?h.indexOf("label")===-1?h+"label":h:"label"),this.labels.pop(),e.label=o,this.finishNode(e,"LabeledStatement")},U.parseExpressionStatement=function(e,r){return e.expression=r,this.semicolon(),this.finishNode(e,"ExpressionStatement")},U.parseBlock=function(e,r,o){for(e===void 0&&(e=!0),r===void 0&&(r=this.startNode()),r.body=[],this.expect(f.braceL),e&&this.enterScope(0);this.type!==f.braceR;){var h=this.parseStatement(null);r.body.push(h)}return o&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(r,"BlockStatement")},U.parseFor=function(e,r){return e.init=r,this.expect(f.semi),e.test=this.type===f.semi?null:this.parseExpression(),this.expect(f.semi),e.update=this.type===f.parenR?null:this.parseExpression(),this.expect(f.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},U.parseForIn=function(e,r){var o=this.type===f._in;return 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"),e.left=r,e.right=o?this.parseExpression():this.parseMaybeAssign(),this.expect(f.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,o?"ForInStatement":"ForOfStatement")},U.parseVar=function(e,r,o,h){for(e.declarations=[],e.kind=o;;){var x=this.startNode();if(this.parseVarId(x,o),this.eat(f.eq)?x.init=this.parseMaybeAssign(r):!h&&o==="const"&&!(this.type===f._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!h&&(o==="using"||o==="await using")&&this.options.ecmaVersion>=17&&this.type!==f._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+o+" declaration"):!h&&x.id.type!=="Identifier"&&!(r&&(this.type===f._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):x.init=null,e.declarations.push(this.finishNode(x,"VariableDeclarator")),!this.eat(f.comma))break}return e},U.parseVarId=function(e,r){e.id=r==="using"||r==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,r==="var"?re:Ot,!1)};var ke=1,ui=2,Di=4;U.parseFunction=function(e,r,o,h,x){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!h)&&(this.type===f.star&&r&ui&&this.unexpected(),e.generator=this.eat(f.star)),this.options.ecmaVersion>=8&&(e.async=!!h),r&ke&&(e.id=r&Di&&this.type!==f.name?null:this.parseIdent(),e.id&&!(r&ui)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?re:Ot:ae));var C=this.yieldPos,A=this.awaitPos,L=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(pe(e.async,e.generator)),r&ke||(e.id=this.type===f.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,o,!1,x),this.yieldPos=C,this.awaitPos=A,this.awaitIdentPos=L,this.finishNode(e,r&ke?"FunctionDeclaration":"FunctionExpression")},U.parseFunctionParams=function(e){this.expect(f.parenL),e.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},U.parseClass=function(e,r){this.next();var o=this.strict;this.strict=!0,this.parseClassId(e,r),this.parseClassSuper(e);var h=this.enterClassBody(),x=this.startNode(),C=!1;for(x.body=[],this.expect(f.braceL);this.type!==f.braceR;){var A=this.parseClassElement(e.superClass!==null);A&&(x.body.push(A),A.type==="MethodDefinition"&&A.kind==="constructor"?(C&&this.raiseRecoverable(A.start,"Duplicate constructor in the same class"),C=!0):A.key&&A.key.type==="PrivateIdentifier"&&xr(h,A)&&this.raiseRecoverable(A.key.start,"Identifier '#"+A.key.name+"' has already been declared"))}return this.strict=o,this.next(),e.body=this.finishNode(x,"ClassBody"),this.exitClassBody(),this.finishNode(e,r?"ClassDeclaration":"ClassExpression")},U.parseClassElement=function(e){if(this.eat(f.semi))return null;var r=this.options.ecmaVersion,o=this.startNode(),h="",x=!1,C=!1,A="method",L=!1;if(this.eatContextual("static")){if(r>=13&&this.eat(f.braceL))return this.parseClassStaticBlock(o),o;this.isClassElementNameStart()||this.type===f.star?L=!0:h="static"}if(o.static=L,!h&&r>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===f.star)&&!this.canInsertSemicolon()?C=!0:h="async"),!h&&(r>=9||!C)&&this.eat(f.star)&&(x=!0),!h&&!C&&!x){var O=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?A=O:h=O)}if(h?(o.computed=!1,o.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),o.key.name=h,this.finishNode(o.key,"Identifier")):this.parseClassElementName(o),r<13||this.type===f.parenL||A!=="method"||x||C){var X=!o.static&&Fe(o,"constructor"),$=X&&e;X&&A!=="method"&&this.raise(o.key.start,"Constructor can't have get/set modifier"),o.kind=X?"constructor":A,this.parseClassMethod(o,x,C,$)}else this.parseClassField(o);return o},U.isClassElementNameStart=function(){return this.type===f.name||this.type===f.privateId||this.type===f.num||this.type===f.string||this.type===f.bracketL||this.type.keyword},U.parseClassElementName=function(e){this.type===f.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},U.parseClassMethod=function(e,r,o,h){var x=e.key;e.kind==="constructor"?(r&&this.raise(x.start,"Constructor can't be a generator"),o&&this.raise(x.start,"Constructor can't be an async method")):e.static&&Fe(e,"prototype")&&this.raise(x.start,"Classes may not have a static property named prototype");var C=e.value=this.parseMethod(r,o,h);return e.kind==="get"&&C.params.length!==0&&this.raiseRecoverable(C.start,"getter should have no params"),e.kind==="set"&&C.params.length!==1&&this.raiseRecoverable(C.start,"setter should have exactly one param"),e.kind==="set"&&C.params[0].type==="RestElement"&&this.raiseRecoverable(C.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},U.parseClassField=function(e){return Fe(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Fe(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(f.eq)?(this.enterScope(Wt|mt),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},U.parseClassStaticBlock=function(e){e.body=[];var r=this.labels;for(this.labels=[],this.enterScope(kt|mt);this.type!==f.braceR;){var o=this.parseStatement(null);e.body.push(o)}return this.next(),this.exitScope(),this.labels=r,this.finishNode(e,"StaticBlock")},U.parseClassId=function(e,r){this.type===f.name?(e.id=this.parseIdent(),r&&this.checkLValSimple(e.id,Ot,!1)):(r===!0&&this.unexpected(),e.id=null)},U.parseClassSuper=function(e){e.superClass=this.eat(f._extends)?this.parseExprSubscripts(null,!1):null},U.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},U.exitClassBody=function(){var e=this.privateNameStack.pop(),r=e.declared,o=e.used;if(this.options.checkPrivateFields)for(var h=this.privateNameStack.length,x=h===0?null:this.privateNameStack[h-1],C=0;C<o.length;++C){var A=o[C];ot(r,A.name)||(x?x.used.push(A):this.raiseRecoverable(A.start,"Private field '#"+A.name+"' must be declared in an enclosing class"))}};function xr(e,r){var o=r.key.name,h=e[o],x="true";return r.type==="MethodDefinition"&&(r.kind==="get"||r.kind==="set")&&(x=(r.static?"s":"i")+r.kind),h==="iget"&&x==="iset"||h==="iset"&&x==="iget"||h==="sget"&&x==="sset"||h==="sset"&&x==="sget"?(e[o]="true",!1):h?!0:(e[o]=x,!1)}function Fe(e,r){var o=e.computed,h=e.key;return!o&&(h.type==="Identifier"&&h.name===r||h.type==="Literal"&&h.value===r)}U.parseExportAllDeclaration=function(e,r){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(r,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==f.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},U.parseExport=function(e,r){if(this.next(),this.eat(f.star))return this.parseExportAllDeclaration(e,r);if(this.eat(f._default))return this.checkExport(r,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(r,e.declaration.declarations):this.checkExport(r,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(r),this.eatContextual("from"))this.type!==f.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var o=0,h=e.specifiers;o<h.length;o+=1){var x=h[o];this.checkUnreserved(x.local),this.checkLocalExport(x.local),x.local.type==="Literal"&&this.raise(x.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},U.parseExportDeclaration=function(e){return this.parseStatement(null)},U.parseExportDefaultDeclaration=function(){var e;if(this.type===f._function||(e=this.isAsyncFunction())){var r=this.startNode();return this.next(),e&&this.next(),this.parseFunction(r,ke|Di,!1,e)}else if(this.type===f._class){var o=this.startNode();return this.parseClass(o,"nullableID")}else{var h=this.parseMaybeAssign();return this.semicolon(),h}},U.checkExport=function(e,r,o){e&&(typeof r!="string"&&(r=r.type==="Identifier"?r.name:r.value),ot(e,r)&&this.raiseRecoverable(o,"Duplicate export '"+r+"'"),e[r]=!0)},U.checkPatternExport=function(e,r){var o=r.type;if(o==="Identifier")this.checkExport(e,r,r.start);else if(o==="ObjectPattern")for(var h=0,x=r.properties;h<x.length;h+=1){var C=x[h];this.checkPatternExport(e,C)}else if(o==="ArrayPattern")for(var A=0,L=r.elements;A<L.length;A+=1){var O=L[A];O&&this.checkPatternExport(e,O)}else o==="Property"?this.checkPatternExport(e,r.value):o==="AssignmentPattern"?this.checkPatternExport(e,r.left):o==="RestElement"&&this.checkPatternExport(e,r.argument)},U.checkVariableExport=function(e,r){if(e)for(var o=0,h=r;o<h.length;o+=1){var x=h[o];this.checkPatternExport(e,x.id)}},U.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},U.parseExportSpecifier=function(e){var r=this.startNode();return r.local=this.parseModuleExportName(),r.exported=this.eatContextual("as")?this.parseModuleExportName():r.local,this.checkExport(e,r.exported,r.exported.start),this.finishNode(r,"ExportSpecifier")},U.parseExportSpecifiers=function(e){var r=[],o=!0;for(this.expect(f.braceL);!this.eat(f.braceR);){if(o)o=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;r.push(this.parseExportSpecifier(e))}return r},U.parseImport=function(e){return this.next(),this.type===f.string?(e.specifiers=mr,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===f.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},U.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,Ot),this.finishNode(e,"ImportSpecifier")},U.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Ot),this.finishNode(e,"ImportDefaultSpecifier")},U.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,Ot),this.finishNode(e,"ImportNamespaceSpecifier")},U.parseImportSpecifiers=function(){var e=[],r=!0;if(this.type===f.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(f.comma)))return e;if(this.type===f.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(f.braceL);!this.eat(f.braceR);){if(r)r=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;e.push(this.parseImportSpecifier())}return e},U.parseWithClause=function(){var e=[];if(!this.eat(f._with))return e;this.expect(f.braceL);for(var r={},o=!0;!this.eat(f.braceR);){if(o)o=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;var h=this.parseImportAttribute(),x=h.key.type==="Identifier"?h.key.name:h.key.value;ot(r,x)&&this.raiseRecoverable(h.key.start,"Duplicate attribute key '"+x+"'"),r[x]=!0,e.push(h)}return e},U.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===f.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(f.colon),this.type!==f.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},U.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===f.string){var e=this.parseLiteral(this.value);return c.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},U.adaptDirectivePrologue=function(e){for(var r=0;r<e.length&&this.isDirectiveCandidate(e[r]);++r)e[r].directive=e[r].expression.raw.slice(1,-1)},U.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var Dt=at.prototype;Dt.toAssignable=function(e,r,o){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",o&&this.checkPatternErrors(o,!0);for(var h=0,x=e.properties;h<x.length;h+=1){var C=x[h];this.toAssignable(C,r),C.type==="RestElement"&&(C.argument.type==="ArrayPattern"||C.argument.type==="ObjectPattern")&&this.raise(C.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,r);break;case"ArrayExpression":e.type="ArrayPattern",o&&this.checkPatternErrors(o,!0),this.toAssignableList(e.elements,r);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,r),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,r);break;case"ParenthesizedExpression":this.toAssignable(e.expression,r,o);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!r)break;default:this.raise(e.start,"Assigning to rvalue")}else o&&this.checkPatternErrors(o,!0);return e},Dt.toAssignableList=function(e,r){for(var o=e.length,h=0;h<o;h++){var x=e[h];x&&this.toAssignable(x,r)}if(o){var C=e[o-1];this.options.ecmaVersion===6&&r&&C&&C.type==="RestElement"&&C.argument.type!=="Identifier"&&this.unexpected(C.argument.start)}return e},Dt.parseSpread=function(e){var r=this.startNode();return this.next(),r.argument=this.parseMaybeAssign(!1,e),this.finishNode(r,"SpreadElement")},Dt.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==f.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},Dt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case f.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(f.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case f.braceL:return this.parseObj(!0)}return this.parseIdent()},Dt.parseBindingList=function(e,r,o,h){for(var x=[],C=!0;!this.eat(e);)if(C?C=!1:this.expect(f.comma),r&&this.type===f.comma)x.push(null);else{if(o&&this.afterTrailingComma(e))break;if(this.type===f.ellipsis){var A=this.parseRestBinding();this.parseBindingListItem(A),x.push(A),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else x.push(this.parseAssignableListItem(h))}return x},Dt.parseAssignableListItem=function(e){var r=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(r),r},Dt.parseBindingListItem=function(e){return e},Dt.parseMaybeDefault=function(e,r,o){if(o=o||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(f.eq))return o;var h=this.startNodeAt(e,r);return h.left=o,h.right=this.parseMaybeAssign(),this.finishNode(h,"AssignmentPattern")},Dt.checkLValSimple=function(e,r,o){r===void 0&&(r=Xt);var h=r!==Xt;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(h?"Binding ":"Assigning to ")+e.name+" in strict mode"),h&&(r===Ot&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),o&&(ot(o,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),o[e.name]=!0),r!==Se&&this.declareName(e.name,r,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":h&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return h&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,r,o);default:this.raise(e.start,(h?"Binding":"Assigning to")+" rvalue")}},Dt.checkLValPattern=function(e,r,o){switch(r===void 0&&(r=Xt),e.type){case"ObjectPattern":for(var h=0,x=e.properties;h<x.length;h+=1){var C=x[h];this.checkLValInnerPattern(C,r,o)}break;case"ArrayPattern":for(var A=0,L=e.elements;A<L.length;A+=1){var O=L[A];O&&this.checkLValInnerPattern(O,r,o)}break;default:this.checkLValSimple(e,r,o)}},Dt.checkLValInnerPattern=function(e,r,o){switch(r===void 0&&(r=Xt),e.type){case"Property":this.checkLValInnerPattern(e.value,r,o);break;case"AssignmentPattern":this.checkLValPattern(e.left,r,o);break;case"RestElement":this.checkLValPattern(e.argument,r,o);break;default:this.checkLValPattern(e,r,o)}};var Mt=function(r,o,h,x,C){this.token=r,this.isExpr=!!o,this.preserveSpace=!!h,this.override=x,this.generator=!!C},pt={b_stat:new Mt("{",!1),b_expr:new Mt("{",!0),b_tmpl:new Mt("${",!1),p_stat:new Mt("(",!1),p_expr:new Mt("(",!0),q_tmpl:new Mt("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Mt("function",!1),f_expr:new Mt("function",!0),f_expr_gen:new Mt("function",!0,!1,null,!0),f_gen:new Mt("function",!1,!1,null,!0)},le=at.prototype;le.initialContext=function(){return[pt.b_stat]},le.curContext=function(){return this.context[this.context.length-1]},le.braceIsBlock=function(e){var r=this.curContext();return r===pt.f_expr||r===pt.f_stat?!0:e===f.colon&&(r===pt.b_stat||r===pt.b_expr)?!r.isExpr:e===f._return||e===f.name&&this.exprAllowed?yt.test(this.input.slice(this.lastTokEnd,this.start)):e===f._else||e===f.semi||e===f.eof||e===f.parenR||e===f.arrow?!0:e===f.braceL?r===pt.b_stat:e===f._var||e===f._const||e===f.name?!1:!this.exprAllowed},le.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var r=this.context[e];if(r.token==="function")return r.generator}return!1},le.updateContext=function(e){var r,o=this.type;o.keyword&&e===f.dot?this.exprAllowed=!1:(r=o.updateContext)?r.call(this,e):this.exprAllowed=o.beforeExpr},le.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},f.parenR.updateContext=f.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===pt.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},f.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?pt.b_stat:pt.b_expr),this.exprAllowed=!0},f.dollarBraceL.updateContext=function(){this.context.push(pt.b_tmpl),this.exprAllowed=!0},f.parenL.updateContext=function(e){var r=e===f._if||e===f._for||e===f._with||e===f._while;this.context.push(r?pt.p_stat:pt.p_expr),this.exprAllowed=!0},f.incDec.updateContext=function(){},f._function.updateContext=f._class.updateContext=function(e){e.beforeExpr&&e!==f._else&&!(e===f.semi&&this.curContext()!==pt.p_stat)&&!(e===f._return&&yt.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===f.colon||e===f.braceL)&&this.curContext()===pt.b_stat)?this.context.push(pt.f_expr):this.context.push(pt.f_stat),this.exprAllowed=!1},f.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},f.backQuote.updateContext=function(){this.curContext()===pt.q_tmpl?this.context.pop():this.context.push(pt.q_tmpl),this.exprAllowed=!1},f.star.updateContext=function(e){if(e===f._function){var r=this.context.length-1;this.context[r]===pt.f_expr?this.context[r]=pt.f_expr_gen:this.context[r]=pt.f_gen}this.exprAllowed=!0},f.name.updateContext=function(e){var r=!1;this.options.ecmaVersion>=6&&e!==f.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(r=!0),this.exprAllowed=r};var J=at.prototype;J.checkPropClash=function(e,r,o){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var h=e.key,x;switch(h.type){case"Identifier":x=h.name;break;case"Literal":x=String(h.value);break;default:return}var C=e.kind;if(this.options.ecmaVersion>=6){x==="__proto__"&&C==="init"&&(r.proto&&(o?o.doubleProto<0&&(o.doubleProto=h.start):this.raiseRecoverable(h.start,"Redefinition of __proto__ property")),r.proto=!0);return}x="$"+x;var A=r[x];if(A){var L;C==="init"?L=this.strict&&A.init||A.get||A.set:L=A.init||A[C],L&&this.raiseRecoverable(h.start,"Redefinition of property")}else A=r[x]={init:!1,get:!1,set:!1};A[C]=!0}},J.parseExpression=function(e,r){var o=this.start,h=this.startLoc,x=this.parseMaybeAssign(e,r);if(this.type===f.comma){var C=this.startNodeAt(o,h);for(C.expressions=[x];this.eat(f.comma);)C.expressions.push(this.parseMaybeAssign(e,r));return this.finishNode(C,"SequenceExpression")}return x},J.parseMaybeAssign=function(e,r,o){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var h=!1,x=-1,C=-1,A=-1;r?(x=r.parenthesizedAssign,C=r.trailingComma,A=r.doubleProto,r.parenthesizedAssign=r.trailingComma=-1):(r=new Be,h=!0);var L=this.start,O=this.startLoc;(this.type===f.parenL||this.type===f.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var X=this.parseMaybeConditional(e,r);if(o&&(X=o.call(this,X,L,O)),this.type.isAssign){var $=this.startNodeAt(L,O);return $.operator=this.value,this.type===f.eq&&(X=this.toAssignable(X,!1,r)),h||(r.parenthesizedAssign=r.trailingComma=r.doubleProto=-1),r.shorthandAssign>=X.start&&(r.shorthandAssign=-1),this.type===f.eq?this.checkLValPattern(X):this.checkLValSimple(X),$.left=X,this.next(),$.right=this.parseMaybeAssign(e),A>-1&&(r.doubleProto=A),this.finishNode($,"AssignmentExpression")}else h&&this.checkExpressionErrors(r,!0);return x>-1&&(r.parenthesizedAssign=x),C>-1&&(r.trailingComma=C),X},J.parseMaybeConditional=function(e,r){var o=this.start,h=this.startLoc,x=this.parseExprOps(e,r);if(this.checkExpressionErrors(r))return x;if(this.eat(f.question)){var C=this.startNodeAt(o,h);return C.test=x,C.consequent=this.parseMaybeAssign(),this.expect(f.colon),C.alternate=this.parseMaybeAssign(e),this.finishNode(C,"ConditionalExpression")}return x},J.parseExprOps=function(e,r){var o=this.start,h=this.startLoc,x=this.parseMaybeUnary(r,!1,!1,e);return this.checkExpressionErrors(r)||x.start===o&&x.type==="ArrowFunctionExpression"?x:this.parseExprOp(x,o,h,-1,e)},J.parseExprOp=function(e,r,o,h,x){var C=this.type.binop;if(C!=null&&(!x||this.type!==f._in)&&C>h){var A=this.type===f.logicalOR||this.type===f.logicalAND,L=this.type===f.coalesce;L&&(C=f.logicalAND.binop);var O=this.value;this.next();var X=this.start,$=this.startLoc,lt=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,x),X,$,C,x),_t=this.buildBinary(r,o,e,lt,O,A||L);return(A&&this.type===f.coalesce||L&&(this.type===f.logicalOR||this.type===f.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(_t,r,o,h,x)}return e},J.buildBinary=function(e,r,o,h,x,C){h.type==="PrivateIdentifier"&&this.raise(h.start,"Private identifier can only be left side of binary expression");var A=this.startNodeAt(e,r);return A.left=o,A.operator=x,A.right=h,this.finishNode(A,C?"LogicalExpression":"BinaryExpression")},J.parseMaybeUnary=function(e,r,o,h){var x=this.start,C=this.startLoc,A;if(this.isContextual("await")&&this.canAwait)A=this.parseAwait(h),r=!0;else if(this.type.prefix){var L=this.startNode(),O=this.type===f.incDec;L.operator=this.value,L.prefix=!0,this.next(),L.argument=this.parseMaybeUnary(null,!0,O,h),this.checkExpressionErrors(e,!0),O?this.checkLValSimple(L.argument):this.strict&&L.operator==="delete"&&Mi(L.argument)?this.raiseRecoverable(L.start,"Deleting local variable in strict mode"):L.operator==="delete"&&hi(L.argument)?this.raiseRecoverable(L.start,"Private fields can not be deleted"):r=!0,A=this.finishNode(L,O?"UpdateExpression":"UnaryExpression")}else if(!r&&this.type===f.privateId)(h||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),A=this.parsePrivateIdent(),this.type!==f._in&&this.unexpected();else{if(A=this.parseExprSubscripts(e,h),this.checkExpressionErrors(e))return A;for(;this.type.postfix&&!this.canInsertSemicolon();){var X=this.startNodeAt(x,C);X.operator=this.value,X.prefix=!1,X.argument=A,this.checkLValSimple(A),this.next(),A=this.finishNode(X,"UpdateExpression")}}if(!o&&this.eat(f.starstar))if(r)this.unexpected(this.lastTokStart);else return this.buildBinary(x,C,A,this.parseMaybeUnary(null,!1,!1,h),"**",!1);else return A};function Mi(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Mi(e.expression)}function hi(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&hi(e.expression)||e.type==="ParenthesizedExpression"&&hi(e.expression)}J.parseExprSubscripts=function(e,r){var o=this.start,h=this.startLoc,x=this.parseExprAtom(e,r);if(x.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return x;var C=this.parseSubscripts(x,o,h,!1,r);return e&&C.type==="MemberExpression"&&(e.parenthesizedAssign>=C.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=C.start&&(e.parenthesizedBind=-1),e.trailingComma>=C.start&&(e.trailingComma=-1)),C},J.parseSubscripts=function(e,r,o,h,x){for(var C=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,A=!1;;){var L=this.parseSubscript(e,r,o,h,C,A,x);if(L.optional&&(A=!0),L===e||L.type==="ArrowFunctionExpression"){if(A){var O=this.startNodeAt(r,o);O.expression=L,L=this.finishNode(O,"ChainExpression")}return L}e=L}},J.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(f.arrow)},J.parseSubscriptAsyncArrow=function(e,r,o,h){return this.parseArrowExpression(this.startNodeAt(e,r),o,!0,h)},J.parseSubscript=function(e,r,o,h,x,C,A){var L=this.options.ecmaVersion>=11,O=L&&this.eat(f.questionDot);h&&O&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var X=this.eat(f.bracketL);if(X||O&&this.type!==f.parenL&&this.type!==f.backQuote||this.eat(f.dot)){var $=this.startNodeAt(r,o);$.object=e,X?($.property=this.parseExpression(),this.expect(f.bracketR)):this.type===f.privateId&&e.type!=="Super"?$.property=this.parsePrivateIdent():$.property=this.parseIdent(this.options.allowReserved!=="never"),$.computed=!!X,L&&($.optional=O),e=this.finishNode($,"MemberExpression")}else if(!h&&this.eat(f.parenL)){var lt=new Be,_t=this.yieldPos,Te=this.awaitPos,fe=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var We=this.parseExprList(f.parenR,this.options.ecmaVersion>=8,!1,lt);if(x&&!O&&this.shouldParseAsyncArrow())return this.checkPatternErrors(lt,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=_t,this.awaitPos=Te,this.awaitIdentPos=fe,this.parseSubscriptAsyncArrow(r,o,We,A);this.checkExpressionErrors(lt,!0),this.yieldPos=_t||this.yieldPos,this.awaitPos=Te||this.awaitPos,this.awaitIdentPos=fe||this.awaitIdentPos;var de=this.startNodeAt(r,o);de.callee=e,de.arguments=We,L&&(de.optional=O),e=this.finishNode(de,"CallExpression")}else if(this.type===f.backQuote){(O||C)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var me=this.startNodeAt(r,o);me.tag=e,me.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(me,"TaggedTemplateExpression")}return e},J.parseExprAtom=function(e,r,o){this.type===f.slash&&this.readRegexp();var h,x=this.potentialArrowAt===this.start;switch(this.type){case f._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),h=this.startNode(),this.next(),this.type===f.parenL&&!this.allowDirectSuper&&this.raise(h.start,"super() call outside constructor of a subclass"),this.type!==f.dot&&this.type!==f.bracketL&&this.type!==f.parenL&&this.unexpected(),this.finishNode(h,"Super");case f._this:return h=this.startNode(),this.next(),this.finishNode(h,"ThisExpression");case f.name:var C=this.start,A=this.startLoc,L=this.containsEsc,O=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!L&&O.name==="async"&&!this.canInsertSemicolon()&&this.eat(f._function))return this.overrideContext(pt.f_expr),this.parseFunction(this.startNodeAt(C,A),0,!1,!0,r);if(x&&!this.canInsertSemicolon()){if(this.eat(f.arrow))return this.parseArrowExpression(this.startNodeAt(C,A),[O],!1,r);if(this.options.ecmaVersion>=8&&O.name==="async"&&this.type===f.name&&!L&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return O=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(f.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(C,A),[O],!0,r)}return O;case f.regexp:var X=this.value;return h=this.parseLiteral(X.value),h.regex={pattern:X.pattern,flags:X.flags},h;case f.num:case f.string:return this.parseLiteral(this.value);case f._null:case f._true:case f._false:return h=this.startNode(),h.value=this.type===f._null?null:this.type===f._true,h.raw=this.type.keyword,this.next(),this.finishNode(h,"Literal");case f.parenL:var $=this.start,lt=this.parseParenAndDistinguishExpression(x,r);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(lt)&&(e.parenthesizedAssign=$),e.parenthesizedBind<0&&(e.parenthesizedBind=$)),lt;case f.bracketL:return h=this.startNode(),this.next(),h.elements=this.parseExprList(f.bracketR,!0,!0,e),this.finishNode(h,"ArrayExpression");case f.braceL:return this.overrideContext(pt.b_expr),this.parseObj(!1,e);case f._function:return h=this.startNode(),this.next(),this.parseFunction(h,0);case f._class:return this.parseClass(this.startNode(),!1);case f._new:return this.parseNew();case f.backQuote:return this.parseTemplate();case f._import:return this.options.ecmaVersion>=11?this.parseExprImport(o):this.unexpected();default:return this.parseExprAtomDefault()}},J.parseExprAtomDefault=function(){this.unexpected()},J.parseExprImport=function(e){var r=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===f.parenL&&!e)return this.parseDynamicImport(r);if(this.type===f.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()},J.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(f.parenR)?e.options=null:(this.expect(f.comma),this.afterTrailingComma(f.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(f.parenR)||(this.expect(f.comma),this.afterTrailingComma(f.parenR)||this.unexpected())));else if(!this.eat(f.parenR)){var r=this.start;this.eat(f.comma)&&this.eat(f.parenR)?this.raiseRecoverable(r,"Trailing comma is not allowed in import()"):this.unexpected(r)}return this.finishNode(e,"ImportExpression")},J.parseImportMeta=function(e){this.next();var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),r&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},J.parseLiteral=function(e){var r=this.startNode();return r.value=e,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,"")),this.next(),this.finishNode(r,"Literal")},J.parseParenExpression=function(){this.expect(f.parenL);var e=this.parseExpression();return this.expect(f.parenR),e},J.shouldParseArrow=function(e){return!this.canInsertSemicolon()},J.parseParenAndDistinguishExpression=function(e,r){var o=this.start,h=this.startLoc,x,C=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var A=this.start,L=this.startLoc,O=[],X=!0,$=!1,lt=new Be,_t=this.yieldPos,Te=this.awaitPos,fe;for(this.yieldPos=0,this.awaitPos=0;this.type!==f.parenR;)if(X?X=!1:this.expect(f.comma),C&&this.afterTrailingComma(f.parenR,!0)){$=!0;break}else if(this.type===f.ellipsis){fe=this.start,O.push(this.parseParenItem(this.parseRestBinding())),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else O.push(this.parseMaybeAssign(!1,lt,this.parseParenItem));var We=this.lastTokEnd,de=this.lastTokEndLoc;if(this.expect(f.parenR),e&&this.shouldParseArrow(O)&&this.eat(f.arrow))return this.checkPatternErrors(lt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=_t,this.awaitPos=Te,this.parseParenArrowList(o,h,O,r);(!O.length||$)&&this.unexpected(this.lastTokStart),fe&&this.unexpected(fe),this.checkExpressionErrors(lt,!0),this.yieldPos=_t||this.yieldPos,this.awaitPos=Te||this.awaitPos,O.length>1?(x=this.startNodeAt(A,L),x.expressions=O,this.finishNodeAt(x,"SequenceExpression",We,de)):x=O[0]}else x=this.parseParenExpression();if(this.options.preserveParens){var me=this.startNodeAt(o,h);return me.expression=x,this.finishNode(me,"ParenthesizedExpression")}else return x},J.parseParenItem=function(e){return e},J.parseParenArrowList=function(e,r,o,h){return this.parseArrowExpression(this.startNodeAt(e,r),o,!1,h)};var yr=[];J.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===f.dot){var r=this.startNodeAt(e.start,e.loc&&e.loc.start);r.name="new",e.meta=this.finishNode(r,"Identifier"),this.next();var o=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),o&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var h=this.start,x=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),h,x,!0,!1),this.eat(f.parenL)?e.arguments=this.parseExprList(f.parenR,this.options.ecmaVersion>=8,!1):e.arguments=yr,this.finishNode(e,"NewExpression")},J.parseTemplateElement=function(e){var r=e.isTagged,o=this.startNode();return this.type===f.invalidTemplate?(r||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),o.value={raw:this.value.replace(/\r\n?/g,`
|
|
1
|
+
var qr=Object.create;var pi=Object.defineProperty;var Hr=Object.getOwnPropertyDescriptor;var Wr=Object.getOwnPropertyNames;var zr=Object.getPrototypeOf,Gr=Object.prototype.hasOwnProperty;var li=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),Kr=(t,i)=>{for(var n in i)pi(t,n,{get:i[n],enumerable:!0})},Xr=(t,i,n,u)=>{if(i&&typeof i=="object"||typeof i=="function")for(let p of Wr(i))!Gr.call(t,p)&&p!==n&&pi(t,p,{get:()=>i[p],enumerable:!(u=Hr(i,p))||u.enumerable});return t};var Jr=(t,i,n)=>(n=t!=null?qr(zr(t)):{},Xr(i||!t||!t.__esModule?pi(n,"default",{value:t,enumerable:!0}):n,t));var Qs=li((en,Js)=>{"use strict";Js.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}});var Ti=li((si,Ys)=>{"use strict";(function(t,i){typeof si=="object"&&typeof Ys<"u"?i(si):typeof define=="function"&&define.amd?define(["exports"],i):(t=typeof globalThis<"u"?globalThis:t||self,i(t.acorn={}))})(si,(function(t){"use strict";var i=[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],n=[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],u="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",p="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",g={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"},b="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",T={5:b,"5module":b+" export import",6:b+" const class extends export import super"},w=/^in(stanceof)?$/,l=new RegExp("["+p+"]"),W=new RegExp("["+p+u+"]");function Y(e,r){for(var o=65536,h=0;h<r.length;h+=2){if(o+=r[h],o>e)return!1;if(o+=r[h+1],o>=e)return!0}return!1}function tt(e,r){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&l.test(String.fromCharCode(e)):r===!1?!1:Y(e,n)}function E(e,r){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&W.test(String.fromCharCode(e)):r===!1?!1:Y(e,n)||Y(e,i)}var N=function(r,o){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 D(e,r){return new N(e,{beforeExpr:!0,binop:r})}var I={beforeExpr:!0},Q={startsExpr:!0},xt={};function z(e,r){return r===void 0&&(r={}),r.keyword=e,xt[e]=new N(e,r)}var d={num:new N("num",Q),regexp:new N("regexp",Q),string:new N("string",Q),name:new N("name",Q),privateId:new N("privateId",Q),eof:new N("eof"),bracketL:new N("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new N("]"),braceL:new N("{",{beforeExpr:!0,startsExpr:!0}),braceR:new N("}"),parenL:new N("(",{beforeExpr:!0,startsExpr:!0}),parenR:new N(")"),comma:new N(",",I),semi:new N(";",I),colon:new N(":",I),dot:new N("."),question:new N("?",I),questionDot:new N("?."),arrow:new N("=>",I),template:new N("template"),invalidTemplate:new N("invalidTemplate"),ellipsis:new N("...",I),backQuote:new N("`",Q),dollarBraceL:new N("${",{beforeExpr:!0,startsExpr:!0}),eq:new N("=",{beforeExpr:!0,isAssign:!0}),assign:new N("_=",{beforeExpr:!0,isAssign:!0}),incDec:new N("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new N("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:D("||",1),logicalAND:D("&&",2),bitwiseOR:D("|",3),bitwiseXOR:D("^",4),bitwiseAND:D("&",5),equality:D("==/!=/===/!==",6),relational:D("</>/<=/>=",7),bitShift:D("<</>>/>>>",8),plusMin:new N("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:D("%",10),star:D("*",10),slash:D("/",10),starstar:new N("**",{beforeExpr:!0}),coalesce:D("??",1),_break:z("break"),_case:z("case",I),_catch:z("catch"),_continue:z("continue"),_debugger:z("debugger"),_default:z("default",I),_do:z("do",{isLoop:!0,beforeExpr:!0}),_else:z("else",I),_finally:z("finally"),_for:z("for",{isLoop:!0}),_function:z("function",Q),_if:z("if"),_return:z("return",I),_switch:z("switch"),_throw:z("throw",I),_try:z("try"),_var:z("var"),_const:z("const"),_while:z("while",{isLoop:!0}),_with:z("with"),_new:z("new",{beforeExpr:!0,startsExpr:!0}),_this:z("this",Q),_super:z("super",Q),_class:z("class",Q),_extends:z("extends",I),_export:z("export"),_import:z("import",Q),_null:z("null",Q),_true:z("true",Q),_false:z("false",Q),_in:z("in",{beforeExpr:!0,binop:7}),_instanceof:z("instanceof",{beforeExpr:!0,binop:7}),_typeof:z("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:z("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:z("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},yt=/\r\n?|\n|\u2028|\u2029/,nt=new RegExp(yt.source,"g");function Rt(e){return e===10||e===13||e===8232||e===8233}function Me(e,r,o){o===void 0&&(o=e.length);for(var h=r;h<o;h++){var x=e.charCodeAt(h);if(Rt(x))return h<o-1&&x===13&&e.charCodeAt(h+1)===10?h+2:h+1}return-1}var ge=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,vt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,R=Object.prototype,St=R.hasOwnProperty,bt=R.toString,ot=Object.hasOwn||(function(e,r){return St.call(e,r)}),et=Array.isArray||(function(e){return bt.call(e)==="[object Array]"}),y=Object.create(null);function s(e){return y[e]||(y[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function a(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var c=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,m=function(r,o){this.line=r,this.column=o};m.prototype.offset=function(r){return new m(this.line,this.column+r)};var v=function(r,o,h){this.start=o,this.end=h,r.sourceFile!==null&&(this.source=r.sourceFile)};function S(e,r){for(var o=1,h=0;;){var x=Me(e,h,r);if(x<0)return new m(o,r-h);++o,h=x}}var k={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},_=!1;function P(e){var r={};for(var o in k)r[o]=e&&ot(e,o)?e[o]:k[o];if(r.ecmaVersion==="latest"?r.ecmaVersion=1e8:r.ecmaVersion==null?(!_&&typeof console=="object"&&console.warn&&(_=!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):r.ecmaVersion>=2015&&(r.ecmaVersion-=2009),r.allowReserved==null&&(r.allowReserved=r.ecmaVersion<5),(!e||e.allowHashBang==null)&&(r.allowHashBang=r.ecmaVersion>=14),et(r.onToken)){var h=r.onToken;r.onToken=function(x){return h.push(x)}}if(et(r.onComment)&&(r.onComment=V(r,r.onComment)),r.sourceType==="commonjs"&&r.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return r}function V(e,r){return function(o,h,x,C,A,L){var O={type:o?"Block":"Line",value:h,start:x,end:C};e.locations&&(O.loc=new v(this,A,L)),e.ranges&&(O.range=[x,C]),r.push(O)}}var B=1,G=2,M=4,ht=8,ut=16,ct=32,mt=64,Ct=128,kt=256,Wt=512,te=1024,Nt=B|G|kt;function pe(e,r){return G|(e?M:0)|(r?ht:0)}var Xt=0,re=1,Ot=2,ae=3,be=4,Se=5,at=function(r,o,h){this.options=r=P(r),this.sourceFile=r.sourceFile,this.keywords=s(T[r.ecmaVersion>=6?6:r.sourceType==="module"?"5module":5]);var x="";r.allowReserved!==!0&&(x=g[r.ecmaVersion>=6?6:r.ecmaVersion===5?5:3],r.sourceType==="module"&&(x+=" await")),this.reservedWords=s(x);var C=(x?x+" ":"")+g.strict;this.reservedWordsStrict=s(C),this.reservedWordsStrictBind=s(C+" "+g.strictBind),this.input=String(o),this.containsEsc=!1,h?(this.pos=h,this.lineStart=this.input.lastIndexOf(`
|
|
3
|
+
`,h-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(yt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=d.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||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"?G:B),this.regexpState=null,this.privateNameStack=[]},At={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}};at.prototype.parse=function(){var r=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(r)},At.inFunction.get=function(){return(this.currentVarScope().flags&G)>0},At.inGenerator.get=function(){return(this.currentVarScope().flags&ht)>0},At.inAsync.get=function(){return(this.currentVarScope().flags&M)>0},At.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var r=this.scopeStack[e],o=r.flags;if(o&(kt|Wt))return!1;if(o&G)return(o&M)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},At.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&B)},At.allowSuper.get=function(){var e=this.currentThisScope(),r=e.flags;return(r&mt)>0||this.options.allowSuperOutsideMethod},At.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Ct)>0},At.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},At.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var r=this.scopeStack[e],o=r.flags;if(o&(kt|Wt)||o&G&&!(o&ut))return!0}return!1},At.allowUsing.get=function(){var e=this.currentScope(),r=e.flags;return!(r&te||!this.inModule&&r&B)},At.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&kt)>0},at.extend=function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];for(var h=this,x=0;x<r.length;x++)h=r[x](h);return h},at.parse=function(r,o){return new this(o,r).parse()},at.parseExpressionAt=function(r,o,h){var x=new this(h,r,o);return x.nextToken(),x.parseExpression()},at.tokenizer=function(r,o){return new this(o,r)},Object.defineProperties(at.prototype,At);var gt=at.prototype,Ce=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;gt.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){vt.lastIndex=e,e+=vt.exec(this.input)[0].length;var r=Ce.exec(this.input.slice(e));if(!r)return!1;if((r[1]||r[2])==="use strict"){vt.lastIndex=e+r[0].length;var o=vt.exec(this.input),h=o.index+o[0].length,x=this.input.charAt(h);return x===";"||x==="}"||yt.test(o[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(x)||x==="!"&&this.input.charAt(h+1)==="=")}e+=r[0].length,vt.lastIndex=e,e+=vt.exec(this.input)[0].length,this.input[e]===";"&&e++}},gt.eat=function(e){return this.type===e?(this.next(),!0):!1},gt.isContextual=function(e){return this.type===d.name&&this.value===e&&!this.containsEsc},gt.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},gt.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},gt.canInsertSemicolon=function(){return this.type===d.eof||this.type===d.braceR||yt.test(this.input.slice(this.lastTokEnd,this.start))},gt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},gt.semicolon=function(){!this.eat(d.semi)&&!this.insertSemicolon()&&this.unexpected()},gt.afterTrailingComma=function(e,r){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),r||this.next(),!0},gt.expect=function(e){this.eat(e)||this.unexpected()},gt.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Be=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};gt.checkPatternErrors=function(e,r){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var o=r?e.parenthesizedAssign:e.parenthesizedBind;o>-1&&this.raiseRecoverable(o,r?"Assigning to rvalue":"Parenthesized pattern")}},gt.checkExpressionErrors=function(e,r){if(!e)return!1;var o=e.shorthandAssign,h=e.doubleProto;if(!r)return o>=0||h>=0;o>=0&&this.raise(o,"Shorthand property assignments are valid only in destructuring patterns"),h>=0&&this.raiseRecoverable(h,"Redefinition of __proto__ property")},gt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},gt.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var U=at.prototype;U.parseTopLevel=function(e){var r=Object.create(null);for(e.body||(e.body=[]);this.type!==d.eof;){var o=this.parseStatement(null,!0,r);e.body.push(o)}if(this.inModule)for(var h=0,x=Object.keys(this.undefinedExports);h<x.length;h+=1){var C=x[h];this.raiseRecoverable(this.undefinedExports[C].start,"Export '"+C+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var oi={kind:"loop"},dr={kind:"switch"};U.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;vt.lastIndex=this.pos;var r=vt.exec(this.input),o=this.pos+r[0].length,h=this.fullCharCodeAt(o);if(h===91||h===92)return!0;if(e)return!1;if(h===123)return!0;if(tt(h)){var x=o;do o+=h<=65535?1:2;while(E(h=this.fullCharCodeAt(o)));if(h===92)return!0;var C=this.input.slice(x,o);if(!w.test(C))return!0}return!1},U.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;vt.lastIndex=this.pos;var e=vt.exec(this.input),r=this.pos+e[0].length,o;return!yt.test(this.input.slice(this.pos,r))&&this.input.slice(r,r+8)==="function"&&(r+8===this.input.length||!(E(o=this.fullCharCodeAt(r+8))||o===92))},U.isUsingKeyword=function(e,r){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;vt.lastIndex=this.pos;var o=vt.exec(this.input),h=this.pos+o[0].length;if(yt.test(this.input.slice(this.pos,h)))return!1;if(e){var x=h+5,C;if(this.input.slice(h,x)!=="using"||x===this.input.length||E(C=this.fullCharCodeAt(x))||C===92)return!1;vt.lastIndex=x;var A=vt.exec(this.input);if(h=x+A[0].length,A&&yt.test(this.input.slice(x,h)))return!1}var L=this.fullCharCodeAt(h);if(!tt(L)&&L!==92)return!1;var O=h;do h+=L<=65535?1:2;while(E(L=this.fullCharCodeAt(h)));if(L===92)return!0;var K=this.input.slice(O,h);return!(w.test(K)||r&&K==="of")},U.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},U.isUsing=function(e){return this.isUsingKeyword(!1,e)},U.parseStatement=function(e,r,o){var h=this.type,x=this.startNode(),C;switch(this.isLet(e)&&(h=d._var,C="let"),h){case d._break:case d._continue:return this.parseBreakContinueStatement(x,h.keyword);case d._debugger:return this.parseDebuggerStatement(x);case d._do:return this.parseDoStatement(x);case d._for:return this.parseForStatement(x);case d._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(x,!1,!e);case d._class:return e&&this.unexpected(),this.parseClass(x,!0);case d._if:return this.parseIfStatement(x);case d._return:return this.parseReturnStatement(x);case d._switch:return this.parseSwitchStatement(x);case d._throw:return this.parseThrowStatement(x);case d._try:return this.parseTryStatement(x);case d._const:case d._var:return C=C||this.value,e&&C!=="var"&&this.unexpected(),this.parseVarStatement(x,C);case d._while:return this.parseWhileStatement(x);case d._with:return this.parseWithStatement(x);case d.braceL:return this.parseBlock(!0,x);case d.semi:return this.parseEmptyStatement(x);case d._export:case d._import:if(this.options.ecmaVersion>10&&h===d._import){vt.lastIndex=this.pos;var A=vt.exec(this.input),L=this.pos+A[0].length,O=this.input.charCodeAt(L);if(O===40||O===46)return this.parseExpressionStatement(x,this.parseExpression())}return this.options.allowImportExportEverywhere||(r||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),h===d._import?this.parseImport(x):this.parseExport(x,o);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(x,!0,!e);var K=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(K)return 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"),K==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(x,!1,K),this.semicolon(),this.finishNode(x,"VariableDeclaration");var $=this.value,lt=this.parseExpression();return h===d.name&<.type==="Identifier"&&this.eat(d.colon)?this.parseLabeledStatement(x,$,lt,e):this.parseExpressionStatement(x,lt)}},U.parseBreakContinueStatement=function(e,r){var o=r==="break";this.next(),this.eat(d.semi)||this.insertSemicolon()?e.label=null:this.type!==d.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var h=0;h<this.labels.length;++h){var x=this.labels[h];if((e.label==null||x.name===e.label.name)&&(x.kind!=null&&(o||x.kind==="loop")||e.label&&o))break}return h===this.labels.length&&this.raise(e.start,"Unsyntactic "+r),this.finishNode(e,o?"BreakStatement":"ContinueStatement")},U.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},U.parseDoStatement=function(e){return this.next(),this.labels.push(oi),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(d._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(d.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},U.parseForStatement=function(e){this.next();var r=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(oi),this.enterScope(0),this.expect(d.parenL),this.type===d.semi)return r>-1&&this.unexpected(r),this.parseFor(e,null);var o=this.isLet();if(this.type===d._var||this.type===d._const||o){var h=this.startNode(),x=o?"let":this.value;return this.next(),this.parseVar(h,!0,x),this.finishNode(h,"VariableDeclaration"),this.parseForAfterInit(e,h,r)}var C=this.isContextual("let"),A=!1,L=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(L){var O=this.startNode();return this.next(),L==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(O,!0,L),this.finishNode(O,"VariableDeclaration"),this.parseForAfterInit(e,O,r)}var K=this.containsEsc,$=new Be,lt=this.start,_t=r>-1?this.parseExprSubscripts($,"await"):this.parseExpression(!0,$);return this.type===d._in||(A=this.options.ecmaVersion>=6&&this.isContextual("of"))?(r>-1?(this.type===d._in&&this.unexpected(r),e.await=!0):A&&this.options.ecmaVersion>=8&&(_t.start===lt&&!K&&_t.type==="Identifier"&&_t.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),C&&A&&this.raise(_t.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(_t,!1,$),this.checkLValPattern(_t),this.parseForIn(e,_t)):(this.checkExpressionErrors($,!0),r>-1&&this.unexpected(r),this.parseFor(e,_t))},U.parseForAfterInit=function(e,r,o){return(this.type===d._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===d._in?o>-1&&this.unexpected(o):e.await=o>-1),this.parseForIn(e,r)):(o>-1&&this.unexpected(o),this.parseFor(e,r))},U.parseFunctionStatement=function(e,r,o){return this.next(),this.parseFunction(e,ke|(o?0:ui),!1,r)},U.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(d._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},U.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(d.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},U.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(d.braceL),this.labels.push(dr),this.enterScope(te);for(var r,o=!1;this.type!==d.braceR;)if(this.type===d._case||this.type===d._default){var h=this.type===d._case;r&&this.finishNode(r,"SwitchCase"),e.cases.push(r=this.startNode()),r.consequent=[],this.next(),h?r.test=this.parseExpression():(o&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),o=!0,r.test=null),this.expect(d.colon)}else r||this.unexpected(),r.consequent.push(this.parseStatement(null));return this.exitScope(),r&&this.finishNode(r,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},U.parseThrowStatement=function(e){return this.next(),yt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var mr=[];U.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),r=e.type==="Identifier";return this.enterScope(r?ct:0),this.checkLValPattern(e,r?be:Ot),this.expect(d.parenR),e},U.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===d._catch){var r=this.startNode();this.next(),this.eat(d.parenL)?r.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),r.param=null,this.enterScope(0)),r.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(r,"CatchClause")}return e.finalizer=this.eat(d._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},U.parseVarStatement=function(e,r,o){return this.next(),this.parseVar(e,!1,r,o),this.semicolon(),this.finishNode(e,"VariableDeclaration")},U.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(oi),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},U.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},U.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},U.parseLabeledStatement=function(e,r,o,h){for(var x=0,C=this.labels;x<C.length;x+=1){var A=C[x];A.name===r&&this.raise(o.start,"Label '"+r+"' is already declared")}for(var L=this.type.isLoop?"loop":this.type===d._switch?"switch":null,O=this.labels.length-1;O>=0;O--){var K=this.labels[O];if(K.statementStart===e.start)K.statementStart=this.start,K.kind=L;else break}return this.labels.push({name:r,kind:L,statementStart:this.start}),e.body=this.parseStatement(h?h.indexOf("label")===-1?h+"label":h:"label"),this.labels.pop(),e.label=o,this.finishNode(e,"LabeledStatement")},U.parseExpressionStatement=function(e,r){return e.expression=r,this.semicolon(),this.finishNode(e,"ExpressionStatement")},U.parseBlock=function(e,r,o){for(e===void 0&&(e=!0),r===void 0&&(r=this.startNode()),r.body=[],this.expect(d.braceL),e&&this.enterScope(0);this.type!==d.braceR;){var h=this.parseStatement(null);r.body.push(h)}return o&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(r,"BlockStatement")},U.parseFor=function(e,r){return e.init=r,this.expect(d.semi),e.test=this.type===d.semi?null:this.parseExpression(),this.expect(d.semi),e.update=this.type===d.parenR?null:this.parseExpression(),this.expect(d.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},U.parseForIn=function(e,r){var o=this.type===d._in;return 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"),e.left=r,e.right=o?this.parseExpression():this.parseMaybeAssign(),this.expect(d.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,o?"ForInStatement":"ForOfStatement")},U.parseVar=function(e,r,o,h){for(e.declarations=[],e.kind=o;;){var x=this.startNode();if(this.parseVarId(x,o),this.eat(d.eq)?x.init=this.parseMaybeAssign(r):!h&&o==="const"&&!(this.type===d._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!h&&(o==="using"||o==="await using")&&this.options.ecmaVersion>=17&&this.type!==d._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+o+" declaration"):!h&&x.id.type!=="Identifier"&&!(r&&(this.type===d._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):x.init=null,e.declarations.push(this.finishNode(x,"VariableDeclarator")),!this.eat(d.comma))break}return e},U.parseVarId=function(e,r){e.id=r==="using"||r==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,r==="var"?re:Ot,!1)};var ke=1,ui=2,Oi=4;U.parseFunction=function(e,r,o,h,x){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!h)&&(this.type===d.star&&r&ui&&this.unexpected(),e.generator=this.eat(d.star)),this.options.ecmaVersion>=8&&(e.async=!!h),r&ke&&(e.id=r&Oi&&this.type!==d.name?null:this.parseIdent(),e.id&&!(r&ui)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?re:Ot:ae));var C=this.yieldPos,A=this.awaitPos,L=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(pe(e.async,e.generator)),r&ke||(e.id=this.type===d.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,o,!1,x),this.yieldPos=C,this.awaitPos=A,this.awaitIdentPos=L,this.finishNode(e,r&ke?"FunctionDeclaration":"FunctionExpression")},U.parseFunctionParams=function(e){this.expect(d.parenL),e.params=this.parseBindingList(d.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},U.parseClass=function(e,r){this.next();var o=this.strict;this.strict=!0,this.parseClassId(e,r),this.parseClassSuper(e);var h=this.enterClassBody(),x=this.startNode(),C=!1;for(x.body=[],this.expect(d.braceL);this.type!==d.braceR;){var A=this.parseClassElement(e.superClass!==null);A&&(x.body.push(A),A.type==="MethodDefinition"&&A.kind==="constructor"?(C&&this.raiseRecoverable(A.start,"Duplicate constructor in the same class"),C=!0):A.key&&A.key.type==="PrivateIdentifier"&&xr(h,A)&&this.raiseRecoverable(A.key.start,"Identifier '#"+A.key.name+"' has already been declared"))}return this.strict=o,this.next(),e.body=this.finishNode(x,"ClassBody"),this.exitClassBody(),this.finishNode(e,r?"ClassDeclaration":"ClassExpression")},U.parseClassElement=function(e){if(this.eat(d.semi))return null;var r=this.options.ecmaVersion,o=this.startNode(),h="",x=!1,C=!1,A="method",L=!1;if(this.eatContextual("static")){if(r>=13&&this.eat(d.braceL))return this.parseClassStaticBlock(o),o;this.isClassElementNameStart()||this.type===d.star?L=!0:h="static"}if(o.static=L,!h&&r>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===d.star)&&!this.canInsertSemicolon()?C=!0:h="async"),!h&&(r>=9||!C)&&this.eat(d.star)&&(x=!0),!h&&!C&&!x){var O=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?A=O:h=O)}if(h?(o.computed=!1,o.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),o.key.name=h,this.finishNode(o.key,"Identifier")):this.parseClassElementName(o),r<13||this.type===d.parenL||A!=="method"||x||C){var K=!o.static&&Fe(o,"constructor"),$=K&&e;K&&A!=="method"&&this.raise(o.key.start,"Constructor can't have get/set modifier"),o.kind=K?"constructor":A,this.parseClassMethod(o,x,C,$)}else this.parseClassField(o);return o},U.isClassElementNameStart=function(){return this.type===d.name||this.type===d.privateId||this.type===d.num||this.type===d.string||this.type===d.bracketL||this.type.keyword},U.parseClassElementName=function(e){this.type===d.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},U.parseClassMethod=function(e,r,o,h){var x=e.key;e.kind==="constructor"?(r&&this.raise(x.start,"Constructor can't be a generator"),o&&this.raise(x.start,"Constructor can't be an async method")):e.static&&Fe(e,"prototype")&&this.raise(x.start,"Classes may not have a static property named prototype");var C=e.value=this.parseMethod(r,o,h);return e.kind==="get"&&C.params.length!==0&&this.raiseRecoverable(C.start,"getter should have no params"),e.kind==="set"&&C.params.length!==1&&this.raiseRecoverable(C.start,"setter should have exactly one param"),e.kind==="set"&&C.params[0].type==="RestElement"&&this.raiseRecoverable(C.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},U.parseClassField=function(e){return Fe(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Fe(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(d.eq)?(this.enterScope(Wt|mt),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},U.parseClassStaticBlock=function(e){e.body=[];var r=this.labels;for(this.labels=[],this.enterScope(kt|mt);this.type!==d.braceR;){var o=this.parseStatement(null);e.body.push(o)}return this.next(),this.exitScope(),this.labels=r,this.finishNode(e,"StaticBlock")},U.parseClassId=function(e,r){this.type===d.name?(e.id=this.parseIdent(),r&&this.checkLValSimple(e.id,Ot,!1)):(r===!0&&this.unexpected(),e.id=null)},U.parseClassSuper=function(e){e.superClass=this.eat(d._extends)?this.parseExprSubscripts(null,!1):null},U.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},U.exitClassBody=function(){var e=this.privateNameStack.pop(),r=e.declared,o=e.used;if(this.options.checkPrivateFields)for(var h=this.privateNameStack.length,x=h===0?null:this.privateNameStack[h-1],C=0;C<o.length;++C){var A=o[C];ot(r,A.name)||(x?x.used.push(A):this.raiseRecoverable(A.start,"Private field '#"+A.name+"' must be declared in an enclosing class"))}};function xr(e,r){var o=r.key.name,h=e[o],x="true";return r.type==="MethodDefinition"&&(r.kind==="get"||r.kind==="set")&&(x=(r.static?"s":"i")+r.kind),h==="iget"&&x==="iset"||h==="iset"&&x==="iget"||h==="sget"&&x==="sset"||h==="sset"&&x==="sget"?(e[o]="true",!1):h?!0:(e[o]=x,!1)}function Fe(e,r){var o=e.computed,h=e.key;return!o&&(h.type==="Identifier"&&h.name===r||h.type==="Literal"&&h.value===r)}U.parseExportAllDeclaration=function(e,r){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(r,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==d.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},U.parseExport=function(e,r){if(this.next(),this.eat(d.star))return this.parseExportAllDeclaration(e,r);if(this.eat(d._default))return this.checkExport(r,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(r,e.declaration.declarations):this.checkExport(r,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(r),this.eatContextual("from"))this.type!==d.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var o=0,h=e.specifiers;o<h.length;o+=1){var x=h[o];this.checkUnreserved(x.local),this.checkLocalExport(x.local),x.local.type==="Literal"&&this.raise(x.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},U.parseExportDeclaration=function(e){return this.parseStatement(null)},U.parseExportDefaultDeclaration=function(){var e;if(this.type===d._function||(e=this.isAsyncFunction())){var r=this.startNode();return this.next(),e&&this.next(),this.parseFunction(r,ke|Oi,!1,e)}else if(this.type===d._class){var o=this.startNode();return this.parseClass(o,"nullableID")}else{var h=this.parseMaybeAssign();return this.semicolon(),h}},U.checkExport=function(e,r,o){e&&(typeof r!="string"&&(r=r.type==="Identifier"?r.name:r.value),ot(e,r)&&this.raiseRecoverable(o,"Duplicate export '"+r+"'"),e[r]=!0)},U.checkPatternExport=function(e,r){var o=r.type;if(o==="Identifier")this.checkExport(e,r,r.start);else if(o==="ObjectPattern")for(var h=0,x=r.properties;h<x.length;h+=1){var C=x[h];this.checkPatternExport(e,C)}else if(o==="ArrayPattern")for(var A=0,L=r.elements;A<L.length;A+=1){var O=L[A];O&&this.checkPatternExport(e,O)}else o==="Property"?this.checkPatternExport(e,r.value):o==="AssignmentPattern"?this.checkPatternExport(e,r.left):o==="RestElement"&&this.checkPatternExport(e,r.argument)},U.checkVariableExport=function(e,r){if(e)for(var o=0,h=r;o<h.length;o+=1){var x=h[o];this.checkPatternExport(e,x.id)}},U.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},U.parseExportSpecifier=function(e){var r=this.startNode();return r.local=this.parseModuleExportName(),r.exported=this.eatContextual("as")?this.parseModuleExportName():r.local,this.checkExport(e,r.exported,r.exported.start),this.finishNode(r,"ExportSpecifier")},U.parseExportSpecifiers=function(e){var r=[],o=!0;for(this.expect(d.braceL);!this.eat(d.braceR);){if(o)o=!1;else if(this.expect(d.comma),this.afterTrailingComma(d.braceR))break;r.push(this.parseExportSpecifier(e))}return r},U.parseImport=function(e){return this.next(),this.type===d.string?(e.specifiers=mr,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===d.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},U.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,Ot),this.finishNode(e,"ImportSpecifier")},U.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Ot),this.finishNode(e,"ImportDefaultSpecifier")},U.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,Ot),this.finishNode(e,"ImportNamespaceSpecifier")},U.parseImportSpecifiers=function(){var e=[],r=!0;if(this.type===d.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(d.comma)))return e;if(this.type===d.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(d.braceL);!this.eat(d.braceR);){if(r)r=!1;else if(this.expect(d.comma),this.afterTrailingComma(d.braceR))break;e.push(this.parseImportSpecifier())}return e},U.parseWithClause=function(){var e=[];if(!this.eat(d._with))return e;this.expect(d.braceL);for(var r={},o=!0;!this.eat(d.braceR);){if(o)o=!1;else if(this.expect(d.comma),this.afterTrailingComma(d.braceR))break;var h=this.parseImportAttribute(),x=h.key.type==="Identifier"?h.key.name:h.key.value;ot(r,x)&&this.raiseRecoverable(h.key.start,"Duplicate attribute key '"+x+"'"),r[x]=!0,e.push(h)}return e},U.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===d.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(d.colon),this.type!==d.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},U.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===d.string){var e=this.parseLiteral(this.value);return c.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},U.adaptDirectivePrologue=function(e){for(var r=0;r<e.length&&this.isDirectiveCandidate(e[r]);++r)e[r].directive=e[r].expression.raw.slice(1,-1)},U.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var Dt=at.prototype;Dt.toAssignable=function(e,r,o){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",o&&this.checkPatternErrors(o,!0);for(var h=0,x=e.properties;h<x.length;h+=1){var C=x[h];this.toAssignable(C,r),C.type==="RestElement"&&(C.argument.type==="ArrayPattern"||C.argument.type==="ObjectPattern")&&this.raise(C.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,r);break;case"ArrayExpression":e.type="ArrayPattern",o&&this.checkPatternErrors(o,!0),this.toAssignableList(e.elements,r);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,r),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,r);break;case"ParenthesizedExpression":this.toAssignable(e.expression,r,o);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!r)break;default:this.raise(e.start,"Assigning to rvalue")}else o&&this.checkPatternErrors(o,!0);return e},Dt.toAssignableList=function(e,r){for(var o=e.length,h=0;h<o;h++){var x=e[h];x&&this.toAssignable(x,r)}if(o){var C=e[o-1];this.options.ecmaVersion===6&&r&&C&&C.type==="RestElement"&&C.argument.type!=="Identifier"&&this.unexpected(C.argument.start)}return e},Dt.parseSpread=function(e){var r=this.startNode();return this.next(),r.argument=this.parseMaybeAssign(!1,e),this.finishNode(r,"SpreadElement")},Dt.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==d.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},Dt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case d.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(d.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case d.braceL:return this.parseObj(!0)}return this.parseIdent()},Dt.parseBindingList=function(e,r,o,h){for(var x=[],C=!0;!this.eat(e);)if(C?C=!1:this.expect(d.comma),r&&this.type===d.comma)x.push(null);else{if(o&&this.afterTrailingComma(e))break;if(this.type===d.ellipsis){var A=this.parseRestBinding();this.parseBindingListItem(A),x.push(A),this.type===d.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else x.push(this.parseAssignableListItem(h))}return x},Dt.parseAssignableListItem=function(e){var r=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(r),r},Dt.parseBindingListItem=function(e){return e},Dt.parseMaybeDefault=function(e,r,o){if(o=o||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(d.eq))return o;var h=this.startNodeAt(e,r);return h.left=o,h.right=this.parseMaybeAssign(),this.finishNode(h,"AssignmentPattern")},Dt.checkLValSimple=function(e,r,o){r===void 0&&(r=Xt);var h=r!==Xt;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(h?"Binding ":"Assigning to ")+e.name+" in strict mode"),h&&(r===Ot&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),o&&(ot(o,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),o[e.name]=!0),r!==Se&&this.declareName(e.name,r,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":h&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return h&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,r,o);default:this.raise(e.start,(h?"Binding":"Assigning to")+" rvalue")}},Dt.checkLValPattern=function(e,r,o){switch(r===void 0&&(r=Xt),e.type){case"ObjectPattern":for(var h=0,x=e.properties;h<x.length;h+=1){var C=x[h];this.checkLValInnerPattern(C,r,o)}break;case"ArrayPattern":for(var A=0,L=e.elements;A<L.length;A+=1){var O=L[A];O&&this.checkLValInnerPattern(O,r,o)}break;default:this.checkLValSimple(e,r,o)}},Dt.checkLValInnerPattern=function(e,r,o){switch(r===void 0&&(r=Xt),e.type){case"Property":this.checkLValInnerPattern(e.value,r,o);break;case"AssignmentPattern":this.checkLValPattern(e.left,r,o);break;case"RestElement":this.checkLValPattern(e.argument,r,o);break;default:this.checkLValPattern(e,r,o)}};var Mt=function(r,o,h,x,C){this.token=r,this.isExpr=!!o,this.preserveSpace=!!h,this.override=x,this.generator=!!C},pt={b_stat:new Mt("{",!1),b_expr:new Mt("{",!0),b_tmpl:new Mt("${",!1),p_stat:new Mt("(",!1),p_expr:new Mt("(",!0),q_tmpl:new Mt("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Mt("function",!1),f_expr:new Mt("function",!0),f_expr_gen:new Mt("function",!0,!1,null,!0),f_gen:new Mt("function",!1,!1,null,!0)},le=at.prototype;le.initialContext=function(){return[pt.b_stat]},le.curContext=function(){return this.context[this.context.length-1]},le.braceIsBlock=function(e){var r=this.curContext();return r===pt.f_expr||r===pt.f_stat?!0:e===d.colon&&(r===pt.b_stat||r===pt.b_expr)?!r.isExpr:e===d._return||e===d.name&&this.exprAllowed?yt.test(this.input.slice(this.lastTokEnd,this.start)):e===d._else||e===d.semi||e===d.eof||e===d.parenR||e===d.arrow?!0:e===d.braceL?r===pt.b_stat:e===d._var||e===d._const||e===d.name?!1:!this.exprAllowed},le.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var r=this.context[e];if(r.token==="function")return r.generator}return!1},le.updateContext=function(e){var r,o=this.type;o.keyword&&e===d.dot?this.exprAllowed=!1:(r=o.updateContext)?r.call(this,e):this.exprAllowed=o.beforeExpr},le.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},d.parenR.updateContext=d.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===pt.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},d.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?pt.b_stat:pt.b_expr),this.exprAllowed=!0},d.dollarBraceL.updateContext=function(){this.context.push(pt.b_tmpl),this.exprAllowed=!0},d.parenL.updateContext=function(e){var r=e===d._if||e===d._for||e===d._with||e===d._while;this.context.push(r?pt.p_stat:pt.p_expr),this.exprAllowed=!0},d.incDec.updateContext=function(){},d._function.updateContext=d._class.updateContext=function(e){e.beforeExpr&&e!==d._else&&!(e===d.semi&&this.curContext()!==pt.p_stat)&&!(e===d._return&&yt.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===d.colon||e===d.braceL)&&this.curContext()===pt.b_stat)?this.context.push(pt.f_expr):this.context.push(pt.f_stat),this.exprAllowed=!1},d.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},d.backQuote.updateContext=function(){this.curContext()===pt.q_tmpl?this.context.pop():this.context.push(pt.q_tmpl),this.exprAllowed=!1},d.star.updateContext=function(e){if(e===d._function){var r=this.context.length-1;this.context[r]===pt.f_expr?this.context[r]=pt.f_expr_gen:this.context[r]=pt.f_gen}this.exprAllowed=!0},d.name.updateContext=function(e){var r=!1;this.options.ecmaVersion>=6&&e!==d.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(r=!0),this.exprAllowed=r};var X=at.prototype;X.checkPropClash=function(e,r,o){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var h=e.key,x;switch(h.type){case"Identifier":x=h.name;break;case"Literal":x=String(h.value);break;default:return}var C=e.kind;if(this.options.ecmaVersion>=6){x==="__proto__"&&C==="init"&&(r.proto&&(o?o.doubleProto<0&&(o.doubleProto=h.start):this.raiseRecoverable(h.start,"Redefinition of __proto__ property")),r.proto=!0);return}x="$"+x;var A=r[x];if(A){var L;C==="init"?L=this.strict&&A.init||A.get||A.set:L=A.init||A[C],L&&this.raiseRecoverable(h.start,"Redefinition of property")}else A=r[x]={init:!1,get:!1,set:!1};A[C]=!0}},X.parseExpression=function(e,r){var o=this.start,h=this.startLoc,x=this.parseMaybeAssign(e,r);if(this.type===d.comma){var C=this.startNodeAt(o,h);for(C.expressions=[x];this.eat(d.comma);)C.expressions.push(this.parseMaybeAssign(e,r));return this.finishNode(C,"SequenceExpression")}return x},X.parseMaybeAssign=function(e,r,o){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var h=!1,x=-1,C=-1,A=-1;r?(x=r.parenthesizedAssign,C=r.trailingComma,A=r.doubleProto,r.parenthesizedAssign=r.trailingComma=-1):(r=new Be,h=!0);var L=this.start,O=this.startLoc;(this.type===d.parenL||this.type===d.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var K=this.parseMaybeConditional(e,r);if(o&&(K=o.call(this,K,L,O)),this.type.isAssign){var $=this.startNodeAt(L,O);return $.operator=this.value,this.type===d.eq&&(K=this.toAssignable(K,!1,r)),h||(r.parenthesizedAssign=r.trailingComma=r.doubleProto=-1),r.shorthandAssign>=K.start&&(r.shorthandAssign=-1),this.type===d.eq?this.checkLValPattern(K):this.checkLValSimple(K),$.left=K,this.next(),$.right=this.parseMaybeAssign(e),A>-1&&(r.doubleProto=A),this.finishNode($,"AssignmentExpression")}else h&&this.checkExpressionErrors(r,!0);return x>-1&&(r.parenthesizedAssign=x),C>-1&&(r.trailingComma=C),K},X.parseMaybeConditional=function(e,r){var o=this.start,h=this.startLoc,x=this.parseExprOps(e,r);if(this.checkExpressionErrors(r))return x;if(this.eat(d.question)){var C=this.startNodeAt(o,h);return C.test=x,C.consequent=this.parseMaybeAssign(),this.expect(d.colon),C.alternate=this.parseMaybeAssign(e),this.finishNode(C,"ConditionalExpression")}return x},X.parseExprOps=function(e,r){var o=this.start,h=this.startLoc,x=this.parseMaybeUnary(r,!1,!1,e);return this.checkExpressionErrors(r)||x.start===o&&x.type==="ArrowFunctionExpression"?x:this.parseExprOp(x,o,h,-1,e)},X.parseExprOp=function(e,r,o,h,x){var C=this.type.binop;if(C!=null&&(!x||this.type!==d._in)&&C>h){var A=this.type===d.logicalOR||this.type===d.logicalAND,L=this.type===d.coalesce;L&&(C=d.logicalAND.binop);var O=this.value;this.next();var K=this.start,$=this.startLoc,lt=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,x),K,$,C,x),_t=this.buildBinary(r,o,e,lt,O,A||L);return(A&&this.type===d.coalesce||L&&(this.type===d.logicalOR||this.type===d.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(_t,r,o,h,x)}return e},X.buildBinary=function(e,r,o,h,x,C){h.type==="PrivateIdentifier"&&this.raise(h.start,"Private identifier can only be left side of binary expression");var A=this.startNodeAt(e,r);return A.left=o,A.operator=x,A.right=h,this.finishNode(A,C?"LogicalExpression":"BinaryExpression")},X.parseMaybeUnary=function(e,r,o,h){var x=this.start,C=this.startLoc,A;if(this.isContextual("await")&&this.canAwait)A=this.parseAwait(h),r=!0;else if(this.type.prefix){var L=this.startNode(),O=this.type===d.incDec;L.operator=this.value,L.prefix=!0,this.next(),L.argument=this.parseMaybeUnary(null,!0,O,h),this.checkExpressionErrors(e,!0),O?this.checkLValSimple(L.argument):this.strict&&L.operator==="delete"&&Di(L.argument)?this.raiseRecoverable(L.start,"Deleting local variable in strict mode"):L.operator==="delete"&&hi(L.argument)?this.raiseRecoverable(L.start,"Private fields can not be deleted"):r=!0,A=this.finishNode(L,O?"UpdateExpression":"UnaryExpression")}else if(!r&&this.type===d.privateId)(h||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),A=this.parsePrivateIdent(),this.type!==d._in&&this.unexpected();else{if(A=this.parseExprSubscripts(e,h),this.checkExpressionErrors(e))return A;for(;this.type.postfix&&!this.canInsertSemicolon();){var K=this.startNodeAt(x,C);K.operator=this.value,K.prefix=!1,K.argument=A,this.checkLValSimple(A),this.next(),A=this.finishNode(K,"UpdateExpression")}}if(!o&&this.eat(d.starstar))if(r)this.unexpected(this.lastTokStart);else return this.buildBinary(x,C,A,this.parseMaybeUnary(null,!1,!1,h),"**",!1);else return A};function Di(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Di(e.expression)}function hi(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&hi(e.expression)||e.type==="ParenthesizedExpression"&&hi(e.expression)}X.parseExprSubscripts=function(e,r){var o=this.start,h=this.startLoc,x=this.parseExprAtom(e,r);if(x.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return x;var C=this.parseSubscripts(x,o,h,!1,r);return e&&C.type==="MemberExpression"&&(e.parenthesizedAssign>=C.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=C.start&&(e.parenthesizedBind=-1),e.trailingComma>=C.start&&(e.trailingComma=-1)),C},X.parseSubscripts=function(e,r,o,h,x){for(var C=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,A=!1;;){var L=this.parseSubscript(e,r,o,h,C,A,x);if(L.optional&&(A=!0),L===e||L.type==="ArrowFunctionExpression"){if(A){var O=this.startNodeAt(r,o);O.expression=L,L=this.finishNode(O,"ChainExpression")}return L}e=L}},X.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(d.arrow)},X.parseSubscriptAsyncArrow=function(e,r,o,h){return this.parseArrowExpression(this.startNodeAt(e,r),o,!0,h)},X.parseSubscript=function(e,r,o,h,x,C,A){var L=this.options.ecmaVersion>=11,O=L&&this.eat(d.questionDot);h&&O&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var K=this.eat(d.bracketL);if(K||O&&this.type!==d.parenL&&this.type!==d.backQuote||this.eat(d.dot)){var $=this.startNodeAt(r,o);$.object=e,K?($.property=this.parseExpression(),this.expect(d.bracketR)):this.type===d.privateId&&e.type!=="Super"?$.property=this.parsePrivateIdent():$.property=this.parseIdent(this.options.allowReserved!=="never"),$.computed=!!K,L&&($.optional=O),e=this.finishNode($,"MemberExpression")}else if(!h&&this.eat(d.parenL)){var lt=new Be,_t=this.yieldPos,Te=this.awaitPos,fe=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var We=this.parseExprList(d.parenR,this.options.ecmaVersion>=8,!1,lt);if(x&&!O&&this.shouldParseAsyncArrow())return this.checkPatternErrors(lt,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=_t,this.awaitPos=Te,this.awaitIdentPos=fe,this.parseSubscriptAsyncArrow(r,o,We,A);this.checkExpressionErrors(lt,!0),this.yieldPos=_t||this.yieldPos,this.awaitPos=Te||this.awaitPos,this.awaitIdentPos=fe||this.awaitIdentPos;var de=this.startNodeAt(r,o);de.callee=e,de.arguments=We,L&&(de.optional=O),e=this.finishNode(de,"CallExpression")}else if(this.type===d.backQuote){(O||C)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var me=this.startNodeAt(r,o);me.tag=e,me.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(me,"TaggedTemplateExpression")}return e},X.parseExprAtom=function(e,r,o){this.type===d.slash&&this.readRegexp();var h,x=this.potentialArrowAt===this.start;switch(this.type){case d._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),h=this.startNode(),this.next(),this.type===d.parenL&&!this.allowDirectSuper&&this.raise(h.start,"super() call outside constructor of a subclass"),this.type!==d.dot&&this.type!==d.bracketL&&this.type!==d.parenL&&this.unexpected(),this.finishNode(h,"Super");case d._this:return h=this.startNode(),this.next(),this.finishNode(h,"ThisExpression");case d.name:var C=this.start,A=this.startLoc,L=this.containsEsc,O=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!L&&O.name==="async"&&!this.canInsertSemicolon()&&this.eat(d._function))return this.overrideContext(pt.f_expr),this.parseFunction(this.startNodeAt(C,A),0,!1,!0,r);if(x&&!this.canInsertSemicolon()){if(this.eat(d.arrow))return this.parseArrowExpression(this.startNodeAt(C,A),[O],!1,r);if(this.options.ecmaVersion>=8&&O.name==="async"&&this.type===d.name&&!L&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return O=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(d.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(C,A),[O],!0,r)}return O;case d.regexp:var K=this.value;return h=this.parseLiteral(K.value),h.regex={pattern:K.pattern,flags:K.flags},h;case d.num:case d.string:return this.parseLiteral(this.value);case d._null:case d._true:case d._false:return h=this.startNode(),h.value=this.type===d._null?null:this.type===d._true,h.raw=this.type.keyword,this.next(),this.finishNode(h,"Literal");case d.parenL:var $=this.start,lt=this.parseParenAndDistinguishExpression(x,r);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(lt)&&(e.parenthesizedAssign=$),e.parenthesizedBind<0&&(e.parenthesizedBind=$)),lt;case d.bracketL:return h=this.startNode(),this.next(),h.elements=this.parseExprList(d.bracketR,!0,!0,e),this.finishNode(h,"ArrayExpression");case d.braceL:return this.overrideContext(pt.b_expr),this.parseObj(!1,e);case d._function:return h=this.startNode(),this.next(),this.parseFunction(h,0);case d._class:return this.parseClass(this.startNode(),!1);case d._new:return this.parseNew();case d.backQuote:return this.parseTemplate();case d._import:return this.options.ecmaVersion>=11?this.parseExprImport(o):this.unexpected();default:return this.parseExprAtomDefault()}},X.parseExprAtomDefault=function(){this.unexpected()},X.parseExprImport=function(e){var r=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===d.parenL&&!e)return this.parseDynamicImport(r);if(this.type===d.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()},X.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(d.parenR)?e.options=null:(this.expect(d.comma),this.afterTrailingComma(d.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(d.parenR)||(this.expect(d.comma),this.afterTrailingComma(d.parenR)||this.unexpected())));else if(!this.eat(d.parenR)){var r=this.start;this.eat(d.comma)&&this.eat(d.parenR)?this.raiseRecoverable(r,"Trailing comma is not allowed in import()"):this.unexpected(r)}return this.finishNode(e,"ImportExpression")},X.parseImportMeta=function(e){this.next();var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),r&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},X.parseLiteral=function(e){var r=this.startNode();return r.value=e,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,"")),this.next(),this.finishNode(r,"Literal")},X.parseParenExpression=function(){this.expect(d.parenL);var e=this.parseExpression();return this.expect(d.parenR),e},X.shouldParseArrow=function(e){return!this.canInsertSemicolon()},X.parseParenAndDistinguishExpression=function(e,r){var o=this.start,h=this.startLoc,x,C=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var A=this.start,L=this.startLoc,O=[],K=!0,$=!1,lt=new Be,_t=this.yieldPos,Te=this.awaitPos,fe;for(this.yieldPos=0,this.awaitPos=0;this.type!==d.parenR;)if(K?K=!1:this.expect(d.comma),C&&this.afterTrailingComma(d.parenR,!0)){$=!0;break}else if(this.type===d.ellipsis){fe=this.start,O.push(this.parseParenItem(this.parseRestBinding())),this.type===d.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else O.push(this.parseMaybeAssign(!1,lt,this.parseParenItem));var We=this.lastTokEnd,de=this.lastTokEndLoc;if(this.expect(d.parenR),e&&this.shouldParseArrow(O)&&this.eat(d.arrow))return this.checkPatternErrors(lt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=_t,this.awaitPos=Te,this.parseParenArrowList(o,h,O,r);(!O.length||$)&&this.unexpected(this.lastTokStart),fe&&this.unexpected(fe),this.checkExpressionErrors(lt,!0),this.yieldPos=_t||this.yieldPos,this.awaitPos=Te||this.awaitPos,O.length>1?(x=this.startNodeAt(A,L),x.expressions=O,this.finishNodeAt(x,"SequenceExpression",We,de)):x=O[0]}else x=this.parseParenExpression();if(this.options.preserveParens){var me=this.startNodeAt(o,h);return me.expression=x,this.finishNode(me,"ParenthesizedExpression")}else return x},X.parseParenItem=function(e){return e},X.parseParenArrowList=function(e,r,o,h){return this.parseArrowExpression(this.startNodeAt(e,r),o,!1,h)};var yr=[];X.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===d.dot){var r=this.startNodeAt(e.start,e.loc&&e.loc.start);r.name="new",e.meta=this.finishNode(r,"Identifier"),this.next();var o=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),o&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var h=this.start,x=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),h,x,!0,!1),this.eat(d.parenL)?e.arguments=this.parseExprList(d.parenR,this.options.ecmaVersion>=8,!1):e.arguments=yr,this.finishNode(e,"NewExpression")},X.parseTemplateElement=function(e){var r=e.isTagged,o=this.startNode();return this.type===d.invalidTemplate?(r||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),o.value={raw:this.value.replace(/\r\n?/g,`
|
|
4
4
|
`),cooked:null}):o.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
5
|
-
`),cooked:this.value},this.next(),o.tail=this.type===f.backQuote,this.finishNode(o,"TemplateElement")},J.parseTemplate=function(e){e===void 0&&(e={});var r=e.isTagged;r===void 0&&(r=!1);var o=this.startNode();this.next(),o.expressions=[];var h=this.parseTemplateElement({isTagged:r});for(o.quasis=[h];!h.tail;)this.type===f.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(f.dollarBraceL),o.expressions.push(this.parseExpression()),this.expect(f.braceR),o.quasis.push(h=this.parseTemplateElement({isTagged:r}));return this.next(),this.finishNode(o,"TemplateLiteral")},J.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===f.name||this.type===f.num||this.type===f.string||this.type===f.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===f.star)&&!yt.test(this.input.slice(this.lastTokEnd,this.start))},J.parseObj=function(e,r){var o=this.startNode(),h=!0,x={};for(o.properties=[],this.next();!this.eat(f.braceR);){if(h)h=!1;else if(this.expect(f.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(f.braceR))break;var C=this.parseProperty(e,r);e||this.checkPropClash(C,x,r),o.properties.push(C)}return this.finishNode(o,e?"ObjectPattern":"ObjectExpression")},J.parseProperty=function(e,r){var o=this.startNode(),h,x,C,A;if(this.options.ecmaVersion>=9&&this.eat(f.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(o.argument=this.parseMaybeAssign(!1,r),this.type===f.comma&&r&&r.trailingComma<0&&(r.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||r)&&(C=this.start,A=this.startLoc),e||(h=this.eat(f.star)));var L=this.containsEsc;return this.parsePropertyName(o),!e&&!L&&this.options.ecmaVersion>=8&&!h&&this.isAsyncProp(o)?(x=!0,h=this.options.ecmaVersion>=9&&this.eat(f.star),this.parsePropertyName(o)):x=!1,this.parsePropertyValue(o,e,h,x,C,A,r,L),this.finishNode(o,"Property")},J.parseGetterSetter=function(e){var r=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=r;var o=e.kind==="get"?0:1;if(e.value.params.length!==o){var h=e.value.start;e.kind==="get"?this.raiseRecoverable(h,"getter should have no params"):this.raiseRecoverable(h,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},J.parsePropertyValue=function(e,r,o,h,x,C,A,L){(o||h)&&this.type===f.colon&&this.unexpected(),this.eat(f.colon)?(e.value=r?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,A),e.kind="init"):this.options.ecmaVersion>=6&&this.type===f.parenL?(r&&this.unexpected(),e.method=!0,e.value=this.parseMethod(o,h),e.kind="init"):!r&&!L&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==f.comma&&this.type!==f.braceR&&this.type!==f.eq?((o||h)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((o||h)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=x),r?e.value=this.parseMaybeDefault(x,C,this.copyNode(e.key)):this.type===f.eq&&A?(A.shorthandAssign<0&&(A.shorthandAssign=this.start),e.value=this.parseMaybeDefault(x,C,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()},J.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(f.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(f.bracketR),e.key;e.computed=!1}return e.key=this.type===f.num||this.type===f.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},J.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},J.parseMethod=function(e,r,o){var h=this.startNode(),x=this.yieldPos,C=this.awaitPos,A=this.awaitIdentPos;return this.initFunction(h),this.options.ecmaVersion>=6&&(h.generator=e),this.options.ecmaVersion>=8&&(h.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(pe(r,h.generator)|mt|(o?Ct:0)),this.expect(f.parenL),h.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(h,!1,!0,!1),this.yieldPos=x,this.awaitPos=C,this.awaitIdentPos=A,this.finishNode(h,"FunctionExpression")},J.parseArrowExpression=function(e,r,o,h){var x=this.yieldPos,C=this.awaitPos,A=this.awaitIdentPos;return this.enterScope(pe(o,!1)|ut),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!o),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(r,!0),this.parseFunctionBody(e,!0,!1,h),this.yieldPos=x,this.awaitPos=C,this.awaitIdentPos=A,this.finishNode(e,"ArrowFunctionExpression")},J.parseFunctionBody=function(e,r,o,h){var x=r&&this.type!==f.braceL,C=this.strict,A=!1;if(x)e.body=this.parseMaybeAssign(h),e.expression=!0,this.checkParams(e,!1);else{var L=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!C||L)&&(A=this.strictDirective(this.end),A&&L&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var O=this.labels;this.labels=[],A&&(this.strict=!0),this.checkParams(e,!C&&!A&&!r&&!o&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Se),e.body=this.parseBlock(!1,void 0,A&&!C),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=O}this.exitScope()},J.isSimpleParamList=function(e){for(var r=0,o=e;r<o.length;r+=1){var h=o[r];if(h.type!=="Identifier")return!1}return!0},J.checkParams=function(e,r){for(var o=Object.create(null),h=0,x=e.params;h<x.length;h+=1){var C=x[h];this.checkLValInnerPattern(C,re,r?null:o)}},J.parseExprList=function(e,r,o,h){for(var x=[],C=!0;!this.eat(e);){if(C)C=!1;else if(this.expect(f.comma),r&&this.afterTrailingComma(e))break;var A=void 0;o&&this.type===f.comma?A=null:this.type===f.ellipsis?(A=this.parseSpread(h),h&&this.type===f.comma&&h.trailingComma<0&&(h.trailingComma=this.start)):A=this.parseMaybeAssign(!1,h),x.push(A)}return x},J.checkUnreserved=function(e){var r=e.start,o=e.end,h=e.name;if(this.inGenerator&&h==="yield"&&this.raiseRecoverable(r,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&h==="await"&&this.raiseRecoverable(r,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Nt)&&h==="arguments"&&this.raiseRecoverable(r,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(h==="arguments"||h==="await")&&this.raise(r,"Cannot use "+h+" in class static initialization block"),this.keywords.test(h)&&this.raise(r,"Unexpected keyword '"+h+"'"),!(this.options.ecmaVersion<6&&this.input.slice(r,o).indexOf("\\")!==-1)){var x=this.strict?this.reservedWordsStrict:this.reservedWords;x.test(h)&&(!this.inAsync&&h==="await"&&this.raiseRecoverable(r,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(r,"The keyword '"+h+"' is reserved"))}},J.parseIdent=function(e){var r=this.parseIdentNode();return this.next(!!e),this.finishNode(r,"Identifier"),e||(this.checkUnreserved(r),r.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r.start)),r},J.parseIdentNode=function(){var e=this.startNode();return this.type===f.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=f.name):this.unexpected(),e},J.parsePrivateIdent=function(){var e=this.startNode();return this.type===f.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},J.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var r=this.startNode();return this.next(),this.type===f.semi||this.canInsertSemicolon()||this.type!==f.star&&!this.type.startsExpr?(r.delegate=!1,r.argument=null):(r.delegate=this.eat(f.star),r.argument=this.parseMaybeAssign(e)),this.finishNode(r,"YieldExpression")},J.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var r=this.startNode();return this.next(),r.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(r,"AwaitExpression")};var je=at.prototype;je.raise=function(e,r){var o=S(this.input,e);r+=" ("+o.line+":"+o.column+")",this.sourceFile&&(r+=" in "+this.sourceFile);var h=new SyntaxError(r);throw h.pos=e,h.loc=o,h.raisedAt=this.pos,h},je.raiseRecoverable=je.raise,je.curPosition=function(){if(this.options.locations)return new m(this.curLine,this.pos-this.lineStart)};var ee=at.prototype,vr=function(r){this.flags=r,this.var=[],this.lexical=[],this.functions=[]};ee.enterScope=function(e){this.scopeStack.push(new vr(e))},ee.exitScope=function(){this.scopeStack.pop()},ee.treatFunctionsAsVarInScope=function(e){return e.flags&z||!this.inModule&&e.flags&B},ee.declareName=function(e,r,o){var h=!1;if(r===Ot){var x=this.currentScope();h=x.lexical.indexOf(e)>-1||x.functions.indexOf(e)>-1||x.var.indexOf(e)>-1,x.lexical.push(e),this.inModule&&x.flags&B&&delete this.undefinedExports[e]}else if(r===be){var C=this.currentScope();C.lexical.push(e)}else if(r===ae){var A=this.currentScope();this.treatFunctionsAsVar?h=A.lexical.indexOf(e)>-1:h=A.lexical.indexOf(e)>-1||A.var.indexOf(e)>-1,A.functions.push(e)}else for(var L=this.scopeStack.length-1;L>=0;--L){var O=this.scopeStack[L];if(O.lexical.indexOf(e)>-1&&!(O.flags&ct&&O.lexical[0]===e)||!this.treatFunctionsAsVarInScope(O)&&O.functions.indexOf(e)>-1){h=!0;break}if(O.var.push(e),this.inModule&&O.flags&B&&delete this.undefinedExports[e],O.flags&Nt)break}h&&this.raiseRecoverable(o,"Identifier '"+e+"' has already been declared")},ee.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},ee.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ee.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var r=this.scopeStack[e];if(r.flags&(Nt|Wt|kt))return r}},ee.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var r=this.scopeStack[e];if(r.flags&(Nt|Wt|kt)&&!(r.flags&ut))return r}};var Ae=function(r,o,h){this.type="",this.start=o,this.end=0,r.options.locations&&(this.loc=new v(r,h)),r.options.directSourceFile&&(this.sourceFile=r.options.directSourceFile),r.options.ranges&&(this.range=[o,0])},_e=at.prototype;_e.startNode=function(){return new Ae(this,this.start,this.startLoc)},_e.startNodeAt=function(e,r){return new Ae(this,e,r)};function Bi(e,r,o,h){return e.type=r,e.end=o,this.options.locations&&(e.loc.end=h),this.options.ranges&&(e.range[1]=o),e}_e.finishNode=function(e,r){return Bi.call(this,e,r,this.lastTokEnd,this.lastTokEndLoc)},_e.finishNodeAt=function(e,r,o,h){return Bi.call(this,e,r,o,h)},_e.copyNode=function(e){var r=new Ae(this,e.start,this.startLoc);for(var o in e)r[o]=e[o];return r};var gr="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",Fi="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ji=Fi+" Extended_Pictographic",Ui=ji,qi=Ui+" EBase EComp EMod EPres ExtPict",Hi=qi,br=Hi,Sr={9:Fi,10:ji,11:Ui,12:qi,13:Hi,14:br},Cr="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",kr={9:"",10:"",11:"",12:"",13:"",14:Cr},Wi="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",zi="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Gi=zi+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ki=Gi+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Xi=Ki+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Ji=Xi+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Ar=Ji+" "+gr,_r={9:zi,10:Gi,11:Ki,12:Xi,13:Ji,14:Ar},Qi={};function Tr(e){var r=Qi[e]={binary:s(Sr[e]+" "+Wi),binaryOfStrings:s(kr[e]),nonBinary:{General_Category:s(Wi),Script:s(_r[e])}};r.nonBinary.Script_Extensions=r.nonBinary.Script,r.nonBinary.gc=r.nonBinary.General_Category,r.nonBinary.sc=r.nonBinary.Script,r.nonBinary.scx=r.nonBinary.Script_Extensions}for(var ci=0,Yi=[9,10,11,12,13,14];ci<Yi.length;ci+=1){var wr=Yi[ci];Tr(wr)}var F=at.prototype,Ue=function(r,o){this.parent=r,this.base=o||this};Ue.prototype.separatedFrom=function(r){for(var o=this;o;o=o.parent)for(var h=r;h;h=h.parent)if(o.base===h.base&&o!==h)return!0;return!1},Ue.prototype.sibling=function(){return new Ue(this.parent,this.base)};var Gt=function(r){this.parser=r,this.validFlags="gim"+(r.options.ecmaVersion>=6?"uy":"")+(r.options.ecmaVersion>=9?"s":"")+(r.options.ecmaVersion>=13?"d":"")+(r.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Qi[r.options.ecmaVersion>=14?14:r.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Gt.prototype.reset=function(r,o,h){var x=h.indexOf("v")!==-1,C=h.indexOf("u")!==-1;this.start=r|0,this.source=o+"",this.flags=h,x&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=C&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=C&&this.parser.options.ecmaVersion>=9)},Gt.prototype.raise=function(r){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+r)},Gt.prototype.at=function(r,o){o===void 0&&(o=!1);var h=this.source,x=h.length;if(r>=x)return-1;var C=h.charCodeAt(r);if(!(o||this.switchU)||C<=55295||C>=57344||r+1>=x)return C;var A=h.charCodeAt(r+1);return A>=56320&&A<=57343?(C<<10)+A-56613888:C},Gt.prototype.nextIndex=function(r,o){o===void 0&&(o=!1);var h=this.source,x=h.length;if(r>=x)return x;var C=h.charCodeAt(r),A;return!(o||this.switchU)||C<=55295||C>=57344||r+1>=x||(A=h.charCodeAt(r+1))<56320||A>57343?r+1:r+2},Gt.prototype.current=function(r){return r===void 0&&(r=!1),this.at(this.pos,r)},Gt.prototype.lookahead=function(r){return r===void 0&&(r=!1),this.at(this.nextIndex(this.pos,r),r)},Gt.prototype.advance=function(r){r===void 0&&(r=!1),this.pos=this.nextIndex(this.pos,r)},Gt.prototype.eat=function(r,o){return o===void 0&&(o=!1),this.current(o)===r?(this.advance(o),!0):!1},Gt.prototype.eatChars=function(r,o){o===void 0&&(o=!1);for(var h=this.pos,x=0,C=r;x<C.length;x+=1){var A=C[x],L=this.at(h,o);if(L===-1||L!==A)return!1;h=this.nextIndex(h,o)}return this.pos=h,!0},F.validateRegExpFlags=function(e){for(var r=e.validFlags,o=e.flags,h=!1,x=!1,C=0;C<o.length;C++){var A=o.charAt(C);r.indexOf(A)===-1&&this.raise(e.start,"Invalid regular expression flag"),o.indexOf(A,C+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),A==="u"&&(h=!0),A==="v"&&(x=!0)}this.options.ecmaVersion>=15&&h&&x&&this.raise(e.start,"Invalid regular expression flag")};function Pr(e){for(var r in e)return!0;return!1}F.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Pr(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},F.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var r=0,o=e.backReferenceNames;r<o.length;r+=1){var h=o[r];e.groupNames[h]||e.raise("Invalid named capture referenced")}},F.regexp_disjunction=function(e){var r=this.options.ecmaVersion>=16;for(r&&(e.branchID=new Ue(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)r&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);r&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},F.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},F.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},F.regexp_eatAssertion=function(e){var r=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=r}if(e.eat(40)&&e.eat(63)){var o=!1;if(this.options.ecmaVersion>=9&&(o=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!o,!0}return e.pos=r,!1},F.regexp_eatQuantifier=function(e,r){return r===void 0&&(r=!1),this.regexp_eatQuantifierPrefix(e,r)?(e.eat(63),!0):!1},F.regexp_eatQuantifierPrefix=function(e,r){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,r)},F.regexp_eatBracedQuantifier=function(e,r){var o=e.pos;if(e.eat(123)){var h=0,x=-1;if(this.regexp_eatDecimalDigits(e)&&(h=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(x=e.lastIntValue),e.eat(125)))return x!==-1&&x<h&&!r&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!r&&e.raise("Incomplete quantifier"),e.pos=o}return!1},F.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},F.regexp_eatReverseSolidusAtomEscape=function(e){var r=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=r}return!1},F.regexp_eatUncapturingGroup=function(e){var r=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var o=this.regexp_eatModifiers(e),h=e.eat(45);if(o||h){for(var x=0;x<o.length;x++){var C=o.charAt(x);o.indexOf(C,x+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(h){var A=this.regexp_eatModifiers(e);!o&&!A&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var L=0;L<A.length;L++){var O=A.charAt(L);(A.indexOf(O,L+1)>-1||o.indexOf(O)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=r}return!1},F.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},F.regexp_eatModifiers=function(e){for(var r="",o=0;(o=e.current())!==-1&&Er(o);)r+=a(o),e.advance();return r};function Er(e){return e===105||e===109||e===115}F.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},F.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},F.regexp_eatSyntaxCharacter=function(e){var r=e.current();return Zi(r)?(e.lastIntValue=r,e.advance(),!0):!1};function Zi(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}F.regexp_eatPatternCharacters=function(e){for(var r=e.pos,o=0;(o=e.current())!==-1&&!Zi(o);)e.advance();return e.pos!==r},F.regexp_eatExtendedPatternCharacter=function(e){var r=e.current();return r!==-1&&r!==36&&!(r>=40&&r<=43)&&r!==46&&r!==63&&r!==91&&r!==94&&r!==124?(e.advance(),!0):!1},F.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var r=this.options.ecmaVersion>=16,o=e.groupNames[e.lastStringValue];if(o)if(r)for(var h=0,x=o;h<x.length;h+=1){var C=x[h];C.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");r?(o||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},F.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},F.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=a(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=a(e.lastIntValue);return!0}return!1},F.regexp_eatRegExpIdentifierStart=function(e){var r=e.pos,o=this.options.ecmaVersion>=11,h=e.current(o);return e.advance(o),h===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,o)&&(h=e.lastIntValue),Ir(h)?(e.lastIntValue=h,!0):(e.pos=r,!1)};function Ir(e){return tt(e,!0)||e===36||e===95}F.regexp_eatRegExpIdentifierPart=function(e){var r=e.pos,o=this.options.ecmaVersion>=11,h=e.current(o);return e.advance(o),h===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,o)&&(h=e.lastIntValue),Nr(h)?(e.lastIntValue=h,!0):(e.pos=r,!1)};function Nr(e){return E(e,!0)||e===36||e===95||e===8204||e===8205}F.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},F.regexp_eatBackReference=function(e){var r=e.pos;if(this.regexp_eatDecimalEscape(e)){var o=e.lastIntValue;if(e.switchU)return o>e.maxBackReference&&(e.maxBackReference=o),!0;if(o<=e.numCapturingParens)return!0;e.pos=r}return!1},F.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},F.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},F.regexp_eatCControlLetter=function(e){var r=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=r}return!1},F.regexp_eatZero=function(e){return e.current()===48&&!qe(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1},F.regexp_eatControlEscape=function(e){var r=e.current();return r===116?(e.lastIntValue=9,e.advance(),!0):r===110?(e.lastIntValue=10,e.advance(),!0):r===118?(e.lastIntValue=11,e.advance(),!0):r===102?(e.lastIntValue=12,e.advance(),!0):r===114?(e.lastIntValue=13,e.advance(),!0):!1},F.regexp_eatControlLetter=function(e){var r=e.current();return $i(r)?(e.lastIntValue=r%32,e.advance(),!0):!1};function $i(e){return e>=65&&e<=90||e>=97&&e<=122}F.regexp_eatRegExpUnicodeEscapeSequence=function(e,r){r===void 0&&(r=!1);var o=e.pos,h=r||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var x=e.lastIntValue;if(h&&x>=55296&&x<=56319){var C=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var A=e.lastIntValue;if(A>=56320&&A<=57343)return e.lastIntValue=(x-55296)*1024+(A-56320)+65536,!0}e.pos=C,e.lastIntValue=x}return!0}if(h&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Lr(e.lastIntValue))return!0;h&&e.raise("Invalid unicode escape"),e.pos=o}return!1};function Lr(e){return e>=0&&e<=1114111}F.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var r=e.current();return r!==99&&(!e.switchN||r!==107)?(e.lastIntValue=r,e.advance(),!0):!1},F.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var r=e.current();if(r>=49&&r<=57){do e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();while((r=e.current())>=48&&r<=57);return!0}return!1};var ts=0,Jt=1,Bt=2;F.regexp_eatCharacterClassEscape=function(e){var r=e.current();if(Vr(r))return e.lastIntValue=-1,e.advance(),Jt;var o=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((o=r===80)||r===112)){e.lastIntValue=-1,e.advance();var h;if(e.eat(123)&&(h=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return o&&h===Bt&&e.raise("Invalid property name"),h;e.raise("Invalid property name")}return ts};function Vr(e){return e===100||e===68||e===115||e===83||e===119||e===87}F.regexp_eatUnicodePropertyValueExpression=function(e){var r=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var o=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var h=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,o,h),Jt}}if(e.pos=r,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var x=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,x)}return ts},F.regexp_validateUnicodePropertyNameAndValue=function(e,r,o){ot(e.unicodeProperties.nonBinary,r)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[r].test(o)||e.raise("Invalid property value")},F.regexp_validateUnicodePropertyNameOrValue=function(e,r){if(e.unicodeProperties.binary.test(r))return Jt;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(r))return Bt;e.raise("Invalid property name")},F.regexp_eatUnicodePropertyName=function(e){var r=0;for(e.lastStringValue="";es(r=e.current());)e.lastStringValue+=a(r),e.advance();return e.lastStringValue!==""};function es(e){return $i(e)||e===95}F.regexp_eatUnicodePropertyValue=function(e){var r=0;for(e.lastStringValue="";Rr(r=e.current());)e.lastStringValue+=a(r),e.advance();return e.lastStringValue!==""};function Rr(e){return es(e)||qe(e)}F.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},F.regexp_eatCharacterClass=function(e){if(e.eat(91)){var r=e.eat(94),o=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),r&&o===Bt&&e.raise("Negated character class may contain strings"),!0}return!1},F.regexp_classContents=function(e){return e.current()===93?Jt:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Jt)},F.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var r=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var o=e.lastIntValue;e.switchU&&(r===-1||o===-1)&&e.raise("Invalid character class"),r!==-1&&o!==-1&&r>o&&e.raise("Range out of order in character class")}}},F.regexp_eatClassAtom=function(e){var r=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var o=e.current();(o===99||rs(o))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=r}var h=e.current();return h!==93?(e.lastIntValue=h,e.advance(),!0):!1},F.regexp_eatClassEscape=function(e){var r=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=r}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},F.regexp_classSetExpression=function(e){var r=Jt,o;if(!this.regexp_eatClassSetRange(e))if(o=this.regexp_eatClassSetOperand(e)){o===Bt&&(r=Bt);for(var h=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(o=this.regexp_eatClassSetOperand(e))){o!==Bt&&(r=Jt);continue}e.raise("Invalid character in character class")}if(h!==e.pos)return r;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(h!==e.pos)return r}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(o=this.regexp_eatClassSetOperand(e),!o)return r;o===Bt&&(r=Bt)}},F.regexp_eatClassSetRange=function(e){var r=e.pos;if(this.regexp_eatClassSetCharacter(e)){var o=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var h=e.lastIntValue;return o!==-1&&h!==-1&&o>h&&e.raise("Range out of order in character class"),!0}e.pos=r}return!1},F.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Jt:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},F.regexp_eatNestedClass=function(e){var r=e.pos;if(e.eat(91)){var o=e.eat(94),h=this.regexp_classContents(e);if(e.eat(93))return o&&h===Bt&&e.raise("Negated character class may contain strings"),h;e.pos=r}if(e.eat(92)){var x=this.regexp_eatCharacterClassEscape(e);if(x)return x;e.pos=r}return null},F.regexp_eatClassStringDisjunction=function(e){var r=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var o=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return o}else e.raise("Invalid escape");e.pos=r}return null},F.regexp_classStringDisjunctionContents=function(e){for(var r=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Bt&&(r=Bt);return r},F.regexp_classString=function(e){for(var r=0;this.regexp_eatClassSetCharacter(e);)r++;return r===1?Jt:Bt},F.regexp_eatClassSetCharacter=function(e){var r=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=r,!1);var o=e.current();return o<0||o===e.lookahead()&&Or(o)||Dr(o)?!1:(e.advance(),e.lastIntValue=o,!0)};function Or(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Dr(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}F.regexp_eatClassSetReservedPunctuator=function(e){var r=e.current();return Mr(r)?(e.lastIntValue=r,e.advance(),!0):!1};function Mr(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}F.regexp_eatClassControlLetter=function(e){var r=e.current();return qe(r)||r===95?(e.lastIntValue=r%32,e.advance(),!0):!1},F.regexp_eatHexEscapeSequence=function(e){var r=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=r}return!1},F.regexp_eatDecimalDigits=function(e){var r=e.pos,o=0;for(e.lastIntValue=0;qe(o=e.current());)e.lastIntValue=10*e.lastIntValue+(o-48),e.advance();return e.pos!==r};function qe(e){return e>=48&&e<=57}F.regexp_eatHexDigits=function(e){var r=e.pos,o=0;for(e.lastIntValue=0;is(o=e.current());)e.lastIntValue=16*e.lastIntValue+ss(o),e.advance();return e.pos!==r};function is(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function ss(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}F.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var o=e.lastIntValue;r<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=r*64+o*8+e.lastIntValue:e.lastIntValue=r*8+o}else e.lastIntValue=r;return!0}return!1},F.regexp_eatOctalDigit=function(e){var r=e.current();return rs(r)?(e.lastIntValue=r-48,e.advance(),!0):(e.lastIntValue=0,!1)};function rs(e){return e>=48&&e<=55}F.regexp_eatFixedHexDigits=function(e,r){var o=e.pos;e.lastIntValue=0;for(var h=0;h<r;++h){var x=e.current();if(!is(x))return e.pos=o,!1;e.lastIntValue=16*e.lastIntValue+ss(x),e.advance()}return!0};var He=function(r){this.type=r.type,this.value=r.value,this.start=r.start,this.end=r.end,r.options.locations&&(this.loc=new v(r,r.startLoc,r.endLoc)),r.options.ranges&&(this.range=[r.start,r.end])},it=at.prototype;it.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new He(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},it.getToken=function(){return this.next(),new He(this)},typeof Symbol<"u"&&(it[Symbol.iterator]=function(){var e=this;return{next:function(){var r=e.getToken();return{done:r.type===f.eof,value:r}}}}),it.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(f.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},it.readToken=function(e){return tt(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},it.fullCharCodeAt=function(e){var r=this.input.charCodeAt(e);if(r<=55295||r>=56320)return r;var o=this.input.charCodeAt(e+1);return o<=56319||o>=57344?r:(r<<10)+o-56613888},it.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},it.skipBlockComment=function(){var e=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"),this.pos=o+2,this.options.locations)for(var h=void 0,x=r;(h=Me(this.input,x,this.pos))>-1;)++this.curLine,x=this.lineStart=h;this.options.onComment&&this.options.onComment(!0,this.input.slice(r+2,o),r,this.pos,e,this.curPosition())},it.skipLineComment=function(e){for(var r=this.pos,o=this.options.onComment&&this.curPosition(),h=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Rt(h);)h=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(r+e,this.pos),r,this.pos,o,this.curPosition())},it.skipSpace=function(){t:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++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(e>8&&e<14||e>=5760&&ge.test(String.fromCharCode(e)))++this.pos;else break t}}},it.finishToken=function(e,r){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var o=this.type;this.type=e,this.value=r,this.updateContext(o)},it.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var r=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&r===46?(this.pos+=3,this.finishToken(f.ellipsis)):(++this.pos,this.finishToken(f.dot))},it.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(f.assign,2):this.finishOp(f.slash,1)},it.readToken_mult_modulo_exp=function(e){var r=this.input.charCodeAt(this.pos+1),o=1,h=e===42?f.star:f.modulo;return this.options.ecmaVersion>=7&&e===42&&r===42&&(++o,h=f.starstar,r=this.input.charCodeAt(this.pos+2)),r===61?this.finishOp(f.assign,o+1):this.finishOp(h,o)},it.readToken_pipe_amp=function(e){var r=this.input.charCodeAt(this.pos+1);if(r===e){if(this.options.ecmaVersion>=12){var o=this.input.charCodeAt(this.pos+2);if(o===61)return this.finishOp(f.assign,3)}return this.finishOp(e===124?f.logicalOR:f.logicalAND,2)}return r===61?this.finishOp(f.assign,2):this.finishOp(e===124?f.bitwiseOR:f.bitwiseAND,1)},it.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(f.assign,2):this.finishOp(f.bitwiseXOR,1)},it.readToken_plus_min=function(e){var r=this.input.charCodeAt(this.pos+1);return r===e?r===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||yt.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(f.incDec,2):r===61?this.finishOp(f.assign,2):this.finishOp(f.plusMin,1)},it.readToken_lt_gt=function(e){var r=this.input.charCodeAt(this.pos+1),o=1;return r===e?(o=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+o)===61?this.finishOp(f.assign,o+1):this.finishOp(f.bitShift,o)):r===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(r===61&&(o=2),this.finishOp(f.relational,o))},it.readToken_eq_excl=function(e){var r=this.input.charCodeAt(this.pos+1);return r===61?this.finishOp(f.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&r===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(f.arrow)):this.finishOp(e===61?f.eq:f.prefix,1)},it.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=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(f.questionDot,2)}if(r===63){if(e>=12){var h=this.input.charCodeAt(this.pos+2);if(h===61)return this.finishOp(f.assign,3)}return this.finishOp(f.coalesce,2)}}return this.finishOp(f.question,1)},it.readToken_numberSign=function(){var e=this.options.ecmaVersion,r=35;if(e>=13&&(++this.pos,r=this.fullCharCodeAtPos(),tt(r,!0)||r===92))return this.finishToken(f.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+a(r)+"'")},it.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(f.parenL);case 41:return++this.pos,this.finishToken(f.parenR);case 59:return++this.pos,this.finishToken(f.semi);case 44:return++this.pos,this.finishToken(f.comma);case 91:return++this.pos,this.finishToken(f.bracketL);case 93:return++this.pos,this.finishToken(f.bracketR);case 123:return++this.pos,this.finishToken(f.braceL);case 125:return++this.pos,this.finishToken(f.braceR);case 58:return++this.pos,this.finishToken(f.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(f.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(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(f.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+a(e)+"'")},it.finishOp=function(e,r){var o=this.input.slice(this.pos,this.pos+r);return this.pos+=r,this.finishToken(e,o)},it.readRegexp=function(){for(var e,r,o=this.pos;;){this.pos>=this.input.length&&this.raise(o,"Unterminated regular expression");var h=this.input.charAt(this.pos);if(yt.test(h)&&this.raise(o,"Unterminated regular expression"),e)e=!1;else{if(h==="[")r=!0;else if(h==="]"&&r)r=!1;else if(h==="/"&&!r)break;e=h==="\\"}++this.pos}var x=this.input.slice(o,this.pos);++this.pos;var C=this.pos,A=this.readWord1();this.containsEsc&&this.unexpected(C);var L=this.regexpState||(this.regexpState=new Gt(this));L.reset(o,x,A),this.validateRegExpFlags(L),this.validateRegExpPattern(L);var O=null;try{O=new RegExp(x,A)}catch{}return this.finishToken(f.regexp,{pattern:x,flags:A,value:O})},it.readInt=function(e,r,o){for(var h=this.options.ecmaVersion>=12&&r===void 0,x=o&&this.input.charCodeAt(this.pos)===48,C=this.pos,A=0,L=0,O=0,X=r??1/0;O<X;++O,++this.pos){var $=this.input.charCodeAt(this.pos),lt=void 0;if(h&&$===95){x&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),L===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),O===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),L=$;continue}if($>=97?lt=$-97+10:$>=65?lt=$-65+10:$>=48&&$<=57?lt=$-48:lt=1/0,lt>=e)break;L=$,A=A*e+lt}return h&&L===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===C||r!=null&&this.pos-C!==r?null:A};function Br(e,r){return r?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function as(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}it.readRadixNumber=function(e){var r=this.pos;this.pos+=2;var o=this.readInt(e);return o==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(o=as(this.input.slice(r,this.pos)),++this.pos):tt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,o)},it.readNumber=function(e){var r=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(r,"Invalid number");var o=this.pos-r>=2&&this.input.charCodeAt(r)===48;o&&this.strict&&this.raise(r,"Invalid number");var h=this.input.charCodeAt(this.pos);if(!o&&!e&&this.options.ecmaVersion>=11&&h===110){var x=as(this.input.slice(r,this.pos));return++this.pos,tt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,x)}o&&/[89]/.test(this.input.slice(r,this.pos))&&(o=!1),h===46&&!o&&(++this.pos,this.readInt(10),h=this.input.charCodeAt(this.pos)),(h===69||h===101)&&!o&&(h=this.input.charCodeAt(++this.pos),(h===43||h===45)&&++this.pos,this.readInt(10)===null&&this.raise(r,"Invalid number")),tt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var C=Br(this.input.slice(r,this.pos),o);return this.finishToken(f.num,C)},it.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),r;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var o=++this.pos;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},it.readString=function(e){for(var r="",o=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var h=this.input.charCodeAt(this.pos);if(h===e)break;h===92?(r+=this.input.slice(o,this.pos),r+=this.readEscapedChar(!1),o=this.pos):h===8232||h===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Rt(h)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return r+=this.input.slice(o,this.pos++),this.finishToken(f.string,r)};var ns={};it.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===ns)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},it.invalidStringToken=function(e,r){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ns;this.raise(e,r)},it.readTmplToken=function(){for(var e="",r=this.pos;;){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)return this.pos===this.start&&(this.type===f.template||this.type===f.invalidTemplate)?o===36?(this.pos+=2,this.finishToken(f.dollarBraceL)):(++this.pos,this.finishToken(f.backQuote)):(e+=this.input.slice(r,this.pos),this.finishToken(f.template,e));if(o===92)e+=this.input.slice(r,this.pos),e+=this.readEscapedChar(!0),r=this.pos;else if(Rt(o)){switch(e+=this.input.slice(r,this.pos),++this.pos,o){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
6
|
-
`;break;default:e+=String.fromCharCode(o);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),r=this.pos}else++this.pos}},it.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(
|
|
5
|
+
`),cooked:this.value},this.next(),o.tail=this.type===d.backQuote,this.finishNode(o,"TemplateElement")},X.parseTemplate=function(e){e===void 0&&(e={});var r=e.isTagged;r===void 0&&(r=!1);var o=this.startNode();this.next(),o.expressions=[];var h=this.parseTemplateElement({isTagged:r});for(o.quasis=[h];!h.tail;)this.type===d.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(d.dollarBraceL),o.expressions.push(this.parseExpression()),this.expect(d.braceR),o.quasis.push(h=this.parseTemplateElement({isTagged:r}));return this.next(),this.finishNode(o,"TemplateLiteral")},X.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===d.name||this.type===d.num||this.type===d.string||this.type===d.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===d.star)&&!yt.test(this.input.slice(this.lastTokEnd,this.start))},X.parseObj=function(e,r){var o=this.startNode(),h=!0,x={};for(o.properties=[],this.next();!this.eat(d.braceR);){if(h)h=!1;else if(this.expect(d.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(d.braceR))break;var C=this.parseProperty(e,r);e||this.checkPropClash(C,x,r),o.properties.push(C)}return this.finishNode(o,e?"ObjectPattern":"ObjectExpression")},X.parseProperty=function(e,r){var o=this.startNode(),h,x,C,A;if(this.options.ecmaVersion>=9&&this.eat(d.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===d.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(o.argument=this.parseMaybeAssign(!1,r),this.type===d.comma&&r&&r.trailingComma<0&&(r.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||r)&&(C=this.start,A=this.startLoc),e||(h=this.eat(d.star)));var L=this.containsEsc;return this.parsePropertyName(o),!e&&!L&&this.options.ecmaVersion>=8&&!h&&this.isAsyncProp(o)?(x=!0,h=this.options.ecmaVersion>=9&&this.eat(d.star),this.parsePropertyName(o)):x=!1,this.parsePropertyValue(o,e,h,x,C,A,r,L),this.finishNode(o,"Property")},X.parseGetterSetter=function(e){var r=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=r;var o=e.kind==="get"?0:1;if(e.value.params.length!==o){var h=e.value.start;e.kind==="get"?this.raiseRecoverable(h,"getter should have no params"):this.raiseRecoverable(h,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},X.parsePropertyValue=function(e,r,o,h,x,C,A,L){(o||h)&&this.type===d.colon&&this.unexpected(),this.eat(d.colon)?(e.value=r?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,A),e.kind="init"):this.options.ecmaVersion>=6&&this.type===d.parenL?(r&&this.unexpected(),e.method=!0,e.value=this.parseMethod(o,h),e.kind="init"):!r&&!L&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==d.comma&&this.type!==d.braceR&&this.type!==d.eq?((o||h)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((o||h)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=x),r?e.value=this.parseMaybeDefault(x,C,this.copyNode(e.key)):this.type===d.eq&&A?(A.shorthandAssign<0&&(A.shorthandAssign=this.start),e.value=this.parseMaybeDefault(x,C,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()},X.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(d.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(d.bracketR),e.key;e.computed=!1}return e.key=this.type===d.num||this.type===d.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},X.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},X.parseMethod=function(e,r,o){var h=this.startNode(),x=this.yieldPos,C=this.awaitPos,A=this.awaitIdentPos;return this.initFunction(h),this.options.ecmaVersion>=6&&(h.generator=e),this.options.ecmaVersion>=8&&(h.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(pe(r,h.generator)|mt|(o?Ct:0)),this.expect(d.parenL),h.params=this.parseBindingList(d.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(h,!1,!0,!1),this.yieldPos=x,this.awaitPos=C,this.awaitIdentPos=A,this.finishNode(h,"FunctionExpression")},X.parseArrowExpression=function(e,r,o,h){var x=this.yieldPos,C=this.awaitPos,A=this.awaitIdentPos;return this.enterScope(pe(o,!1)|ut),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!o),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(r,!0),this.parseFunctionBody(e,!0,!1,h),this.yieldPos=x,this.awaitPos=C,this.awaitIdentPos=A,this.finishNode(e,"ArrowFunctionExpression")},X.parseFunctionBody=function(e,r,o,h){var x=r&&this.type!==d.braceL,C=this.strict,A=!1;if(x)e.body=this.parseMaybeAssign(h),e.expression=!0,this.checkParams(e,!1);else{var L=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!C||L)&&(A=this.strictDirective(this.end),A&&L&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var O=this.labels;this.labels=[],A&&(this.strict=!0),this.checkParams(e,!C&&!A&&!r&&!o&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Se),e.body=this.parseBlock(!1,void 0,A&&!C),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=O}this.exitScope()},X.isSimpleParamList=function(e){for(var r=0,o=e;r<o.length;r+=1){var h=o[r];if(h.type!=="Identifier")return!1}return!0},X.checkParams=function(e,r){for(var o=Object.create(null),h=0,x=e.params;h<x.length;h+=1){var C=x[h];this.checkLValInnerPattern(C,re,r?null:o)}},X.parseExprList=function(e,r,o,h){for(var x=[],C=!0;!this.eat(e);){if(C)C=!1;else if(this.expect(d.comma),r&&this.afterTrailingComma(e))break;var A=void 0;o&&this.type===d.comma?A=null:this.type===d.ellipsis?(A=this.parseSpread(h),h&&this.type===d.comma&&h.trailingComma<0&&(h.trailingComma=this.start)):A=this.parseMaybeAssign(!1,h),x.push(A)}return x},X.checkUnreserved=function(e){var r=e.start,o=e.end,h=e.name;if(this.inGenerator&&h==="yield"&&this.raiseRecoverable(r,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&h==="await"&&this.raiseRecoverable(r,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Nt)&&h==="arguments"&&this.raiseRecoverable(r,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(h==="arguments"||h==="await")&&this.raise(r,"Cannot use "+h+" in class static initialization block"),this.keywords.test(h)&&this.raise(r,"Unexpected keyword '"+h+"'"),!(this.options.ecmaVersion<6&&this.input.slice(r,o).indexOf("\\")!==-1)){var x=this.strict?this.reservedWordsStrict:this.reservedWords;x.test(h)&&(!this.inAsync&&h==="await"&&this.raiseRecoverable(r,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(r,"The keyword '"+h+"' is reserved"))}},X.parseIdent=function(e){var r=this.parseIdentNode();return this.next(!!e),this.finishNode(r,"Identifier"),e||(this.checkUnreserved(r),r.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r.start)),r},X.parseIdentNode=function(){var e=this.startNode();return this.type===d.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=d.name):this.unexpected(),e},X.parsePrivateIdent=function(){var e=this.startNode();return this.type===d.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},X.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var r=this.startNode();return this.next(),this.type===d.semi||this.canInsertSemicolon()||this.type!==d.star&&!this.type.startsExpr?(r.delegate=!1,r.argument=null):(r.delegate=this.eat(d.star),r.argument=this.parseMaybeAssign(e)),this.finishNode(r,"YieldExpression")},X.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var r=this.startNode();return this.next(),r.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(r,"AwaitExpression")};var je=at.prototype;je.raise=function(e,r){var o=S(this.input,e);r+=" ("+o.line+":"+o.column+")",this.sourceFile&&(r+=" in "+this.sourceFile);var h=new SyntaxError(r);throw h.pos=e,h.loc=o,h.raisedAt=this.pos,h},je.raiseRecoverable=je.raise,je.curPosition=function(){if(this.options.locations)return new m(this.curLine,this.pos-this.lineStart)};var ee=at.prototype,vr=function(r){this.flags=r,this.var=[],this.lexical=[],this.functions=[]};ee.enterScope=function(e){this.scopeStack.push(new vr(e))},ee.exitScope=function(){this.scopeStack.pop()},ee.treatFunctionsAsVarInScope=function(e){return e.flags&G||!this.inModule&&e.flags&B},ee.declareName=function(e,r,o){var h=!1;if(r===Ot){var x=this.currentScope();h=x.lexical.indexOf(e)>-1||x.functions.indexOf(e)>-1||x.var.indexOf(e)>-1,x.lexical.push(e),this.inModule&&x.flags&B&&delete this.undefinedExports[e]}else if(r===be){var C=this.currentScope();C.lexical.push(e)}else if(r===ae){var A=this.currentScope();this.treatFunctionsAsVar?h=A.lexical.indexOf(e)>-1:h=A.lexical.indexOf(e)>-1||A.var.indexOf(e)>-1,A.functions.push(e)}else for(var L=this.scopeStack.length-1;L>=0;--L){var O=this.scopeStack[L];if(O.lexical.indexOf(e)>-1&&!(O.flags&ct&&O.lexical[0]===e)||!this.treatFunctionsAsVarInScope(O)&&O.functions.indexOf(e)>-1){h=!0;break}if(O.var.push(e),this.inModule&&O.flags&B&&delete this.undefinedExports[e],O.flags&Nt)break}h&&this.raiseRecoverable(o,"Identifier '"+e+"' has already been declared")},ee.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},ee.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ee.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var r=this.scopeStack[e];if(r.flags&(Nt|Wt|kt))return r}},ee.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var r=this.scopeStack[e];if(r.flags&(Nt|Wt|kt)&&!(r.flags&ut))return r}};var Ae=function(r,o,h){this.type="",this.start=o,this.end=0,r.options.locations&&(this.loc=new v(r,h)),r.options.directSourceFile&&(this.sourceFile=r.options.directSourceFile),r.options.ranges&&(this.range=[o,0])},_e=at.prototype;_e.startNode=function(){return new Ae(this,this.start,this.startLoc)},_e.startNodeAt=function(e,r){return new Ae(this,e,r)};function Mi(e,r,o,h){return e.type=r,e.end=o,this.options.locations&&(e.loc.end=h),this.options.ranges&&(e.range[1]=o),e}_e.finishNode=function(e,r){return Mi.call(this,e,r,this.lastTokEnd,this.lastTokEndLoc)},_e.finishNodeAt=function(e,r,o,h){return Mi.call(this,e,r,o,h)},_e.copyNode=function(e){var r=new Ae(this,e.start,this.startLoc);for(var o in e)r[o]=e[o];return r};var gr="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",Bi="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Fi=Bi+" Extended_Pictographic",ji=Fi,Ui=ji+" EBase EComp EMod EPres ExtPict",qi=Ui,br=qi,Sr={9:Bi,10:Fi,11:ji,12:Ui,13:qi,14:br},Cr="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",kr={9:"",10:"",11:"",12:"",13:"",14:Cr},Hi="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Wi="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",zi=Wi+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Gi=zi+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ki=Gi+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Xi=Ki+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Ar=Xi+" "+gr,_r={9:Wi,10:zi,11:Gi,12:Ki,13:Xi,14:Ar},Ji={};function Tr(e){var r=Ji[e]={binary:s(Sr[e]+" "+Hi),binaryOfStrings:s(kr[e]),nonBinary:{General_Category:s(Hi),Script:s(_r[e])}};r.nonBinary.Script_Extensions=r.nonBinary.Script,r.nonBinary.gc=r.nonBinary.General_Category,r.nonBinary.sc=r.nonBinary.Script,r.nonBinary.scx=r.nonBinary.Script_Extensions}for(var ci=0,Qi=[9,10,11,12,13,14];ci<Qi.length;ci+=1){var wr=Qi[ci];Tr(wr)}var F=at.prototype,Ue=function(r,o){this.parent=r,this.base=o||this};Ue.prototype.separatedFrom=function(r){for(var o=this;o;o=o.parent)for(var h=r;h;h=h.parent)if(o.base===h.base&&o!==h)return!0;return!1},Ue.prototype.sibling=function(){return new Ue(this.parent,this.base)};var Gt=function(r){this.parser=r,this.validFlags="gim"+(r.options.ecmaVersion>=6?"uy":"")+(r.options.ecmaVersion>=9?"s":"")+(r.options.ecmaVersion>=13?"d":"")+(r.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Ji[r.options.ecmaVersion>=14?14:r.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Gt.prototype.reset=function(r,o,h){var x=h.indexOf("v")!==-1,C=h.indexOf("u")!==-1;this.start=r|0,this.source=o+"",this.flags=h,x&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=C&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=C&&this.parser.options.ecmaVersion>=9)},Gt.prototype.raise=function(r){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+r)},Gt.prototype.at=function(r,o){o===void 0&&(o=!1);var h=this.source,x=h.length;if(r>=x)return-1;var C=h.charCodeAt(r);if(!(o||this.switchU)||C<=55295||C>=57344||r+1>=x)return C;var A=h.charCodeAt(r+1);return A>=56320&&A<=57343?(C<<10)+A-56613888:C},Gt.prototype.nextIndex=function(r,o){o===void 0&&(o=!1);var h=this.source,x=h.length;if(r>=x)return x;var C=h.charCodeAt(r),A;return!(o||this.switchU)||C<=55295||C>=57344||r+1>=x||(A=h.charCodeAt(r+1))<56320||A>57343?r+1:r+2},Gt.prototype.current=function(r){return r===void 0&&(r=!1),this.at(this.pos,r)},Gt.prototype.lookahead=function(r){return r===void 0&&(r=!1),this.at(this.nextIndex(this.pos,r),r)},Gt.prototype.advance=function(r){r===void 0&&(r=!1),this.pos=this.nextIndex(this.pos,r)},Gt.prototype.eat=function(r,o){return o===void 0&&(o=!1),this.current(o)===r?(this.advance(o),!0):!1},Gt.prototype.eatChars=function(r,o){o===void 0&&(o=!1);for(var h=this.pos,x=0,C=r;x<C.length;x+=1){var A=C[x],L=this.at(h,o);if(L===-1||L!==A)return!1;h=this.nextIndex(h,o)}return this.pos=h,!0},F.validateRegExpFlags=function(e){for(var r=e.validFlags,o=e.flags,h=!1,x=!1,C=0;C<o.length;C++){var A=o.charAt(C);r.indexOf(A)===-1&&this.raise(e.start,"Invalid regular expression flag"),o.indexOf(A,C+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),A==="u"&&(h=!0),A==="v"&&(x=!0)}this.options.ecmaVersion>=15&&h&&x&&this.raise(e.start,"Invalid regular expression flag")};function Pr(e){for(var r in e)return!0;return!1}F.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Pr(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},F.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var r=0,o=e.backReferenceNames;r<o.length;r+=1){var h=o[r];e.groupNames[h]||e.raise("Invalid named capture referenced")}},F.regexp_disjunction=function(e){var r=this.options.ecmaVersion>=16;for(r&&(e.branchID=new Ue(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)r&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);r&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},F.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},F.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},F.regexp_eatAssertion=function(e){var r=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=r}if(e.eat(40)&&e.eat(63)){var o=!1;if(this.options.ecmaVersion>=9&&(o=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!o,!0}return e.pos=r,!1},F.regexp_eatQuantifier=function(e,r){return r===void 0&&(r=!1),this.regexp_eatQuantifierPrefix(e,r)?(e.eat(63),!0):!1},F.regexp_eatQuantifierPrefix=function(e,r){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,r)},F.regexp_eatBracedQuantifier=function(e,r){var o=e.pos;if(e.eat(123)){var h=0,x=-1;if(this.regexp_eatDecimalDigits(e)&&(h=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(x=e.lastIntValue),e.eat(125)))return x!==-1&&x<h&&!r&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!r&&e.raise("Incomplete quantifier"),e.pos=o}return!1},F.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},F.regexp_eatReverseSolidusAtomEscape=function(e){var r=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=r}return!1},F.regexp_eatUncapturingGroup=function(e){var r=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var o=this.regexp_eatModifiers(e),h=e.eat(45);if(o||h){for(var x=0;x<o.length;x++){var C=o.charAt(x);o.indexOf(C,x+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(h){var A=this.regexp_eatModifiers(e);!o&&!A&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var L=0;L<A.length;L++){var O=A.charAt(L);(A.indexOf(O,L+1)>-1||o.indexOf(O)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=r}return!1},F.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},F.regexp_eatModifiers=function(e){for(var r="",o=0;(o=e.current())!==-1&&Er(o);)r+=a(o),e.advance();return r};function Er(e){return e===105||e===109||e===115}F.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},F.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},F.regexp_eatSyntaxCharacter=function(e){var r=e.current();return Yi(r)?(e.lastIntValue=r,e.advance(),!0):!1};function Yi(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}F.regexp_eatPatternCharacters=function(e){for(var r=e.pos,o=0;(o=e.current())!==-1&&!Yi(o);)e.advance();return e.pos!==r},F.regexp_eatExtendedPatternCharacter=function(e){var r=e.current();return r!==-1&&r!==36&&!(r>=40&&r<=43)&&r!==46&&r!==63&&r!==91&&r!==94&&r!==124?(e.advance(),!0):!1},F.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var r=this.options.ecmaVersion>=16,o=e.groupNames[e.lastStringValue];if(o)if(r)for(var h=0,x=o;h<x.length;h+=1){var C=x[h];C.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");r?(o||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},F.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},F.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=a(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=a(e.lastIntValue);return!0}return!1},F.regexp_eatRegExpIdentifierStart=function(e){var r=e.pos,o=this.options.ecmaVersion>=11,h=e.current(o);return e.advance(o),h===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,o)&&(h=e.lastIntValue),Ir(h)?(e.lastIntValue=h,!0):(e.pos=r,!1)};function Ir(e){return tt(e,!0)||e===36||e===95}F.regexp_eatRegExpIdentifierPart=function(e){var r=e.pos,o=this.options.ecmaVersion>=11,h=e.current(o);return e.advance(o),h===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,o)&&(h=e.lastIntValue),Nr(h)?(e.lastIntValue=h,!0):(e.pos=r,!1)};function Nr(e){return E(e,!0)||e===36||e===95||e===8204||e===8205}F.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},F.regexp_eatBackReference=function(e){var r=e.pos;if(this.regexp_eatDecimalEscape(e)){var o=e.lastIntValue;if(e.switchU)return o>e.maxBackReference&&(e.maxBackReference=o),!0;if(o<=e.numCapturingParens)return!0;e.pos=r}return!1},F.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},F.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},F.regexp_eatCControlLetter=function(e){var r=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=r}return!1},F.regexp_eatZero=function(e){return e.current()===48&&!qe(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1},F.regexp_eatControlEscape=function(e){var r=e.current();return r===116?(e.lastIntValue=9,e.advance(),!0):r===110?(e.lastIntValue=10,e.advance(),!0):r===118?(e.lastIntValue=11,e.advance(),!0):r===102?(e.lastIntValue=12,e.advance(),!0):r===114?(e.lastIntValue=13,e.advance(),!0):!1},F.regexp_eatControlLetter=function(e){var r=e.current();return Zi(r)?(e.lastIntValue=r%32,e.advance(),!0):!1};function Zi(e){return e>=65&&e<=90||e>=97&&e<=122}F.regexp_eatRegExpUnicodeEscapeSequence=function(e,r){r===void 0&&(r=!1);var o=e.pos,h=r||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var x=e.lastIntValue;if(h&&x>=55296&&x<=56319){var C=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var A=e.lastIntValue;if(A>=56320&&A<=57343)return e.lastIntValue=(x-55296)*1024+(A-56320)+65536,!0}e.pos=C,e.lastIntValue=x}return!0}if(h&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Lr(e.lastIntValue))return!0;h&&e.raise("Invalid unicode escape"),e.pos=o}return!1};function Lr(e){return e>=0&&e<=1114111}F.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var r=e.current();return r!==99&&(!e.switchN||r!==107)?(e.lastIntValue=r,e.advance(),!0):!1},F.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var r=e.current();if(r>=49&&r<=57){do e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();while((r=e.current())>=48&&r<=57);return!0}return!1};var $i=0,Jt=1,Bt=2;F.regexp_eatCharacterClassEscape=function(e){var r=e.current();if(Vr(r))return e.lastIntValue=-1,e.advance(),Jt;var o=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((o=r===80)||r===112)){e.lastIntValue=-1,e.advance();var h;if(e.eat(123)&&(h=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return o&&h===Bt&&e.raise("Invalid property name"),h;e.raise("Invalid property name")}return $i};function Vr(e){return e===100||e===68||e===115||e===83||e===119||e===87}F.regexp_eatUnicodePropertyValueExpression=function(e){var r=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var o=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var h=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,o,h),Jt}}if(e.pos=r,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var x=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,x)}return $i},F.regexp_validateUnicodePropertyNameAndValue=function(e,r,o){ot(e.unicodeProperties.nonBinary,r)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[r].test(o)||e.raise("Invalid property value")},F.regexp_validateUnicodePropertyNameOrValue=function(e,r){if(e.unicodeProperties.binary.test(r))return Jt;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(r))return Bt;e.raise("Invalid property name")},F.regexp_eatUnicodePropertyName=function(e){var r=0;for(e.lastStringValue="";ts(r=e.current());)e.lastStringValue+=a(r),e.advance();return e.lastStringValue!==""};function ts(e){return Zi(e)||e===95}F.regexp_eatUnicodePropertyValue=function(e){var r=0;for(e.lastStringValue="";Rr(r=e.current());)e.lastStringValue+=a(r),e.advance();return e.lastStringValue!==""};function Rr(e){return ts(e)||qe(e)}F.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},F.regexp_eatCharacterClass=function(e){if(e.eat(91)){var r=e.eat(94),o=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),r&&o===Bt&&e.raise("Negated character class may contain strings"),!0}return!1},F.regexp_classContents=function(e){return e.current()===93?Jt:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Jt)},F.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var r=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var o=e.lastIntValue;e.switchU&&(r===-1||o===-1)&&e.raise("Invalid character class"),r!==-1&&o!==-1&&r>o&&e.raise("Range out of order in character class")}}},F.regexp_eatClassAtom=function(e){var r=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var o=e.current();(o===99||ss(o))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=r}var h=e.current();return h!==93?(e.lastIntValue=h,e.advance(),!0):!1},F.regexp_eatClassEscape=function(e){var r=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=r}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},F.regexp_classSetExpression=function(e){var r=Jt,o;if(!this.regexp_eatClassSetRange(e))if(o=this.regexp_eatClassSetOperand(e)){o===Bt&&(r=Bt);for(var h=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(o=this.regexp_eatClassSetOperand(e))){o!==Bt&&(r=Jt);continue}e.raise("Invalid character in character class")}if(h!==e.pos)return r;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(h!==e.pos)return r}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(o=this.regexp_eatClassSetOperand(e),!o)return r;o===Bt&&(r=Bt)}},F.regexp_eatClassSetRange=function(e){var r=e.pos;if(this.regexp_eatClassSetCharacter(e)){var o=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var h=e.lastIntValue;return o!==-1&&h!==-1&&o>h&&e.raise("Range out of order in character class"),!0}e.pos=r}return!1},F.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Jt:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},F.regexp_eatNestedClass=function(e){var r=e.pos;if(e.eat(91)){var o=e.eat(94),h=this.regexp_classContents(e);if(e.eat(93))return o&&h===Bt&&e.raise("Negated character class may contain strings"),h;e.pos=r}if(e.eat(92)){var x=this.regexp_eatCharacterClassEscape(e);if(x)return x;e.pos=r}return null},F.regexp_eatClassStringDisjunction=function(e){var r=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var o=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return o}else e.raise("Invalid escape");e.pos=r}return null},F.regexp_classStringDisjunctionContents=function(e){for(var r=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Bt&&(r=Bt);return r},F.regexp_classString=function(e){for(var r=0;this.regexp_eatClassSetCharacter(e);)r++;return r===1?Jt:Bt},F.regexp_eatClassSetCharacter=function(e){var r=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=r,!1);var o=e.current();return o<0||o===e.lookahead()&&Or(o)||Dr(o)?!1:(e.advance(),e.lastIntValue=o,!0)};function Or(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Dr(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}F.regexp_eatClassSetReservedPunctuator=function(e){var r=e.current();return Mr(r)?(e.lastIntValue=r,e.advance(),!0):!1};function Mr(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}F.regexp_eatClassControlLetter=function(e){var r=e.current();return qe(r)||r===95?(e.lastIntValue=r%32,e.advance(),!0):!1},F.regexp_eatHexEscapeSequence=function(e){var r=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=r}return!1},F.regexp_eatDecimalDigits=function(e){var r=e.pos,o=0;for(e.lastIntValue=0;qe(o=e.current());)e.lastIntValue=10*e.lastIntValue+(o-48),e.advance();return e.pos!==r};function qe(e){return e>=48&&e<=57}F.regexp_eatHexDigits=function(e){var r=e.pos,o=0;for(e.lastIntValue=0;es(o=e.current());)e.lastIntValue=16*e.lastIntValue+is(o),e.advance();return e.pos!==r};function es(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function is(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}F.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var o=e.lastIntValue;r<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=r*64+o*8+e.lastIntValue:e.lastIntValue=r*8+o}else e.lastIntValue=r;return!0}return!1},F.regexp_eatOctalDigit=function(e){var r=e.current();return ss(r)?(e.lastIntValue=r-48,e.advance(),!0):(e.lastIntValue=0,!1)};function ss(e){return e>=48&&e<=55}F.regexp_eatFixedHexDigits=function(e,r){var o=e.pos;e.lastIntValue=0;for(var h=0;h<r;++h){var x=e.current();if(!es(x))return e.pos=o,!1;e.lastIntValue=16*e.lastIntValue+is(x),e.advance()}return!0};var He=function(r){this.type=r.type,this.value=r.value,this.start=r.start,this.end=r.end,r.options.locations&&(this.loc=new v(r,r.startLoc,r.endLoc)),r.options.ranges&&(this.range=[r.start,r.end])},it=at.prototype;it.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new He(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},it.getToken=function(){return this.next(),new He(this)},typeof Symbol<"u"&&(it[Symbol.iterator]=function(){var e=this;return{next:function(){var r=e.getToken();return{done:r.type===d.eof,value:r}}}}),it.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(d.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},it.readToken=function(e){return tt(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},it.fullCharCodeAt=function(e){var r=this.input.charCodeAt(e);if(r<=55295||r>=56320)return r;var o=this.input.charCodeAt(e+1);return o<=56319||o>=57344?r:(r<<10)+o-56613888},it.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},it.skipBlockComment=function(){var e=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"),this.pos=o+2,this.options.locations)for(var h=void 0,x=r;(h=Me(this.input,x,this.pos))>-1;)++this.curLine,x=this.lineStart=h;this.options.onComment&&this.options.onComment(!0,this.input.slice(r+2,o),r,this.pos,e,this.curPosition())},it.skipLineComment=function(e){for(var r=this.pos,o=this.options.onComment&&this.curPosition(),h=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Rt(h);)h=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(r+e,this.pos),r,this.pos,o,this.curPosition())},it.skipSpace=function(){t:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++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(e>8&&e<14||e>=5760&&ge.test(String.fromCharCode(e)))++this.pos;else break t}}},it.finishToken=function(e,r){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var o=this.type;this.type=e,this.value=r,this.updateContext(o)},it.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var r=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&r===46?(this.pos+=3,this.finishToken(d.ellipsis)):(++this.pos,this.finishToken(d.dot))},it.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(d.assign,2):this.finishOp(d.slash,1)},it.readToken_mult_modulo_exp=function(e){var r=this.input.charCodeAt(this.pos+1),o=1,h=e===42?d.star:d.modulo;return this.options.ecmaVersion>=7&&e===42&&r===42&&(++o,h=d.starstar,r=this.input.charCodeAt(this.pos+2)),r===61?this.finishOp(d.assign,o+1):this.finishOp(h,o)},it.readToken_pipe_amp=function(e){var r=this.input.charCodeAt(this.pos+1);if(r===e){if(this.options.ecmaVersion>=12){var o=this.input.charCodeAt(this.pos+2);if(o===61)return this.finishOp(d.assign,3)}return this.finishOp(e===124?d.logicalOR:d.logicalAND,2)}return r===61?this.finishOp(d.assign,2):this.finishOp(e===124?d.bitwiseOR:d.bitwiseAND,1)},it.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(d.assign,2):this.finishOp(d.bitwiseXOR,1)},it.readToken_plus_min=function(e){var r=this.input.charCodeAt(this.pos+1);return r===e?r===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||yt.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(d.incDec,2):r===61?this.finishOp(d.assign,2):this.finishOp(d.plusMin,1)},it.readToken_lt_gt=function(e){var r=this.input.charCodeAt(this.pos+1),o=1;return r===e?(o=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+o)===61?this.finishOp(d.assign,o+1):this.finishOp(d.bitShift,o)):r===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(r===61&&(o=2),this.finishOp(d.relational,o))},it.readToken_eq_excl=function(e){var r=this.input.charCodeAt(this.pos+1);return r===61?this.finishOp(d.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&r===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(d.arrow)):this.finishOp(e===61?d.eq:d.prefix,1)},it.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=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(d.questionDot,2)}if(r===63){if(e>=12){var h=this.input.charCodeAt(this.pos+2);if(h===61)return this.finishOp(d.assign,3)}return this.finishOp(d.coalesce,2)}}return this.finishOp(d.question,1)},it.readToken_numberSign=function(){var e=this.options.ecmaVersion,r=35;if(e>=13&&(++this.pos,r=this.fullCharCodeAtPos(),tt(r,!0)||r===92))return this.finishToken(d.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+a(r)+"'")},it.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(d.parenL);case 41:return++this.pos,this.finishToken(d.parenR);case 59:return++this.pos,this.finishToken(d.semi);case 44:return++this.pos,this.finishToken(d.comma);case 91:return++this.pos,this.finishToken(d.bracketL);case 93:return++this.pos,this.finishToken(d.bracketR);case 123:return++this.pos,this.finishToken(d.braceL);case 125:return++this.pos,this.finishToken(d.braceR);case 58:return++this.pos,this.finishToken(d.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(d.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(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(d.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+a(e)+"'")},it.finishOp=function(e,r){var o=this.input.slice(this.pos,this.pos+r);return this.pos+=r,this.finishToken(e,o)},it.readRegexp=function(){for(var e,r,o=this.pos;;){this.pos>=this.input.length&&this.raise(o,"Unterminated regular expression");var h=this.input.charAt(this.pos);if(yt.test(h)&&this.raise(o,"Unterminated regular expression"),e)e=!1;else{if(h==="[")r=!0;else if(h==="]"&&r)r=!1;else if(h==="/"&&!r)break;e=h==="\\"}++this.pos}var x=this.input.slice(o,this.pos);++this.pos;var C=this.pos,A=this.readWord1();this.containsEsc&&this.unexpected(C);var L=this.regexpState||(this.regexpState=new Gt(this));L.reset(o,x,A),this.validateRegExpFlags(L),this.validateRegExpPattern(L);var O=null;try{O=new RegExp(x,A)}catch{}return this.finishToken(d.regexp,{pattern:x,flags:A,value:O})},it.readInt=function(e,r,o){for(var h=this.options.ecmaVersion>=12&&r===void 0,x=o&&this.input.charCodeAt(this.pos)===48,C=this.pos,A=0,L=0,O=0,K=r??1/0;O<K;++O,++this.pos){var $=this.input.charCodeAt(this.pos),lt=void 0;if(h&&$===95){x&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),L===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),O===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),L=$;continue}if($>=97?lt=$-97+10:$>=65?lt=$-65+10:$>=48&&$<=57?lt=$-48:lt=1/0,lt>=e)break;L=$,A=A*e+lt}return h&&L===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===C||r!=null&&this.pos-C!==r?null:A};function Br(e,r){return r?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function rs(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}it.readRadixNumber=function(e){var r=this.pos;this.pos+=2;var o=this.readInt(e);return o==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(o=rs(this.input.slice(r,this.pos)),++this.pos):tt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(d.num,o)},it.readNumber=function(e){var r=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(r,"Invalid number");var o=this.pos-r>=2&&this.input.charCodeAt(r)===48;o&&this.strict&&this.raise(r,"Invalid number");var h=this.input.charCodeAt(this.pos);if(!o&&!e&&this.options.ecmaVersion>=11&&h===110){var x=rs(this.input.slice(r,this.pos));return++this.pos,tt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(d.num,x)}o&&/[89]/.test(this.input.slice(r,this.pos))&&(o=!1),h===46&&!o&&(++this.pos,this.readInt(10),h=this.input.charCodeAt(this.pos)),(h===69||h===101)&&!o&&(h=this.input.charCodeAt(++this.pos),(h===43||h===45)&&++this.pos,this.readInt(10)===null&&this.raise(r,"Invalid number")),tt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var C=Br(this.input.slice(r,this.pos),o);return this.finishToken(d.num,C)},it.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),r;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var o=++this.pos;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},it.readString=function(e){for(var r="",o=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var h=this.input.charCodeAt(this.pos);if(h===e)break;h===92?(r+=this.input.slice(o,this.pos),r+=this.readEscapedChar(!1),o=this.pos):h===8232||h===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Rt(h)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return r+=this.input.slice(o,this.pos++),this.finishToken(d.string,r)};var as={};it.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===as)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},it.invalidStringToken=function(e,r){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw as;this.raise(e,r)},it.readTmplToken=function(){for(var e="",r=this.pos;;){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)return this.pos===this.start&&(this.type===d.template||this.type===d.invalidTemplate)?o===36?(this.pos+=2,this.finishToken(d.dollarBraceL)):(++this.pos,this.finishToken(d.backQuote)):(e+=this.input.slice(r,this.pos),this.finishToken(d.template,e));if(o===92)e+=this.input.slice(r,this.pos),e+=this.readEscapedChar(!0),r=this.pos;else if(Rt(o)){switch(e+=this.input.slice(r,this.pos),++this.pos,o){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
6
|
+
`;break;default:e+=String.fromCharCode(o);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),r=this.pos}else++this.pos}},it.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(d.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
7
7
|
`&&++this.pos;case`
|
|
8
8
|
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},it.readEscapedChar=function(e){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 a(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var o=this.pos-1;this.invalidStringToken(o,"Invalid escape sequence in template string")}default:if(r>=48&&r<=55){var h=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],x=parseInt(h,8);return x>255&&(h=h.slice(0,-1),x=parseInt(h,8)),this.pos+=h.length-1,r=this.input.charCodeAt(this.pos),(h!=="0"||r===56||r===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-h.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(x)}return Rt(r)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(r)}},it.readHexChar=function(e){var r=this.pos,o=this.readInt(16,e);return o===null&&this.invalidStringToken(r,"Bad character escape sequence"),o},it.readWord1=function(){this.containsEsc=!1;for(var e="",r=!0,o=this.pos,h=this.options.ecmaVersion>=6;this.pos<this.input.length;){var x=this.fullCharCodeAtPos();if(E(x,h))this.pos+=x<=65535?1:2;else if(x===92){this.containsEsc=!0,e+=this.input.slice(o,this.pos);var C=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var A=this.readCodePoint();(r?tt:E)(A,h)||this.invalidStringToken(C,"Invalid Unicode escape"),e+=a(A),o=this.pos}else break;r=!1}return e+this.input.slice(o,this.pos)},it.readWord=function(){var e=this.readWord1(),r=
|
|
9
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return a(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var o=this.pos-1;this.invalidStringToken(o,"Invalid escape sequence in template string")}default:if(r>=48&&r<=55){var h=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],x=parseInt(h,8);return x>255&&(h=h.slice(0,-1),x=parseInt(h,8)),this.pos+=h.length-1,r=this.input.charCodeAt(this.pos),(h!=="0"||r===56||r===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-h.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(x)}return Rt(r)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(r)}},it.readHexChar=function(e){var r=this.pos,o=this.readInt(16,e);return o===null&&this.invalidStringToken(r,"Bad character escape sequence"),o},it.readWord1=function(){this.containsEsc=!1;for(var e="",r=!0,o=this.pos,h=this.options.ecmaVersion>=6;this.pos<this.input.length;){var x=this.fullCharCodeAtPos();if(E(x,h))this.pos+=x<=65535?1:2;else if(x===92){this.containsEsc=!0,e+=this.input.slice(o,this.pos);var C=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var A=this.readCodePoint();(r?tt:E)(A,h)||this.invalidStringToken(C,"Invalid Unicode escape"),e+=a(A),o=this.pos}else break;r=!1}return e+this.input.slice(o,this.pos)},it.readWord=function(){var e=this.readWord1(),r=d.name;return this.keywords.test(e)&&(r=xt[e]),this.finishToken(r,e)};var ns="8.16.0";at.acorn={Parser:at,version:ns,defaultOptions:k,Position:m,SourceLocation:v,getLineInfo:S,Node:Ae,TokenType:N,tokTypes:d,keywordTypes:xt,TokContext:Mt,tokContexts:pt,isIdentifierChar:E,isIdentifierStart:tt,Token:He,isNewLine:Rt,lineBreak:yt,lineBreakG:nt,nonASCIIwhitespace:ge};function Fr(e,r){return at.parse(e,r)}function jr(e,r,o){return at.parseExpressionAt(e,r,o)}function Ur(e,r){return at.tokenizer(e,r)}t.Node=Ae,t.Parser=at,t.Position=m,t.SourceLocation=v,t.TokContext=Mt,t.Token=He,t.TokenType=N,t.defaultOptions=k,t.getLineInfo=S,t.isIdentifierChar=E,t.isIdentifierStart=tt,t.isNewLine=Rt,t.keywordTypes=xt,t.lineBreak=yt,t.lineBreakG=nt,t.nonASCIIwhitespace=ge,t.parse=Fr,t.parseExpressionAt=jr,t.tokContexts=pt,t.tokTypes=d,t.tokenizer=Ur,t.version=ns}))});var tr=li((sn,wi)=>{"use strict";var Ra=Qs(),Oa=/^[\da-fA-F]+$/,Da=/^\d+$/,Zs=new WeakMap;function $s(t){t=t.Parser.acorn||t;let i=Zs.get(t);if(!i){let n=t.tokTypes,u=t.TokContext,p=t.TokenType,g=new u("<tag",!1),b=new u("</tag",!1),T=new u("<tag>...</tag>",!0,!0),w={tc_oTag:g,tc_cTag:b,tc_expr:T},l={jsxName:new p("jsxName"),jsxText:new p("jsxText",{beforeExpr:!0}),jsxTagStart:new p("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new p("jsxTagEnd")};l.jsxTagStart.updateContext=function(){this.context.push(T),this.context.push(g),this.exprAllowed=!1},l.jsxTagEnd.updateContext=function(W){let Y=this.context.pop();Y===g&&W===n.slash||Y===b?(this.context.pop(),this.exprAllowed=this.curContext()===T):this.exprAllowed=!0},i={tokContexts:w,tokTypes:l},Zs.set(t,i)}return i}function Le(t){if(!t)return t;if(t.type==="JSXIdentifier")return t.name;if(t.type==="JSXNamespacedName")return t.namespace.name+":"+t.name.name;if(t.type==="JSXMemberExpression")return Le(t.object)+"."+Le(t.property)}wi.exports=function(t){return t=t||{},function(i){return Ma({allowNamespaces:t.allowNamespaces!==!1,allowNamespacedObjects:!!t.allowNamespacedObjects},i)}};Object.defineProperty(wi.exports,"tokTypes",{get:function(){return $s(Ti()).tokTypes},configurable:!0,enumerable:!0});function Ma(t,i){let n=i.acorn||Ti(),u=$s(n),p=n.tokTypes,g=u.tokTypes,b=n.tokContexts,T=u.tokContexts.tc_oTag,w=u.tokContexts.tc_cTag,l=u.tokContexts.tc_expr,W=n.isNewLine,Y=n.isIdentifierStart,tt=n.isIdentifierChar;return class extends i{static get acornJsx(){return u}jsx_readToken(){let E="",N=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let D=this.input.charCodeAt(this.pos);switch(D){case 60:case 123:return this.pos===this.start?D===60&&this.exprAllowed?(++this.pos,this.finishToken(g.jsxTagStart)):this.getTokenFromCode(D):(E+=this.input.slice(N,this.pos),this.finishToken(g.jsxText,E));case 38:E+=this.input.slice(N,this.pos),E+=this.jsx_readEntity(),N=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(D===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:W(D)?(E+=this.input.slice(N,this.pos),E+=this.jsx_readNewLine(!0),N=this.pos):++this.pos}}}jsx_readNewLine(E){let N=this.input.charCodeAt(this.pos),D;return++this.pos,N===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,D=E?`
|
|
10
10
|
`:`\r
|
|
11
|
-
`):D=String.fromCharCode(N),this.options.locations&&(++this.curLine,this.lineStart=this.pos),D}jsx_readString(E){let N="",D=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let I=this.input.charCodeAt(this.pos);if(I===E)break;I===38?(N+=this.input.slice(D,this.pos),N+=this.jsx_readEntity(),D=this.pos):W(I)?(N+=this.input.slice(D,this.pos),N+=this.jsx_readNewLine(!1),D=this.pos):++this.pos}return N+=this.input.slice(D,this.pos++),this.finishToken(p.string,N)}jsx_readEntity(){let E="",N=0,D,I=this.input[this.pos];I!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let K=++this.pos;for(;this.pos<this.input.length&&N++<10;){if(I=this.input[this.pos++],I===";"){E[0]==="#"?E[1]==="x"?(E=E.substr(2),Oa.test(E)&&(D=String.fromCharCode(parseInt(E,16)))):(E=E.substr(1),Da.test(E)&&(D=String.fromCharCode(parseInt(E,10)))):D=Ra[E];break}E+=I}return D||(this.pos=K,"&")}jsx_readWord(){let E,N=this.pos;do E=this.input.charCodeAt(++this.pos);while(tt(E)||E===45);return this.finishToken(g.jsxName,this.input.slice(N,this.pos))}jsx_parseIdentifier(){let E=this.startNode();return this.type===g.jsxName?E.name=this.value:this.type.keyword?E.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(E,"JSXIdentifier")}jsx_parseNamespacedName(){let E=this.start,N=this.startLoc,D=this.jsx_parseIdentifier();if(!t.allowNamespaces||!this.eat(p.colon))return D;var I=this.startNodeAt(E,N);return I.namespace=D,I.name=this.jsx_parseIdentifier(),this.finishNode(I,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===g.jsxTagEnd)return"";let E=this.start,N=this.startLoc,D=this.jsx_parseNamespacedName();for(this.type===p.dot&&D.type==="JSXNamespacedName"&&!t.allowNamespacedObjects&&this.unexpected();this.eat(p.dot);){let I=this.startNodeAt(E,N);I.object=D,I.property=this.jsx_parseIdentifier(),D=this.finishNode(I,"JSXMemberExpression")}return D}jsx_parseAttributeValue(){switch(this.type){case p.braceL:let E=this.jsx_parseExpressionContainer();return E.expression.type==="JSXEmptyExpression"&&this.raise(E.start,"JSX attributes must only be assigned a non-empty expression"),E;case g.jsxTagStart:case p.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let E=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(E,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let E=this.startNode();return this.next(),E.expression=this.type===p.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(p.braceR),this.finishNode(E,"JSXExpressionContainer")}jsx_parseAttribute(){let E=this.startNode();return this.eat(p.braceL)?(this.expect(p.ellipsis),E.argument=this.parseMaybeAssign(),this.expect(p.braceR),this.finishNode(E,"JSXSpreadAttribute")):(E.name=this.jsx_parseNamespacedName(),E.value=this.eat(p.eq)?this.jsx_parseAttributeValue():null,this.finishNode(E,"JSXAttribute"))}jsx_parseOpeningElementAt(E,N){let D=this.startNodeAt(E,N);D.attributes=[];let I=this.jsx_parseElementName();for(I&&(D.name=I);this.type!==p.slash&&this.type!==g.jsxTagEnd;)D.attributes.push(this.jsx_parseAttribute());return D.selfClosing=this.eat(p.slash),this.expect(g.jsxTagEnd),this.finishNode(D,I?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(E,N){let D=this.startNodeAt(E,N),I=this.jsx_parseElementName();return I&&(D.name=I),this.expect(g.jsxTagEnd),this.finishNode(D,I?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(E,N){let D=this.startNodeAt(E,N),I=[],K=this.jsx_parseOpeningElementAt(E,N),xt=null;if(!K.selfClosing){t:for(;;)switch(this.type){case g.jsxTagStart:if(E=this.start,N=this.startLoc,this.next(),this.eat(p.slash)){xt=this.jsx_parseClosingElementAt(E,N);break t}I.push(this.jsx_parseElementAt(E,N));break;case g.jsxText:I.push(this.parseExprAtom());break;case p.braceL:I.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}Le(xt.name)!==Le(K.name)&&this.raise(xt.start,"Expected corresponding JSX closing tag for <"+Le(K.name)+">")}let G=K.name?"Element":"Fragment";return D["opening"+G]=K,D["closing"+G]=xt,D.children=I,this.type===p.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(D,"JSX"+G)}jsx_parseText(){let E=this.parseLiteral(this.value);return E.type="JSXText",E}jsx_parseElement(){let E=this.start,N=this.startLoc;return this.next(),this.jsx_parseElementAt(E,N)}parseExprAtom(E){return this.type===g.jsxText?this.jsx_parseText():this.type===g.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(E)}readToken(E){let N=this.curContext();if(N===l)return this.jsx_readToken();if(N===T||N===w){if(Y(E))return this.jsx_readWord();if(E==62)return++this.pos,this.finishToken(g.jsxTagEnd);if((E===34||E===39)&&N==T)return this.jsx_readString(E)}return E===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(g.jsxTagStart)):super.readToken(E)}updateContext(E){if(this.type==p.braceL){var N=this.curContext();N==T?this.context.push(b.b_expr):N==l?this.context.push(b.b_tmpl):super.updateContext(E),this.exprAllowed=!0}else if(this.type===p.slash&&E===g.jsxTagStart)this.context.length-=2,this.context.push(w),this.exprAllowed=!1;else return super.updateContext(E)}}}});var ii={};Kr(ii,{Node:()=>Ie,Parser:()=>dt,Position:()=>xe,SourceLocation:()=>Pe,TokContext:()=>Tt,Token:()=>ei,TokenType:()=>Z,defaultOptions:()=>Ge,getLineInfo:()=>bi,isIdentifierChar:()=>Qt,isIdentifierStart:()=>zt,isNewLine:()=>ue,keywordTypes:()=>oe,lineBreak:()=>Pt,lineBreakG:()=>xs,nonASCIIwhitespace:()=>gi,parse:()=>Na,parseExpressionAt:()=>La,tokContexts:()=>ft,tokTypes:()=>d,tokenizer:()=>Va,version:()=>Js});var Qr=[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],fs=[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],Yr="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",ds="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",fi={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"},di="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",Zr={5:di,"5module":di+" export import",6:di+" const class extends export import super"},ms=/^in(stanceof)?$/,$r=new RegExp("["+ds+"]"),ta=new RegExp("["+ds+Yr+"]");function xi(t,i){for(var n=65536,u=0;u<i.length;u+=2){if(n+=i[u],n>t)return!1;if(n+=i[u+1],n>=t)return!0}return!1}function zt(t,i){return t<65?t===36:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&$r.test(String.fromCharCode(t)):i===!1?!1:xi(t,fs)}function Qt(t,i){return t<48?t===36:t<58?!0:t<65?!1:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&ta.test(String.fromCharCode(t)):i===!1?!1:xi(t,fs)||xi(t,Qr)}var Z=function(i,n){n===void 0&&(n={}),this.label=i,this.keyword=n.keyword,this.beforeExpr=!!n.beforeExpr,this.startsExpr=!!n.startsExpr,this.isLoop=!!n.isLoop,this.isAssign=!!n.isAssign,this.prefix=!!n.prefix,this.postfix=!!n.postfix,this.binop=n.binop||null,this.updateContext=null};function Ft(t,i){return new Z(t,{beforeExpr:!0,binop:i})}var jt={beforeExpr:!0},It={startsExpr:!0},oe={};function rt(t,i){return i===void 0&&(i={}),i.keyword=t,oe[t]=new Z(t,i)}var d={num:new Z("num",It),regexp:new Z("regexp",It),string:new Z("string",It),name:new Z("name",It),privateId:new Z("privateId",It),eof:new Z("eof"),bracketL:new Z("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Z("]"),braceL:new Z("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Z("}"),parenL:new Z("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Z(")"),comma:new Z(",",jt),semi:new Z(";",jt),colon:new Z(":",jt),dot:new Z("."),question:new Z("?",jt),questionDot:new Z("?."),arrow:new Z("=>",jt),template:new Z("template"),invalidTemplate:new Z("invalidTemplate"),ellipsis:new Z("...",jt),backQuote:new Z("`",It),dollarBraceL:new Z("${",{beforeExpr:!0,startsExpr:!0}),eq:new Z("=",{beforeExpr:!0,isAssign:!0}),assign:new Z("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Z("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Z("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Ft("||",1),logicalAND:Ft("&&",2),bitwiseOR:Ft("|",3),bitwiseXOR:Ft("^",4),bitwiseAND:Ft("&",5),equality:Ft("==/!=/===/!==",6),relational:Ft("</>/<=/>=",7),bitShift:Ft("<</>>/>>>",8),plusMin:new Z("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Ft("%",10),star:Ft("*",10),slash:Ft("/",10),starstar:new Z("**",{beforeExpr:!0}),coalesce:Ft("??",1),_break:rt("break"),_case:rt("case",jt),_catch:rt("catch"),_continue:rt("continue"),_debugger:rt("debugger"),_default:rt("default",jt),_do:rt("do",{isLoop:!0,beforeExpr:!0}),_else:rt("else",jt),_finally:rt("finally"),_for:rt("for",{isLoop:!0}),_function:rt("function",It),_if:rt("if"),_return:rt("return",jt),_switch:rt("switch"),_throw:rt("throw",jt),_try:rt("try"),_var:rt("var"),_const:rt("const"),_while:rt("while",{isLoop:!0}),_with:rt("with"),_new:rt("new",{beforeExpr:!0,startsExpr:!0}),_this:rt("this",It),_super:rt("super",It),_class:rt("class",It),_extends:rt("extends",jt),_export:rt("export"),_import:rt("import",It),_null:rt("null",It),_true:rt("true",It),_false:rt("false",It),_in:rt("in",{beforeExpr:!0,binop:7}),_instanceof:rt("instanceof",{beforeExpr:!0,binop:7}),_typeof:rt("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:rt("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:rt("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Pt=/\r\n?|\n|\u2028|\u2029/,xs=new RegExp(Pt.source,"g");function ue(t){return t===10||t===13||t===8232||t===8233}function ys(t,i,n){n===void 0&&(n=t.length);for(var u=i;u<n;u++){var p=t.charCodeAt(u);if(ue(p))return u<n-1&&p===13&&t.charCodeAt(u+1)===10?u+2:u+1}return-1}var gi=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,wt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,vs=Object.prototype,ea=vs.hasOwnProperty,ia=vs.toString,ye=Object.hasOwn||(function(t,i){return ea.call(t,i)}),us=Array.isArray||(function(t){return ia.call(t)==="[object Array]"}),hs=Object.create(null);function ie(t){return hs[t]||(hs[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function Yt(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}var sa=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,xe=function(i,n){this.line=i,this.column=n};xe.prototype.offset=function(i){return new xe(this.line,this.column+i)};var Pe=function(i,n,u){this.start=n,this.end=u,i.sourceFile!==null&&(this.source=i.sourceFile)};function bi(t,i){for(var n=1,u=0;;){var p=ys(t,u,i);if(p<0)return new xe(n,i-u);++n,u=p}}var Ge={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},cs=!1;function ra(t){var i={};for(var n in Ge)i[n]=t&&ye(t,n)?t[n]:Ge[n];if(i.ecmaVersion==="latest"?i.ecmaVersion=1e8:i.ecmaVersion==null?(!cs&&typeof console=="object"&&console.warn&&(cs=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
12
|
-
Defaulting to 2020, but this will stop working in the future.`)),i.ecmaVersion=11):i.ecmaVersion>=2015&&(i.ecmaVersion-=2009),i.allowReserved==null&&(i.allowReserved=i.ecmaVersion<5),(!t||t.allowHashBang==null)&&(i.allowHashBang=i.ecmaVersion>=14),
|
|
13
|
-
`,u-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Pt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=d.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=i.sourceType==="module",this.strict=this.inModule||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&&i.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?he:ne),this.regexpState=null,this.privateNameStack=[]},qt={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}};dt.prototype.parse=function(){var i=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(i)};qt.inFunction.get=function(){return(this.currentVarScope().flags&he)>0};qt.inGenerator.get=function(){return(this.currentVarScope().flags&gs)>0};qt.inAsync.get=function(){return(this.currentVarScope().flags&Si)>0};qt.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var i=this.scopeStack[t],n=i.flags;if(n&(ce|Ee))return!1;if(n&he)return(n&Si)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};qt.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&ne)};qt.allowSuper.get=function(){var t=this.currentThisScope(),i=t.flags;return(i&Ye)>0||this.options.allowSuperOutsideMethod};qt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Ss)>0};qt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};qt.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var i=this.scopeStack[t],n=i.flags;if(n&(ce|Ee)||n&he&&!(n&Ci))return!0}return!1};qt.allowUsing.get=function(){var t=this.currentScope(),i=t.flags;return!(i&Cs||!this.inModule&&i&ne)};qt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ce)>0};dt.extend=function(){for(var i=[],n=arguments.length;n--;)i[n]=arguments[n];for(var u=this,p=0;p<i.length;p++)u=i[p](u);return u};dt.parse=function(i,n){return new this(n,i).parse()};dt.parseExpressionAt=function(i,n,u){var p=new this(u,i,n);return p.nextToken(),p.parseExpression()};dt.tokenizer=function(i,n){return new this(n,i)};Object.defineProperties(dt.prototype,qt);var Et=dt.prototype,na=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Et.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){wt.lastIndex=t,t+=wt.exec(this.input)[0].length;var i=na.exec(this.input.slice(t));if(!i)return!1;if((i[1]||i[2])==="use strict"){wt.lastIndex=t+i[0].length;var n=wt.exec(this.input),u=n.index+n[0].length,p=this.input.charAt(u);return p===";"||p==="}"||Pt.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(p)||p==="!"&&this.input.charAt(u+1)==="=")}t+=i[0].length,wt.lastIndex=t,t+=wt.exec(this.input)[0].length,this.input[t]===";"&&t++}};Et.eat=function(t){return this.type===t?(this.next(),!0):!1};Et.isContextual=function(t){return this.type===d.name&&this.value===t&&!this.containsEsc};Et.eatContextual=function(t){return this.isContextual(t)?(this.next(),!0):!1};Et.expectContextual=function(t){this.eatContextual(t)||this.unexpected()};Et.canInsertSemicolon=function(){return this.type===d.eof||this.type===d.braceR||Pt.test(this.input.slice(this.lastTokEnd,this.start))};Et.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Et.semicolon=function(){!this.eat(d.semi)&&!this.insertSemicolon()&&this.unexpected()};Et.afterTrailingComma=function(t,i){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),i||this.next(),!0};Et.expect=function(t){this.eat(t)||this.unexpected()};Et.unexpected=function(t){this.raise(t??this.start,"Unexpected token")};var $e=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Et.checkPatternErrors=function(t,i){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var n=i?t.parenthesizedAssign:t.parenthesizedBind;n>-1&&this.raiseRecoverable(n,i?"Assigning to rvalue":"Parenthesized pattern")}};Et.checkExpressionErrors=function(t,i){if(!t)return!1;var n=t.shorthandAssign,u=t.doubleProto;if(!i)return n>=0||u>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),u>=0&&this.raiseRecoverable(u,"Redefinition of __proto__ property")};Et.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};Et.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};var q=dt.prototype;q.parseTopLevel=function(t){var i=Object.create(null);for(t.body||(t.body=[]);this.type!==d.eof;){var n=this.parseStatement(null,!0,i);t.body.push(n)}if(this.inModule)for(var u=0,p=Object.keys(this.undefinedExports);u<p.length;u+=1){var g=p[u];this.raiseRecoverable(this.undefinedExports[g].start,"Export '"+g+"' 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 _i={kind:"loop"},oa={kind:"switch"};q.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;wt.lastIndex=this.pos;var i=wt.exec(this.input),n=this.pos+i[0].length,u=this.fullCharCodeAt(n);if(u===91||u===92)return!0;if(t)return!1;if(u===123)return!0;if(zt(u)){var p=n;do n+=u<=65535?1:2;while(Qt(u=this.fullCharCodeAt(n)));if(u===92)return!0;var g=this.input.slice(p,n);if(!ms.test(g))return!0}return!1};q.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;wt.lastIndex=this.pos;var t=wt.exec(this.input),i=this.pos+t[0].length,n;return!Pt.test(this.input.slice(this.pos,i))&&this.input.slice(i,i+8)==="function"&&(i+8===this.input.length||!(Qt(n=this.fullCharCodeAt(i+8))||n===92))};q.isUsingKeyword=function(t,i){if(this.options.ecmaVersion<17||!this.isContextual(t?"await":"using"))return!1;wt.lastIndex=this.pos;var n=wt.exec(this.input),u=this.pos+n[0].length;if(Pt.test(this.input.slice(this.pos,u)))return!1;if(t){var p=u+5,g;if(this.input.slice(u,p)!=="using"||p===this.input.length||Qt(g=this.fullCharCodeAt(p))||g===92)return!1;wt.lastIndex=p;var b=wt.exec(this.input);if(u=p+b[0].length,b&&Pt.test(this.input.slice(p,u)))return!1}var T=this.fullCharCodeAt(u);if(!zt(T)&&T!==92)return!1;var w=u;do u+=T<=65535?1:2;while(Qt(T=this.fullCharCodeAt(u)));if(T===92)return!0;var l=this.input.slice(w,u);return!(ms.test(l)||i&&l==="of")};q.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)};q.isUsing=function(t){return this.isUsingKeyword(!1,t)};q.parseStatement=function(t,i,n){var u=this.type,p=this.startNode(),g;switch(this.isLet(t)&&(u=d._var,g="let"),u){case d._break:case d._continue:return this.parseBreakContinueStatement(p,u.keyword);case d._debugger:return this.parseDebuggerStatement(p);case d._do:return this.parseDoStatement(p);case d._for:return this.parseForStatement(p);case d._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(p,!1,!t);case d._class:return t&&this.unexpected(),this.parseClass(p,!0);case d._if:return this.parseIfStatement(p);case d._return:return this.parseReturnStatement(p);case d._switch:return this.parseSwitchStatement(p);case d._throw:return this.parseThrowStatement(p);case d._try:return this.parseTryStatement(p);case d._const:case d._var:return g=g||this.value,t&&g!=="var"&&this.unexpected(),this.parseVarStatement(p,g);case d._while:return this.parseWhileStatement(p);case d._with:return this.parseWithStatement(p);case d.braceL:return this.parseBlock(!0,p);case d.semi:return this.parseEmptyStatement(p);case d._export:case d._import:if(this.options.ecmaVersion>10&&u===d._import){wt.lastIndex=this.pos;var b=wt.exec(this.input),T=this.pos+b[0].length,w=this.input.charCodeAt(T);if(w===40||w===46)return this.parseExpressionStatement(p,this.parseExpression())}return this.options.allowImportExportEverywhere||(i||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),u===d._import?this.parseImport(p):this.parseExport(p,n);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(p,!0,!t);var l=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(l)return 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"),l==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(p,!1,l),this.semicolon(),this.finishNode(p,"VariableDeclaration");var W=this.value,Y=this.parseExpression();return u===d.name&&Y.type==="Identifier"&&this.eat(d.colon)?this.parseLabeledStatement(p,W,Y,t):this.parseExpressionStatement(p,Y)}};q.parseBreakContinueStatement=function(t,i){var n=i==="break";this.next(),this.eat(d.semi)||this.insertSemicolon()?t.label=null:this.type!==d.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var u=0;u<this.labels.length;++u){var p=this.labels[u];if((t.label==null||p.name===t.label.name)&&(p.kind!=null&&(n||p.kind==="loop")||t.label&&n))break}return u===this.labels.length&&this.raise(t.start,"Unsyntactic "+i),this.finishNode(t,n?"BreakStatement":"ContinueStatement")};q.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")};q.parseDoStatement=function(t){return this.next(),this.labels.push(_i),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(d._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(d.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")};q.parseForStatement=function(t){this.next();var i=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(_i),this.enterScope(0),this.expect(d.parenL),this.type===d.semi)return i>-1&&this.unexpected(i),this.parseFor(t,null);var n=this.isLet();if(this.type===d._var||this.type===d._const||n){var u=this.startNode(),p=n?"let":this.value;return this.next(),this.parseVar(u,!0,p),this.finishNode(u,"VariableDeclaration"),this.parseForAfterInit(t,u,i)}var g=this.isContextual("let"),b=!1,T=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(T){var w=this.startNode();return this.next(),T==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(w,!0,T),this.finishNode(w,"VariableDeclaration"),this.parseForAfterInit(t,w,i)}var l=this.containsEsc,W=new $e,Y=this.start,tt=i>-1?this.parseExprSubscripts(W,"await"):this.parseExpression(!0,W);return this.type===d._in||(b=this.options.ecmaVersion>=6&&this.isContextual("of"))?(i>-1?(this.type===d._in&&this.unexpected(i),t.await=!0):b&&this.options.ecmaVersion>=8&&(tt.start===Y&&!l&&tt.type==="Identifier"&&tt.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(t.await=!1)),g&&b&&this.raise(tt.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(tt,!1,W),this.checkLValPattern(tt),this.parseForIn(t,tt)):(this.checkExpressionErrors(W,!0),i>-1&&this.unexpected(i),this.parseFor(t,tt))};q.parseForAfterInit=function(t,i,n){return(this.type===d._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&i.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===d._in?n>-1&&this.unexpected(n):t.await=n>-1),this.parseForIn(t,i)):(n>-1&&this.unexpected(n),this.parseFor(t,i))};q.parseFunctionStatement=function(t,i,n){return this.next(),this.parseFunction(t,we|(n?0:yi),!1,i)};q.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(d._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")};q.parseReturnStatement=function(t){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(d.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")};q.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(d.braceL),this.labels.push(oa),this.enterScope(Cs);for(var i,n=!1;this.type!==d.braceR;)if(this.type===d._case||this.type===d._default){var u=this.type===d._case;i&&this.finishNode(i,"SwitchCase"),t.cases.push(i=this.startNode()),i.consequent=[],this.next(),u?i.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,i.test=null),this.expect(d.colon)}else i||this.unexpected(),i.consequent.push(this.parseStatement(null));return this.exitScope(),i&&this.finishNode(i,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")};q.parseThrowStatement=function(t){return this.next(),Pt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var ua=[];q.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),i=t.type==="Identifier";return this.enterScope(i?bs:0),this.checkLValPattern(t,i?As:$t),this.expect(d.parenR),t};q.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===d._catch){var i=this.startNode();this.next(),this.eat(d.parenL)?i.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),i.param=null,this.enterScope(0)),i.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(i,"CatchClause")}return t.finalizer=this.eat(d._finally)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")};q.parseVarStatement=function(t,i,n){return this.next(),this.parseVar(t,!1,i,n),this.semicolon(),this.finishNode(t,"VariableDeclaration")};q.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(_i),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")};q.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")};q.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")};q.parseLabeledStatement=function(t,i,n,u){for(var p=0,g=this.labels;p<g.length;p+=1){var b=g[p];b.name===i&&this.raise(n.start,"Label '"+i+"' is already declared")}for(var T=this.type.isLoop?"loop":this.type===d._switch?"switch":null,w=this.labels.length-1;w>=0;w--){var l=this.labels[w];if(l.statementStart===t.start)l.statementStart=this.start,l.kind=T;else break}return this.labels.push({name:i,kind:T,statementStart:this.start}),t.body=this.parseStatement(u?u.indexOf("label")===-1?u+"label":u:"label"),this.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")};q.parseExpressionStatement=function(t,i){return t.expression=i,this.semicolon(),this.finishNode(t,"ExpressionStatement")};q.parseBlock=function(t,i,n){for(t===void 0&&(t=!0),i===void 0&&(i=this.startNode()),i.body=[],this.expect(d.braceL),t&&this.enterScope(0);this.type!==d.braceR;){var u=this.parseStatement(null);i.body.push(u)}return n&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(i,"BlockStatement")};q.parseFor=function(t,i){return t.init=i,this.expect(d.semi),t.test=this.type===d.semi?null:this.parseExpression(),this.expect(d.semi),t.update=this.type===d.parenR?null:this.parseExpression(),this.expect(d.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")};q.parseForIn=function(t,i){var n=this.type===d._in;return this.next(),i.type==="VariableDeclaration"&&i.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||i.kind!=="var"||i.declarations[0].id.type!=="Identifier")&&this.raise(i.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=i,t.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(d.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,n?"ForInStatement":"ForOfStatement")};q.parseVar=function(t,i,n,u){for(t.declarations=[],t.kind=n;;){var p=this.startNode();if(this.parseVarId(p,n),this.eat(d.eq)?p.init=this.parseMaybeAssign(i):!u&&n==="const"&&!(this.type===d._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!u&&(n==="using"||n==="await using")&&this.options.ecmaVersion>=17&&this.type!==d._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):!u&&p.id.type!=="Identifier"&&!(i&&(this.type===d._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):p.init=null,t.declarations.push(this.finishNode(p,"VariableDeclarator")),!this.eat(d.comma))break}return t};q.parseVarId=function(t,i){t.id=i==="using"||i==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(t.id,i==="var"?Ai:$t,!1)};var we=1,yi=2,Ts=4;q.parseFunction=function(t,i,n,u,p){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!u)&&(this.type===d.star&&i&yi&&this.unexpected(),t.generator=this.eat(d.star)),this.options.ecmaVersion>=8&&(t.async=!!u),i&we&&(t.id=i&Ts&&this.type!==d.name?null:this.parseIdent(),t.id&&!(i&yi)&&this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?Ai:$t:ks));var g=this.yieldPos,b=this.awaitPos,T=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ki(t.async,t.generator)),i&we||(t.id=this.type===d.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,n,!1,p),this.yieldPos=g,this.awaitPos=b,this.awaitIdentPos=T,this.finishNode(t,i&we?"FunctionDeclaration":"FunctionExpression")};q.parseFunctionParams=function(t){this.expect(d.parenL),t.params=this.parseBindingList(d.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};q.parseClass=function(t,i){this.next();var n=this.strict;this.strict=!0,this.parseClassId(t,i),this.parseClassSuper(t);var u=this.enterClassBody(),p=this.startNode(),g=!1;for(p.body=[],this.expect(d.braceL);this.type!==d.braceR;){var b=this.parseClassElement(t.superClass!==null);b&&(p.body.push(b),b.type==="MethodDefinition"&&b.kind==="constructor"?(g&&this.raiseRecoverable(b.start,"Duplicate constructor in the same class"),g=!0):b.key&&b.key.type==="PrivateIdentifier"&&ha(u,b)&&this.raiseRecoverable(b.key.start,"Identifier '#"+b.key.name+"' has already been declared"))}return this.strict=n,this.next(),t.body=this.finishNode(p,"ClassBody"),this.exitClassBody(),this.finishNode(t,i?"ClassDeclaration":"ClassExpression")};q.parseClassElement=function(t){if(this.eat(d.semi))return null;var i=this.options.ecmaVersion,n=this.startNode(),u="",p=!1,g=!1,b="method",T=!1;if(this.eatContextual("static")){if(i>=13&&this.eat(d.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===d.star?T=!0:u="static"}if(n.static=T,!u&&i>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===d.star)&&!this.canInsertSemicolon()?g=!0:u="async"),!u&&(i>=9||!g)&&this.eat(d.star)&&(p=!0),!u&&!g&&!p){var w=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?b=w:u=w)}if(u?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=u,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),i<13||this.type===d.parenL||b!=="method"||p||g){var l=!n.static&&Xe(n,"constructor"),W=l&&t;l&&b!=="method"&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=l?"constructor":b,this.parseClassMethod(n,p,g,W)}else this.parseClassField(n);return n};q.isClassElementNameStart=function(){return this.type===d.name||this.type===d.privateId||this.type===d.num||this.type===d.string||this.type===d.bracketL||this.type.keyword};q.parseClassElementName=function(t){this.type===d.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)};q.parseClassMethod=function(t,i,n,u){var p=t.key;t.kind==="constructor"?(i&&this.raise(p.start,"Constructor can't be a generator"),n&&this.raise(p.start,"Constructor can't be an async method")):t.static&&Xe(t,"prototype")&&this.raise(p.start,"Classes may not have a static property named prototype");var g=t.value=this.parseMethod(i,n,u);return t.kind==="get"&&g.params.length!==0&&this.raiseRecoverable(g.start,"getter should have no params"),t.kind==="set"&&g.params.length!==1&&this.raiseRecoverable(g.start,"setter should have exactly one param"),t.kind==="set"&&g.params[0].type==="RestElement"&&this.raiseRecoverable(g.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")};q.parseClassField=function(t){return Xe(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&Xe(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(d.eq)?(this.enterScope(Ee|Ye),t.value=this.parseMaybeAssign(),this.exitScope()):t.value=null,this.semicolon(),this.finishNode(t,"PropertyDefinition")};q.parseClassStaticBlock=function(t){t.body=[];var i=this.labels;for(this.labels=[],this.enterScope(ce|Ye);this.type!==d.braceR;){var n=this.parseStatement(null);t.body.push(n)}return this.next(),this.exitScope(),this.labels=i,this.finishNode(t,"StaticBlock")};q.parseClassId=function(t,i){this.type===d.name?(t.id=this.parseIdent(),i&&this.checkLValSimple(t.id,$t,!1)):(i===!0&&this.unexpected(),t.id=null)};q.parseClassSuper=function(t){t.superClass=this.eat(d._extends)?this.parseExprSubscripts(null,!1):null};q.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared};q.exitClassBody=function(){var t=this.privateNameStack.pop(),i=t.declared,n=t.used;if(this.options.checkPrivateFields)for(var u=this.privateNameStack.length,p=u===0?null:this.privateNameStack[u-1],g=0;g<n.length;++g){var b=n[g];ye(i,b.name)||(p?p.used.push(b):this.raiseRecoverable(b.start,"Private field '#"+b.name+"' must be declared in an enclosing class"))}};function ha(t,i){var n=i.key.name,u=t[n],p="true";return i.type==="MethodDefinition"&&(i.kind==="get"||i.kind==="set")&&(p=(i.static?"s":"i")+i.kind),u==="iget"&&p==="iset"||u==="iset"&&p==="iget"||u==="sget"&&p==="sset"||u==="sset"&&p==="sget"?(t[n]="true",!1):u?!0:(t[n]=p,!1)}function Xe(t,i){var n=t.computed,u=t.key;return!n&&(u.type==="Identifier"&&u.name===i||u.type==="Literal"&&u.value===i)}q.parseExportAllDeclaration=function(t,i){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(i,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==d.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")};q.parseExport=function(t,i){if(this.next(),this.eat(d.star))return this.parseExportAllDeclaration(t,i);if(this.eat(d._default))return this.checkExport(i,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),t.declaration.type==="VariableDeclaration"?this.checkVariableExport(i,t.declaration.declarations):this.checkExport(i,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[]);else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(i),this.eatContextual("from"))this.type!==d.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause());else{for(var n=0,u=t.specifiers;n<u.length;n+=1){var p=u[n];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`.")}t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[])}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")};q.parseExportDeclaration=function(t){return this.parseStatement(null)};q.parseExportDefaultDeclaration=function(){var t;if(this.type===d._function||(t=this.isAsyncFunction())){var i=this.startNode();return this.next(),t&&this.next(),this.parseFunction(i,we|Ts,!1,t)}else if(this.type===d._class){var n=this.startNode();return this.parseClass(n,"nullableID")}else{var u=this.parseMaybeAssign();return this.semicolon(),u}};q.checkExport=function(t,i,n){t&&(typeof i!="string"&&(i=i.type==="Identifier"?i.name:i.value),ye(t,i)&&this.raiseRecoverable(n,"Duplicate export '"+i+"'"),t[i]=!0)};q.checkPatternExport=function(t,i){var n=i.type;if(n==="Identifier")this.checkExport(t,i,i.start);else if(n==="ObjectPattern")for(var u=0,p=i.properties;u<p.length;u+=1){var g=p[u];this.checkPatternExport(t,g)}else if(n==="ArrayPattern")for(var b=0,T=i.elements;b<T.length;b+=1){var w=T[b];w&&this.checkPatternExport(t,w)}else n==="Property"?this.checkPatternExport(t,i.value):n==="AssignmentPattern"?this.checkPatternExport(t,i.left):n==="RestElement"&&this.checkPatternExport(t,i.argument)};q.checkVariableExport=function(t,i){if(t)for(var n=0,u=i;n<u.length;n+=1){var p=u[n];this.checkPatternExport(t,p.id)}};q.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};q.parseExportSpecifier=function(t){var i=this.startNode();return i.local=this.parseModuleExportName(),i.exported=this.eatContextual("as")?this.parseModuleExportName():i.local,this.checkExport(t,i.exported,i.exported.start),this.finishNode(i,"ExportSpecifier")};q.parseExportSpecifiers=function(t){var i=[],n=!0;for(this.expect(d.braceL);!this.eat(d.braceR);){if(n)n=!1;else if(this.expect(d.comma),this.afterTrailingComma(d.braceR))break;i.push(this.parseExportSpecifier(t))}return i};q.parseImport=function(t){return this.next(),this.type===d.string?(t.specifiers=ua,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===d.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")};q.parseImportSpecifier=function(){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.eatContextual("as")?t.local=this.parseIdent():(this.checkUnreserved(t.imported),t.local=t.imported),this.checkLValSimple(t.local,$t),this.finishNode(t,"ImportSpecifier")};q.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,$t),this.finishNode(t,"ImportDefaultSpecifier")};q.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,$t),this.finishNode(t,"ImportNamespaceSpecifier")};q.parseImportSpecifiers=function(){var t=[],i=!0;if(this.type===d.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(d.comma)))return t;if(this.type===d.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(d.braceL);!this.eat(d.braceR);){if(i)i=!1;else if(this.expect(d.comma),this.afterTrailingComma(d.braceR))break;t.push(this.parseImportSpecifier())}return t};q.parseWithClause=function(){var t=[];if(!this.eat(d._with))return t;this.expect(d.braceL);for(var i={},n=!0;!this.eat(d.braceR);){if(n)n=!1;else if(this.expect(d.comma),this.afterTrailingComma(d.braceR))break;var u=this.parseImportAttribute(),p=u.key.type==="Identifier"?u.key.name:u.key.value;ye(i,p)&&this.raiseRecoverable(u.key.start,"Duplicate attribute key '"+p+"'"),i[p]=!0,t.push(u)}return t};q.parseImportAttribute=function(){var t=this.startNode();return t.key=this.type===d.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(d.colon),this.type!==d.string&&this.unexpected(),t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")};q.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===d.string){var t=this.parseLiteral(this.value);return sa.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)};q.adaptDirectivePrologue=function(t){for(var i=0;i<t.length&&this.isDirectiveCandidate(t[i]);++i)t[i].directive=t[i].expression.raw.slice(1,-1)};q.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 Ht=dt.prototype;Ht.toAssignable=function(t,i,n){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":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":t.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var u=0,p=t.properties;u<p.length;u+=1){var g=p[u];this.toAssignable(g,i),g.type==="RestElement"&&(g.argument.type==="ArrayPattern"||g.argument.type==="ObjectPattern")&&this.raise(g.argument.start,"Unexpected token")}break;case"Property":t.kind!=="init"&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,i);break;case"ArrayExpression":t.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(t.elements,i);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,i),t.argument.type==="AssignmentPattern"&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":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,i);break;case"ParenthesizedExpression":this.toAssignable(t.expression,i,n);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!i)break;default:this.raise(t.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return t};Ht.toAssignableList=function(t,i){for(var n=t.length,u=0;u<n;u++){var p=t[u];p&&this.toAssignable(p,i)}if(n){var g=t[n-1];this.options.ecmaVersion===6&&i&&g&&g.type==="RestElement"&&g.argument.type!=="Identifier"&&this.unexpected(g.argument.start)}return t};Ht.parseSpread=function(t){var i=this.startNode();return this.next(),i.argument=this.parseMaybeAssign(!1,t),this.finishNode(i,"SpreadElement")};Ht.parseRestBinding=function(){var t=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==d.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")};Ht.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case d.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(d.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case d.braceL:return this.parseObj(!0)}return this.parseIdent()};Ht.parseBindingList=function(t,i,n,u){for(var p=[],g=!0;!this.eat(t);)if(g?g=!1:this.expect(d.comma),i&&this.type===d.comma)p.push(null);else{if(n&&this.afterTrailingComma(t))break;if(this.type===d.ellipsis){var b=this.parseRestBinding();this.parseBindingListItem(b),p.push(b),this.type===d.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};Ht.parseAssignableListItem=function(t){var i=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(i),i};Ht.parseBindingListItem=function(t){return t};Ht.parseMaybeDefault=function(t,i,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(d.eq))return n;var u=this.startNodeAt(t,i);return u.left=n,u.right=this.parseMaybeAssign(),this.finishNode(u,"AssignmentPattern")};Ht.checkLValSimple=function(t,i,n){i===void 0&&(i=Ke);var u=i!==Ke;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(u?"Binding ":"Assigning to ")+t.name+" in strict mode"),u&&(i===$t&&t.name==="let"&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),n&&(ye(n,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),n[t.name]=!0),i!==_s&&this.declareName(t.name,i,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":u&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return u&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,i,n);default:this.raise(t.start,(u?"Binding":"Assigning to")+" rvalue")}};Ht.checkLValPattern=function(t,i,n){switch(i===void 0&&(i=Ke),t.type){case"ObjectPattern":for(var u=0,p=t.properties;u<p.length;u+=1){var g=p[u];this.checkLValInnerPattern(g,i,n)}break;case"ArrayPattern":for(var b=0,T=t.elements;b<T.length;b+=1){var w=T[b];w&&this.checkLValInnerPattern(w,i,n)}break;default:this.checkLValSimple(t,i,n)}};Ht.checkLValInnerPattern=function(t,i,n){switch(i===void 0&&(i=Ke),t.type){case"Property":this.checkLValInnerPattern(t.value,i,n);break;case"AssignmentPattern":this.checkLValPattern(t.left,i,n);break;case"RestElement":this.checkLValPattern(t.argument,i,n);break;default:this.checkLValPattern(t,i,n)}};var Tt=function(i,n,u,p,g){this.token=i,this.isExpr=!!n,this.preserveSpace=!!u,this.override=p,this.generator=!!g},ft={b_stat:new Tt("{",!1),b_expr:new Tt("{",!0),b_tmpl:new Tt("${",!1),p_stat:new Tt("(",!1),p_expr:new Tt("(",!0),q_tmpl:new Tt("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new Tt("function",!1),f_expr:new Tt("function",!0),f_expr_gen:new Tt("function",!0,!1,null,!0),f_gen:new Tt("function",!1,!1,null,!0)},ve=dt.prototype;ve.initialContext=function(){return[ft.b_stat]};ve.curContext=function(){return this.context[this.context.length-1]};ve.braceIsBlock=function(t){var i=this.curContext();return i===ft.f_expr||i===ft.f_stat?!0:t===d.colon&&(i===ft.b_stat||i===ft.b_expr)?!i.isExpr:t===d._return||t===d.name&&this.exprAllowed?Pt.test(this.input.slice(this.lastTokEnd,this.start)):t===d._else||t===d.semi||t===d.eof||t===d.parenR||t===d.arrow?!0:t===d.braceL?i===ft.b_stat:t===d._var||t===d._const||t===d.name?!1:!this.exprAllowed};ve.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var i=this.context[t];if(i.token==="function")return i.generator}return!1};ve.updateContext=function(t){var i,n=this.type;n.keyword&&t===d.dot?this.exprAllowed=!1:(i=n.updateContext)?i.call(this,t):this.exprAllowed=n.beforeExpr};ve.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)};d.parenR.updateContext=d.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var t=this.context.pop();t===ft.b_stat&&this.curContext().token==="function"&&(t=this.context.pop()),this.exprAllowed=!t.isExpr};d.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?ft.b_stat:ft.b_expr),this.exprAllowed=!0};d.dollarBraceL.updateContext=function(){this.context.push(ft.b_tmpl),this.exprAllowed=!0};d.parenL.updateContext=function(t){var i=t===d._if||t===d._for||t===d._with||t===d._while;this.context.push(i?ft.p_stat:ft.p_expr),this.exprAllowed=!0};d.incDec.updateContext=function(){};d._function.updateContext=d._class.updateContext=function(t){t.beforeExpr&&t!==d._else&&!(t===d.semi&&this.curContext()!==ft.p_stat)&&!(t===d._return&&Pt.test(this.input.slice(this.lastTokEnd,this.start)))&&!((t===d.colon||t===d.braceL)&&this.curContext()===ft.b_stat)?this.context.push(ft.f_expr):this.context.push(ft.f_stat),this.exprAllowed=!1};d.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};d.backQuote.updateContext=function(){this.curContext()===ft.q_tmpl?this.context.pop():this.context.push(ft.q_tmpl),this.exprAllowed=!1};d.star.updateContext=function(t){if(t===d._function){var i=this.context.length-1;this.context[i]===ft.f_expr?this.context[i]=ft.f_expr_gen:this.context[i]=ft.f_gen}this.exprAllowed=!0};d.name.updateContext=function(t){var i=!1;this.options.ecmaVersion>=6&&t!==d.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(i=!0),this.exprAllowed=i};var Q=dt.prototype;Q.checkPropClash=function(t,i,n){if(!(this.options.ecmaVersion>=9&&t.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var u=t.key,p;switch(u.type){case"Identifier":p=u.name;break;case"Literal":p=String(u.value);break;default:return}var g=t.kind;if(this.options.ecmaVersion>=6){p==="__proto__"&&g==="init"&&(i.proto&&(n?n.doubleProto<0&&(n.doubleProto=u.start):this.raiseRecoverable(u.start,"Redefinition of __proto__ property")),i.proto=!0);return}p="$"+p;var b=i[p];if(b){var T;g==="init"?T=this.strict&&b.init||b.get||b.set:T=b.init||b[g],T&&this.raiseRecoverable(u.start,"Redefinition of property")}else b=i[p]={init:!1,get:!1,set:!1};b[g]=!0}};Q.parseExpression=function(t,i){var n=this.start,u=this.startLoc,p=this.parseMaybeAssign(t,i);if(this.type===d.comma){var g=this.startNodeAt(n,u);for(g.expressions=[p];this.eat(d.comma);)g.expressions.push(this.parseMaybeAssign(t,i));return this.finishNode(g,"SequenceExpression")}return p};Q.parseMaybeAssign=function(t,i,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var u=!1,p=-1,g=-1,b=-1;i?(p=i.parenthesizedAssign,g=i.trailingComma,b=i.doubleProto,i.parenthesizedAssign=i.trailingComma=-1):(i=new $e,u=!0);var T=this.start,w=this.startLoc;(this.type===d.parenL||this.type===d.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=t==="await");var l=this.parseMaybeConditional(t,i);if(n&&(l=n.call(this,l,T,w)),this.type.isAssign){var W=this.startNodeAt(T,w);return W.operator=this.value,this.type===d.eq&&(l=this.toAssignable(l,!1,i)),u||(i.parenthesizedAssign=i.trailingComma=i.doubleProto=-1),i.shorthandAssign>=l.start&&(i.shorthandAssign=-1),this.type===d.eq?this.checkLValPattern(l):this.checkLValSimple(l),W.left=l,this.next(),W.right=this.parseMaybeAssign(t),b>-1&&(i.doubleProto=b),this.finishNode(W,"AssignmentExpression")}else u&&this.checkExpressionErrors(i,!0);return p>-1&&(i.parenthesizedAssign=p),g>-1&&(i.trailingComma=g),l};Q.parseMaybeConditional=function(t,i){var n=this.start,u=this.startLoc,p=this.parseExprOps(t,i);if(this.checkExpressionErrors(i))return p;if(this.eat(d.question)){var g=this.startNodeAt(n,u);return g.test=p,g.consequent=this.parseMaybeAssign(),this.expect(d.colon),g.alternate=this.parseMaybeAssign(t),this.finishNode(g,"ConditionalExpression")}return p};Q.parseExprOps=function(t,i){var n=this.start,u=this.startLoc,p=this.parseMaybeUnary(i,!1,!1,t);return this.checkExpressionErrors(i)||p.start===n&&p.type==="ArrowFunctionExpression"?p:this.parseExprOp(p,n,u,-1,t)};Q.parseExprOp=function(t,i,n,u,p){var g=this.type.binop;if(g!=null&&(!p||this.type!==d._in)&&g>u){var b=this.type===d.logicalOR||this.type===d.logicalAND,T=this.type===d.coalesce;T&&(g=d.logicalAND.binop);var w=this.value;this.next();var l=this.start,W=this.startLoc,Y=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,p),l,W,g,p),tt=this.buildBinary(i,n,t,Y,w,b||T);return(b&&this.type===d.coalesce||T&&(this.type===d.logicalOR||this.type===d.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(tt,i,n,u,p)}return t};Q.buildBinary=function(t,i,n,u,p,g){u.type==="PrivateIdentifier"&&this.raise(u.start,"Private identifier can only be left side of binary expression");var b=this.startNodeAt(t,i);return b.left=n,b.operator=p,b.right=u,this.finishNode(b,g?"LogicalExpression":"BinaryExpression")};Q.parseMaybeUnary=function(t,i,n,u){var p=this.start,g=this.startLoc,b;if(this.isContextual("await")&&this.canAwait)b=this.parseAwait(u),i=!0;else if(this.type.prefix){var T=this.startNode(),w=this.type===d.incDec;T.operator=this.value,T.prefix=!0,this.next(),T.argument=this.parseMaybeUnary(null,!0,w,u),this.checkExpressionErrors(t,!0),w?this.checkLValSimple(T.argument):this.strict&&T.operator==="delete"&&ws(T.argument)?this.raiseRecoverable(T.start,"Deleting local variable in strict mode"):T.operator==="delete"&&vi(T.argument)?this.raiseRecoverable(T.start,"Private fields can not be deleted"):i=!0,b=this.finishNode(T,w?"UpdateExpression":"UnaryExpression")}else if(!i&&this.type===d.privateId)(u||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),b=this.parsePrivateIdent(),this.type!==d._in&&this.unexpected();else{if(b=this.parseExprSubscripts(t,u),this.checkExpressionErrors(t))return b;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(p,g);l.operator=this.value,l.prefix=!1,l.argument=b,this.checkLValSimple(b),this.next(),b=this.finishNode(l,"UpdateExpression")}}if(!n&&this.eat(d.starstar))if(i)this.unexpected(this.lastTokStart);else return this.buildBinary(p,g,b,this.parseMaybeUnary(null,!1,!1,u),"**",!1);else return b};function ws(t){return t.type==="Identifier"||t.type==="ParenthesizedExpression"&&ws(t.expression)}function vi(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&vi(t.expression)||t.type==="ParenthesizedExpression"&&vi(t.expression)}Q.parseExprSubscripts=function(t,i){var n=this.start,u=this.startLoc,p=this.parseExprAtom(t,i);if(p.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return p;var g=this.parseSubscripts(p,n,u,!1,i);return t&&g.type==="MemberExpression"&&(t.parenthesizedAssign>=g.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=g.start&&(t.parenthesizedBind=-1),t.trailingComma>=g.start&&(t.trailingComma=-1)),g};Q.parseSubscripts=function(t,i,n,u,p){for(var g=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,b=!1;;){var T=this.parseSubscript(t,i,n,u,g,b,p);if(T.optional&&(b=!0),T===t||T.type==="ArrowFunctionExpression"){if(b){var w=this.startNodeAt(i,n);w.expression=T,T=this.finishNode(w,"ChainExpression")}return T}t=T}};Q.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(d.arrow)};Q.parseSubscriptAsyncArrow=function(t,i,n,u){return this.parseArrowExpression(this.startNodeAt(t,i),n,!0,u)};Q.parseSubscript=function(t,i,n,u,p,g,b){var T=this.options.ecmaVersion>=11,w=T&&this.eat(d.questionDot);u&&w&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(d.bracketL);if(l||w&&this.type!==d.parenL&&this.type!==d.backQuote||this.eat(d.dot)){var W=this.startNodeAt(i,n);W.object=t,l?(W.property=this.parseExpression(),this.expect(d.bracketR)):this.type===d.privateId&&t.type!=="Super"?W.property=this.parsePrivateIdent():W.property=this.parseIdent(this.options.allowReserved!=="never"),W.computed=!!l,T&&(W.optional=w),t=this.finishNode(W,"MemberExpression")}else if(!u&&this.eat(d.parenL)){var Y=new $e,tt=this.yieldPos,E=this.awaitPos,N=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var D=this.parseExprList(d.parenR,this.options.ecmaVersion>=8,!1,Y);if(p&&!w&&this.shouldParseAsyncArrow())return this.checkPatternErrors(Y,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=tt,this.awaitPos=E,this.awaitIdentPos=N,this.parseSubscriptAsyncArrow(i,n,D,b);this.checkExpressionErrors(Y,!0),this.yieldPos=tt||this.yieldPos,this.awaitPos=E||this.awaitPos,this.awaitIdentPos=N||this.awaitIdentPos;var I=this.startNodeAt(i,n);I.callee=t,I.arguments=D,T&&(I.optional=w),t=this.finishNode(I,"CallExpression")}else if(this.type===d.backQuote){(w||g)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var K=this.startNodeAt(i,n);K.tag=t,K.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(K,"TaggedTemplateExpression")}return t};Q.parseExprAtom=function(t,i,n){this.type===d.slash&&this.readRegexp();var u,p=this.potentialArrowAt===this.start;switch(this.type){case d._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),u=this.startNode(),this.next(),this.type===d.parenL&&!this.allowDirectSuper&&this.raise(u.start,"super() call outside constructor of a subclass"),this.type!==d.dot&&this.type!==d.bracketL&&this.type!==d.parenL&&this.unexpected(),this.finishNode(u,"Super");case d._this:return u=this.startNode(),this.next(),this.finishNode(u,"ThisExpression");case d.name:var g=this.start,b=this.startLoc,T=this.containsEsc,w=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!T&&w.name==="async"&&!this.canInsertSemicolon()&&this.eat(d._function))return this.overrideContext(ft.f_expr),this.parseFunction(this.startNodeAt(g,b),0,!1,!0,i);if(p&&!this.canInsertSemicolon()){if(this.eat(d.arrow))return this.parseArrowExpression(this.startNodeAt(g,b),[w],!1,i);if(this.options.ecmaVersion>=8&&w.name==="async"&&this.type===d.name&&!T&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return w=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(d.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(g,b),[w],!0,i)}return w;case d.regexp:var l=this.value;return u=this.parseLiteral(l.value),u.regex={pattern:l.pattern,flags:l.flags},u;case d.num:case d.string:return this.parseLiteral(this.value);case d._null:case d._true:case d._false:return u=this.startNode(),u.value=this.type===d._null?null:this.type===d._true,u.raw=this.type.keyword,this.next(),this.finishNode(u,"Literal");case d.parenL:var W=this.start,Y=this.parseParenAndDistinguishExpression(p,i);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(Y)&&(t.parenthesizedAssign=W),t.parenthesizedBind<0&&(t.parenthesizedBind=W)),Y;case d.bracketL:return u=this.startNode(),this.next(),u.elements=this.parseExprList(d.bracketR,!0,!0,t),this.finishNode(u,"ArrayExpression");case d.braceL:return this.overrideContext(ft.b_expr),this.parseObj(!1,t);case d._function:return u=this.startNode(),this.next(),this.parseFunction(u,0);case d._class:return this.parseClass(this.startNode(),!1);case d._new:return this.parseNew();case d.backQuote:return this.parseTemplate();case d._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}};Q.parseExprAtomDefault=function(){this.unexpected()};Q.parseExprImport=function(t){var i=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===d.parenL&&!t)return this.parseDynamicImport(i);if(this.type===d.dot){var n=this.startNodeAt(i.start,i.loc&&i.loc.start);return n.name="import",i.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(i)}else this.unexpected()};Q.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(d.parenR)?t.options=null:(this.expect(d.comma),this.afterTrailingComma(d.parenR)?t.options=null:(t.options=this.parseMaybeAssign(),this.eat(d.parenR)||(this.expect(d.comma),this.afterTrailingComma(d.parenR)||this.unexpected())));else if(!this.eat(d.parenR)){var i=this.start;this.eat(d.comma)&&this.eat(d.parenR)?this.raiseRecoverable(i,"Trailing comma is not allowed in import()"):this.unexpected(i)}return this.finishNode(t,"ImportExpression")};Q.parseImportMeta=function(t){this.next();var i=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="meta"&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),i&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")};Q.parseLiteral=function(t){var i=this.startNode();return i.value=t,i.raw=this.input.slice(this.start,this.end),i.raw.charCodeAt(i.raw.length-1)===110&&(i.bigint=i.value!=null?i.value.toString():i.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(i,"Literal")};Q.parseParenExpression=function(){this.expect(d.parenL);var t=this.parseExpression();return this.expect(d.parenR),t};Q.shouldParseArrow=function(t){return!this.canInsertSemicolon()};Q.parseParenAndDistinguishExpression=function(t,i){var n=this.start,u=this.startLoc,p,g=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var b=this.start,T=this.startLoc,w=[],l=!0,W=!1,Y=new $e,tt=this.yieldPos,E=this.awaitPos,N;for(this.yieldPos=0,this.awaitPos=0;this.type!==d.parenR;)if(l?l=!1:this.expect(d.comma),g&&this.afterTrailingComma(d.parenR,!0)){W=!0;break}else if(this.type===d.ellipsis){N=this.start,w.push(this.parseParenItem(this.parseRestBinding())),this.type===d.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else w.push(this.parseMaybeAssign(!1,Y,this.parseParenItem));var D=this.lastTokEnd,I=this.lastTokEndLoc;if(this.expect(d.parenR),t&&this.shouldParseArrow(w)&&this.eat(d.arrow))return this.checkPatternErrors(Y,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=tt,this.awaitPos=E,this.parseParenArrowList(n,u,w,i);(!w.length||W)&&this.unexpected(this.lastTokStart),N&&this.unexpected(N),this.checkExpressionErrors(Y,!0),this.yieldPos=tt||this.yieldPos,this.awaitPos=E||this.awaitPos,w.length>1?(p=this.startNodeAt(b,T),p.expressions=w,this.finishNodeAt(p,"SequenceExpression",D,I)):p=w[0]}else p=this.parseParenExpression();if(this.options.preserveParens){var K=this.startNodeAt(n,u);return K.expression=p,this.finishNode(K,"ParenthesizedExpression")}else return p};Q.parseParenItem=function(t){return t};Q.parseParenArrowList=function(t,i,n,u){return this.parseArrowExpression(this.startNodeAt(t,i),n,!1,u)};var ca=[];Q.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===d.dot){var i=this.startNodeAt(t.start,t.loc&&t.loc.start);i.name="new",t.meta=this.finishNode(i,"Identifier"),this.next();var n=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="target"&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var u=this.start,p=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),u,p,!0,!1),this.eat(d.parenL)?t.arguments=this.parseExprList(d.parenR,this.options.ecmaVersion>=8,!1):t.arguments=ca,this.finishNode(t,"NewExpression")};Q.parseTemplateElement=function(t){var i=t.isTagged,n=this.startNode();return this.type===d.invalidTemplate?(i||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,`
|
|
11
|
+
`):D=String.fromCharCode(N),this.options.locations&&(++this.curLine,this.lineStart=this.pos),D}jsx_readString(E){let N="",D=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let I=this.input.charCodeAt(this.pos);if(I===E)break;I===38?(N+=this.input.slice(D,this.pos),N+=this.jsx_readEntity(),D=this.pos):W(I)?(N+=this.input.slice(D,this.pos),N+=this.jsx_readNewLine(!1),D=this.pos):++this.pos}return N+=this.input.slice(D,this.pos++),this.finishToken(p.string,N)}jsx_readEntity(){let E="",N=0,D,I=this.input[this.pos];I!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let Q=++this.pos;for(;this.pos<this.input.length&&N++<10;){if(I=this.input[this.pos++],I===";"){E[0]==="#"?E[1]==="x"?(E=E.substr(2),Oa.test(E)&&(D=String.fromCharCode(parseInt(E,16)))):(E=E.substr(1),Da.test(E)&&(D=String.fromCharCode(parseInt(E,10)))):D=Ra[E];break}E+=I}return D||(this.pos=Q,"&")}jsx_readWord(){let E,N=this.pos;do E=this.input.charCodeAt(++this.pos);while(tt(E)||E===45);return this.finishToken(g.jsxName,this.input.slice(N,this.pos))}jsx_parseIdentifier(){let E=this.startNode();return this.type===g.jsxName?E.name=this.value:this.type.keyword?E.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(E,"JSXIdentifier")}jsx_parseNamespacedName(){let E=this.start,N=this.startLoc,D=this.jsx_parseIdentifier();if(!t.allowNamespaces||!this.eat(p.colon))return D;var I=this.startNodeAt(E,N);return I.namespace=D,I.name=this.jsx_parseIdentifier(),this.finishNode(I,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===g.jsxTagEnd)return"";let E=this.start,N=this.startLoc,D=this.jsx_parseNamespacedName();for(this.type===p.dot&&D.type==="JSXNamespacedName"&&!t.allowNamespacedObjects&&this.unexpected();this.eat(p.dot);){let I=this.startNodeAt(E,N);I.object=D,I.property=this.jsx_parseIdentifier(),D=this.finishNode(I,"JSXMemberExpression")}return D}jsx_parseAttributeValue(){switch(this.type){case p.braceL:let E=this.jsx_parseExpressionContainer();return E.expression.type==="JSXEmptyExpression"&&this.raise(E.start,"JSX attributes must only be assigned a non-empty expression"),E;case g.jsxTagStart:case p.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let E=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(E,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let E=this.startNode();return this.next(),E.expression=this.type===p.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(p.braceR),this.finishNode(E,"JSXExpressionContainer")}jsx_parseAttribute(){let E=this.startNode();return this.eat(p.braceL)?(this.expect(p.ellipsis),E.argument=this.parseMaybeAssign(),this.expect(p.braceR),this.finishNode(E,"JSXSpreadAttribute")):(E.name=this.jsx_parseNamespacedName(),E.value=this.eat(p.eq)?this.jsx_parseAttributeValue():null,this.finishNode(E,"JSXAttribute"))}jsx_parseOpeningElementAt(E,N){let D=this.startNodeAt(E,N);D.attributes=[];let I=this.jsx_parseElementName();for(I&&(D.name=I);this.type!==p.slash&&this.type!==g.jsxTagEnd;)D.attributes.push(this.jsx_parseAttribute());return D.selfClosing=this.eat(p.slash),this.expect(g.jsxTagEnd),this.finishNode(D,I?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(E,N){let D=this.startNodeAt(E,N),I=this.jsx_parseElementName();return I&&(D.name=I),this.expect(g.jsxTagEnd),this.finishNode(D,I?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(E,N){let D=this.startNodeAt(E,N),I=[],Q=this.jsx_parseOpeningElementAt(E,N),xt=null;if(!Q.selfClosing){t:for(;;)switch(this.type){case g.jsxTagStart:if(E=this.start,N=this.startLoc,this.next(),this.eat(p.slash)){xt=this.jsx_parseClosingElementAt(E,N);break t}I.push(this.jsx_parseElementAt(E,N));break;case g.jsxText:I.push(this.parseExprAtom());break;case p.braceL:I.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}Le(xt.name)!==Le(Q.name)&&this.raise(xt.start,"Expected corresponding JSX closing tag for <"+Le(Q.name)+">")}let z=Q.name?"Element":"Fragment";return D["opening"+z]=Q,D["closing"+z]=xt,D.children=I,this.type===p.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(D,"JSX"+z)}jsx_parseText(){let E=this.parseLiteral(this.value);return E.type="JSXText",E}jsx_parseElement(){let E=this.start,N=this.startLoc;return this.next(),this.jsx_parseElementAt(E,N)}parseExprAtom(E){return this.type===g.jsxText?this.jsx_parseText():this.type===g.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(E)}readToken(E){let N=this.curContext();if(N===l)return this.jsx_readToken();if(N===T||N===w){if(Y(E))return this.jsx_readWord();if(E==62)return++this.pos,this.finishToken(g.jsxTagEnd);if((E===34||E===39)&&N==T)return this.jsx_readString(E)}return E===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(g.jsxTagStart)):super.readToken(E)}updateContext(E){if(this.type==p.braceL){var N=this.curContext();N==T?this.context.push(b.b_expr):N==l?this.context.push(b.b_tmpl):super.updateContext(E),this.exprAllowed=!0}else if(this.type===p.slash&&E===g.jsxTagStart)this.context.length-=2,this.context.push(w),this.exprAllowed=!1;else return super.updateContext(E)}}}});var ii={};Kr(ii,{Node:()=>Ie,Parser:()=>dt,Position:()=>xe,SourceLocation:()=>Pe,TokContext:()=>Tt,Token:()=>ei,TokenType:()=>Z,defaultOptions:()=>Ge,getLineInfo:()=>bi,isIdentifierChar:()=>Qt,isIdentifierStart:()=>zt,isNewLine:()=>ue,keywordTypes:()=>oe,lineBreak:()=>Pt,lineBreakG:()=>ms,nonASCIIwhitespace:()=>gi,parse:()=>Na,parseExpressionAt:()=>La,tokContexts:()=>ft,tokTypes:()=>f,tokenizer:()=>Va,version:()=>Xs});var Qr=[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],ls=[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],Yr="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",fs="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",fi={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"},di="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",Zr={5:di,"5module":di+" export import",6:di+" const class extends export import super"},ds=/^in(stanceof)?$/,$r=new RegExp("["+fs+"]"),ta=new RegExp("["+fs+Yr+"]");function xi(t,i){for(var n=65536,u=0;u<i.length;u+=2){if(n+=i[u],n>t)return!1;if(n+=i[u+1],n>=t)return!0}return!1}function zt(t,i){return t<65?t===36:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&$r.test(String.fromCharCode(t)):i===!1?!1:xi(t,ls)}function Qt(t,i){return t<48?t===36:t<58?!0:t<65?!1:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&ta.test(String.fromCharCode(t)):i===!1?!1:xi(t,ls)||xi(t,Qr)}var Z=function(i,n){n===void 0&&(n={}),this.label=i,this.keyword=n.keyword,this.beforeExpr=!!n.beforeExpr,this.startsExpr=!!n.startsExpr,this.isLoop=!!n.isLoop,this.isAssign=!!n.isAssign,this.prefix=!!n.prefix,this.postfix=!!n.postfix,this.binop=n.binop||null,this.updateContext=null};function Ft(t,i){return new Z(t,{beforeExpr:!0,binop:i})}var jt={beforeExpr:!0},It={startsExpr:!0},oe={};function rt(t,i){return i===void 0&&(i={}),i.keyword=t,oe[t]=new Z(t,i)}var f={num:new Z("num",It),regexp:new Z("regexp",It),string:new Z("string",It),name:new Z("name",It),privateId:new Z("privateId",It),eof:new Z("eof"),bracketL:new Z("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Z("]"),braceL:new Z("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Z("}"),parenL:new Z("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Z(")"),comma:new Z(",",jt),semi:new Z(";",jt),colon:new Z(":",jt),dot:new Z("."),question:new Z("?",jt),questionDot:new Z("?."),arrow:new Z("=>",jt),template:new Z("template"),invalidTemplate:new Z("invalidTemplate"),ellipsis:new Z("...",jt),backQuote:new Z("`",It),dollarBraceL:new Z("${",{beforeExpr:!0,startsExpr:!0}),eq:new Z("=",{beforeExpr:!0,isAssign:!0}),assign:new Z("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Z("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Z("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Ft("||",1),logicalAND:Ft("&&",2),bitwiseOR:Ft("|",3),bitwiseXOR:Ft("^",4),bitwiseAND:Ft("&",5),equality:Ft("==/!=/===/!==",6),relational:Ft("</>/<=/>=",7),bitShift:Ft("<</>>/>>>",8),plusMin:new Z("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Ft("%",10),star:Ft("*",10),slash:Ft("/",10),starstar:new Z("**",{beforeExpr:!0}),coalesce:Ft("??",1),_break:rt("break"),_case:rt("case",jt),_catch:rt("catch"),_continue:rt("continue"),_debugger:rt("debugger"),_default:rt("default",jt),_do:rt("do",{isLoop:!0,beforeExpr:!0}),_else:rt("else",jt),_finally:rt("finally"),_for:rt("for",{isLoop:!0}),_function:rt("function",It),_if:rt("if"),_return:rt("return",jt),_switch:rt("switch"),_throw:rt("throw",jt),_try:rt("try"),_var:rt("var"),_const:rt("const"),_while:rt("while",{isLoop:!0}),_with:rt("with"),_new:rt("new",{beforeExpr:!0,startsExpr:!0}),_this:rt("this",It),_super:rt("super",It),_class:rt("class",It),_extends:rt("extends",jt),_export:rt("export"),_import:rt("import",It),_null:rt("null",It),_true:rt("true",It),_false:rt("false",It),_in:rt("in",{beforeExpr:!0,binop:7}),_instanceof:rt("instanceof",{beforeExpr:!0,binop:7}),_typeof:rt("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:rt("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:rt("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Pt=/\r\n?|\n|\u2028|\u2029/,ms=new RegExp(Pt.source,"g");function ue(t){return t===10||t===13||t===8232||t===8233}function xs(t,i,n){n===void 0&&(n=t.length);for(var u=i;u<n;u++){var p=t.charCodeAt(u);if(ue(p))return u<n-1&&p===13&&t.charCodeAt(u+1)===10?u+2:u+1}return-1}var gi=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,wt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ys=Object.prototype,ea=ys.hasOwnProperty,ia=ys.toString,ye=Object.hasOwn||(function(t,i){return ea.call(t,i)}),os=Array.isArray||(function(t){return ia.call(t)==="[object Array]"}),us=Object.create(null);function ie(t){return us[t]||(us[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function Yt(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}var sa=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,xe=function(i,n){this.line=i,this.column=n};xe.prototype.offset=function(i){return new xe(this.line,this.column+i)};var Pe=function(i,n,u){this.start=n,this.end=u,i.sourceFile!==null&&(this.source=i.sourceFile)};function bi(t,i){for(var n=1,u=0;;){var p=xs(t,u,i);if(p<0)return new xe(n,i-u);++n,u=p}}var Ge={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},hs=!1;function ra(t){var i={};for(var n in Ge)i[n]=t&&ye(t,n)?t[n]:Ge[n];if(i.ecmaVersion==="latest"?i.ecmaVersion=1e8:i.ecmaVersion==null?(!hs&&typeof console=="object"&&console.warn&&(hs=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
12
|
+
Defaulting to 2020, but this will stop working in the future.`)),i.ecmaVersion=11):i.ecmaVersion>=2015&&(i.ecmaVersion-=2009),i.allowReserved==null&&(i.allowReserved=i.ecmaVersion<5),(!t||t.allowHashBang==null)&&(i.allowHashBang=i.ecmaVersion>=14),os(i.onToken)){var u=i.onToken;i.onToken=function(p){return u.push(p)}}if(os(i.onComment)&&(i.onComment=aa(i,i.onComment)),i.sourceType==="commonjs"&&i.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return i}function aa(t,i){return function(n,u,p,g,b,T){var w={type:n?"Block":"Line",value:u,start:p,end:g};t.locations&&(w.loc=new Pe(this,b,T)),t.ranges&&(w.range=[p,g]),i.push(w)}}var ne=1,he=2,Si=4,vs=8,Ci=16,gs=32,Ye=64,bs=128,ce=256,Ee=512,Ss=1024,Ze=ne|he|ce;function ki(t,i){return he|(t?Si:0)|(i?vs:0)}var Ke=0,Ai=1,$t=2,Cs=3,ks=4,As=5,dt=function(i,n,u){this.options=i=ra(i),this.sourceFile=i.sourceFile,this.keywords=ie(Zr[i.ecmaVersion>=6?6:i.sourceType==="module"?"5module":5]);var p="";i.allowReserved!==!0&&(p=fi[i.ecmaVersion>=6?6:i.ecmaVersion===5?5:3],i.sourceType==="module"&&(p+=" await")),this.reservedWords=ie(p);var g=(p?p+" ":"")+fi.strict;this.reservedWordsStrict=ie(g),this.reservedWordsStrictBind=ie(g+" "+fi.strictBind),this.input=String(n),this.containsEsc=!1,u?(this.pos=u,this.lineStart=this.input.lastIndexOf(`
|
|
13
|
+
`,u-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Pt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=f.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=i.sourceType==="module",this.strict=this.inModule||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&&i.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?he:ne),this.regexpState=null,this.privateNameStack=[]},qt={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}};dt.prototype.parse=function(){var i=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(i)};qt.inFunction.get=function(){return(this.currentVarScope().flags&he)>0};qt.inGenerator.get=function(){return(this.currentVarScope().flags&vs)>0};qt.inAsync.get=function(){return(this.currentVarScope().flags&Si)>0};qt.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var i=this.scopeStack[t],n=i.flags;if(n&(ce|Ee))return!1;if(n&he)return(n&Si)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};qt.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&ne)};qt.allowSuper.get=function(){var t=this.currentThisScope(),i=t.flags;return(i&Ye)>0||this.options.allowSuperOutsideMethod};qt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&bs)>0};qt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};qt.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var i=this.scopeStack[t],n=i.flags;if(n&(ce|Ee)||n&he&&!(n&Ci))return!0}return!1};qt.allowUsing.get=function(){var t=this.currentScope(),i=t.flags;return!(i&Ss||!this.inModule&&i&ne)};qt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ce)>0};dt.extend=function(){for(var i=[],n=arguments.length;n--;)i[n]=arguments[n];for(var u=this,p=0;p<i.length;p++)u=i[p](u);return u};dt.parse=function(i,n){return new this(n,i).parse()};dt.parseExpressionAt=function(i,n,u){var p=new this(u,i,n);return p.nextToken(),p.parseExpression()};dt.tokenizer=function(i,n){return new this(n,i)};Object.defineProperties(dt.prototype,qt);var Et=dt.prototype,na=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Et.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){wt.lastIndex=t,t+=wt.exec(this.input)[0].length;var i=na.exec(this.input.slice(t));if(!i)return!1;if((i[1]||i[2])==="use strict"){wt.lastIndex=t+i[0].length;var n=wt.exec(this.input),u=n.index+n[0].length,p=this.input.charAt(u);return p===";"||p==="}"||Pt.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(p)||p==="!"&&this.input.charAt(u+1)==="=")}t+=i[0].length,wt.lastIndex=t,t+=wt.exec(this.input)[0].length,this.input[t]===";"&&t++}};Et.eat=function(t){return this.type===t?(this.next(),!0):!1};Et.isContextual=function(t){return this.type===f.name&&this.value===t&&!this.containsEsc};Et.eatContextual=function(t){return this.isContextual(t)?(this.next(),!0):!1};Et.expectContextual=function(t){this.eatContextual(t)||this.unexpected()};Et.canInsertSemicolon=function(){return this.type===f.eof||this.type===f.braceR||Pt.test(this.input.slice(this.lastTokEnd,this.start))};Et.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Et.semicolon=function(){!this.eat(f.semi)&&!this.insertSemicolon()&&this.unexpected()};Et.afterTrailingComma=function(t,i){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),i||this.next(),!0};Et.expect=function(t){this.eat(t)||this.unexpected()};Et.unexpected=function(t){this.raise(t??this.start,"Unexpected token")};var $e=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Et.checkPatternErrors=function(t,i){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var n=i?t.parenthesizedAssign:t.parenthesizedBind;n>-1&&this.raiseRecoverable(n,i?"Assigning to rvalue":"Parenthesized pattern")}};Et.checkExpressionErrors=function(t,i){if(!t)return!1;var n=t.shorthandAssign,u=t.doubleProto;if(!i)return n>=0||u>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),u>=0&&this.raiseRecoverable(u,"Redefinition of __proto__ property")};Et.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};Et.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};var q=dt.prototype;q.parseTopLevel=function(t){var i=Object.create(null);for(t.body||(t.body=[]);this.type!==f.eof;){var n=this.parseStatement(null,!0,i);t.body.push(n)}if(this.inModule)for(var u=0,p=Object.keys(this.undefinedExports);u<p.length;u+=1){var g=p[u];this.raiseRecoverable(this.undefinedExports[g].start,"Export '"+g+"' 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 _i={kind:"loop"},oa={kind:"switch"};q.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;wt.lastIndex=this.pos;var i=wt.exec(this.input),n=this.pos+i[0].length,u=this.fullCharCodeAt(n);if(u===91||u===92)return!0;if(t)return!1;if(u===123)return!0;if(zt(u)){var p=n;do n+=u<=65535?1:2;while(Qt(u=this.fullCharCodeAt(n)));if(u===92)return!0;var g=this.input.slice(p,n);if(!ds.test(g))return!0}return!1};q.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;wt.lastIndex=this.pos;var t=wt.exec(this.input),i=this.pos+t[0].length,n;return!Pt.test(this.input.slice(this.pos,i))&&this.input.slice(i,i+8)==="function"&&(i+8===this.input.length||!(Qt(n=this.fullCharCodeAt(i+8))||n===92))};q.isUsingKeyword=function(t,i){if(this.options.ecmaVersion<17||!this.isContextual(t?"await":"using"))return!1;wt.lastIndex=this.pos;var n=wt.exec(this.input),u=this.pos+n[0].length;if(Pt.test(this.input.slice(this.pos,u)))return!1;if(t){var p=u+5,g;if(this.input.slice(u,p)!=="using"||p===this.input.length||Qt(g=this.fullCharCodeAt(p))||g===92)return!1;wt.lastIndex=p;var b=wt.exec(this.input);if(u=p+b[0].length,b&&Pt.test(this.input.slice(p,u)))return!1}var T=this.fullCharCodeAt(u);if(!zt(T)&&T!==92)return!1;var w=u;do u+=T<=65535?1:2;while(Qt(T=this.fullCharCodeAt(u)));if(T===92)return!0;var l=this.input.slice(w,u);return!(ds.test(l)||i&&l==="of")};q.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)};q.isUsing=function(t){return this.isUsingKeyword(!1,t)};q.parseStatement=function(t,i,n){var u=this.type,p=this.startNode(),g;switch(this.isLet(t)&&(u=f._var,g="let"),u){case f._break:case f._continue:return this.parseBreakContinueStatement(p,u.keyword);case f._debugger:return this.parseDebuggerStatement(p);case f._do:return this.parseDoStatement(p);case f._for:return this.parseForStatement(p);case f._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(p,!1,!t);case f._class:return t&&this.unexpected(),this.parseClass(p,!0);case f._if:return this.parseIfStatement(p);case f._return:return this.parseReturnStatement(p);case f._switch:return this.parseSwitchStatement(p);case f._throw:return this.parseThrowStatement(p);case f._try:return this.parseTryStatement(p);case f._const:case f._var:return g=g||this.value,t&&g!=="var"&&this.unexpected(),this.parseVarStatement(p,g);case f._while:return this.parseWhileStatement(p);case f._with:return this.parseWithStatement(p);case f.braceL:return this.parseBlock(!0,p);case f.semi:return this.parseEmptyStatement(p);case f._export:case f._import:if(this.options.ecmaVersion>10&&u===f._import){wt.lastIndex=this.pos;var b=wt.exec(this.input),T=this.pos+b[0].length,w=this.input.charCodeAt(T);if(w===40||w===46)return this.parseExpressionStatement(p,this.parseExpression())}return this.options.allowImportExportEverywhere||(i||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),u===f._import?this.parseImport(p):this.parseExport(p,n);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(p,!0,!t);var l=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(l)return 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"),l==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(p,!1,l),this.semicolon(),this.finishNode(p,"VariableDeclaration");var W=this.value,Y=this.parseExpression();return u===f.name&&Y.type==="Identifier"&&this.eat(f.colon)?this.parseLabeledStatement(p,W,Y,t):this.parseExpressionStatement(p,Y)}};q.parseBreakContinueStatement=function(t,i){var n=i==="break";this.next(),this.eat(f.semi)||this.insertSemicolon()?t.label=null:this.type!==f.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var u=0;u<this.labels.length;++u){var p=this.labels[u];if((t.label==null||p.name===t.label.name)&&(p.kind!=null&&(n||p.kind==="loop")||t.label&&n))break}return u===this.labels.length&&this.raise(t.start,"Unsyntactic "+i),this.finishNode(t,n?"BreakStatement":"ContinueStatement")};q.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")};q.parseDoStatement=function(t){return this.next(),this.labels.push(_i),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(f._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(f.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")};q.parseForStatement=function(t){this.next();var i=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(_i),this.enterScope(0),this.expect(f.parenL),this.type===f.semi)return i>-1&&this.unexpected(i),this.parseFor(t,null);var n=this.isLet();if(this.type===f._var||this.type===f._const||n){var u=this.startNode(),p=n?"let":this.value;return this.next(),this.parseVar(u,!0,p),this.finishNode(u,"VariableDeclaration"),this.parseForAfterInit(t,u,i)}var g=this.isContextual("let"),b=!1,T=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(T){var w=this.startNode();return this.next(),T==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(w,!0,T),this.finishNode(w,"VariableDeclaration"),this.parseForAfterInit(t,w,i)}var l=this.containsEsc,W=new $e,Y=this.start,tt=i>-1?this.parseExprSubscripts(W,"await"):this.parseExpression(!0,W);return this.type===f._in||(b=this.options.ecmaVersion>=6&&this.isContextual("of"))?(i>-1?(this.type===f._in&&this.unexpected(i),t.await=!0):b&&this.options.ecmaVersion>=8&&(tt.start===Y&&!l&&tt.type==="Identifier"&&tt.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(t.await=!1)),g&&b&&this.raise(tt.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(tt,!1,W),this.checkLValPattern(tt),this.parseForIn(t,tt)):(this.checkExpressionErrors(W,!0),i>-1&&this.unexpected(i),this.parseFor(t,tt))};q.parseForAfterInit=function(t,i,n){return(this.type===f._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&i.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===f._in?n>-1&&this.unexpected(n):t.await=n>-1),this.parseForIn(t,i)):(n>-1&&this.unexpected(n),this.parseFor(t,i))};q.parseFunctionStatement=function(t,i,n){return this.next(),this.parseFunction(t,we|(n?0:yi),!1,i)};q.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(f._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")};q.parseReturnStatement=function(t){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(f.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")};q.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(f.braceL),this.labels.push(oa),this.enterScope(Ss);for(var i,n=!1;this.type!==f.braceR;)if(this.type===f._case||this.type===f._default){var u=this.type===f._case;i&&this.finishNode(i,"SwitchCase"),t.cases.push(i=this.startNode()),i.consequent=[],this.next(),u?i.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,i.test=null),this.expect(f.colon)}else i||this.unexpected(),i.consequent.push(this.parseStatement(null));return this.exitScope(),i&&this.finishNode(i,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")};q.parseThrowStatement=function(t){return this.next(),Pt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var ua=[];q.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),i=t.type==="Identifier";return this.enterScope(i?gs:0),this.checkLValPattern(t,i?ks:$t),this.expect(f.parenR),t};q.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===f._catch){var i=this.startNode();this.next(),this.eat(f.parenL)?i.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),i.param=null,this.enterScope(0)),i.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(i,"CatchClause")}return t.finalizer=this.eat(f._finally)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")};q.parseVarStatement=function(t,i,n){return this.next(),this.parseVar(t,!1,i,n),this.semicolon(),this.finishNode(t,"VariableDeclaration")};q.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(_i),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")};q.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")};q.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")};q.parseLabeledStatement=function(t,i,n,u){for(var p=0,g=this.labels;p<g.length;p+=1){var b=g[p];b.name===i&&this.raise(n.start,"Label '"+i+"' is already declared")}for(var T=this.type.isLoop?"loop":this.type===f._switch?"switch":null,w=this.labels.length-1;w>=0;w--){var l=this.labels[w];if(l.statementStart===t.start)l.statementStart=this.start,l.kind=T;else break}return this.labels.push({name:i,kind:T,statementStart:this.start}),t.body=this.parseStatement(u?u.indexOf("label")===-1?u+"label":u:"label"),this.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")};q.parseExpressionStatement=function(t,i){return t.expression=i,this.semicolon(),this.finishNode(t,"ExpressionStatement")};q.parseBlock=function(t,i,n){for(t===void 0&&(t=!0),i===void 0&&(i=this.startNode()),i.body=[],this.expect(f.braceL),t&&this.enterScope(0);this.type!==f.braceR;){var u=this.parseStatement(null);i.body.push(u)}return n&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(i,"BlockStatement")};q.parseFor=function(t,i){return t.init=i,this.expect(f.semi),t.test=this.type===f.semi?null:this.parseExpression(),this.expect(f.semi),t.update=this.type===f.parenR?null:this.parseExpression(),this.expect(f.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")};q.parseForIn=function(t,i){var n=this.type===f._in;return this.next(),i.type==="VariableDeclaration"&&i.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||i.kind!=="var"||i.declarations[0].id.type!=="Identifier")&&this.raise(i.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=i,t.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(f.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,n?"ForInStatement":"ForOfStatement")};q.parseVar=function(t,i,n,u){for(t.declarations=[],t.kind=n;;){var p=this.startNode();if(this.parseVarId(p,n),this.eat(f.eq)?p.init=this.parseMaybeAssign(i):!u&&n==="const"&&!(this.type===f._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!u&&(n==="using"||n==="await using")&&this.options.ecmaVersion>=17&&this.type!==f._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):!u&&p.id.type!=="Identifier"&&!(i&&(this.type===f._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):p.init=null,t.declarations.push(this.finishNode(p,"VariableDeclarator")),!this.eat(f.comma))break}return t};q.parseVarId=function(t,i){t.id=i==="using"||i==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(t.id,i==="var"?Ai:$t,!1)};var we=1,yi=2,_s=4;q.parseFunction=function(t,i,n,u,p){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!u)&&(this.type===f.star&&i&yi&&this.unexpected(),t.generator=this.eat(f.star)),this.options.ecmaVersion>=8&&(t.async=!!u),i&we&&(t.id=i&_s&&this.type!==f.name?null:this.parseIdent(),t.id&&!(i&yi)&&this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?Ai:$t:Cs));var g=this.yieldPos,b=this.awaitPos,T=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ki(t.async,t.generator)),i&we||(t.id=this.type===f.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,n,!1,p),this.yieldPos=g,this.awaitPos=b,this.awaitIdentPos=T,this.finishNode(t,i&we?"FunctionDeclaration":"FunctionExpression")};q.parseFunctionParams=function(t){this.expect(f.parenL),t.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};q.parseClass=function(t,i){this.next();var n=this.strict;this.strict=!0,this.parseClassId(t,i),this.parseClassSuper(t);var u=this.enterClassBody(),p=this.startNode(),g=!1;for(p.body=[],this.expect(f.braceL);this.type!==f.braceR;){var b=this.parseClassElement(t.superClass!==null);b&&(p.body.push(b),b.type==="MethodDefinition"&&b.kind==="constructor"?(g&&this.raiseRecoverable(b.start,"Duplicate constructor in the same class"),g=!0):b.key&&b.key.type==="PrivateIdentifier"&&ha(u,b)&&this.raiseRecoverable(b.key.start,"Identifier '#"+b.key.name+"' has already been declared"))}return this.strict=n,this.next(),t.body=this.finishNode(p,"ClassBody"),this.exitClassBody(),this.finishNode(t,i?"ClassDeclaration":"ClassExpression")};q.parseClassElement=function(t){if(this.eat(f.semi))return null;var i=this.options.ecmaVersion,n=this.startNode(),u="",p=!1,g=!1,b="method",T=!1;if(this.eatContextual("static")){if(i>=13&&this.eat(f.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===f.star?T=!0:u="static"}if(n.static=T,!u&&i>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===f.star)&&!this.canInsertSemicolon()?g=!0:u="async"),!u&&(i>=9||!g)&&this.eat(f.star)&&(p=!0),!u&&!g&&!p){var w=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?b=w:u=w)}if(u?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=u,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),i<13||this.type===f.parenL||b!=="method"||p||g){var l=!n.static&&Xe(n,"constructor"),W=l&&t;l&&b!=="method"&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=l?"constructor":b,this.parseClassMethod(n,p,g,W)}else this.parseClassField(n);return n};q.isClassElementNameStart=function(){return this.type===f.name||this.type===f.privateId||this.type===f.num||this.type===f.string||this.type===f.bracketL||this.type.keyword};q.parseClassElementName=function(t){this.type===f.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)};q.parseClassMethod=function(t,i,n,u){var p=t.key;t.kind==="constructor"?(i&&this.raise(p.start,"Constructor can't be a generator"),n&&this.raise(p.start,"Constructor can't be an async method")):t.static&&Xe(t,"prototype")&&this.raise(p.start,"Classes may not have a static property named prototype");var g=t.value=this.parseMethod(i,n,u);return t.kind==="get"&&g.params.length!==0&&this.raiseRecoverable(g.start,"getter should have no params"),t.kind==="set"&&g.params.length!==1&&this.raiseRecoverable(g.start,"setter should have exactly one param"),t.kind==="set"&&g.params[0].type==="RestElement"&&this.raiseRecoverable(g.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")};q.parseClassField=function(t){return Xe(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&Xe(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(f.eq)?(this.enterScope(Ee|Ye),t.value=this.parseMaybeAssign(),this.exitScope()):t.value=null,this.semicolon(),this.finishNode(t,"PropertyDefinition")};q.parseClassStaticBlock=function(t){t.body=[];var i=this.labels;for(this.labels=[],this.enterScope(ce|Ye);this.type!==f.braceR;){var n=this.parseStatement(null);t.body.push(n)}return this.next(),this.exitScope(),this.labels=i,this.finishNode(t,"StaticBlock")};q.parseClassId=function(t,i){this.type===f.name?(t.id=this.parseIdent(),i&&this.checkLValSimple(t.id,$t,!1)):(i===!0&&this.unexpected(),t.id=null)};q.parseClassSuper=function(t){t.superClass=this.eat(f._extends)?this.parseExprSubscripts(null,!1):null};q.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared};q.exitClassBody=function(){var t=this.privateNameStack.pop(),i=t.declared,n=t.used;if(this.options.checkPrivateFields)for(var u=this.privateNameStack.length,p=u===0?null:this.privateNameStack[u-1],g=0;g<n.length;++g){var b=n[g];ye(i,b.name)||(p?p.used.push(b):this.raiseRecoverable(b.start,"Private field '#"+b.name+"' must be declared in an enclosing class"))}};function ha(t,i){var n=i.key.name,u=t[n],p="true";return i.type==="MethodDefinition"&&(i.kind==="get"||i.kind==="set")&&(p=(i.static?"s":"i")+i.kind),u==="iget"&&p==="iset"||u==="iset"&&p==="iget"||u==="sget"&&p==="sset"||u==="sset"&&p==="sget"?(t[n]="true",!1):u?!0:(t[n]=p,!1)}function Xe(t,i){var n=t.computed,u=t.key;return!n&&(u.type==="Identifier"&&u.name===i||u.type==="Literal"&&u.value===i)}q.parseExportAllDeclaration=function(t,i){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(i,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==f.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")};q.parseExport=function(t,i){if(this.next(),this.eat(f.star))return this.parseExportAllDeclaration(t,i);if(this.eat(f._default))return this.checkExport(i,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),t.declaration.type==="VariableDeclaration"?this.checkVariableExport(i,t.declaration.declarations):this.checkExport(i,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[]);else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(i),this.eatContextual("from"))this.type!==f.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause());else{for(var n=0,u=t.specifiers;n<u.length;n+=1){var p=u[n];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`.")}t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[])}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")};q.parseExportDeclaration=function(t){return this.parseStatement(null)};q.parseExportDefaultDeclaration=function(){var t;if(this.type===f._function||(t=this.isAsyncFunction())){var i=this.startNode();return this.next(),t&&this.next(),this.parseFunction(i,we|_s,!1,t)}else if(this.type===f._class){var n=this.startNode();return this.parseClass(n,"nullableID")}else{var u=this.parseMaybeAssign();return this.semicolon(),u}};q.checkExport=function(t,i,n){t&&(typeof i!="string"&&(i=i.type==="Identifier"?i.name:i.value),ye(t,i)&&this.raiseRecoverable(n,"Duplicate export '"+i+"'"),t[i]=!0)};q.checkPatternExport=function(t,i){var n=i.type;if(n==="Identifier")this.checkExport(t,i,i.start);else if(n==="ObjectPattern")for(var u=0,p=i.properties;u<p.length;u+=1){var g=p[u];this.checkPatternExport(t,g)}else if(n==="ArrayPattern")for(var b=0,T=i.elements;b<T.length;b+=1){var w=T[b];w&&this.checkPatternExport(t,w)}else n==="Property"?this.checkPatternExport(t,i.value):n==="AssignmentPattern"?this.checkPatternExport(t,i.left):n==="RestElement"&&this.checkPatternExport(t,i.argument)};q.checkVariableExport=function(t,i){if(t)for(var n=0,u=i;n<u.length;n+=1){var p=u[n];this.checkPatternExport(t,p.id)}};q.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};q.parseExportSpecifier=function(t){var i=this.startNode();return i.local=this.parseModuleExportName(),i.exported=this.eatContextual("as")?this.parseModuleExportName():i.local,this.checkExport(t,i.exported,i.exported.start),this.finishNode(i,"ExportSpecifier")};q.parseExportSpecifiers=function(t){var i=[],n=!0;for(this.expect(f.braceL);!this.eat(f.braceR);){if(n)n=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;i.push(this.parseExportSpecifier(t))}return i};q.parseImport=function(t){return this.next(),this.type===f.string?(t.specifiers=ua,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===f.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")};q.parseImportSpecifier=function(){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.eatContextual("as")?t.local=this.parseIdent():(this.checkUnreserved(t.imported),t.local=t.imported),this.checkLValSimple(t.local,$t),this.finishNode(t,"ImportSpecifier")};q.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,$t),this.finishNode(t,"ImportDefaultSpecifier")};q.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,$t),this.finishNode(t,"ImportNamespaceSpecifier")};q.parseImportSpecifiers=function(){var t=[],i=!0;if(this.type===f.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(f.comma)))return t;if(this.type===f.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(f.braceL);!this.eat(f.braceR);){if(i)i=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;t.push(this.parseImportSpecifier())}return t};q.parseWithClause=function(){var t=[];if(!this.eat(f._with))return t;this.expect(f.braceL);for(var i={},n=!0;!this.eat(f.braceR);){if(n)n=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;var u=this.parseImportAttribute(),p=u.key.type==="Identifier"?u.key.name:u.key.value;ye(i,p)&&this.raiseRecoverable(u.key.start,"Duplicate attribute key '"+p+"'"),i[p]=!0,t.push(u)}return t};q.parseImportAttribute=function(){var t=this.startNode();return t.key=this.type===f.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(f.colon),this.type!==f.string&&this.unexpected(),t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")};q.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===f.string){var t=this.parseLiteral(this.value);return sa.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)};q.adaptDirectivePrologue=function(t){for(var i=0;i<t.length&&this.isDirectiveCandidate(t[i]);++i)t[i].directive=t[i].expression.raw.slice(1,-1)};q.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 Ht=dt.prototype;Ht.toAssignable=function(t,i,n){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":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":t.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var u=0,p=t.properties;u<p.length;u+=1){var g=p[u];this.toAssignable(g,i),g.type==="RestElement"&&(g.argument.type==="ArrayPattern"||g.argument.type==="ObjectPattern")&&this.raise(g.argument.start,"Unexpected token")}break;case"Property":t.kind!=="init"&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,i);break;case"ArrayExpression":t.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(t.elements,i);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,i),t.argument.type==="AssignmentPattern"&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":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,i);break;case"ParenthesizedExpression":this.toAssignable(t.expression,i,n);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!i)break;default:this.raise(t.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return t};Ht.toAssignableList=function(t,i){for(var n=t.length,u=0;u<n;u++){var p=t[u];p&&this.toAssignable(p,i)}if(n){var g=t[n-1];this.options.ecmaVersion===6&&i&&g&&g.type==="RestElement"&&g.argument.type!=="Identifier"&&this.unexpected(g.argument.start)}return t};Ht.parseSpread=function(t){var i=this.startNode();return this.next(),i.argument=this.parseMaybeAssign(!1,t),this.finishNode(i,"SpreadElement")};Ht.parseRestBinding=function(){var t=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==f.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")};Ht.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case f.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(f.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case f.braceL:return this.parseObj(!0)}return this.parseIdent()};Ht.parseBindingList=function(t,i,n,u){for(var p=[],g=!0;!this.eat(t);)if(g?g=!1:this.expect(f.comma),i&&this.type===f.comma)p.push(null);else{if(n&&this.afterTrailingComma(t))break;if(this.type===f.ellipsis){var b=this.parseRestBinding();this.parseBindingListItem(b),p.push(b),this.type===f.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};Ht.parseAssignableListItem=function(t){var i=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(i),i};Ht.parseBindingListItem=function(t){return t};Ht.parseMaybeDefault=function(t,i,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(f.eq))return n;var u=this.startNodeAt(t,i);return u.left=n,u.right=this.parseMaybeAssign(),this.finishNode(u,"AssignmentPattern")};Ht.checkLValSimple=function(t,i,n){i===void 0&&(i=Ke);var u=i!==Ke;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(u?"Binding ":"Assigning to ")+t.name+" in strict mode"),u&&(i===$t&&t.name==="let"&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),n&&(ye(n,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),n[t.name]=!0),i!==As&&this.declareName(t.name,i,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":u&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return u&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,i,n);default:this.raise(t.start,(u?"Binding":"Assigning to")+" rvalue")}};Ht.checkLValPattern=function(t,i,n){switch(i===void 0&&(i=Ke),t.type){case"ObjectPattern":for(var u=0,p=t.properties;u<p.length;u+=1){var g=p[u];this.checkLValInnerPattern(g,i,n)}break;case"ArrayPattern":for(var b=0,T=t.elements;b<T.length;b+=1){var w=T[b];w&&this.checkLValInnerPattern(w,i,n)}break;default:this.checkLValSimple(t,i,n)}};Ht.checkLValInnerPattern=function(t,i,n){switch(i===void 0&&(i=Ke),t.type){case"Property":this.checkLValInnerPattern(t.value,i,n);break;case"AssignmentPattern":this.checkLValPattern(t.left,i,n);break;case"RestElement":this.checkLValPattern(t.argument,i,n);break;default:this.checkLValPattern(t,i,n)}};var Tt=function(i,n,u,p,g){this.token=i,this.isExpr=!!n,this.preserveSpace=!!u,this.override=p,this.generator=!!g},ft={b_stat:new Tt("{",!1),b_expr:new Tt("{",!0),b_tmpl:new Tt("${",!1),p_stat:new Tt("(",!1),p_expr:new Tt("(",!0),q_tmpl:new Tt("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new Tt("function",!1),f_expr:new Tt("function",!0),f_expr_gen:new Tt("function",!0,!1,null,!0),f_gen:new Tt("function",!1,!1,null,!0)},ve=dt.prototype;ve.initialContext=function(){return[ft.b_stat]};ve.curContext=function(){return this.context[this.context.length-1]};ve.braceIsBlock=function(t){var i=this.curContext();return i===ft.f_expr||i===ft.f_stat?!0:t===f.colon&&(i===ft.b_stat||i===ft.b_expr)?!i.isExpr:t===f._return||t===f.name&&this.exprAllowed?Pt.test(this.input.slice(this.lastTokEnd,this.start)):t===f._else||t===f.semi||t===f.eof||t===f.parenR||t===f.arrow?!0:t===f.braceL?i===ft.b_stat:t===f._var||t===f._const||t===f.name?!1:!this.exprAllowed};ve.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var i=this.context[t];if(i.token==="function")return i.generator}return!1};ve.updateContext=function(t){var i,n=this.type;n.keyword&&t===f.dot?this.exprAllowed=!1:(i=n.updateContext)?i.call(this,t):this.exprAllowed=n.beforeExpr};ve.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)};f.parenR.updateContext=f.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var t=this.context.pop();t===ft.b_stat&&this.curContext().token==="function"&&(t=this.context.pop()),this.exprAllowed=!t.isExpr};f.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?ft.b_stat:ft.b_expr),this.exprAllowed=!0};f.dollarBraceL.updateContext=function(){this.context.push(ft.b_tmpl),this.exprAllowed=!0};f.parenL.updateContext=function(t){var i=t===f._if||t===f._for||t===f._with||t===f._while;this.context.push(i?ft.p_stat:ft.p_expr),this.exprAllowed=!0};f.incDec.updateContext=function(){};f._function.updateContext=f._class.updateContext=function(t){t.beforeExpr&&t!==f._else&&!(t===f.semi&&this.curContext()!==ft.p_stat)&&!(t===f._return&&Pt.test(this.input.slice(this.lastTokEnd,this.start)))&&!((t===f.colon||t===f.braceL)&&this.curContext()===ft.b_stat)?this.context.push(ft.f_expr):this.context.push(ft.f_stat),this.exprAllowed=!1};f.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};f.backQuote.updateContext=function(){this.curContext()===ft.q_tmpl?this.context.pop():this.context.push(ft.q_tmpl),this.exprAllowed=!1};f.star.updateContext=function(t){if(t===f._function){var i=this.context.length-1;this.context[i]===ft.f_expr?this.context[i]=ft.f_expr_gen:this.context[i]=ft.f_gen}this.exprAllowed=!0};f.name.updateContext=function(t){var i=!1;this.options.ecmaVersion>=6&&t!==f.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(i=!0),this.exprAllowed=i};var J=dt.prototype;J.checkPropClash=function(t,i,n){if(!(this.options.ecmaVersion>=9&&t.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var u=t.key,p;switch(u.type){case"Identifier":p=u.name;break;case"Literal":p=String(u.value);break;default:return}var g=t.kind;if(this.options.ecmaVersion>=6){p==="__proto__"&&g==="init"&&(i.proto&&(n?n.doubleProto<0&&(n.doubleProto=u.start):this.raiseRecoverable(u.start,"Redefinition of __proto__ property")),i.proto=!0);return}p="$"+p;var b=i[p];if(b){var T;g==="init"?T=this.strict&&b.init||b.get||b.set:T=b.init||b[g],T&&this.raiseRecoverable(u.start,"Redefinition of property")}else b=i[p]={init:!1,get:!1,set:!1};b[g]=!0}};J.parseExpression=function(t,i){var n=this.start,u=this.startLoc,p=this.parseMaybeAssign(t,i);if(this.type===f.comma){var g=this.startNodeAt(n,u);for(g.expressions=[p];this.eat(f.comma);)g.expressions.push(this.parseMaybeAssign(t,i));return this.finishNode(g,"SequenceExpression")}return p};J.parseMaybeAssign=function(t,i,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var u=!1,p=-1,g=-1,b=-1;i?(p=i.parenthesizedAssign,g=i.trailingComma,b=i.doubleProto,i.parenthesizedAssign=i.trailingComma=-1):(i=new $e,u=!0);var T=this.start,w=this.startLoc;(this.type===f.parenL||this.type===f.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=t==="await");var l=this.parseMaybeConditional(t,i);if(n&&(l=n.call(this,l,T,w)),this.type.isAssign){var W=this.startNodeAt(T,w);return W.operator=this.value,this.type===f.eq&&(l=this.toAssignable(l,!1,i)),u||(i.parenthesizedAssign=i.trailingComma=i.doubleProto=-1),i.shorthandAssign>=l.start&&(i.shorthandAssign=-1),this.type===f.eq?this.checkLValPattern(l):this.checkLValSimple(l),W.left=l,this.next(),W.right=this.parseMaybeAssign(t),b>-1&&(i.doubleProto=b),this.finishNode(W,"AssignmentExpression")}else u&&this.checkExpressionErrors(i,!0);return p>-1&&(i.parenthesizedAssign=p),g>-1&&(i.trailingComma=g),l};J.parseMaybeConditional=function(t,i){var n=this.start,u=this.startLoc,p=this.parseExprOps(t,i);if(this.checkExpressionErrors(i))return p;if(this.eat(f.question)){var g=this.startNodeAt(n,u);return g.test=p,g.consequent=this.parseMaybeAssign(),this.expect(f.colon),g.alternate=this.parseMaybeAssign(t),this.finishNode(g,"ConditionalExpression")}return p};J.parseExprOps=function(t,i){var n=this.start,u=this.startLoc,p=this.parseMaybeUnary(i,!1,!1,t);return this.checkExpressionErrors(i)||p.start===n&&p.type==="ArrowFunctionExpression"?p:this.parseExprOp(p,n,u,-1,t)};J.parseExprOp=function(t,i,n,u,p){var g=this.type.binop;if(g!=null&&(!p||this.type!==f._in)&&g>u){var b=this.type===f.logicalOR||this.type===f.logicalAND,T=this.type===f.coalesce;T&&(g=f.logicalAND.binop);var w=this.value;this.next();var l=this.start,W=this.startLoc,Y=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,p),l,W,g,p),tt=this.buildBinary(i,n,t,Y,w,b||T);return(b&&this.type===f.coalesce||T&&(this.type===f.logicalOR||this.type===f.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(tt,i,n,u,p)}return t};J.buildBinary=function(t,i,n,u,p,g){u.type==="PrivateIdentifier"&&this.raise(u.start,"Private identifier can only be left side of binary expression");var b=this.startNodeAt(t,i);return b.left=n,b.operator=p,b.right=u,this.finishNode(b,g?"LogicalExpression":"BinaryExpression")};J.parseMaybeUnary=function(t,i,n,u){var p=this.start,g=this.startLoc,b;if(this.isContextual("await")&&this.canAwait)b=this.parseAwait(u),i=!0;else if(this.type.prefix){var T=this.startNode(),w=this.type===f.incDec;T.operator=this.value,T.prefix=!0,this.next(),T.argument=this.parseMaybeUnary(null,!0,w,u),this.checkExpressionErrors(t,!0),w?this.checkLValSimple(T.argument):this.strict&&T.operator==="delete"&&Ts(T.argument)?this.raiseRecoverable(T.start,"Deleting local variable in strict mode"):T.operator==="delete"&&vi(T.argument)?this.raiseRecoverable(T.start,"Private fields can not be deleted"):i=!0,b=this.finishNode(T,w?"UpdateExpression":"UnaryExpression")}else if(!i&&this.type===f.privateId)(u||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),b=this.parsePrivateIdent(),this.type!==f._in&&this.unexpected();else{if(b=this.parseExprSubscripts(t,u),this.checkExpressionErrors(t))return b;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(p,g);l.operator=this.value,l.prefix=!1,l.argument=b,this.checkLValSimple(b),this.next(),b=this.finishNode(l,"UpdateExpression")}}if(!n&&this.eat(f.starstar))if(i)this.unexpected(this.lastTokStart);else return this.buildBinary(p,g,b,this.parseMaybeUnary(null,!1,!1,u),"**",!1);else return b};function Ts(t){return t.type==="Identifier"||t.type==="ParenthesizedExpression"&&Ts(t.expression)}function vi(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&vi(t.expression)||t.type==="ParenthesizedExpression"&&vi(t.expression)}J.parseExprSubscripts=function(t,i){var n=this.start,u=this.startLoc,p=this.parseExprAtom(t,i);if(p.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return p;var g=this.parseSubscripts(p,n,u,!1,i);return t&&g.type==="MemberExpression"&&(t.parenthesizedAssign>=g.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=g.start&&(t.parenthesizedBind=-1),t.trailingComma>=g.start&&(t.trailingComma=-1)),g};J.parseSubscripts=function(t,i,n,u,p){for(var g=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,b=!1;;){var T=this.parseSubscript(t,i,n,u,g,b,p);if(T.optional&&(b=!0),T===t||T.type==="ArrowFunctionExpression"){if(b){var w=this.startNodeAt(i,n);w.expression=T,T=this.finishNode(w,"ChainExpression")}return T}t=T}};J.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(f.arrow)};J.parseSubscriptAsyncArrow=function(t,i,n,u){return this.parseArrowExpression(this.startNodeAt(t,i),n,!0,u)};J.parseSubscript=function(t,i,n,u,p,g,b){var T=this.options.ecmaVersion>=11,w=T&&this.eat(f.questionDot);u&&w&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(f.bracketL);if(l||w&&this.type!==f.parenL&&this.type!==f.backQuote||this.eat(f.dot)){var W=this.startNodeAt(i,n);W.object=t,l?(W.property=this.parseExpression(),this.expect(f.bracketR)):this.type===f.privateId&&t.type!=="Super"?W.property=this.parsePrivateIdent():W.property=this.parseIdent(this.options.allowReserved!=="never"),W.computed=!!l,T&&(W.optional=w),t=this.finishNode(W,"MemberExpression")}else if(!u&&this.eat(f.parenL)){var Y=new $e,tt=this.yieldPos,E=this.awaitPos,N=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var D=this.parseExprList(f.parenR,this.options.ecmaVersion>=8,!1,Y);if(p&&!w&&this.shouldParseAsyncArrow())return this.checkPatternErrors(Y,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=tt,this.awaitPos=E,this.awaitIdentPos=N,this.parseSubscriptAsyncArrow(i,n,D,b);this.checkExpressionErrors(Y,!0),this.yieldPos=tt||this.yieldPos,this.awaitPos=E||this.awaitPos,this.awaitIdentPos=N||this.awaitIdentPos;var I=this.startNodeAt(i,n);I.callee=t,I.arguments=D,T&&(I.optional=w),t=this.finishNode(I,"CallExpression")}else if(this.type===f.backQuote){(w||g)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var Q=this.startNodeAt(i,n);Q.tag=t,Q.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(Q,"TaggedTemplateExpression")}return t};J.parseExprAtom=function(t,i,n){this.type===f.slash&&this.readRegexp();var u,p=this.potentialArrowAt===this.start;switch(this.type){case f._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),u=this.startNode(),this.next(),this.type===f.parenL&&!this.allowDirectSuper&&this.raise(u.start,"super() call outside constructor of a subclass"),this.type!==f.dot&&this.type!==f.bracketL&&this.type!==f.parenL&&this.unexpected(),this.finishNode(u,"Super");case f._this:return u=this.startNode(),this.next(),this.finishNode(u,"ThisExpression");case f.name:var g=this.start,b=this.startLoc,T=this.containsEsc,w=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!T&&w.name==="async"&&!this.canInsertSemicolon()&&this.eat(f._function))return this.overrideContext(ft.f_expr),this.parseFunction(this.startNodeAt(g,b),0,!1,!0,i);if(p&&!this.canInsertSemicolon()){if(this.eat(f.arrow))return this.parseArrowExpression(this.startNodeAt(g,b),[w],!1,i);if(this.options.ecmaVersion>=8&&w.name==="async"&&this.type===f.name&&!T&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return w=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(f.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(g,b),[w],!0,i)}return w;case f.regexp:var l=this.value;return u=this.parseLiteral(l.value),u.regex={pattern:l.pattern,flags:l.flags},u;case f.num:case f.string:return this.parseLiteral(this.value);case f._null:case f._true:case f._false:return u=this.startNode(),u.value=this.type===f._null?null:this.type===f._true,u.raw=this.type.keyword,this.next(),this.finishNode(u,"Literal");case f.parenL:var W=this.start,Y=this.parseParenAndDistinguishExpression(p,i);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(Y)&&(t.parenthesizedAssign=W),t.parenthesizedBind<0&&(t.parenthesizedBind=W)),Y;case f.bracketL:return u=this.startNode(),this.next(),u.elements=this.parseExprList(f.bracketR,!0,!0,t),this.finishNode(u,"ArrayExpression");case f.braceL:return this.overrideContext(ft.b_expr),this.parseObj(!1,t);case f._function:return u=this.startNode(),this.next(),this.parseFunction(u,0);case f._class:return this.parseClass(this.startNode(),!1);case f._new:return this.parseNew();case f.backQuote:return this.parseTemplate();case f._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}};J.parseExprAtomDefault=function(){this.unexpected()};J.parseExprImport=function(t){var i=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===f.parenL&&!t)return this.parseDynamicImport(i);if(this.type===f.dot){var n=this.startNodeAt(i.start,i.loc&&i.loc.start);return n.name="import",i.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(i)}else this.unexpected()};J.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(f.parenR)?t.options=null:(this.expect(f.comma),this.afterTrailingComma(f.parenR)?t.options=null:(t.options=this.parseMaybeAssign(),this.eat(f.parenR)||(this.expect(f.comma),this.afterTrailingComma(f.parenR)||this.unexpected())));else if(!this.eat(f.parenR)){var i=this.start;this.eat(f.comma)&&this.eat(f.parenR)?this.raiseRecoverable(i,"Trailing comma is not allowed in import()"):this.unexpected(i)}return this.finishNode(t,"ImportExpression")};J.parseImportMeta=function(t){this.next();var i=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="meta"&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),i&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")};J.parseLiteral=function(t){var i=this.startNode();return i.value=t,i.raw=this.input.slice(this.start,this.end),i.raw.charCodeAt(i.raw.length-1)===110&&(i.bigint=i.value!=null?i.value.toString():i.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(i,"Literal")};J.parseParenExpression=function(){this.expect(f.parenL);var t=this.parseExpression();return this.expect(f.parenR),t};J.shouldParseArrow=function(t){return!this.canInsertSemicolon()};J.parseParenAndDistinguishExpression=function(t,i){var n=this.start,u=this.startLoc,p,g=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var b=this.start,T=this.startLoc,w=[],l=!0,W=!1,Y=new $e,tt=this.yieldPos,E=this.awaitPos,N;for(this.yieldPos=0,this.awaitPos=0;this.type!==f.parenR;)if(l?l=!1:this.expect(f.comma),g&&this.afterTrailingComma(f.parenR,!0)){W=!0;break}else if(this.type===f.ellipsis){N=this.start,w.push(this.parseParenItem(this.parseRestBinding())),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else w.push(this.parseMaybeAssign(!1,Y,this.parseParenItem));var D=this.lastTokEnd,I=this.lastTokEndLoc;if(this.expect(f.parenR),t&&this.shouldParseArrow(w)&&this.eat(f.arrow))return this.checkPatternErrors(Y,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=tt,this.awaitPos=E,this.parseParenArrowList(n,u,w,i);(!w.length||W)&&this.unexpected(this.lastTokStart),N&&this.unexpected(N),this.checkExpressionErrors(Y,!0),this.yieldPos=tt||this.yieldPos,this.awaitPos=E||this.awaitPos,w.length>1?(p=this.startNodeAt(b,T),p.expressions=w,this.finishNodeAt(p,"SequenceExpression",D,I)):p=w[0]}else p=this.parseParenExpression();if(this.options.preserveParens){var Q=this.startNodeAt(n,u);return Q.expression=p,this.finishNode(Q,"ParenthesizedExpression")}else return p};J.parseParenItem=function(t){return t};J.parseParenArrowList=function(t,i,n,u){return this.parseArrowExpression(this.startNodeAt(t,i),n,!1,u)};var ca=[];J.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===f.dot){var i=this.startNodeAt(t.start,t.loc&&t.loc.start);i.name="new",t.meta=this.finishNode(i,"Identifier"),this.next();var n=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="target"&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var u=this.start,p=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),u,p,!0,!1),this.eat(f.parenL)?t.arguments=this.parseExprList(f.parenR,this.options.ecmaVersion>=8,!1):t.arguments=ca,this.finishNode(t,"NewExpression")};J.parseTemplateElement=function(t){var i=t.isTagged,n=this.startNode();return this.type===f.invalidTemplate?(i||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,`
|
|
14
14
|
`),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
15
|
-
`),cooked:this.value},this.next(),n.tail=this.type===d.backQuote,this.finishNode(n,"TemplateElement")};Q.parseTemplate=function(t){t===void 0&&(t={});var i=t.isTagged;i===void 0&&(i=!1);var n=this.startNode();this.next(),n.expressions=[];var u=this.parseTemplateElement({isTagged:i});for(n.quasis=[u];!u.tail;)this.type===d.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(d.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(d.braceR),n.quasis.push(u=this.parseTemplateElement({isTagged:i}));return this.next(),this.finishNode(n,"TemplateLiteral")};Q.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===d.name||this.type===d.num||this.type===d.string||this.type===d.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===d.star)&&!Pt.test(this.input.slice(this.lastTokEnd,this.start))};Q.parseObj=function(t,i){var n=this.startNode(),u=!0,p={};for(n.properties=[],this.next();!this.eat(d.braceR);){if(u)u=!1;else if(this.expect(d.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(d.braceR))break;var g=this.parseProperty(t,i);t||this.checkPropClash(g,p,i),n.properties.push(g)}return this.finishNode(n,t?"ObjectPattern":"ObjectExpression")};Q.parseProperty=function(t,i){var n=this.startNode(),u,p,g,b;if(this.options.ecmaVersion>=9&&this.eat(d.ellipsis))return t?(n.argument=this.parseIdent(!1),this.type===d.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(n,"RestElement")):(n.argument=this.parseMaybeAssign(!1,i),this.type===d.comma&&i&&i.trailingComma<0&&(i.trailingComma=this.start),this.finishNode(n,"SpreadElement"));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(t||i)&&(g=this.start,b=this.startLoc),t||(u=this.eat(d.star)));var T=this.containsEsc;return this.parsePropertyName(n),!t&&!T&&this.options.ecmaVersion>=8&&!u&&this.isAsyncProp(n)?(p=!0,u=this.options.ecmaVersion>=9&&this.eat(d.star),this.parsePropertyName(n)):p=!1,this.parsePropertyValue(n,t,u,p,g,b,i,T),this.finishNode(n,"Property")};Q.parseGetterSetter=function(t){var i=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=i;var n=t.kind==="get"?0:1;if(t.value.params.length!==n){var u=t.value.start;t.kind==="get"?this.raiseRecoverable(u,"getter should have no params"):this.raiseRecoverable(u,"setter should have exactly one param")}else t.kind==="set"&&t.value.params[0].type==="RestElement"&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")};Q.parsePropertyValue=function(t,i,n,u,p,g,b,T){(n||u)&&this.type===d.colon&&this.unexpected(),this.eat(d.colon)?(t.value=i?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,b),t.kind="init"):this.options.ecmaVersion>=6&&this.type===d.parenL?(i&&this.unexpected(),t.method=!0,t.value=this.parseMethod(n,u),t.kind="init"):!i&&!T&&this.options.ecmaVersion>=5&&!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.type!==d.comma&&this.type!==d.braceR&&this.type!==d.eq?((n||u)&&this.unexpected(),this.parseGetterSetter(t)):this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"?((n||u)&&this.unexpected(),this.checkUnreserved(t.key),t.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=p),i?t.value=this.parseMaybeDefault(p,g,this.copyNode(t.key)):this.type===d.eq&&b?(b.shorthandAssign<0&&(b.shorthandAssign=this.start),t.value=this.parseMaybeDefault(p,g,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):this.unexpected()};Q.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(d.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(d.bracketR),t.key;t.computed=!1}return t.key=this.type===d.num||this.type===d.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};Q.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)};Q.parseMethod=function(t,i,n){var u=this.startNode(),p=this.yieldPos,g=this.awaitPos,b=this.awaitIdentPos;return this.initFunction(u),this.options.ecmaVersion>=6&&(u.generator=t),this.options.ecmaVersion>=8&&(u.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ki(i,u.generator)|Ye|(n?Ss:0)),this.expect(d.parenL),u.params=this.parseBindingList(d.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(u,!1,!0,!1),this.yieldPos=p,this.awaitPos=g,this.awaitIdentPos=b,this.finishNode(u,"FunctionExpression")};Q.parseArrowExpression=function(t,i,n,u){var p=this.yieldPos,g=this.awaitPos,b=this.awaitIdentPos;return this.enterScope(ki(n,!1)|Ci),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(i,!0),this.parseFunctionBody(t,!0,!1,u),this.yieldPos=p,this.awaitPos=g,this.awaitIdentPos=b,this.finishNode(t,"ArrowFunctionExpression")};Q.parseFunctionBody=function(t,i,n,u){var p=i&&this.type!==d.braceL,g=this.strict,b=!1;if(p)t.body=this.parseMaybeAssign(u),t.expression=!0,this.checkParams(t,!1);else{var T=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!g||T)&&(b=this.strictDirective(this.end),b&&T&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var w=this.labels;this.labels=[],b&&(this.strict=!0),this.checkParams(t,!g&&!b&&!i&&!n&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,_s),t.body=this.parseBlock(!1,void 0,b&&!g),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=w}this.exitScope()};Q.isSimpleParamList=function(t){for(var i=0,n=t;i<n.length;i+=1){var u=n[i];if(u.type!=="Identifier")return!1}return!0};Q.checkParams=function(t,i){for(var n=Object.create(null),u=0,p=t.params;u<p.length;u+=1){var g=p[u];this.checkLValInnerPattern(g,Ai,i?null:n)}};Q.parseExprList=function(t,i,n,u){for(var p=[],g=!0;!this.eat(t);){if(g)g=!1;else if(this.expect(d.comma),i&&this.afterTrailingComma(t))break;var b=void 0;n&&this.type===d.comma?b=null:this.type===d.ellipsis?(b=this.parseSpread(u),u&&this.type===d.comma&&u.trailingComma<0&&(u.trailingComma=this.start)):b=this.parseMaybeAssign(!1,u),p.push(b)}return p};Q.checkUnreserved=function(t){var i=t.start,n=t.end,u=t.name;if(this.inGenerator&&u==="yield"&&this.raiseRecoverable(i,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&u==="await"&&this.raiseRecoverable(i,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Ze)&&u==="arguments"&&this.raiseRecoverable(i,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(u==="arguments"||u==="await")&&this.raise(i,"Cannot use "+u+" in class static initialization block"),this.keywords.test(u)&&this.raise(i,"Unexpected keyword '"+u+"'"),!(this.options.ecmaVersion<6&&this.input.slice(i,n).indexOf("\\")!==-1)){var p=this.strict?this.reservedWordsStrict:this.reservedWords;p.test(u)&&(!this.inAsync&&u==="await"&&this.raiseRecoverable(i,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(i,"The keyword '"+u+"' is reserved"))}};Q.parseIdent=function(t){var i=this.parseIdentNode();return this.next(!!t),this.finishNode(i,"Identifier"),t||(this.checkUnreserved(i),i.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i.start)),i};Q.parseIdentNode=function(){var t=this.startNode();return this.type===d.name?t.name=this.value:this.type.keyword?(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=d.name):this.unexpected(),t};Q.parsePrivateIdent=function(){var t=this.startNode();return this.type===d.privateId?t.name=this.value:this.unexpected(),this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(t)),t};Q.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var i=this.startNode();return this.next(),this.type===d.semi||this.canInsertSemicolon()||this.type!==d.star&&!this.type.startsExpr?(i.delegate=!1,i.argument=null):(i.delegate=this.eat(d.star),i.argument=this.parseMaybeAssign(t)),this.finishNode(i,"YieldExpression")};Q.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var i=this.startNode();return this.next(),i.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(i,"AwaitExpression")};var Je=dt.prototype;Je.raise=function(t,i){var n=bi(this.input,t);i+=" ("+n.line+":"+n.column+")",this.sourceFile&&(i+=" in "+this.sourceFile);var u=new SyntaxError(i);throw u.pos=t,u.loc=n,u.raisedAt=this.pos,u};Je.raiseRecoverable=Je.raise;Je.curPosition=function(){if(this.options.locations)return new xe(this.curLine,this.pos-this.lineStart)};var se=dt.prototype,pa=function(i){this.flags=i,this.var=[],this.lexical=[],this.functions=[]};se.enterScope=function(t){this.scopeStack.push(new pa(t))};se.exitScope=function(){this.scopeStack.pop()};se.treatFunctionsAsVarInScope=function(t){return t.flags&he||!this.inModule&&t.flags&ne};se.declareName=function(t,i,n){var u=!1;if(i===$t){var p=this.currentScope();u=p.lexical.indexOf(t)>-1||p.functions.indexOf(t)>-1||p.var.indexOf(t)>-1,p.lexical.push(t),this.inModule&&p.flags&ne&&delete this.undefinedExports[t]}else if(i===As){var g=this.currentScope();g.lexical.push(t)}else if(i===ks){var b=this.currentScope();this.treatFunctionsAsVar?u=b.lexical.indexOf(t)>-1:u=b.lexical.indexOf(t)>-1||b.var.indexOf(t)>-1,b.functions.push(t)}else for(var T=this.scopeStack.length-1;T>=0;--T){var w=this.scopeStack[T];if(w.lexical.indexOf(t)>-1&&!(w.flags&bs&&w.lexical[0]===t)||!this.treatFunctionsAsVarInScope(w)&&w.functions.indexOf(t)>-1){u=!0;break}if(w.var.push(t),this.inModule&&w.flags&ne&&delete this.undefinedExports[t],w.flags&Ze)break}u&&this.raiseRecoverable(n,"Identifier '"+t+"' has already been declared")};se.checkLocalExport=function(t){this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1&&(this.undefinedExports[t.name]=t)};se.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};se.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var i=this.scopeStack[t];if(i.flags&(Ze|Ee|ce))return i}};se.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var i=this.scopeStack[t];if(i.flags&(Ze|Ee|ce)&&!(i.flags&Ci))return i}};var Ie=function(i,n,u){this.type="",this.start=n,this.end=0,i.options.locations&&(this.loc=new Pe(i,u)),i.options.directSourceFile&&(this.sourceFile=i.options.directSourceFile),i.options.ranges&&(this.range=[n,0])},Ne=dt.prototype;Ne.startNode=function(){return new Ie(this,this.start,this.startLoc)};Ne.startNodeAt=function(t,i){return new Ie(this,t,i)};function Ps(t,i,n,u){return t.type=i,t.end=n,this.options.locations&&(t.loc.end=u),this.options.ranges&&(t.range[1]=n),t}Ne.finishNode=function(t,i){return Ps.call(this,t,i,this.lastTokEnd,this.lastTokEndLoc)};Ne.finishNodeAt=function(t,i,n,u){return Ps.call(this,t,i,n,u)};Ne.copyNode=function(t){var i=new Ie(this,t.start,this.startLoc);for(var n in t)i[n]=t[n];return i};var la="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",Es="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Is=Es+" Extended_Pictographic",Ns=Is,Ls=Ns+" EBase EComp EMod EPres ExtPict",Vs=Ls,fa=Vs,da={9:Es,10:Is,11:Ns,12:Ls,13:Vs,14:fa},ma="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",xa={9:"",10:"",11:"",12:"",13:"",14:ma},ps="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Rs="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Os=Rs+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ds=Os+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ms=Ds+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Bs=Ms+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",ya=Bs+" "+la,va={9:Rs,10:Os,11:Ds,12:Ms,13:Bs,14:ya},Fs={};function ga(t){var i=Fs[t]={binary:ie(da[t]+" "+ps),binaryOfStrings:ie(xa[t]),nonBinary:{General_Category:ie(ps),Script:ie(va[t])}};i.nonBinary.Script_Extensions=i.nonBinary.Script,i.nonBinary.gc=i.nonBinary.General_Category,i.nonBinary.sc=i.nonBinary.Script,i.nonBinary.scx=i.nonBinary.Script_Extensions}for(ze=0,mi=[9,10,11,12,13,14];ze<mi.length;ze+=1)ls=mi[ze],ga(ls);var ls,ze,mi,j=dt.prototype,Qe=function(i,n){this.parent=i,this.base=n||this};Qe.prototype.separatedFrom=function(i){for(var n=this;n;n=n.parent)for(var u=i;u;u=u.parent)if(n.base===u.base&&n!==u)return!0;return!1};Qe.prototype.sibling=function(){return new Qe(this.parent,this.base)};var Kt=function(i){this.parser=i,this.validFlags="gim"+(i.options.ecmaVersion>=6?"uy":"")+(i.options.ecmaVersion>=9?"s":"")+(i.options.ecmaVersion>=13?"d":"")+(i.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Fs[i.options.ecmaVersion>=14?14:i.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Kt.prototype.reset=function(i,n,u){var p=u.indexOf("v")!==-1,g=u.indexOf("u")!==-1;this.start=i|0,this.source=n+"",this.flags=u,p&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=g&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=g&&this.parser.options.ecmaVersion>=9)};Kt.prototype.raise=function(i){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+i)};Kt.prototype.at=function(i,n){n===void 0&&(n=!1);var u=this.source,p=u.length;if(i>=p)return-1;var g=u.charCodeAt(i);if(!(n||this.switchU)||g<=55295||g>=57344||i+1>=p)return g;var b=u.charCodeAt(i+1);return b>=56320&&b<=57343?(g<<10)+b-56613888:g};Kt.prototype.nextIndex=function(i,n){n===void 0&&(n=!1);var u=this.source,p=u.length;if(i>=p)return p;var g=u.charCodeAt(i),b;return!(n||this.switchU)||g<=55295||g>=57344||i+1>=p||(b=u.charCodeAt(i+1))<56320||b>57343?i+1:i+2};Kt.prototype.current=function(i){return i===void 0&&(i=!1),this.at(this.pos,i)};Kt.prototype.lookahead=function(i){return i===void 0&&(i=!1),this.at(this.nextIndex(this.pos,i),i)};Kt.prototype.advance=function(i){i===void 0&&(i=!1),this.pos=this.nextIndex(this.pos,i)};Kt.prototype.eat=function(i,n){return n===void 0&&(n=!1),this.current(n)===i?(this.advance(n),!0):!1};Kt.prototype.eatChars=function(i,n){n===void 0&&(n=!1);for(var u=this.pos,p=0,g=i;p<g.length;p+=1){var b=g[p],T=this.at(u,n);if(T===-1||T!==b)return!1;u=this.nextIndex(u,n)}return this.pos=u,!0};j.validateRegExpFlags=function(t){for(var i=t.validFlags,n=t.flags,u=!1,p=!1,g=0;g<n.length;g++){var b=n.charAt(g);i.indexOf(b)===-1&&this.raise(t.start,"Invalid regular expression flag"),n.indexOf(b,g+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),b==="u"&&(u=!0),b==="v"&&(p=!0)}this.options.ecmaVersion>=15&&u&&p&&this.raise(t.start,"Invalid regular expression flag")};function ba(t){for(var i in t)return!0;return!1}j.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&ba(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))};j.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames=Object.create(null),t.backReferenceNames.length=0,t.branchID=null,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var i=0,n=t.backReferenceNames;i<n.length;i+=1){var u=n[i];t.groupNames[u]||t.raise("Invalid named capture referenced")}};j.regexp_disjunction=function(t){var i=this.options.ecmaVersion>=16;for(i&&(t.branchID=new Qe(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)i&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);i&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")};j.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););};j.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))?(this.regexp_eatQuantifier(t),!0):!1};j.regexp_eatAssertion=function(t){var i=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=i}if(t.eat(40)&&t.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!n,!0}return t.pos=i,!1};j.regexp_eatQuantifier=function(t,i){return i===void 0&&(i=!1),this.regexp_eatQuantifierPrefix(t,i)?(t.eat(63),!0):!1};j.regexp_eatQuantifierPrefix=function(t,i){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,i)};j.regexp_eatBracedQuantifier=function(t,i){var n=t.pos;if(t.eat(123)){var u=0,p=-1;if(this.regexp_eatDecimalDigits(t)&&(u=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(p=t.lastIntValue),t.eat(125)))return p!==-1&&p<u&&!i&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!i&&t.raise("Incomplete quantifier"),t.pos=n}return!1};j.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)};j.regexp_eatReverseSolidusAtomEscape=function(t){var i=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=i}return!1};j.regexp_eatUncapturingGroup=function(t){var i=t.pos;if(t.eat(40)){if(t.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(t),u=t.eat(45);if(n||u){for(var p=0;p<n.length;p++){var g=n.charAt(p);n.indexOf(g,p+1)>-1&&t.raise("Duplicate regular expression modifiers")}if(u){var b=this.regexp_eatModifiers(t);!n&&!b&&t.current()===58&&t.raise("Invalid regular expression modifiers");for(var T=0;T<b.length;T++){var w=b.charAt(T);(b.indexOf(w,T+1)>-1||n.indexOf(w)>-1)&&t.raise("Duplicate regular expression modifiers")}}}}if(t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}}t.pos=i}return!1};j.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):t.current()===63&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1};j.regexp_eatModifiers=function(t){for(var i="",n=0;(n=t.current())!==-1&&Sa(n);)i+=Yt(n),t.advance();return i};function Sa(t){return t===105||t===109||t===115}j.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)};j.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1};j.regexp_eatSyntaxCharacter=function(t){var i=t.current();return js(i)?(t.lastIntValue=i,t.advance(),!0):!1};function js(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}j.regexp_eatPatternCharacters=function(t){for(var i=t.pos,n=0;(n=t.current())!==-1&&!js(n);)t.advance();return t.pos!==i};j.regexp_eatExtendedPatternCharacter=function(t){var i=t.current();return i!==-1&&i!==36&&!(i>=40&&i<=43)&&i!==46&&i!==63&&i!==91&&i!==94&&i!==124?(t.advance(),!0):!1};j.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var i=this.options.ecmaVersion>=16,n=t.groupNames[t.lastStringValue];if(n)if(i)for(var u=0,p=n;u<p.length;u+=1){var g=p[u];g.separatedFrom(t.branchID)||t.raise("Duplicate capture group name")}else t.raise("Duplicate capture group name");i?(n||(t.groupNames[t.lastStringValue]=[])).push(t.branchID):t.groupNames[t.lastStringValue]=!0}};j.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1};j.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=Yt(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=Yt(t.lastIntValue);return!0}return!1};j.regexp_eatRegExpIdentifierStart=function(t){var i=t.pos,n=this.options.ecmaVersion>=11,u=t.current(n);return t.advance(n),u===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(u=t.lastIntValue),Ca(u)?(t.lastIntValue=u,!0):(t.pos=i,!1)};function Ca(t){return zt(t,!0)||t===36||t===95}j.regexp_eatRegExpIdentifierPart=function(t){var i=t.pos,n=this.options.ecmaVersion>=11,u=t.current(n);return t.advance(n),u===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(u=t.lastIntValue),ka(u)?(t.lastIntValue=u,!0):(t.pos=i,!1)};function ka(t){return Qt(t,!0)||t===36||t===95||t===8204||t===8205}j.regexp_eatAtomEscape=function(t){return this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t)?!0:(t.switchU&&(t.current()===99&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)};j.regexp_eatBackReference=function(t){var i=t.pos;if(this.regexp_eatDecimalEscape(t)){var n=t.lastIntValue;if(t.switchU)return n>t.maxBackReference&&(t.maxBackReference=n),!0;if(n<=t.numCapturingParens)return!0;t.pos=i}return!1};j.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1};j.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)};j.regexp_eatCControlLetter=function(t){var i=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=i}return!1};j.regexp_eatZero=function(t){return t.current()===48&&!ti(t.lookahead())?(t.lastIntValue=0,t.advance(),!0):!1};j.regexp_eatControlEscape=function(t){var i=t.current();return i===116?(t.lastIntValue=9,t.advance(),!0):i===110?(t.lastIntValue=10,t.advance(),!0):i===118?(t.lastIntValue=11,t.advance(),!0):i===102?(t.lastIntValue=12,t.advance(),!0):i===114?(t.lastIntValue=13,t.advance(),!0):!1};j.regexp_eatControlLetter=function(t){var i=t.current();return Us(i)?(t.lastIntValue=i%32,t.advance(),!0):!1};function Us(t){return t>=65&&t<=90||t>=97&&t<=122}j.regexp_eatRegExpUnicodeEscapeSequence=function(t,i){i===void 0&&(i=!1);var n=t.pos,u=i||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var p=t.lastIntValue;if(u&&p>=55296&&p<=56319){var g=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var b=t.lastIntValue;if(b>=56320&&b<=57343)return t.lastIntValue=(p-55296)*1024+(b-56320)+65536,!0}t.pos=g,t.lastIntValue=p}return!0}if(u&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&Aa(t.lastIntValue))return!0;u&&t.raise("Invalid unicode escape"),t.pos=n}return!1};function Aa(t){return t>=0&&t<=1114111}j.regexp_eatIdentityEscape=function(t){if(t.switchU)return this.regexp_eatSyntaxCharacter(t)?!0:t.eat(47)?(t.lastIntValue=47,!0):!1;var i=t.current();return i!==99&&(!t.switchN||i!==107)?(t.lastIntValue=i,t.advance(),!0):!1};j.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var i=t.current();if(i>=49&&i<=57){do t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();while((i=t.current())>=48&&i<=57);return!0}return!1};var qs=0,Zt=1,Ut=2;j.regexp_eatCharacterClassEscape=function(t){var i=t.current();if(_a(i))return t.lastIntValue=-1,t.advance(),Zt;var n=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((n=i===80)||i===112)){t.lastIntValue=-1,t.advance();var u;if(t.eat(123)&&(u=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return n&&u===Ut&&t.raise("Invalid property name"),u;t.raise("Invalid property name")}return qs};function _a(t){return t===100||t===68||t===115||t===83||t===119||t===87}j.regexp_eatUnicodePropertyValueExpression=function(t){var i=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var n=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var u=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,n,u),Zt}}if(t.pos=i,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var p=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,p)}return qs};j.regexp_validateUnicodePropertyNameAndValue=function(t,i,n){ye(t.unicodeProperties.nonBinary,i)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[i].test(n)||t.raise("Invalid property value")};j.regexp_validateUnicodePropertyNameOrValue=function(t,i){if(t.unicodeProperties.binary.test(i))return Zt;if(t.switchV&&t.unicodeProperties.binaryOfStrings.test(i))return Ut;t.raise("Invalid property name")};j.regexp_eatUnicodePropertyName=function(t){var i=0;for(t.lastStringValue="";Hs(i=t.current());)t.lastStringValue+=Yt(i),t.advance();return t.lastStringValue!==""};function Hs(t){return Us(t)||t===95}j.regexp_eatUnicodePropertyValue=function(t){var i=0;for(t.lastStringValue="";Ta(i=t.current());)t.lastStringValue+=Yt(i),t.advance();return t.lastStringValue!==""};function Ta(t){return Hs(t)||ti(t)}j.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)};j.regexp_eatCharacterClass=function(t){if(t.eat(91)){var i=t.eat(94),n=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),i&&n===Ut&&t.raise("Negated character class may contain strings"),!0}return!1};j.regexp_classContents=function(t){return t.current()===93?Zt:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),Zt)};j.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var i=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var n=t.lastIntValue;t.switchU&&(i===-1||n===-1)&&t.raise("Invalid character class"),i!==-1&&n!==-1&&i>n&&t.raise("Range out of order in character class")}}};j.regexp_eatClassAtom=function(t){var i=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var n=t.current();(n===99||Gs(n))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=i}var u=t.current();return u!==93?(t.lastIntValue=u,t.advance(),!0):!1};j.regexp_eatClassEscape=function(t){var i=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=i}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)};j.regexp_classSetExpression=function(t){var i=Zt,n;if(!this.regexp_eatClassSetRange(t))if(n=this.regexp_eatClassSetOperand(t)){n===Ut&&(i=Ut);for(var u=t.pos;t.eatChars([38,38]);){if(t.current()!==38&&(n=this.regexp_eatClassSetOperand(t))){n!==Ut&&(i=Zt);continue}t.raise("Invalid character in character class")}if(u!==t.pos)return i;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(u!==t.pos)return i}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(n=this.regexp_eatClassSetOperand(t),!n)return i;n===Ut&&(i=Ut)}};j.regexp_eatClassSetRange=function(t){var i=t.pos;if(this.regexp_eatClassSetCharacter(t)){var n=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var u=t.lastIntValue;return n!==-1&&u!==-1&&n>u&&t.raise("Range out of order in character class"),!0}t.pos=i}return!1};j.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?Zt:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)};j.regexp_eatNestedClass=function(t){var i=t.pos;if(t.eat(91)){var n=t.eat(94),u=this.regexp_classContents(t);if(t.eat(93))return n&&u===Ut&&t.raise("Negated character class may contain strings"),u;t.pos=i}if(t.eat(92)){var p=this.regexp_eatCharacterClassEscape(t);if(p)return p;t.pos=i}return null};j.regexp_eatClassStringDisjunction=function(t){var i=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var n=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return n}else t.raise("Invalid escape");t.pos=i}return null};j.regexp_classStringDisjunctionContents=function(t){for(var i=this.regexp_classString(t);t.eat(124);)this.regexp_classString(t)===Ut&&(i=Ut);return i};j.regexp_classString=function(t){for(var i=0;this.regexp_eatClassSetCharacter(t);)i++;return i===1?Zt:Ut};j.regexp_eatClassSetCharacter=function(t){var i=t.pos;if(t.eat(92))return this.regexp_eatCharacterEscape(t)||this.regexp_eatClassSetReservedPunctuator(t)?!0:t.eat(98)?(t.lastIntValue=8,!0):(t.pos=i,!1);var n=t.current();return n<0||n===t.lookahead()&&wa(n)||Pa(n)?!1:(t.advance(),t.lastIntValue=n,!0)};function wa(t){return t===33||t>=35&&t<=38||t>=42&&t<=44||t===46||t>=58&&t<=64||t===94||t===96||t===126}function Pa(t){return t===40||t===41||t===45||t===47||t>=91&&t<=93||t>=123&&t<=125}j.regexp_eatClassSetReservedPunctuator=function(t){var i=t.current();return Ea(i)?(t.lastIntValue=i,t.advance(),!0):!1};function Ea(t){return t===33||t===35||t===37||t===38||t===44||t===45||t>=58&&t<=62||t===64||t===96||t===126}j.regexp_eatClassControlLetter=function(t){var i=t.current();return ti(i)||i===95?(t.lastIntValue=i%32,t.advance(),!0):!1};j.regexp_eatHexEscapeSequence=function(t){var i=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=i}return!1};j.regexp_eatDecimalDigits=function(t){var i=t.pos,n=0;for(t.lastIntValue=0;ti(n=t.current());)t.lastIntValue=10*t.lastIntValue+(n-48),t.advance();return t.pos!==i};function ti(t){return t>=48&&t<=57}j.regexp_eatHexDigits=function(t){var i=t.pos,n=0;for(t.lastIntValue=0;Ws(n=t.current());)t.lastIntValue=16*t.lastIntValue+zs(n),t.advance();return t.pos!==i};function Ws(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function zs(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}j.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var n=t.lastIntValue;i<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=i*64+n*8+t.lastIntValue:t.lastIntValue=i*8+n}else t.lastIntValue=i;return!0}return!1};j.regexp_eatOctalDigit=function(t){var i=t.current();return Gs(i)?(t.lastIntValue=i-48,t.advance(),!0):(t.lastIntValue=0,!1)};function Gs(t){return t>=48&&t<=55}j.regexp_eatFixedHexDigits=function(t,i){var n=t.pos;t.lastIntValue=0;for(var u=0;u<i;++u){var p=t.current();if(!Ws(p))return t.pos=n,!1;t.lastIntValue=16*t.lastIntValue+zs(p),t.advance()}return!0};var ei=function(i){this.type=i.type,this.value=i.value,this.start=i.start,this.end=i.end,i.options.locations&&(this.loc=new Pe(i,i.startLoc,i.endLoc)),i.options.ranges&&(this.range=[i.start,i.end])},st=dt.prototype;st.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new ei(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};st.getToken=function(){return this.next(),new ei(this)};typeof Symbol<"u"&&(st[Symbol.iterator]=function(){var t=this;return{next:function(){var i=t.getToken();return{done:i.type===d.eof,value:i}}}});st.nextToken=function(){var t=this.curContext();if((!t||!t.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(d.eof);if(t.override)return t.override(this);this.readToken(this.fullCharCodeAtPos())};st.readToken=function(t){return zt(t,this.options.ecmaVersion>=6)||t===92?this.readWord():this.getTokenFromCode(t)};st.fullCharCodeAt=function(t){var i=this.input.charCodeAt(t);if(i<=55295||i>=56320)return i;var n=this.input.charCodeAt(t+1);return n<=56319||n>=57344?i:(i<<10)+n-56613888};st.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};st.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),i=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(n===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var u=void 0,p=i;(u=ys(this.input,p,this.pos))>-1;)++this.curLine,p=this.lineStart=u;this.options.onComment&&this.options.onComment(!0,this.input.slice(i+2,n),i,this.pos,t,this.curPosition())};st.skipLineComment=function(t){for(var i=this.pos,n=this.options.onComment&&this.curPosition(),u=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!ue(u);)u=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(i+t,this.pos),i,this.pos,n,this.curPosition())};st.skipSpace=function(){t:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++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&&gi.test(String.fromCharCode(t)))++this.pos;else break t}}};st.finishToken=function(t,i){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=t,this.value=i,this.updateContext(n)};st.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var i=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&t===46&&i===46?(this.pos+=3,this.finishToken(d.ellipsis)):(++this.pos,this.finishToken(d.dot))};st.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):t===61?this.finishOp(d.assign,2):this.finishOp(d.slash,1)};st.readToken_mult_modulo_exp=function(t){var i=this.input.charCodeAt(this.pos+1),n=1,u=t===42?d.star:d.modulo;return this.options.ecmaVersion>=7&&t===42&&i===42&&(++n,u=d.starstar,i=this.input.charCodeAt(this.pos+2)),i===61?this.finishOp(d.assign,n+1):this.finishOp(u,n)};st.readToken_pipe_amp=function(t){var i=this.input.charCodeAt(this.pos+1);if(i===t){if(this.options.ecmaVersion>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(d.assign,3)}return this.finishOp(t===124?d.logicalOR:d.logicalAND,2)}return i===61?this.finishOp(d.assign,2):this.finishOp(t===124?d.bitwiseOR:d.bitwiseAND,1)};st.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(d.assign,2):this.finishOp(d.bitwiseXOR,1)};st.readToken_plus_min=function(t){var i=this.input.charCodeAt(this.pos+1);return i===t?i===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Pt.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(d.incDec,2):i===61?this.finishOp(d.assign,2):this.finishOp(d.plusMin,1)};st.readToken_lt_gt=function(t){var i=this.input.charCodeAt(this.pos+1),n=1;return i===t?(n=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(d.assign,n+1):this.finishOp(d.bitShift,n)):i===33&&t===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(i===61&&(n=2),this.finishOp(d.relational,n))};st.readToken_eq_excl=function(t){var i=this.input.charCodeAt(this.pos+1);return i===61?this.finishOp(d.equality,this.input.charCodeAt(this.pos+2)===61?3:2):t===61&&i===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(d.arrow)):this.finishOp(t===61?d.eq:d.prefix,1)};st.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var i=this.input.charCodeAt(this.pos+1);if(i===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(d.questionDot,2)}if(i===63){if(t>=12){var u=this.input.charCodeAt(this.pos+2);if(u===61)return this.finishOp(d.assign,3)}return this.finishOp(d.coalesce,2)}}return this.finishOp(d.question,1)};st.readToken_numberSign=function(){var t=this.options.ecmaVersion,i=35;if(t>=13&&(++this.pos,i=this.fullCharCodeAtPos(),zt(i,!0)||i===92))return this.finishToken(d.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Yt(i)+"'")};st.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(d.parenL);case 41:return++this.pos,this.finishToken(d.parenR);case 59:return++this.pos,this.finishToken(d.semi);case 44:return++this.pos,this.finishToken(d.comma);case 91:return++this.pos,this.finishToken(d.bracketL);case 93:return++this.pos,this.finishToken(d.bracketR);case 123:return++this.pos,this.finishToken(d.braceL);case 125:return++this.pos,this.finishToken(d.braceR);case 58:return++this.pos,this.finishToken(d.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(d.backQuote);case 48:var i=this.input.charCodeAt(this.pos+1);if(i===120||i===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(i===111||i===79)return this.readRadixNumber(8);if(i===98||i===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(d.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Yt(t)+"'")};st.finishOp=function(t,i){var n=this.input.slice(this.pos,this.pos+i);return this.pos+=i,this.finishToken(t,n)};st.readRegexp=function(){for(var t,i,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var u=this.input.charAt(this.pos);if(Pt.test(u)&&this.raise(n,"Unterminated regular expression"),t)t=!1;else{if(u==="[")i=!0;else if(u==="]"&&i)i=!1;else if(u==="/"&&!i)break;t=u==="\\"}++this.pos}var p=this.input.slice(n,this.pos);++this.pos;var g=this.pos,b=this.readWord1();this.containsEsc&&this.unexpected(g);var T=this.regexpState||(this.regexpState=new Kt(this));T.reset(n,p,b),this.validateRegExpFlags(T),this.validateRegExpPattern(T);var w=null;try{w=new RegExp(p,b)}catch{}return this.finishToken(d.regexp,{pattern:p,flags:b,value:w})};st.readInt=function(t,i,n){for(var u=this.options.ecmaVersion>=12&&i===void 0,p=n&&this.input.charCodeAt(this.pos)===48,g=this.pos,b=0,T=0,w=0,l=i??1/0;w<l;++w,++this.pos){var W=this.input.charCodeAt(this.pos),Y=void 0;if(u&&W===95){p&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),T===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),w===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),T=W;continue}if(W>=97?Y=W-97+10:W>=65?Y=W-65+10:W>=48&&W<=57?Y=W-48:Y=1/0,Y>=t)break;T=W,b=b*t+Y}return u&&T===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===g||i!=null&&this.pos-g!==i?null:b};function Ia(t,i){return i?parseInt(t,8):parseFloat(t.replace(/_/g,""))}function Ks(t){return typeof BigInt!="function"?null:BigInt(t.replace(/_/g,""))}st.readRadixNumber=function(t){var i=this.pos;this.pos+=2;var n=this.readInt(t);return n==null&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=Ks(this.input.slice(i,this.pos)),++this.pos):zt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(d.num,n)};st.readNumber=function(t){var i=this.pos;!t&&this.readInt(10,void 0,!0)===null&&this.raise(i,"Invalid number");var n=this.pos-i>=2&&this.input.charCodeAt(i)===48;n&&this.strict&&this.raise(i,"Invalid number");var u=this.input.charCodeAt(this.pos);if(!n&&!t&&this.options.ecmaVersion>=11&&u===110){var p=Ks(this.input.slice(i,this.pos));return++this.pos,zt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(d.num,p)}n&&/[89]/.test(this.input.slice(i,this.pos))&&(n=!1),u===46&&!n&&(++this.pos,this.readInt(10),u=this.input.charCodeAt(this.pos)),(u===69||u===101)&&!n&&(u=this.input.charCodeAt(++this.pos),(u===43||u===45)&&++this.pos,this.readInt(10)===null&&this.raise(i,"Invalid number")),zt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var g=Ia(this.input.slice(i,this.pos),n);return this.finishToken(d.num,g)};st.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),i;if(t===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;i=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,i>1114111&&this.invalidStringToken(n,"Code point out of bounds")}else i=this.readHexChar(4);return i};st.readString=function(t){for(var i="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var u=this.input.charCodeAt(this.pos);if(u===t)break;u===92?(i+=this.input.slice(n,this.pos),i+=this.readEscapedChar(!1),n=this.pos):u===8232||u===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ue(u)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return i+=this.input.slice(n,this.pos++),this.finishToken(d.string,i)};var Xs={};st.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===Xs)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1};st.invalidStringToken=function(t,i){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Xs;this.raise(t,i)};st.readTmplToken=function(){for(var t="",i=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===d.template||this.type===d.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(d.dollarBraceL)):(++this.pos,this.finishToken(d.backQuote)):(t+=this.input.slice(i,this.pos),this.finishToken(d.template,t));if(n===92)t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!0),i=this.pos;else if(ue(n)){switch(t+=this.input.slice(i,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:t+=`
|
|
16
|
-
`;break;default:t+=String.fromCharCode(n);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),i=this.pos}else++this.pos}};st.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(
|
|
15
|
+
`),cooked:this.value},this.next(),n.tail=this.type===f.backQuote,this.finishNode(n,"TemplateElement")};J.parseTemplate=function(t){t===void 0&&(t={});var i=t.isTagged;i===void 0&&(i=!1);var n=this.startNode();this.next(),n.expressions=[];var u=this.parseTemplateElement({isTagged:i});for(n.quasis=[u];!u.tail;)this.type===f.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(f.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(f.braceR),n.quasis.push(u=this.parseTemplateElement({isTagged:i}));return this.next(),this.finishNode(n,"TemplateLiteral")};J.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===f.name||this.type===f.num||this.type===f.string||this.type===f.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===f.star)&&!Pt.test(this.input.slice(this.lastTokEnd,this.start))};J.parseObj=function(t,i){var n=this.startNode(),u=!0,p={};for(n.properties=[],this.next();!this.eat(f.braceR);){if(u)u=!1;else if(this.expect(f.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(f.braceR))break;var g=this.parseProperty(t,i);t||this.checkPropClash(g,p,i),n.properties.push(g)}return this.finishNode(n,t?"ObjectPattern":"ObjectExpression")};J.parseProperty=function(t,i){var n=this.startNode(),u,p,g,b;if(this.options.ecmaVersion>=9&&this.eat(f.ellipsis))return t?(n.argument=this.parseIdent(!1),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(n,"RestElement")):(n.argument=this.parseMaybeAssign(!1,i),this.type===f.comma&&i&&i.trailingComma<0&&(i.trailingComma=this.start),this.finishNode(n,"SpreadElement"));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(t||i)&&(g=this.start,b=this.startLoc),t||(u=this.eat(f.star)));var T=this.containsEsc;return this.parsePropertyName(n),!t&&!T&&this.options.ecmaVersion>=8&&!u&&this.isAsyncProp(n)?(p=!0,u=this.options.ecmaVersion>=9&&this.eat(f.star),this.parsePropertyName(n)):p=!1,this.parsePropertyValue(n,t,u,p,g,b,i,T),this.finishNode(n,"Property")};J.parseGetterSetter=function(t){var i=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=i;var n=t.kind==="get"?0:1;if(t.value.params.length!==n){var u=t.value.start;t.kind==="get"?this.raiseRecoverable(u,"getter should have no params"):this.raiseRecoverable(u,"setter should have exactly one param")}else t.kind==="set"&&t.value.params[0].type==="RestElement"&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")};J.parsePropertyValue=function(t,i,n,u,p,g,b,T){(n||u)&&this.type===f.colon&&this.unexpected(),this.eat(f.colon)?(t.value=i?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,b),t.kind="init"):this.options.ecmaVersion>=6&&this.type===f.parenL?(i&&this.unexpected(),t.method=!0,t.value=this.parseMethod(n,u),t.kind="init"):!i&&!T&&this.options.ecmaVersion>=5&&!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.type!==f.comma&&this.type!==f.braceR&&this.type!==f.eq?((n||u)&&this.unexpected(),this.parseGetterSetter(t)):this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"?((n||u)&&this.unexpected(),this.checkUnreserved(t.key),t.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=p),i?t.value=this.parseMaybeDefault(p,g,this.copyNode(t.key)):this.type===f.eq&&b?(b.shorthandAssign<0&&(b.shorthandAssign=this.start),t.value=this.parseMaybeDefault(p,g,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):this.unexpected()};J.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(f.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(f.bracketR),t.key;t.computed=!1}return t.key=this.type===f.num||this.type===f.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};J.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)};J.parseMethod=function(t,i,n){var u=this.startNode(),p=this.yieldPos,g=this.awaitPos,b=this.awaitIdentPos;return this.initFunction(u),this.options.ecmaVersion>=6&&(u.generator=t),this.options.ecmaVersion>=8&&(u.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ki(i,u.generator)|Ye|(n?bs:0)),this.expect(f.parenL),u.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(u,!1,!0,!1),this.yieldPos=p,this.awaitPos=g,this.awaitIdentPos=b,this.finishNode(u,"FunctionExpression")};J.parseArrowExpression=function(t,i,n,u){var p=this.yieldPos,g=this.awaitPos,b=this.awaitIdentPos;return this.enterScope(ki(n,!1)|Ci),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(i,!0),this.parseFunctionBody(t,!0,!1,u),this.yieldPos=p,this.awaitPos=g,this.awaitIdentPos=b,this.finishNode(t,"ArrowFunctionExpression")};J.parseFunctionBody=function(t,i,n,u){var p=i&&this.type!==f.braceL,g=this.strict,b=!1;if(p)t.body=this.parseMaybeAssign(u),t.expression=!0,this.checkParams(t,!1);else{var T=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!g||T)&&(b=this.strictDirective(this.end),b&&T&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var w=this.labels;this.labels=[],b&&(this.strict=!0),this.checkParams(t,!g&&!b&&!i&&!n&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,As),t.body=this.parseBlock(!1,void 0,b&&!g),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=w}this.exitScope()};J.isSimpleParamList=function(t){for(var i=0,n=t;i<n.length;i+=1){var u=n[i];if(u.type!=="Identifier")return!1}return!0};J.checkParams=function(t,i){for(var n=Object.create(null),u=0,p=t.params;u<p.length;u+=1){var g=p[u];this.checkLValInnerPattern(g,Ai,i?null:n)}};J.parseExprList=function(t,i,n,u){for(var p=[],g=!0;!this.eat(t);){if(g)g=!1;else if(this.expect(f.comma),i&&this.afterTrailingComma(t))break;var b=void 0;n&&this.type===f.comma?b=null:this.type===f.ellipsis?(b=this.parseSpread(u),u&&this.type===f.comma&&u.trailingComma<0&&(u.trailingComma=this.start)):b=this.parseMaybeAssign(!1,u),p.push(b)}return p};J.checkUnreserved=function(t){var i=t.start,n=t.end,u=t.name;if(this.inGenerator&&u==="yield"&&this.raiseRecoverable(i,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&u==="await"&&this.raiseRecoverable(i,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Ze)&&u==="arguments"&&this.raiseRecoverable(i,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(u==="arguments"||u==="await")&&this.raise(i,"Cannot use "+u+" in class static initialization block"),this.keywords.test(u)&&this.raise(i,"Unexpected keyword '"+u+"'"),!(this.options.ecmaVersion<6&&this.input.slice(i,n).indexOf("\\")!==-1)){var p=this.strict?this.reservedWordsStrict:this.reservedWords;p.test(u)&&(!this.inAsync&&u==="await"&&this.raiseRecoverable(i,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(i,"The keyword '"+u+"' is reserved"))}};J.parseIdent=function(t){var i=this.parseIdentNode();return this.next(!!t),this.finishNode(i,"Identifier"),t||(this.checkUnreserved(i),i.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i.start)),i};J.parseIdentNode=function(){var t=this.startNode();return this.type===f.name?t.name=this.value:this.type.keyword?(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=f.name):this.unexpected(),t};J.parsePrivateIdent=function(){var t=this.startNode();return this.type===f.privateId?t.name=this.value:this.unexpected(),this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(t)),t};J.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var i=this.startNode();return this.next(),this.type===f.semi||this.canInsertSemicolon()||this.type!==f.star&&!this.type.startsExpr?(i.delegate=!1,i.argument=null):(i.delegate=this.eat(f.star),i.argument=this.parseMaybeAssign(t)),this.finishNode(i,"YieldExpression")};J.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var i=this.startNode();return this.next(),i.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(i,"AwaitExpression")};var Je=dt.prototype;Je.raise=function(t,i){var n=bi(this.input,t);i+=" ("+n.line+":"+n.column+")",this.sourceFile&&(i+=" in "+this.sourceFile);var u=new SyntaxError(i);throw u.pos=t,u.loc=n,u.raisedAt=this.pos,u};Je.raiseRecoverable=Je.raise;Je.curPosition=function(){if(this.options.locations)return new xe(this.curLine,this.pos-this.lineStart)};var se=dt.prototype,pa=function(i){this.flags=i,this.var=[],this.lexical=[],this.functions=[]};se.enterScope=function(t){this.scopeStack.push(new pa(t))};se.exitScope=function(){this.scopeStack.pop()};se.treatFunctionsAsVarInScope=function(t){return t.flags&he||!this.inModule&&t.flags&ne};se.declareName=function(t,i,n){var u=!1;if(i===$t){var p=this.currentScope();u=p.lexical.indexOf(t)>-1||p.functions.indexOf(t)>-1||p.var.indexOf(t)>-1,p.lexical.push(t),this.inModule&&p.flags&ne&&delete this.undefinedExports[t]}else if(i===ks){var g=this.currentScope();g.lexical.push(t)}else if(i===Cs){var b=this.currentScope();this.treatFunctionsAsVar?u=b.lexical.indexOf(t)>-1:u=b.lexical.indexOf(t)>-1||b.var.indexOf(t)>-1,b.functions.push(t)}else for(var T=this.scopeStack.length-1;T>=0;--T){var w=this.scopeStack[T];if(w.lexical.indexOf(t)>-1&&!(w.flags&gs&&w.lexical[0]===t)||!this.treatFunctionsAsVarInScope(w)&&w.functions.indexOf(t)>-1){u=!0;break}if(w.var.push(t),this.inModule&&w.flags&ne&&delete this.undefinedExports[t],w.flags&Ze)break}u&&this.raiseRecoverable(n,"Identifier '"+t+"' has already been declared")};se.checkLocalExport=function(t){this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1&&(this.undefinedExports[t.name]=t)};se.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};se.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var i=this.scopeStack[t];if(i.flags&(Ze|Ee|ce))return i}};se.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var i=this.scopeStack[t];if(i.flags&(Ze|Ee|ce)&&!(i.flags&Ci))return i}};var Ie=function(i,n,u){this.type="",this.start=n,this.end=0,i.options.locations&&(this.loc=new Pe(i,u)),i.options.directSourceFile&&(this.sourceFile=i.options.directSourceFile),i.options.ranges&&(this.range=[n,0])},Ne=dt.prototype;Ne.startNode=function(){return new Ie(this,this.start,this.startLoc)};Ne.startNodeAt=function(t,i){return new Ie(this,t,i)};function ws(t,i,n,u){return t.type=i,t.end=n,this.options.locations&&(t.loc.end=u),this.options.ranges&&(t.range[1]=n),t}Ne.finishNode=function(t,i){return ws.call(this,t,i,this.lastTokEnd,this.lastTokEndLoc)};Ne.finishNodeAt=function(t,i,n,u){return ws.call(this,t,i,n,u)};Ne.copyNode=function(t){var i=new Ie(this,t.start,this.startLoc);for(var n in t)i[n]=t[n];return i};var la="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",Ps="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Es=Ps+" Extended_Pictographic",Is=Es,Ns=Is+" EBase EComp EMod EPres ExtPict",Ls=Ns,fa=Ls,da={9:Ps,10:Es,11:Is,12:Ns,13:Ls,14:fa},ma="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",xa={9:"",10:"",11:"",12:"",13:"",14:ma},cs="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Vs="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Rs=Vs+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Os=Rs+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ds=Os+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Ms=Ds+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",ya=Ms+" "+la,va={9:Vs,10:Rs,11:Os,12:Ds,13:Ms,14:ya},Bs={};function ga(t){var i=Bs[t]={binary:ie(da[t]+" "+cs),binaryOfStrings:ie(xa[t]),nonBinary:{General_Category:ie(cs),Script:ie(va[t])}};i.nonBinary.Script_Extensions=i.nonBinary.Script,i.nonBinary.gc=i.nonBinary.General_Category,i.nonBinary.sc=i.nonBinary.Script,i.nonBinary.scx=i.nonBinary.Script_Extensions}for(ze=0,mi=[9,10,11,12,13,14];ze<mi.length;ze+=1)ps=mi[ze],ga(ps);var ps,ze,mi,j=dt.prototype,Qe=function(i,n){this.parent=i,this.base=n||this};Qe.prototype.separatedFrom=function(i){for(var n=this;n;n=n.parent)for(var u=i;u;u=u.parent)if(n.base===u.base&&n!==u)return!0;return!1};Qe.prototype.sibling=function(){return new Qe(this.parent,this.base)};var Kt=function(i){this.parser=i,this.validFlags="gim"+(i.options.ecmaVersion>=6?"uy":"")+(i.options.ecmaVersion>=9?"s":"")+(i.options.ecmaVersion>=13?"d":"")+(i.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Bs[i.options.ecmaVersion>=14?14:i.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Kt.prototype.reset=function(i,n,u){var p=u.indexOf("v")!==-1,g=u.indexOf("u")!==-1;this.start=i|0,this.source=n+"",this.flags=u,p&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=g&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=g&&this.parser.options.ecmaVersion>=9)};Kt.prototype.raise=function(i){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+i)};Kt.prototype.at=function(i,n){n===void 0&&(n=!1);var u=this.source,p=u.length;if(i>=p)return-1;var g=u.charCodeAt(i);if(!(n||this.switchU)||g<=55295||g>=57344||i+1>=p)return g;var b=u.charCodeAt(i+1);return b>=56320&&b<=57343?(g<<10)+b-56613888:g};Kt.prototype.nextIndex=function(i,n){n===void 0&&(n=!1);var u=this.source,p=u.length;if(i>=p)return p;var g=u.charCodeAt(i),b;return!(n||this.switchU)||g<=55295||g>=57344||i+1>=p||(b=u.charCodeAt(i+1))<56320||b>57343?i+1:i+2};Kt.prototype.current=function(i){return i===void 0&&(i=!1),this.at(this.pos,i)};Kt.prototype.lookahead=function(i){return i===void 0&&(i=!1),this.at(this.nextIndex(this.pos,i),i)};Kt.prototype.advance=function(i){i===void 0&&(i=!1),this.pos=this.nextIndex(this.pos,i)};Kt.prototype.eat=function(i,n){return n===void 0&&(n=!1),this.current(n)===i?(this.advance(n),!0):!1};Kt.prototype.eatChars=function(i,n){n===void 0&&(n=!1);for(var u=this.pos,p=0,g=i;p<g.length;p+=1){var b=g[p],T=this.at(u,n);if(T===-1||T!==b)return!1;u=this.nextIndex(u,n)}return this.pos=u,!0};j.validateRegExpFlags=function(t){for(var i=t.validFlags,n=t.flags,u=!1,p=!1,g=0;g<n.length;g++){var b=n.charAt(g);i.indexOf(b)===-1&&this.raise(t.start,"Invalid regular expression flag"),n.indexOf(b,g+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),b==="u"&&(u=!0),b==="v"&&(p=!0)}this.options.ecmaVersion>=15&&u&&p&&this.raise(t.start,"Invalid regular expression flag")};function ba(t){for(var i in t)return!0;return!1}j.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&ba(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))};j.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames=Object.create(null),t.backReferenceNames.length=0,t.branchID=null,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var i=0,n=t.backReferenceNames;i<n.length;i+=1){var u=n[i];t.groupNames[u]||t.raise("Invalid named capture referenced")}};j.regexp_disjunction=function(t){var i=this.options.ecmaVersion>=16;for(i&&(t.branchID=new Qe(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)i&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);i&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")};j.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););};j.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))?(this.regexp_eatQuantifier(t),!0):!1};j.regexp_eatAssertion=function(t){var i=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=i}if(t.eat(40)&&t.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!n,!0}return t.pos=i,!1};j.regexp_eatQuantifier=function(t,i){return i===void 0&&(i=!1),this.regexp_eatQuantifierPrefix(t,i)?(t.eat(63),!0):!1};j.regexp_eatQuantifierPrefix=function(t,i){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,i)};j.regexp_eatBracedQuantifier=function(t,i){var n=t.pos;if(t.eat(123)){var u=0,p=-1;if(this.regexp_eatDecimalDigits(t)&&(u=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(p=t.lastIntValue),t.eat(125)))return p!==-1&&p<u&&!i&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!i&&t.raise("Incomplete quantifier"),t.pos=n}return!1};j.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)};j.regexp_eatReverseSolidusAtomEscape=function(t){var i=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=i}return!1};j.regexp_eatUncapturingGroup=function(t){var i=t.pos;if(t.eat(40)){if(t.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(t),u=t.eat(45);if(n||u){for(var p=0;p<n.length;p++){var g=n.charAt(p);n.indexOf(g,p+1)>-1&&t.raise("Duplicate regular expression modifiers")}if(u){var b=this.regexp_eatModifiers(t);!n&&!b&&t.current()===58&&t.raise("Invalid regular expression modifiers");for(var T=0;T<b.length;T++){var w=b.charAt(T);(b.indexOf(w,T+1)>-1||n.indexOf(w)>-1)&&t.raise("Duplicate regular expression modifiers")}}}}if(t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}}t.pos=i}return!1};j.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):t.current()===63&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1};j.regexp_eatModifiers=function(t){for(var i="",n=0;(n=t.current())!==-1&&Sa(n);)i+=Yt(n),t.advance();return i};function Sa(t){return t===105||t===109||t===115}j.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)};j.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1};j.regexp_eatSyntaxCharacter=function(t){var i=t.current();return Fs(i)?(t.lastIntValue=i,t.advance(),!0):!1};function Fs(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}j.regexp_eatPatternCharacters=function(t){for(var i=t.pos,n=0;(n=t.current())!==-1&&!Fs(n);)t.advance();return t.pos!==i};j.regexp_eatExtendedPatternCharacter=function(t){var i=t.current();return i!==-1&&i!==36&&!(i>=40&&i<=43)&&i!==46&&i!==63&&i!==91&&i!==94&&i!==124?(t.advance(),!0):!1};j.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var i=this.options.ecmaVersion>=16,n=t.groupNames[t.lastStringValue];if(n)if(i)for(var u=0,p=n;u<p.length;u+=1){var g=p[u];g.separatedFrom(t.branchID)||t.raise("Duplicate capture group name")}else t.raise("Duplicate capture group name");i?(n||(t.groupNames[t.lastStringValue]=[])).push(t.branchID):t.groupNames[t.lastStringValue]=!0}};j.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1};j.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=Yt(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=Yt(t.lastIntValue);return!0}return!1};j.regexp_eatRegExpIdentifierStart=function(t){var i=t.pos,n=this.options.ecmaVersion>=11,u=t.current(n);return t.advance(n),u===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(u=t.lastIntValue),Ca(u)?(t.lastIntValue=u,!0):(t.pos=i,!1)};function Ca(t){return zt(t,!0)||t===36||t===95}j.regexp_eatRegExpIdentifierPart=function(t){var i=t.pos,n=this.options.ecmaVersion>=11,u=t.current(n);return t.advance(n),u===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(u=t.lastIntValue),ka(u)?(t.lastIntValue=u,!0):(t.pos=i,!1)};function ka(t){return Qt(t,!0)||t===36||t===95||t===8204||t===8205}j.regexp_eatAtomEscape=function(t){return this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t)?!0:(t.switchU&&(t.current()===99&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)};j.regexp_eatBackReference=function(t){var i=t.pos;if(this.regexp_eatDecimalEscape(t)){var n=t.lastIntValue;if(t.switchU)return n>t.maxBackReference&&(t.maxBackReference=n),!0;if(n<=t.numCapturingParens)return!0;t.pos=i}return!1};j.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1};j.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)};j.regexp_eatCControlLetter=function(t){var i=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=i}return!1};j.regexp_eatZero=function(t){return t.current()===48&&!ti(t.lookahead())?(t.lastIntValue=0,t.advance(),!0):!1};j.regexp_eatControlEscape=function(t){var i=t.current();return i===116?(t.lastIntValue=9,t.advance(),!0):i===110?(t.lastIntValue=10,t.advance(),!0):i===118?(t.lastIntValue=11,t.advance(),!0):i===102?(t.lastIntValue=12,t.advance(),!0):i===114?(t.lastIntValue=13,t.advance(),!0):!1};j.regexp_eatControlLetter=function(t){var i=t.current();return js(i)?(t.lastIntValue=i%32,t.advance(),!0):!1};function js(t){return t>=65&&t<=90||t>=97&&t<=122}j.regexp_eatRegExpUnicodeEscapeSequence=function(t,i){i===void 0&&(i=!1);var n=t.pos,u=i||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var p=t.lastIntValue;if(u&&p>=55296&&p<=56319){var g=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var b=t.lastIntValue;if(b>=56320&&b<=57343)return t.lastIntValue=(p-55296)*1024+(b-56320)+65536,!0}t.pos=g,t.lastIntValue=p}return!0}if(u&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&Aa(t.lastIntValue))return!0;u&&t.raise("Invalid unicode escape"),t.pos=n}return!1};function Aa(t){return t>=0&&t<=1114111}j.regexp_eatIdentityEscape=function(t){if(t.switchU)return this.regexp_eatSyntaxCharacter(t)?!0:t.eat(47)?(t.lastIntValue=47,!0):!1;var i=t.current();return i!==99&&(!t.switchN||i!==107)?(t.lastIntValue=i,t.advance(),!0):!1};j.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var i=t.current();if(i>=49&&i<=57){do t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();while((i=t.current())>=48&&i<=57);return!0}return!1};var Us=0,Zt=1,Ut=2;j.regexp_eatCharacterClassEscape=function(t){var i=t.current();if(_a(i))return t.lastIntValue=-1,t.advance(),Zt;var n=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((n=i===80)||i===112)){t.lastIntValue=-1,t.advance();var u;if(t.eat(123)&&(u=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return n&&u===Ut&&t.raise("Invalid property name"),u;t.raise("Invalid property name")}return Us};function _a(t){return t===100||t===68||t===115||t===83||t===119||t===87}j.regexp_eatUnicodePropertyValueExpression=function(t){var i=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var n=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var u=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,n,u),Zt}}if(t.pos=i,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var p=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,p)}return Us};j.regexp_validateUnicodePropertyNameAndValue=function(t,i,n){ye(t.unicodeProperties.nonBinary,i)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[i].test(n)||t.raise("Invalid property value")};j.regexp_validateUnicodePropertyNameOrValue=function(t,i){if(t.unicodeProperties.binary.test(i))return Zt;if(t.switchV&&t.unicodeProperties.binaryOfStrings.test(i))return Ut;t.raise("Invalid property name")};j.regexp_eatUnicodePropertyName=function(t){var i=0;for(t.lastStringValue="";qs(i=t.current());)t.lastStringValue+=Yt(i),t.advance();return t.lastStringValue!==""};function qs(t){return js(t)||t===95}j.regexp_eatUnicodePropertyValue=function(t){var i=0;for(t.lastStringValue="";Ta(i=t.current());)t.lastStringValue+=Yt(i),t.advance();return t.lastStringValue!==""};function Ta(t){return qs(t)||ti(t)}j.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)};j.regexp_eatCharacterClass=function(t){if(t.eat(91)){var i=t.eat(94),n=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),i&&n===Ut&&t.raise("Negated character class may contain strings"),!0}return!1};j.regexp_classContents=function(t){return t.current()===93?Zt:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),Zt)};j.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var i=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var n=t.lastIntValue;t.switchU&&(i===-1||n===-1)&&t.raise("Invalid character class"),i!==-1&&n!==-1&&i>n&&t.raise("Range out of order in character class")}}};j.regexp_eatClassAtom=function(t){var i=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var n=t.current();(n===99||zs(n))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=i}var u=t.current();return u!==93?(t.lastIntValue=u,t.advance(),!0):!1};j.regexp_eatClassEscape=function(t){var i=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=i}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)};j.regexp_classSetExpression=function(t){var i=Zt,n;if(!this.regexp_eatClassSetRange(t))if(n=this.regexp_eatClassSetOperand(t)){n===Ut&&(i=Ut);for(var u=t.pos;t.eatChars([38,38]);){if(t.current()!==38&&(n=this.regexp_eatClassSetOperand(t))){n!==Ut&&(i=Zt);continue}t.raise("Invalid character in character class")}if(u!==t.pos)return i;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(u!==t.pos)return i}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(n=this.regexp_eatClassSetOperand(t),!n)return i;n===Ut&&(i=Ut)}};j.regexp_eatClassSetRange=function(t){var i=t.pos;if(this.regexp_eatClassSetCharacter(t)){var n=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var u=t.lastIntValue;return n!==-1&&u!==-1&&n>u&&t.raise("Range out of order in character class"),!0}t.pos=i}return!1};j.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?Zt:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)};j.regexp_eatNestedClass=function(t){var i=t.pos;if(t.eat(91)){var n=t.eat(94),u=this.regexp_classContents(t);if(t.eat(93))return n&&u===Ut&&t.raise("Negated character class may contain strings"),u;t.pos=i}if(t.eat(92)){var p=this.regexp_eatCharacterClassEscape(t);if(p)return p;t.pos=i}return null};j.regexp_eatClassStringDisjunction=function(t){var i=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var n=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return n}else t.raise("Invalid escape");t.pos=i}return null};j.regexp_classStringDisjunctionContents=function(t){for(var i=this.regexp_classString(t);t.eat(124);)this.regexp_classString(t)===Ut&&(i=Ut);return i};j.regexp_classString=function(t){for(var i=0;this.regexp_eatClassSetCharacter(t);)i++;return i===1?Zt:Ut};j.regexp_eatClassSetCharacter=function(t){var i=t.pos;if(t.eat(92))return this.regexp_eatCharacterEscape(t)||this.regexp_eatClassSetReservedPunctuator(t)?!0:t.eat(98)?(t.lastIntValue=8,!0):(t.pos=i,!1);var n=t.current();return n<0||n===t.lookahead()&&wa(n)||Pa(n)?!1:(t.advance(),t.lastIntValue=n,!0)};function wa(t){return t===33||t>=35&&t<=38||t>=42&&t<=44||t===46||t>=58&&t<=64||t===94||t===96||t===126}function Pa(t){return t===40||t===41||t===45||t===47||t>=91&&t<=93||t>=123&&t<=125}j.regexp_eatClassSetReservedPunctuator=function(t){var i=t.current();return Ea(i)?(t.lastIntValue=i,t.advance(),!0):!1};function Ea(t){return t===33||t===35||t===37||t===38||t===44||t===45||t>=58&&t<=62||t===64||t===96||t===126}j.regexp_eatClassControlLetter=function(t){var i=t.current();return ti(i)||i===95?(t.lastIntValue=i%32,t.advance(),!0):!1};j.regexp_eatHexEscapeSequence=function(t){var i=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=i}return!1};j.regexp_eatDecimalDigits=function(t){var i=t.pos,n=0;for(t.lastIntValue=0;ti(n=t.current());)t.lastIntValue=10*t.lastIntValue+(n-48),t.advance();return t.pos!==i};function ti(t){return t>=48&&t<=57}j.regexp_eatHexDigits=function(t){var i=t.pos,n=0;for(t.lastIntValue=0;Hs(n=t.current());)t.lastIntValue=16*t.lastIntValue+Ws(n),t.advance();return t.pos!==i};function Hs(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function Ws(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}j.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var n=t.lastIntValue;i<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=i*64+n*8+t.lastIntValue:t.lastIntValue=i*8+n}else t.lastIntValue=i;return!0}return!1};j.regexp_eatOctalDigit=function(t){var i=t.current();return zs(i)?(t.lastIntValue=i-48,t.advance(),!0):(t.lastIntValue=0,!1)};function zs(t){return t>=48&&t<=55}j.regexp_eatFixedHexDigits=function(t,i){var n=t.pos;t.lastIntValue=0;for(var u=0;u<i;++u){var p=t.current();if(!Hs(p))return t.pos=n,!1;t.lastIntValue=16*t.lastIntValue+Ws(p),t.advance()}return!0};var ei=function(i){this.type=i.type,this.value=i.value,this.start=i.start,this.end=i.end,i.options.locations&&(this.loc=new Pe(i,i.startLoc,i.endLoc)),i.options.ranges&&(this.range=[i.start,i.end])},st=dt.prototype;st.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new ei(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};st.getToken=function(){return this.next(),new ei(this)};typeof Symbol<"u"&&(st[Symbol.iterator]=function(){var t=this;return{next:function(){var i=t.getToken();return{done:i.type===f.eof,value:i}}}});st.nextToken=function(){var t=this.curContext();if((!t||!t.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(f.eof);if(t.override)return t.override(this);this.readToken(this.fullCharCodeAtPos())};st.readToken=function(t){return zt(t,this.options.ecmaVersion>=6)||t===92?this.readWord():this.getTokenFromCode(t)};st.fullCharCodeAt=function(t){var i=this.input.charCodeAt(t);if(i<=55295||i>=56320)return i;var n=this.input.charCodeAt(t+1);return n<=56319||n>=57344?i:(i<<10)+n-56613888};st.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};st.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),i=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(n===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var u=void 0,p=i;(u=xs(this.input,p,this.pos))>-1;)++this.curLine,p=this.lineStart=u;this.options.onComment&&this.options.onComment(!0,this.input.slice(i+2,n),i,this.pos,t,this.curPosition())};st.skipLineComment=function(t){for(var i=this.pos,n=this.options.onComment&&this.curPosition(),u=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!ue(u);)u=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(i+t,this.pos),i,this.pos,n,this.curPosition())};st.skipSpace=function(){t:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++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&&gi.test(String.fromCharCode(t)))++this.pos;else break t}}};st.finishToken=function(t,i){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=t,this.value=i,this.updateContext(n)};st.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var i=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&t===46&&i===46?(this.pos+=3,this.finishToken(f.ellipsis)):(++this.pos,this.finishToken(f.dot))};st.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):t===61?this.finishOp(f.assign,2):this.finishOp(f.slash,1)};st.readToken_mult_modulo_exp=function(t){var i=this.input.charCodeAt(this.pos+1),n=1,u=t===42?f.star:f.modulo;return this.options.ecmaVersion>=7&&t===42&&i===42&&(++n,u=f.starstar,i=this.input.charCodeAt(this.pos+2)),i===61?this.finishOp(f.assign,n+1):this.finishOp(u,n)};st.readToken_pipe_amp=function(t){var i=this.input.charCodeAt(this.pos+1);if(i===t){if(this.options.ecmaVersion>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(f.assign,3)}return this.finishOp(t===124?f.logicalOR:f.logicalAND,2)}return i===61?this.finishOp(f.assign,2):this.finishOp(t===124?f.bitwiseOR:f.bitwiseAND,1)};st.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(f.assign,2):this.finishOp(f.bitwiseXOR,1)};st.readToken_plus_min=function(t){var i=this.input.charCodeAt(this.pos+1);return i===t?i===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Pt.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(f.incDec,2):i===61?this.finishOp(f.assign,2):this.finishOp(f.plusMin,1)};st.readToken_lt_gt=function(t){var i=this.input.charCodeAt(this.pos+1),n=1;return i===t?(n=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(f.assign,n+1):this.finishOp(f.bitShift,n)):i===33&&t===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(i===61&&(n=2),this.finishOp(f.relational,n))};st.readToken_eq_excl=function(t){var i=this.input.charCodeAt(this.pos+1);return i===61?this.finishOp(f.equality,this.input.charCodeAt(this.pos+2)===61?3:2):t===61&&i===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(f.arrow)):this.finishOp(t===61?f.eq:f.prefix,1)};st.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var i=this.input.charCodeAt(this.pos+1);if(i===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(f.questionDot,2)}if(i===63){if(t>=12){var u=this.input.charCodeAt(this.pos+2);if(u===61)return this.finishOp(f.assign,3)}return this.finishOp(f.coalesce,2)}}return this.finishOp(f.question,1)};st.readToken_numberSign=function(){var t=this.options.ecmaVersion,i=35;if(t>=13&&(++this.pos,i=this.fullCharCodeAtPos(),zt(i,!0)||i===92))return this.finishToken(f.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Yt(i)+"'")};st.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(f.parenL);case 41:return++this.pos,this.finishToken(f.parenR);case 59:return++this.pos,this.finishToken(f.semi);case 44:return++this.pos,this.finishToken(f.comma);case 91:return++this.pos,this.finishToken(f.bracketL);case 93:return++this.pos,this.finishToken(f.bracketR);case 123:return++this.pos,this.finishToken(f.braceL);case 125:return++this.pos,this.finishToken(f.braceR);case 58:return++this.pos,this.finishToken(f.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(f.backQuote);case 48:var i=this.input.charCodeAt(this.pos+1);if(i===120||i===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(i===111||i===79)return this.readRadixNumber(8);if(i===98||i===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(f.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Yt(t)+"'")};st.finishOp=function(t,i){var n=this.input.slice(this.pos,this.pos+i);return this.pos+=i,this.finishToken(t,n)};st.readRegexp=function(){for(var t,i,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var u=this.input.charAt(this.pos);if(Pt.test(u)&&this.raise(n,"Unterminated regular expression"),t)t=!1;else{if(u==="[")i=!0;else if(u==="]"&&i)i=!1;else if(u==="/"&&!i)break;t=u==="\\"}++this.pos}var p=this.input.slice(n,this.pos);++this.pos;var g=this.pos,b=this.readWord1();this.containsEsc&&this.unexpected(g);var T=this.regexpState||(this.regexpState=new Kt(this));T.reset(n,p,b),this.validateRegExpFlags(T),this.validateRegExpPattern(T);var w=null;try{w=new RegExp(p,b)}catch{}return this.finishToken(f.regexp,{pattern:p,flags:b,value:w})};st.readInt=function(t,i,n){for(var u=this.options.ecmaVersion>=12&&i===void 0,p=n&&this.input.charCodeAt(this.pos)===48,g=this.pos,b=0,T=0,w=0,l=i??1/0;w<l;++w,++this.pos){var W=this.input.charCodeAt(this.pos),Y=void 0;if(u&&W===95){p&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),T===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),w===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),T=W;continue}if(W>=97?Y=W-97+10:W>=65?Y=W-65+10:W>=48&&W<=57?Y=W-48:Y=1/0,Y>=t)break;T=W,b=b*t+Y}return u&&T===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===g||i!=null&&this.pos-g!==i?null:b};function Ia(t,i){return i?parseInt(t,8):parseFloat(t.replace(/_/g,""))}function Gs(t){return typeof BigInt!="function"?null:BigInt(t.replace(/_/g,""))}st.readRadixNumber=function(t){var i=this.pos;this.pos+=2;var n=this.readInt(t);return n==null&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=Gs(this.input.slice(i,this.pos)),++this.pos):zt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,n)};st.readNumber=function(t){var i=this.pos;!t&&this.readInt(10,void 0,!0)===null&&this.raise(i,"Invalid number");var n=this.pos-i>=2&&this.input.charCodeAt(i)===48;n&&this.strict&&this.raise(i,"Invalid number");var u=this.input.charCodeAt(this.pos);if(!n&&!t&&this.options.ecmaVersion>=11&&u===110){var p=Gs(this.input.slice(i,this.pos));return++this.pos,zt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,p)}n&&/[89]/.test(this.input.slice(i,this.pos))&&(n=!1),u===46&&!n&&(++this.pos,this.readInt(10),u=this.input.charCodeAt(this.pos)),(u===69||u===101)&&!n&&(u=this.input.charCodeAt(++this.pos),(u===43||u===45)&&++this.pos,this.readInt(10)===null&&this.raise(i,"Invalid number")),zt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var g=Ia(this.input.slice(i,this.pos),n);return this.finishToken(f.num,g)};st.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),i;if(t===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;i=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,i>1114111&&this.invalidStringToken(n,"Code point out of bounds")}else i=this.readHexChar(4);return i};st.readString=function(t){for(var i="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var u=this.input.charCodeAt(this.pos);if(u===t)break;u===92?(i+=this.input.slice(n,this.pos),i+=this.readEscapedChar(!1),n=this.pos):u===8232||u===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ue(u)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return i+=this.input.slice(n,this.pos++),this.finishToken(f.string,i)};var Ks={};st.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===Ks)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1};st.invalidStringToken=function(t,i){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ks;this.raise(t,i)};st.readTmplToken=function(){for(var t="",i=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===f.template||this.type===f.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(f.dollarBraceL)):(++this.pos,this.finishToken(f.backQuote)):(t+=this.input.slice(i,this.pos),this.finishToken(f.template,t));if(n===92)t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!0),i=this.pos;else if(ue(n)){switch(t+=this.input.slice(i,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:t+=`
|
|
16
|
+
`;break;default:t+=String.fromCharCode(n);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),i=this.pos}else++this.pos}};st.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(f.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
17
17
|
`&&++this.pos;case`
|
|
18
18
|
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};st.readEscapedChar=function(t){var i=this.input.charCodeAt(++this.pos);switch(++this.pos,i){case 110:return`
|
|
19
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Yt(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(i>=48&&i<=55){var u=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],p=parseInt(u,8);return p>255&&(u=u.slice(0,-1),p=parseInt(u,8)),this.pos+=u.length-1,i=this.input.charCodeAt(this.pos),(u!=="0"||i===56||i===57)&&(this.strict||t)&&this.invalidStringToken(this.pos-1-u.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(p)}return ue(i)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(i)}};st.readHexChar=function(t){var i=this.pos,n=this.readInt(16,t);return n===null&&this.invalidStringToken(i,"Bad character escape sequence"),n};st.readWord1=function(){this.containsEsc=!1;for(var t="",i=!0,n=this.pos,u=this.options.ecmaVersion>=6;this.pos<this.input.length;){var p=this.fullCharCodeAtPos();if(Qt(p,u))this.pos+=p<=65535?1:2;else if(p===92){this.containsEsc=!0,t+=this.input.slice(n,this.pos);var g=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var b=this.readCodePoint();(i?zt:Qt)(b,u)||this.invalidStringToken(g,"Invalid Unicode escape"),t+=Yt(b),n=this.pos}else break;i=!1}return t+this.input.slice(n,this.pos)};st.readWord=function(){var t=this.readWord1(),i=
|
|
20
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Lt=!0;function Vt(t,i){return i===void 0&&(i={}),new Z("name",i)}var Ba=new WeakMap;function Fa(t){var i=Ba.get(t.Parser.acorn||t);if(!i){var n={assert:Vt(0,{startsExpr:Lt}),asserts:Vt(0,{startsExpr:Lt}),global:Vt(0,{startsExpr:Lt}),keyof:Vt(0,{startsExpr:Lt}),readonly:Vt(0,{startsExpr:Lt}),unique:Vt(0,{startsExpr:Lt}),abstract:Vt(0,{startsExpr:Lt}),declare:Vt(0,{startsExpr:Lt}),enum:Vt(0,{startsExpr:Lt}),module:Vt(0,{startsExpr:Lt}),namespace:Vt(0,{startsExpr:Lt}),interface:Vt(0,{startsExpr:Lt}),type:Vt(0,{startsExpr:Lt})},u={at:new Z("@"),jsxName:new Z("jsxName"),jsxText:new Z("jsxText",{beforeExpr:!0}),jsxTagStart:new Z("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new Z("jsxTagEnd")},p={tc_oTag:new Tt("<tag",!1,!1),tc_cTag:new Tt("</tag",!1,!1),tc_expr:new Tt("<tag>...</tag>",!0,!0)},g=new RegExp("^(?:"+Object.keys(n).join("|")+")$");u.jsxTagStart.updateContext=function(){this.context.push(p.tc_expr),this.context.push(p.tc_oTag),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(b){var T=this.context.pop();T===p.tc_oTag&&b===d.slash||T===p.tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===p.tc_expr):this.exprAllowed=!0},i={tokTypes:ai({},n,u),tokContexts:ai({},p),keywordsRegExp:g,tokenIsLiteralPropertyName:function(b){return[d.name,d.string,d.num].concat(Object.values(oe),Object.values(n)).includes(b)},tokenIsKeywordOrIdentifier:function(b){return[d.name].concat(Object.values(oe),Object.values(n)).includes(b)},tokenIsIdentifier:function(b){return[].concat(Object.values(n),[d.name]).includes(b)},tokenIsTSDeclarationStart:function(b){return[n.abstract,n.declare,n.enum,n.module,n.namespace,n.interface,n.type].includes(b)},tokenIsTSTypeOperator:function(b){return[n.keyof,n.readonly,n.unique].includes(b)},tokenIsTemplate:function(b){return b===d.invalidTemplate}}}return i}var Ve=1024,ja=new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*","y"),ar=new RegExp("(?=("+ja.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),Re=function(){this.shorthandAssign=void 0,this.trailingComma=void 0,this.parenthesizedAssign=void 0,this.parenthesizedBind=void 0,this.doubleProto=void 0,this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};function Ua(t,i){var n=i.key.name,u=t[n],p="true";return i.type!=="MethodDefinition"||i.kind!=="get"&&i.kind!=="set"||(p=(i.static?"s":"i")+i.kind),u==="iget"&&p==="iset"||u==="iset"&&p==="iget"||u==="sget"&&p==="sset"||u==="sset"&&p==="sget"?(t[n]="true",!1):!!u||(t[n]=p,!1)}function nr(t,i){var n=t.key;return!t.computed&&(n.type==="Identifier"&&n.name===i||n.type==="Literal"&&n.value===i)}var H={AbstractMethodHasImplementation:function(t){return"Method '"+t.methodName+"' cannot have an implementation because it is marked abstract."},AbstractPropertyHasInitializer:function(t){return"Property '"+t.propertyName+"' cannot have an initializer because it is marked abstract."},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",CannotFindName:function(t){return"Cannot find name '"+t.name+"'."},ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:function(t){return"'declare' is not allowed in "+t.kind+"ters."},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:function(){return"Accessibility modifier already seen."},DuplicateModifier:function(t){return"Duplicate modifier: '"+t.modifier+"'."},EmptyHeritageClauseType:function(t){return"'"+t.token+"' list cannot be empty."},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:function(t){var i=t.modifiers;return"'"+i[0]+"' modifier cannot be used with '"+i[1]+"' modifier."},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:function(t){return"Index signatures cannot have an accessibility modifier ('"+t.modifier+"')."},IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:function(t){return"'"+t.modifier+"' modifier cannot appear on a type member."},InvalidModifierOnTypeParameter:function(t){return"'"+t.modifier+"' modifier cannot appear on a type parameter."},InvalidModifierOnTypeParameterPositions:function(t){return"'"+t.modifier+"' modifier can only appear on a type parameter of a class, interface or type alias."},InvalidModifiersOrder:function(t){var i=t.orderedModifiers;return"'"+i[0]+"' modifier must precede '"+i[1]+"' modifier."},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:function(t){return"Private elements cannot have an accessibility modifier ('"+t.modifier+"')."},PrivateMethodsHasAccessibility:function(t){return"Private methods cannot have an accessibility modifier ('"+t.modifier+"')."},ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:function(t){var i=t.typeParameterName;return"Single type parameter "+i+" should have a trailing comma. Example usage: <"+i+",>."},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",GenericsEndWithComma:"Trailing comma is not allowed at the end of generics.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:function(t){return"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got "+t.type+"."},LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},qa={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},Ha=/^[\da-fA-F]+$/,Wa=/^\d+$/;function Oe(t){return t&&(t.type==="JSXIdentifier"?t.name:t.type==="JSXNamespacedName"?t.namespace.name+":"+t.name.name:t.type==="JSXMemberExpression"?Oe(t.object)+"."+Oe(t.property):void 0)}var Pi=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function or(t){if(!t)throw new Error("Assert fail")}function za(t){return t==="accessor"}function Ga(t){return t==="in"||t==="out"}function Ei(t,i){return 2|(t?4:0)|(i?8:0)}function Ka(t){if(t.type!=="MemberExpression")return!1;var i=t.property;return(!t.computed||!(i.type!=="TemplateLiteral"||i.expressions.length>0))&&hr(t.object)}function hr(t){return t.type==="Identifier"||t.type==="MemberExpression"&&!t.computed&&hr(t.object)}function ur(t){return t==="private"||t==="public"||t==="protected"}function Ni(t){var i=t||{},n=i.dts,u=n!==void 0&&n,p=i.allowSatisfies,g=p!==void 0&&p;return function(b){var T=b.acorn||ii,w=Fa(T),l=T.tokTypes,W=T.keywordTypes,Y=T.isIdentifierStart,tt=T.lineBreak,E=T.isNewLine,N=T.tokContexts,D=T.isIdentifierChar,I=w.tokTypes,K=w.tokContexts,xt=w.keywordsRegExp,G=w.tokenIsLiteralPropertyName,f=w.tokenIsTemplate,yt=w.tokenIsTSDeclarationStart,nt=w.tokenIsIdentifier,Rt=w.tokenIsKeywordOrIdentifier,Me=w.tokenIsTSTypeOperator;function ge(R,St,bt){bt===void 0&&(bt=R.length);for(var ot=St;ot<bt;ot++){var et=R.charCodeAt(ot);if(E(et))return ot<bt-1&&et===13&&R.charCodeAt(ot+1)===10?ot+2:ot+1}return-1}b=(function(R,St,bt){var ot=bt.tokTypes,et=St.tokTypes;return(function(y){function s(){return y.apply(this,arguments)||this}ri(s,y);var a=s.prototype;return a.takeDecorators=function(c){var m=this.decoratorStack[this.decoratorStack.length-1];m.length&&(c.decorators=m,this.resetStartLocationFromNode(c,m[0]),this.decoratorStack[this.decoratorStack.length-1]=[])},a.parseDecorators=function(c){for(var m=this.decoratorStack[this.decoratorStack.length-1];this.match(et.at);){var v=this.parseDecorator();m.push(v)}this.match(ot._export)?c||this.unexpected():this.canHaveLeadingDecorator()||this.raise(this.start,"Leading decorators must be attached to a class declaration.")},a.parseDecorator=function(){var c=this.startNode();this.next(),this.decoratorStack.push([]);var m,v=this.start,S=this.startLoc;if(this.match(ot.parenL)){var k=this.start,_=this.startLoc;if(this.next(),m=this.parseExpression(),this.expect(ot.parenR),this.options.preserveParens){var P=this.startNodeAt(k,_);P.expression=m,m=this.finishNode(P,"ParenthesizedExpression")}}else for(m=this.parseIdent(!1);this.eat(ot.dot);){var V=this.startNodeAt(v,S);V.object=m,V.property=this.parseIdent(!0),V.computed=!1,m=this.finishNode(V,"MemberExpression")}return c.expression=this.parseMaybeDecoratorArguments(m),this.decoratorStack.pop(),this.finishNode(c,"Decorator")},a.parseMaybeDecoratorArguments=function(c){if(this.eat(ot.parenL)){var m=this.startNodeAtNode(c);return m.callee=c,m.arguments=this.parseExprList(ot.parenR,!1),this.finishNode(m,"CallExpression")}return c},s})(R)})(b,w,T),b=(function(R,St,bt,ot){var et=R.tokTypes,y=St.tokTypes,s=R.isNewLine,a=R.isIdentifierChar,c=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},ot||{});return(function(m){function v(){return m.apply(this,arguments)||this}ri(v,m);var S=v.prototype;return S.jsx_readToken=function(){for(var k="",_=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var P=this.input.charCodeAt(this.pos);switch(P){case 60:case 123:return this.pos===this.start?P===60&&this.exprAllowed?(++this.pos,this.finishToken(y.jsxTagStart)):this.getTokenFromCode(P):(k+=this.input.slice(_,this.pos),this.finishToken(y.jsxText,k));case 38:k+=this.input.slice(_,this.pos),k+=this.jsx_readEntity(),_=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(P===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:s(P)?(k+=this.input.slice(_,this.pos),k+=this.jsx_readNewLine(!0),_=this.pos):++this.pos}}},S.jsx_readNewLine=function(k){var _,P=this.input.charCodeAt(this.pos);return++this.pos,P===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,_=k?`
|
|
19
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Yt(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(i>=48&&i<=55){var u=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],p=parseInt(u,8);return p>255&&(u=u.slice(0,-1),p=parseInt(u,8)),this.pos+=u.length-1,i=this.input.charCodeAt(this.pos),(u!=="0"||i===56||i===57)&&(this.strict||t)&&this.invalidStringToken(this.pos-1-u.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(p)}return ue(i)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(i)}};st.readHexChar=function(t){var i=this.pos,n=this.readInt(16,t);return n===null&&this.invalidStringToken(i,"Bad character escape sequence"),n};st.readWord1=function(){this.containsEsc=!1;for(var t="",i=!0,n=this.pos,u=this.options.ecmaVersion>=6;this.pos<this.input.length;){var p=this.fullCharCodeAtPos();if(Qt(p,u))this.pos+=p<=65535?1:2;else if(p===92){this.containsEsc=!0,t+=this.input.slice(n,this.pos);var g=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var b=this.readCodePoint();(i?zt:Qt)(b,u)||this.invalidStringToken(g,"Invalid Unicode escape"),t+=Yt(b),n=this.pos}else break;i=!1}return t+this.input.slice(n,this.pos)};st.readWord=function(){var t=this.readWord1(),i=f.name;return this.keywords.test(t)&&(i=oe[t]),this.finishToken(i,t)};var Xs="8.16.0";dt.acorn={Parser:dt,version:Xs,defaultOptions:Ge,Position:xe,SourceLocation:Pe,getLineInfo:bi,Node:Ie,TokenType:Z,tokTypes:f,keywordTypes:oe,TokContext:Tt,tokContexts:ft,isIdentifierChar:Qt,isIdentifierStart:zt,Token:ei,isNewLine:ue,lineBreak:Pt,lineBreakG:ms,nonASCIIwhitespace:gi};function Na(t,i){return dt.parse(t,i)}function La(t,i,n){return dt.parseExpressionAt(t,i,n)}function Va(t,i){return dt.tokenizer(t,i)}var lr=Jr(tr(),1);function er(t,i){for(var n=0;n<i.length;n++){var u=i[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,typeof(p=(function(g,b){if(typeof g!="object"||g===null)return g;var T=g[Symbol.toPrimitive];if(T!==void 0){var w=T.call(g,"string");if(typeof w!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)})(u.key))=="symbol"?p:String(p),u)}var p}function ai(){return ai=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var n=arguments[i];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},ai.apply(this,arguments)}function ri(t,i){t.prototype=Object.create(i.prototype),t.prototype.constructor=t,Ii(t,i)}function Ii(t,i){return Ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,u){return n.__proto__=u,n},Ii(t,i)}function ir(t,i){(i==null||i>t.length)&&(i=t.length);for(var n=0,u=new Array(i);n<i;n++)u[n]=t[n];return u}function sr(t,i){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=(function(p,g){if(p){if(typeof p=="string")return ir(p,g);var b=Object.prototype.toString.call(p).slice(8,-1);return b==="Object"&&p.constructor&&(b=p.constructor.name),b==="Map"||b==="Set"?Array.from(p):b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?ir(p,g):void 0}})(t))||i&&t&&typeof t.length=="number"){n&&(t=n);var u=0;return function(){return u>=t.length?{done:!0}:{done:!1,value:t[u++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
20
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Lt=!0;function Vt(t,i){return i===void 0&&(i={}),new Z("name",i)}var Ba=new WeakMap;function Fa(t){var i=Ba.get(t.Parser.acorn||t);if(!i){var n={assert:Vt(0,{startsExpr:Lt}),asserts:Vt(0,{startsExpr:Lt}),global:Vt(0,{startsExpr:Lt}),keyof:Vt(0,{startsExpr:Lt}),readonly:Vt(0,{startsExpr:Lt}),unique:Vt(0,{startsExpr:Lt}),abstract:Vt(0,{startsExpr:Lt}),declare:Vt(0,{startsExpr:Lt}),enum:Vt(0,{startsExpr:Lt}),module:Vt(0,{startsExpr:Lt}),namespace:Vt(0,{startsExpr:Lt}),interface:Vt(0,{startsExpr:Lt}),type:Vt(0,{startsExpr:Lt})},u={at:new Z("@"),jsxName:new Z("jsxName"),jsxText:new Z("jsxText",{beforeExpr:!0}),jsxTagStart:new Z("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new Z("jsxTagEnd")},p={tc_oTag:new Tt("<tag",!1,!1),tc_cTag:new Tt("</tag",!1,!1),tc_expr:new Tt("<tag>...</tag>",!0,!0)},g=new RegExp("^(?:"+Object.keys(n).join("|")+")$");u.jsxTagStart.updateContext=function(){this.context.push(p.tc_expr),this.context.push(p.tc_oTag),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(b){var T=this.context.pop();T===p.tc_oTag&&b===f.slash||T===p.tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===p.tc_expr):this.exprAllowed=!0},i={tokTypes:ai({},n,u),tokContexts:ai({},p),keywordsRegExp:g,tokenIsLiteralPropertyName:function(b){return[f.name,f.string,f.num].concat(Object.values(oe),Object.values(n)).includes(b)},tokenIsKeywordOrIdentifier:function(b){return[f.name].concat(Object.values(oe),Object.values(n)).includes(b)},tokenIsIdentifier:function(b){return[].concat(Object.values(n),[f.name]).includes(b)},tokenIsTSDeclarationStart:function(b){return[n.abstract,n.declare,n.enum,n.module,n.namespace,n.interface,n.type].includes(b)},tokenIsTSTypeOperator:function(b){return[n.keyof,n.readonly,n.unique].includes(b)},tokenIsTemplate:function(b){return b===f.invalidTemplate}}}return i}var Ve=1024,ja=new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*","y"),rr=new RegExp("(?=("+ja.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),Re=function(){this.shorthandAssign=void 0,this.trailingComma=void 0,this.parenthesizedAssign=void 0,this.parenthesizedBind=void 0,this.doubleProto=void 0,this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};function Ua(t,i){var n=i.key.name,u=t[n],p="true";return i.type!=="MethodDefinition"||i.kind!=="get"&&i.kind!=="set"||(p=(i.static?"s":"i")+i.kind),u==="iget"&&p==="iset"||u==="iset"&&p==="iget"||u==="sget"&&p==="sset"||u==="sset"&&p==="sget"?(t[n]="true",!1):!!u||(t[n]=p,!1)}function ar(t,i){var n=t.key;return!t.computed&&(n.type==="Identifier"&&n.name===i||n.type==="Literal"&&n.value===i)}var H={AbstractMethodHasImplementation:function(t){return"Method '"+t.methodName+"' cannot have an implementation because it is marked abstract."},AbstractPropertyHasInitializer:function(t){return"Property '"+t.propertyName+"' cannot have an initializer because it is marked abstract."},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",CannotFindName:function(t){return"Cannot find name '"+t.name+"'."},ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:function(t){return"'declare' is not allowed in "+t.kind+"ters."},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:function(){return"Accessibility modifier already seen."},DuplicateModifier:function(t){return"Duplicate modifier: '"+t.modifier+"'."},EmptyHeritageClauseType:function(t){return"'"+t.token+"' list cannot be empty."},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:function(t){var i=t.modifiers;return"'"+i[0]+"' modifier cannot be used with '"+i[1]+"' modifier."},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:function(t){return"Index signatures cannot have an accessibility modifier ('"+t.modifier+"')."},IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:function(t){return"'"+t.modifier+"' modifier cannot appear on a type member."},InvalidModifierOnTypeParameter:function(t){return"'"+t.modifier+"' modifier cannot appear on a type parameter."},InvalidModifierOnTypeParameterPositions:function(t){return"'"+t.modifier+"' modifier can only appear on a type parameter of a class, interface or type alias."},InvalidModifiersOrder:function(t){var i=t.orderedModifiers;return"'"+i[0]+"' modifier must precede '"+i[1]+"' modifier."},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:function(t){return"Private elements cannot have an accessibility modifier ('"+t.modifier+"')."},PrivateMethodsHasAccessibility:function(t){return"Private methods cannot have an accessibility modifier ('"+t.modifier+"')."},ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:function(t){var i=t.typeParameterName;return"Single type parameter "+i+" should have a trailing comma. Example usage: <"+i+",>."},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",GenericsEndWithComma:"Trailing comma is not allowed at the end of generics.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:function(t){return"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got "+t.type+"."},LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},qa={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},Ha=/^[\da-fA-F]+$/,Wa=/^\d+$/;function Oe(t){return t&&(t.type==="JSXIdentifier"?t.name:t.type==="JSXNamespacedName"?t.namespace.name+":"+t.name.name:t.type==="JSXMemberExpression"?Oe(t.object)+"."+Oe(t.property):void 0)}var Pi=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function nr(t){if(!t)throw new Error("Assert fail")}function za(t){return t==="accessor"}function Ga(t){return t==="in"||t==="out"}function Ei(t,i){return 2|(t?4:0)|(i?8:0)}function Ka(t){if(t.type!=="MemberExpression")return!1;var i=t.property;return(!t.computed||!(i.type!=="TemplateLiteral"||i.expressions.length>0))&&ur(t.object)}function ur(t){return t.type==="Identifier"||t.type==="MemberExpression"&&!t.computed&&ur(t.object)}function or(t){return t==="private"||t==="public"||t==="protected"}function Ni(t){var i=t||{},n=i.dts,u=n!==void 0&&n,p=i.allowSatisfies,g=p!==void 0&&p;return function(b){var T=b.acorn||ii,w=Fa(T),l=T.tokTypes,W=T.keywordTypes,Y=T.isIdentifierStart,tt=T.lineBreak,E=T.isNewLine,N=T.tokContexts,D=T.isIdentifierChar,I=w.tokTypes,Q=w.tokContexts,xt=w.keywordsRegExp,z=w.tokenIsLiteralPropertyName,d=w.tokenIsTemplate,yt=w.tokenIsTSDeclarationStart,nt=w.tokenIsIdentifier,Rt=w.tokenIsKeywordOrIdentifier,Me=w.tokenIsTSTypeOperator;function ge(R,St,bt){bt===void 0&&(bt=R.length);for(var ot=St;ot<bt;ot++){var et=R.charCodeAt(ot);if(E(et))return ot<bt-1&&et===13&&R.charCodeAt(ot+1)===10?ot+2:ot+1}return-1}b=(function(R,St,bt){var ot=bt.tokTypes,et=St.tokTypes;return(function(y){function s(){return y.apply(this,arguments)||this}ri(s,y);var a=s.prototype;return a.takeDecorators=function(c){var m=this.decoratorStack[this.decoratorStack.length-1];m.length&&(c.decorators=m,this.resetStartLocationFromNode(c,m[0]),this.decoratorStack[this.decoratorStack.length-1]=[])},a.parseDecorators=function(c){for(var m=this.decoratorStack[this.decoratorStack.length-1];this.match(et.at);){var v=this.parseDecorator();m.push(v)}this.match(ot._export)?c||this.unexpected():this.canHaveLeadingDecorator()||this.raise(this.start,"Leading decorators must be attached to a class declaration.")},a.parseDecorator=function(){var c=this.startNode();this.next(),this.decoratorStack.push([]);var m,v=this.start,S=this.startLoc;if(this.match(ot.parenL)){var k=this.start,_=this.startLoc;if(this.next(),m=this.parseExpression(),this.expect(ot.parenR),this.options.preserveParens){var P=this.startNodeAt(k,_);P.expression=m,m=this.finishNode(P,"ParenthesizedExpression")}}else for(m=this.parseIdent(!1);this.eat(ot.dot);){var V=this.startNodeAt(v,S);V.object=m,V.property=this.parseIdent(!0),V.computed=!1,m=this.finishNode(V,"MemberExpression")}return c.expression=this.parseMaybeDecoratorArguments(m),this.decoratorStack.pop(),this.finishNode(c,"Decorator")},a.parseMaybeDecoratorArguments=function(c){if(this.eat(ot.parenL)){var m=this.startNodeAtNode(c);return m.callee=c,m.arguments=this.parseExprList(ot.parenR,!1),this.finishNode(m,"CallExpression")}return c},s})(R)})(b,w,T),b=(function(R,St,bt,ot){var et=R.tokTypes,y=St.tokTypes,s=R.isNewLine,a=R.isIdentifierChar,c=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},ot||{});return(function(m){function v(){return m.apply(this,arguments)||this}ri(v,m);var S=v.prototype;return S.jsx_readToken=function(){for(var k="",_=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var P=this.input.charCodeAt(this.pos);switch(P){case 60:case 123:return this.pos===this.start?P===60&&this.exprAllowed?(++this.pos,this.finishToken(y.jsxTagStart)):this.getTokenFromCode(P):(k+=this.input.slice(_,this.pos),this.finishToken(y.jsxText,k));case 38:k+=this.input.slice(_,this.pos),k+=this.jsx_readEntity(),_=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(P===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:s(P)?(k+=this.input.slice(_,this.pos),k+=this.jsx_readNewLine(!0),_=this.pos):++this.pos}}},S.jsx_readNewLine=function(k){var _,P=this.input.charCodeAt(this.pos);return++this.pos,P===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,_=k?`
|
|
21
21
|
`:`\r
|
|
22
|
-
`):_=String.fromCharCode(P),this.options.locations&&(++this.curLine,this.lineStart=this.pos),_},S.jsx_readString=function(k){for(var _="",P=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var V=this.input.charCodeAt(this.pos);if(V===k)break;V===38?(_+=this.input.slice(P,this.pos),_+=this.jsx_readEntity(),P=this.pos):s(V)?(_+=this.input.slice(P,this.pos),_+=this.jsx_readNewLine(!1),P=this.pos):++this.pos}return _+=this.input.slice(P,this.pos++),this.finishToken(et.string,_)},S.jsx_readEntity=function(){var k,_="",P=0,V=this.input[this.pos];V!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");for(var B=++this.pos;this.pos<this.input.length&&P++<10;){if((V=this.input[this.pos++])===";"){_[0]==="#"?_[1]==="x"?(_=_.substr(2),Ha.test(_)&&(k=String.fromCharCode(parseInt(_,16)))):(_=_.substr(1),Wa.test(_)&&(k=String.fromCharCode(parseInt(_,10)))):k=qa[_];break}_+=V}return k||(this.pos=B,"&")},S.jsx_readWord=function(){var k,_=this.pos;do k=this.input.charCodeAt(++this.pos);while(a(k)||k===45);return this.finishToken(y.jsxName,this.input.slice(_,this.pos))},S.jsx_parseIdentifier=function(){var k=this.startNode();return this.type===y.jsxName?k.name=this.value:this.type.keyword?k.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(k,"JSXIdentifier")},S.jsx_parseNamespacedName=function(){var k=this.start,_=this.startLoc,P=this.jsx_parseIdentifier();if(!c.allowNamespaces||!this.eat(et.colon))return P;var V=this.startNodeAt(k,_);return V.namespace=P,V.name=this.jsx_parseIdentifier(),this.finishNode(V,"JSXNamespacedName")},S.jsx_parseElementName=function(){if(this.type===y.jsxTagEnd)return"";var k=this.start,_=this.startLoc,P=this.jsx_parseNamespacedName();for(this.type!==et.dot||P.type!=="JSXNamespacedName"||c.allowNamespacedObjects||this.unexpected();this.eat(et.dot);){var V=this.startNodeAt(k,_);V.object=P,V.property=this.jsx_parseIdentifier(),P=this.finishNode(V,"JSXMemberExpression")}return P},S.jsx_parseAttributeValue=function(){switch(this.type){case et.braceL:var k=this.jsx_parseExpressionContainer();return k.expression.type==="JSXEmptyExpression"&&this.raise(k.start,"JSX attributes must only be assigned a non-empty expression"),k;case y.jsxTagStart:case et.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}},S.jsx_parseEmptyExpression=function(){var k=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(k,"JSXEmptyExpression",this.start,this.startLoc)},S.jsx_parseExpressionContainer=function(){var k=this.startNode();return this.next(),k.expression=this.type===et.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(et.braceR),this.finishNode(k,"JSXExpressionContainer")},S.jsx_parseAttribute=function(){var k=this.startNode();return this.eat(et.braceL)?(this.expect(et.ellipsis),k.argument=this.parseMaybeAssign(),this.expect(et.braceR),this.finishNode(k,"JSXSpreadAttribute")):(k.name=this.jsx_parseNamespacedName(),k.value=this.eat(et.eq)?this.jsx_parseAttributeValue():null,this.finishNode(k,"JSXAttribute"))},S.jsx_parseOpeningElementAt=function(k,_){var P=this.startNodeAt(k,_);P.attributes=[];var V=this.jsx_parseElementName();for(V&&(P.name=V);this.type!==et.slash&&this.type!==y.jsxTagEnd;)P.attributes.push(this.jsx_parseAttribute());return P.selfClosing=this.eat(et.slash),this.expect(y.jsxTagEnd),this.finishNode(P,V?"JSXOpeningElement":"JSXOpeningFragment")},S.jsx_parseClosingElementAt=function(k,_){var P=this.startNodeAt(k,_),V=this.jsx_parseElementName();return V&&(P.name=V),this.expect(y.jsxTagEnd),this.finishNode(P,V?"JSXClosingElement":"JSXClosingFragment")},S.jsx_parseElementAt=function(k,_){var P=this.startNodeAt(k,_),V=[],B=this.jsx_parseOpeningElementAt(k,_),z=null;if(!B.selfClosing){t:for(;;)switch(this.type){case y.jsxTagStart:if(k=this.start,_=this.startLoc,this.next(),this.eat(et.slash)){z=this.jsx_parseClosingElementAt(k,_);break t}V.push(this.jsx_parseElementAt(k,_));break;case y.jsxText:V.push(this.parseExprAtom());break;case et.braceL:V.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}Oe(z.name)!==Oe(B.name)&&this.raise(z.start,"Expected corresponding JSX closing tag for <"+Oe(B.name)+">")}var M=B.name?"Element":"Fragment";return P["opening"+M]=B,P["closing"+M]=z,P.children=V,this.type===et.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(P,"JSX"+M)},S.jsx_parseText=function(){var k=this.parseLiteral(this.value);return k.type="JSXText",k},S.jsx_parseElement=function(){var k=this.start,_=this.startLoc;return this.next(),this.jsx_parseElementAt(k,_)},v})(bt)})(T,w,b,t?.jsx),b=(function(R,St,bt){var ot=St.tokTypes,et=bt.tokTypes;return(function(y){function s(){return y.apply(this,arguments)||this}ri(s,y);var a=s.prototype;return a.parseMaybeImportAttributes=function(c){if(this.type===et._with||this.type===ot.assert){this.next();var m=this.parseImportAttributes();m&&(c.attributes=m)}},a.parseImportAttributes=function(){this.expect(et.braceL);var c=this.parseWithEntries();return this.expect(et.braceR),c},a.parseWithEntries=function(){var c=[],m=new Set;do{if(this.type===et.braceR)break;var v,S=this.startNode();v=this.type===et.string?this.parseLiteral(this.value):this.parseIdent(!0),this.next(),S.key=v,m.has(S.key.name)&&this.raise(this.pos,"Duplicated key in attributes"),m.add(S.key.name),this.type!==et.string&&this.raise(this.pos,"Only string is supported as an attribute value"),S.value=this.parseLiteral(this.value),c.push(this.finishNode(S,"ImportAttribute"))}while(this.eat(et.comma));return c},s})(R)})(b,w,T);var vt=(function(R){function St(s,a,c){var m;return(m=R.call(this,s,a,c)||this).preValue=null,m.preToken=null,m.isLookahead=!1,m.isAmbientContext=!1,m.inAbstractClass=!1,m.inType=!1,m.inDisallowConditionalTypesContext=!1,m.maybeInArrowParameters=!1,m.shouldParseArrowReturnType=void 0,m.shouldParseAsyncArrowReturnType=void 0,m.decoratorStack=[[]],m.importsStack=[[]],m.importOrExportOuterKind=void 0,m.tsParseConstModifier=m.tsParseModifiers.bind((function(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v})(m),{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:H.InvalidModifierOnTypeParameterPositions}),m}ri(St,R);var bt,ot,et,y=St.prototype;return y.getTokenFromCodeInType=function(s){return s===62||s===60?this.finishOp(l.relational,1):R.prototype.getTokenFromCode.call(this,s)},y.readToken=function(s){if(!this.inType){var a=this.curContext();if(a===K.tc_expr)return this.jsx_readToken();if(a===K.tc_oTag||a===K.tc_cTag){if(Y(s))return this.jsx_readWord();if(s==62)return++this.pos,this.finishToken(I.jsxTagEnd);if((s===34||s===39)&&a==K.tc_oTag)return this.jsx_readString(s)}if(s===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)return++this.pos,this.finishToken(I.jsxTagStart)}return R.prototype.readToken.call(this,s)},y.getTokenFromCode=function(s){return this.inType?this.getTokenFromCodeInType(s):s===64?(++this.pos,this.finishToken(I.at)):R.prototype.getTokenFromCode.call(this,s)},y.isAbstractClass=function(){return this.ts_isContextual(I.abstract)&&this.lookahead().type===l._class},y.finishNode=function(s,a){return s.type!==""&&s.end!==0?s:R.prototype.finishNode.call(this,s,a)},y.tryParse=function(s,a){a===void 0&&(a=this.cloneCurLookaheadState());var c={node:null};try{return{node:s(function(v){throw v===void 0&&(v=null),c.node=v,c}),error:null,thrown:!1,aborted:!1,failState:null}}catch(v){var m=this.getCurLookaheadState();if(this.setLookaheadState(a),v instanceof SyntaxError)return{node:null,error:v,thrown:!0,aborted:!1,failState:m};if(v===c)return{node:c.node,error:null,thrown:!1,aborted:!0,failState:m};throw v}},y.setOptionalParametersError=function(s,a){var c;s.optionalParametersLoc=(c=a?.loc)!=null?c:this.startLoc},y.reScan_lt_gt=function(){this.type===l.relational&&(this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos()))},y.reScan_lt=function(){var s=this.type;return s===l.bitShift?(this.pos-=2,this.finishOp(l.relational,1),l.relational):s},y.resetEndLocation=function(s,a){a===void 0&&(a=this.lastTokEndLoc),s.end=a.column,s.loc.end=a,this.options.ranges&&(s.range[1]=a.column)},y.startNodeAtNode=function(s){return R.prototype.startNodeAt.call(this,s.start,s.loc.start)},y.nextTokenStart=function(){return this.nextTokenStartSince(this.pos)},y.tsHasSomeModifiers=function(s,a){return a.some(function(c){return ur(c)?s.accessibility===c:!!s[c]})},y.tsIsStartOfStaticBlocks=function(){return this.isContextual("static")&&this.lookaheadCharCode()===123},y.tsCheckForInvalidTypeCasts=function(s){var a=this;s.forEach(function(c){c?.type==="TSTypeCastExpression"&&a.raise(c.typeAnnotation.start,H.UnexpectedTypeAnnotation)})},y.atPossibleAsyncArrow=function(s){return s.type==="Identifier"&&s.name==="async"&&this.lastTokEndLoc.column===s.end&&!this.canInsertSemicolon()&&s.end-s.start==5&&s.start===this.potentialArrowAt},y.tsIsIdentifier=function(){return nt(this.type)},y.tsTryParseTypeOrTypePredicateAnnotation=function(){return this.match(l.colon)?this.tsParseTypeOrTypePredicateAnnotation(l.colon):void 0},y.tsTryParseGenericAsyncArrowFunction=function(s,a,c){var m=this;if(this.tsMatchLeftRelational()){var v=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;var S=this.tsTryParseAndCatch(function(){var k=m.startNodeAt(s,a);return k.typeParameters=m.tsParseTypeParameters(),R.prototype.parseFunctionParams.call(m,k),k.returnType=m.tsTryParseTypeOrTypePredicateAnnotation(),m.expect(l.arrow),k});if(this.maybeInArrowParameters=v,S)return R.prototype.parseArrowExpression.call(this,S,null,!0,c)}},y.tsParseTypeArgumentsInExpression=function(){if(this.reScan_lt()===l.relational)return this.tsParseTypeArguments()},y.tsInNoContext=function(s){var a=this.context;this.context=[a[0]];try{return s()}finally{this.context=a}},y.tsTryParseTypeAnnotation=function(){return this.match(l.colon)?this.tsParseTypeAnnotation():void 0},y.isUnparsedContextual=function(s,a){var c=s+a.length;if(this.input.slice(s,c)===a){var m=this.input.charCodeAt(c);return!(D(m)||(64512&m)==55296)}return!1},y.isAbstractConstructorSignature=function(){return this.ts_isContextual(I.abstract)&&this.lookahead().type===l._new},y.nextTokenStartSince=function(s){return Pi.lastIndex=s,Pi.test(this.input)?Pi.lastIndex:s},y.lookaheadCharCode=function(){return this.input.charCodeAt(this.nextTokenStart())},y.compareLookaheadState=function(s,a){for(var c=0,m=Object.keys(s);c<m.length;c++){var v=m[c];if(s[v]!==a[v])return!1}return!0},y.createLookaheadState=function(){this.value=null,this.context=[this.curContext()]},y.getCurLookaheadState=function(){return{endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context,startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}},y.cloneCurLookaheadState=function(){return{pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context&&this.context.slice(),startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}},y.setLookaheadState=function(s){this.pos=s.pos,this.value=s.value,this.endLoc=s.endLoc,this.lastTokEnd=s.lastTokEnd,this.lastTokStart=s.lastTokStart,this.lastTokStartLoc=s.lastTokStartLoc,this.type=s.type,this.start=s.start,this.end=s.end,this.context=s.context,this.startLoc=s.startLoc,this.lastTokEndLoc=s.lastTokEndLoc,this.curLine=s.curLine,this.lineStart=s.lineStart,this.curPosition=s.curPosition,this.containsEsc=s.containsEsc},y.tsLookAhead=function(s){var a=this.getCurLookaheadState(),c=s();return this.setLookaheadState(a),c},y.lookahead=function(s){var a=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,s!==void 0)for(var c=0;c<s;c++)this.nextToken();else this.nextToken();this.isLookahead=!1;var m=this.getCurLookaheadState();return this.setLookaheadState(a),m},y.readWord=function(){var s=this.readWord1(),a=l.name;return this.keywords.test(s)?a=W[s]:new RegExp(xt).test(s)&&(a=I[s]),this.finishToken(a,s)},y.skipBlockComment=function(){var s;this.isLookahead||(s=this.options.onComment&&this.curPosition());var a=this.pos,c=this.input.indexOf("*/",this.pos+=2);if(c===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=c+2,this.options.locations)for(var m,v=a;(m=ge(this.input,v,this.pos))>-1;)++this.curLine,v=this.lineStart=m;this.isLookahead||this.options.onComment&&this.options.onComment(!0,this.input.slice(a+2,c),a,this.pos,s,this.curPosition())},y.skipLineComment=function(s){var a,c=this.pos;this.isLookahead||(a=this.options.onComment&&this.curPosition());for(var m=this.input.charCodeAt(this.pos+=s);this.pos<this.input.length&&!E(m);)m=this.input.charCodeAt(++this.pos);this.isLookahead||this.options.onComment&&this.options.onComment(!1,this.input.slice(c+s,this.pos),c,this.pos,a,this.curPosition())},y.finishToken=function(s,a){this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var c=this.type;this.type=s,this.value=a,this.isLookahead||this.updateContext(c)},y.resetStartLocation=function(s,a,c){s.start=a,s.loc.start=c,this.options.ranges&&(s.range[0]=a)},y.isLineTerminator=function(){return this.eat(l.semi)||R.prototype.canInsertSemicolon.call(this)},y.hasFollowingLineBreak=function(){return ar.lastIndex=this.end,ar.test(this.input)},y.addExtra=function(s,a,c,m){if(m===void 0&&(m=!0),s){var v=s.extra=s.extra||{};m?v[a]=c:Object.defineProperty(v,a,{enumerable:m,value:c})}},y.isLiteralPropertyName=function(){return G(this.type)},y.hasPrecedingLineBreak=function(){return tt.test(this.input.slice(this.lastTokEndLoc.index,this.start))},y.createIdentifier=function(s,a){return s.name=a,this.finishNode(s,"Identifier")},y.resetStartLocationFromNode=function(s,a){this.resetStartLocation(s,a.start,a.loc.start)},y.isThisParam=function(s){return s.type==="Identifier"&&s.name==="this"},y.isLookaheadContextual=function(s){var a=this.nextTokenStart();return this.isUnparsedContextual(a,s)},y.ts_type_isContextual=function(s,a){return s===a&&!this.containsEsc},y.ts_isContextual=function(s){return this.type===s&&!this.containsEsc},y.ts_isContextualWithState=function(s,a){return s.type===a&&!s.containsEsc},y.isContextualWithState=function(s,a){return a.type===l.name&&a.value===s&&!a.containsEsc},y.tsIsStartOfMappedType=function(){return this.next(),this.eat(l.plusMin)?this.ts_isContextual(I.readonly):(this.ts_isContextual(I.readonly)&&this.next(),!!this.match(l.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(l._in))))},y.tsInDisallowConditionalTypesContext=function(s){var a=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return s()}finally{this.inDisallowConditionalTypesContext=a}},y.tsTryParseType=function(){return this.tsEatThenParseType(l.colon)},y.match=function(s){return this.type===s},y.matchJsx=function(s){return this.type===w.tokTypes[s]},y.ts_eatWithState=function(s,a,c){if(s===c.type){for(var m=0;m<a;m++)this.next();return!0}return!1},y.ts_eatContextualWithState=function(s,a,c){if(xt.test(s)){if(this.ts_isContextualWithState(c,I[s])){for(var m=0;m<a;m++)this.next();return!0}return!1}if(!this.isContextualWithState(s,c))return!1;for(var v=0;v<a;v++)this.next();return!0},y.canHaveLeadingDecorator=function(){return this.match(l._class)},y.eatContextual=function(s){return xt.test(s)?!!this.ts_isContextual(I[s])&&(this.next(),!0):R.prototype.eatContextual.call(this,s)},y.tsIsExternalModuleReference=function(){return this.isContextual("require")&&this.lookaheadCharCode()===40},y.tsParseExternalModuleReference=function(){var s=this.startNode();return this.expectContextual("require"),this.expect(l.parenL),this.match(l.string)||this.unexpected(),s.expression=this.parseExprAtom(),this.expect(l.parenR),this.finishNode(s,"TSExternalModuleReference")},y.tsParseEntityName=function(s){s===void 0&&(s=!0);for(var a=this.parseIdent(s);this.eat(l.dot);){var c=this.startNodeAtNode(a);c.left=a,c.right=this.parseIdent(s),a=this.finishNode(c,"TSQualifiedName")}return a},y.tsParseEnumMember=function(){var s=this.startNode();return s.id=this.match(l.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(l.eq)&&(s.initializer=this.parseMaybeAssign()),this.finishNode(s,"TSEnumMember")},y.tsParseEnumDeclaration=function(s,a){return a===void 0&&(a={}),a.const&&(s.const=!0),a.declare&&(s.declare=!0),this.expectContextual("enum"),s.id=this.parseIdent(),this.checkLValSimple(s.id),this.expect(l.braceL),s.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(l.braceR),this.finishNode(s,"TSEnumDeclaration")},y.tsParseModuleBlock=function(){var s=this.startNode();for(R.prototype.enterScope.call(this,512),this.expect(l.braceL),s.body=[];this.type!==l.braceR;){var a=this.parseStatement(null,!0);s.body.push(a)}return this.next(),R.prototype.exitScope.call(this),this.finishNode(s,"TSModuleBlock")},y.tsParseAmbientExternalModuleDeclaration=function(s){return this.ts_isContextual(I.global)?(s.global=!0,s.id=this.parseIdent()):this.match(l.string)?s.id=this.parseLiteral(this.value):this.unexpected(),this.match(l.braceL)?(R.prototype.enterScope.call(this,Ve),s.body=this.tsParseModuleBlock(),R.prototype.exitScope.call(this)):R.prototype.semicolon.call(this),this.finishNode(s,"TSModuleDeclaration")},y.tsTryParseDeclare=function(s){var a=this;if(!this.isLineTerminator()){var c,m=this.type;return this.isContextual("let")&&(m=l._var,c="let"),this.tsInAmbientContext(function(){if(m===l._function)return s.declare=!0,a.parseFunctionStatement(s,!1,!0);if(m===l._class)return s.declare=!0,a.parseClass(s,!0);if(m===I.enum)return a.tsParseEnumDeclaration(s,{declare:!0});if(m===I.global)return a.tsParseAmbientExternalModuleDeclaration(s);if(m===l._const||m===l._var)return a.match(l._const)&&a.isLookaheadContextual("enum")?(a.expect(l._const),a.tsParseEnumDeclaration(s,{const:!0,declare:!0})):(s.declare=!0,a.parseVarStatement(s,c||a.value,!0));if(m===I.interface){var v=a.tsParseInterfaceDeclaration(s,{declare:!0});if(v)return v}return nt(m)?a.tsParseDeclaration(s,a.value,!0):void 0})}},y.tsIsListTerminator=function(s){switch(s){case"EnumMembers":case"TypeMembers":return this.match(l.braceR);case"HeritageClauseElement":return this.match(l.braceL);case"TupleElementTypes":return this.match(l.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}},y.tsParseDelimitedListWorker=function(s,a,c,m){for(var v=[],S=-1;!this.tsIsListTerminator(s);){S=-1;var k=a();if(k==null)return;if(v.push(k),!this.eat(l.comma)){if(this.tsIsListTerminator(s))break;return void(c&&this.expect(l.comma))}S=this.lastTokStart}return m&&(m.value=S),v},y.tsParseDelimitedList=function(s,a,c){return(function(m){if(m==null)throw new Error("Unexpected "+m+" value.");return m})(this.tsParseDelimitedListWorker(s,a,!0,c))},y.tsParseBracketedList=function(s,a,c,m,v){m||this.expect(c?l.bracketL:l.relational);var S=this.tsParseDelimitedList(s,a,v);return this.expect(c?l.bracketR:l.relational),S},y.tsParseTypeParameterName=function(){return this.parseIdent().name},y.tsEatThenParseType=function(s){return this.match(s)?this.tsNextThenParseType():void 0},y.tsExpectThenParseType=function(s){var a=this;return this.tsDoThenParseType(function(){return a.expect(s)})},y.tsNextThenParseType=function(){var s=this;return this.tsDoThenParseType(function(){return s.next()})},y.tsDoThenParseType=function(s){var a=this;return this.tsInType(function(){return s(),a.tsParseType()})},y.tsSkipParameterStart=function(){if(nt(this.type)||this.match(l._this))return this.next(),!0;if(this.match(l.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(l.bracketL)){this.next();try{return this.parseBindingList(l.bracketR,!0,!0),!0}catch{return!1}}return!1},y.tsIsUnambiguouslyStartOfFunctionType=function(){return this.next(),!!(this.match(l.parenR)||this.match(l.ellipsis)||this.tsSkipParameterStart()&&(this.match(l.colon)||this.match(l.comma)||this.match(l.question)||this.match(l.eq)||this.match(l.parenR)&&(this.next(),this.match(l.arrow))))},y.tsIsStartOfFunctionType=function(){return!!this.tsMatchLeftRelational()||this.match(l.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},y.tsInAllowConditionalTypesContext=function(s){var a=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return s()}finally{this.inDisallowConditionalTypesContext=a}},y.tsParseBindingListForSignature=function(){var s=this;return R.prototype.parseBindingList.call(this,l.parenR,!0,!0).map(function(a){return a.type!=="Identifier"&&a.type!=="RestElement"&&a.type!=="ObjectPattern"&&a.type!=="ArrayPattern"&&s.raise(a.start,H.UnsupportedSignatureParameterKind(a.type)),a})},y.tsParseTypePredicateAsserts=function(){if(this.type!==I.asserts)return!1;var s=this.containsEsc;return this.next(),!(!nt(this.type)&&!this.match(l._this)||(s&&this.raise(this.lastTokStart,"Escape sequence in keyword asserts"),0))},y.tsParseThisTypeNode=function(){var s=this.startNode();return this.next(),this.finishNode(s,"TSThisType")},y.tsParseTypeAnnotation=function(s,a){var c=this;return s===void 0&&(s=!0),a===void 0&&(a=this.startNode()),this.tsInType(function(){s&&c.expect(l.colon),a.typeAnnotation=c.tsParseType()}),this.finishNode(a,"TSTypeAnnotation")},y.tsParseThisTypePredicate=function(s){this.next();var a=this.startNodeAtNode(s);return a.parameterName=s,a.typeAnnotation=this.tsParseTypeAnnotation(!1),a.asserts=!1,this.finishNode(a,"TSTypePredicate")},y.tsParseThisTypeOrThisTypePredicate=function(){var s=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(s):s},y.tsParseTypePredicatePrefix=function(){var s=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),s},y.tsParseTypeOrTypePredicateAnnotation=function(s){var a=this;return this.tsInType(function(){var c=a.startNode();a.expect(s);var m=a.startNode(),v=!!a.tsTryParse(a.tsParseTypePredicateAsserts.bind(a));if(v&&a.match(l._this)){var S=a.tsParseThisTypeOrThisTypePredicate();return S.type==="TSThisType"?(m.parameterName=S,m.asserts=!0,m.typeAnnotation=null,S=a.finishNode(m,"TSTypePredicate")):(a.resetStartLocationFromNode(S,m),S.asserts=!0),c.typeAnnotation=S,a.finishNode(c,"TSTypeAnnotation")}var k=a.tsIsIdentifier()&&a.tsTryParse(a.tsParseTypePredicatePrefix.bind(a));if(!k)return v?(m.parameterName=a.parseIdent(),m.asserts=v,m.typeAnnotation=null,c.typeAnnotation=a.finishNode(m,"TSTypePredicate"),a.finishNode(c,"TSTypeAnnotation")):a.tsParseTypeAnnotation(!1,c);var _=a.tsParseTypeAnnotation(!1);return m.parameterName=k,m.typeAnnotation=_,m.asserts=v,c.typeAnnotation=a.finishNode(m,"TSTypePredicate"),a.finishNode(c,"TSTypeAnnotation")})},y.tsFillSignature=function(s,a){var c=s===l.arrow;a.typeParameters=this.tsTryParseTypeParameters(),this.expect(l.parenL),a.parameters=this.tsParseBindingListForSignature(),(c||this.match(s))&&(a.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(s))},y.tsTryNextParseConstantContext=function(){if(this.lookahead().type!==l._const)return null;this.next();var s=this.tsParseTypeReference();return s.typeParameters&&this.raise(s.typeName.start,H.CannotFindName({name:"const"})),s},y.tsParseFunctionOrConstructorType=function(s,a){var c=this,m=this.startNode();return s==="TSConstructorType"&&(m.abstract=!!a,a&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(function(){return c.tsFillSignature(l.arrow,m)}),this.finishNode(m,s)},y.tsParseUnionOrIntersectionType=function(s,a,c){var m=this.startNode(),v=this.eat(c),S=[];do S.push(a());while(this.eat(c));return S.length!==1||v?(m.types=S,this.finishNode(m,s)):S[0]},y.tsCheckTypeAnnotationForReadOnly=function(s){switch(s.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(s.start,H.UnexpectedReadonly)}},y.tsParseTypeOperator=function(){var s=this.startNode(),a=this.value;return this.next(),s.operator=a,s.typeAnnotation=this.tsParseTypeOperatorOrHigher(),a==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(s),this.finishNode(s,"TSTypeOperator")},y.tsParseConstraintForInferType=function(){var s=this;if(this.eat(l._extends)){var a=this.tsInDisallowConditionalTypesContext(function(){return s.tsParseType()});if(this.inDisallowConditionalTypesContext||!this.match(l.question))return a}},y.tsParseInferType=function(){var s=this,a=this.startNode();this.expectContextual("infer");var c=this.startNode();return c.name=this.tsParseTypeParameterName(),c.constraint=this.tsTryParse(function(){return s.tsParseConstraintForInferType()}),a.typeParameter=this.finishNode(c,"TSTypeParameter"),this.finishNode(a,"TSInferType")},y.tsParseLiteralTypeNode=function(){var s=this,a=this.startNode();return a.literal=(function(){switch(s.type){case l.num:case l.string:case l._true:case l._false:return s.parseExprAtom();default:s.unexpected()}})(),this.finishNode(a,"TSLiteralType")},y.tsParseImportType=function(){var s=this.startNode();return this.expect(l._import),this.expect(l.parenL),this.match(l.string)||this.raise(this.start,H.UnsupportedImportTypeArgument),s.argument=this.parseExprAtom(),this.expect(l.parenR),this.eat(l.dot)&&(s.qualifier=this.tsParseEntityName()),this.tsMatchLeftRelational()&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSImportType")},y.tsParseTypeQuery=function(){var s=this.startNode();return this.expect(l._typeof),s.exprName=this.match(l._import)?this.tsParseImportType():this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSTypeQuery")},y.tsParseMappedTypeParameter=function(){var s=this.startNode();return s.name=this.tsParseTypeParameterName(),s.constraint=this.tsExpectThenParseType(l._in),this.finishNode(s,"TSTypeParameter")},y.tsParseMappedType=function(){var s=this.startNode();return this.expect(l.braceL),this.match(l.plusMin)?(s.readonly=this.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(s.readonly=!0),this.expect(l.bracketL),s.typeParameter=this.tsParseMappedTypeParameter(),s.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(l.bracketR),this.match(l.plusMin)?(s.optional=this.value,this.next(),this.expect(l.question)):this.eat(l.question)&&(s.optional=!0),s.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(l.braceR),this.finishNode(s,"TSMappedType")},y.tsParseTypeLiteral=function(){var s=this.startNode();return s.members=this.tsParseObjectTypeMembers(),this.finishNode(s,"TSTypeLiteral")},y.tsParseTupleElementType=function(){var s=this.startLoc,a=this.start,c=this.eat(l.ellipsis),m=this.tsParseType(),v=this.eat(l.question);if(this.eat(l.colon)){var S=this.startNodeAtNode(m);S.optional=v,m.type!=="TSTypeReference"||m.typeParameters||m.typeName.type!=="Identifier"?(this.raise(m.start,H.InvalidTupleMemberLabel),S.label=m):S.label=m.typeName,S.elementType=this.tsParseType(),m=this.finishNode(S,"TSNamedTupleMember")}else if(v){var k=this.startNodeAtNode(m);k.typeAnnotation=m,m=this.finishNode(k,"TSOptionalType")}if(c){var _=this.startNodeAt(a,s);_.typeAnnotation=m,m=this.finishNode(_,"TSRestType")}return m},y.tsParseTupleType=function(){var s=this,a=this.startNode();a.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var c=!1,m=null;return a.elementTypes.forEach(function(v){var S=v.type;!c||S==="TSRestType"||S==="TSOptionalType"||S==="TSNamedTupleMember"&&v.optional||s.raise(v.start,H.OptionalTypeBeforeRequired),c||(c=S==="TSNamedTupleMember"&&v.optional||S==="TSOptionalType");var k=S;S==="TSRestType"&&(k=(v=v.typeAnnotation).type);var _=k==="TSNamedTupleMember";m!=null||(m=_),m!==_&&s.raise(v.start,H.MixedLabeledAndUnlabeledElements)}),this.finishNode(a,"TSTupleType")},y.tsParseTemplateLiteralType=function(){var s=this.startNode();return s.literal=this.parseTemplate({isTagged:!1}),this.finishNode(s,"TSLiteralType")},y.tsParseTypeReference=function(){var s=this.startNode();return s.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSTypeReference")},y.tsMatchLeftRelational=function(){return this.match(l.relational)&&this.value==="<"},y.tsMatchRightRelational=function(){return this.match(l.relational)&&this.value===">"},y.tsParseParenthesizedType=function(){var s=this.startNode();return this.expect(l.parenL),s.typeAnnotation=this.tsParseType(),this.expect(l.parenR),this.finishNode(s,"TSParenthesizedType")},y.tsParseNonArrayType=function(){switch(this.type){case l.string:case l.num:case l._true:case l._false:return this.tsParseLiteralTypeNode();case l.plusMin:if(this.value==="-"){var s=this.startNode();return this.lookahead().type!==l.num&&this.unexpected(),s.literal=this.parseMaybeUnary(),this.finishNode(s,"TSLiteralType")}break;case l._this:return this.tsParseThisTypeOrThisTypePredicate();case l._typeof:return this.tsParseTypeQuery();case l._import:return this.tsParseImportType();case l.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case l.bracketL:return this.tsParseTupleType();case l.parenL:return this.tsParseParenthesizedType();case l.backQuote:case l.dollarBraceL:return this.tsParseTemplateLiteralType();default:var a=this.type;if(nt(a)||a===l._void||a===l._null){var c=a===l._void?"TSVoidKeyword":a===l._null?"TSNullKeyword":(function(v){switch(v){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}})(this.value);if(c!==void 0&&this.lookaheadCharCode()!==46){var m=this.startNode();return this.next(),this.finishNode(m,c)}return this.tsParseTypeReference()}}this.unexpected()},y.tsParseArrayTypeOrHigher=function(){for(var s=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(l.bracketL);)if(this.match(l.bracketR)){var a=this.startNodeAtNode(s);a.elementType=s,this.expect(l.bracketR),s=this.finishNode(a,"TSArrayType")}else{var c=this.startNodeAtNode(s);c.objectType=s,c.indexType=this.tsParseType(),this.expect(l.bracketR),s=this.finishNode(c,"TSIndexedAccessType")}return s},y.tsParseTypeOperatorOrHigher=function(){var s=this;return Me(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(function(){return s.tsParseArrayTypeOrHigher()})},y.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),l.bitwiseAND)},y.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),l.bitwiseOR)},y.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(l._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()},y.tsParseType=function(){var s=this;or(this.inType);var a=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(l._extends))return a;var c=this.startNodeAtNode(a);return c.checkType=a,c.extendsType=this.tsInDisallowConditionalTypesContext(function(){return s.tsParseNonConditionalType()}),this.expect(l.question),c.trueType=this.tsInAllowConditionalTypesContext(function(){return s.tsParseType()}),this.expect(l.colon),c.falseType=this.tsInAllowConditionalTypesContext(function(){return s.tsParseType()}),this.finishNode(c,"TSConditionalType")},y.tsIsUnambiguouslyIndexSignature=function(){return this.next(),!!nt(this.type)&&(this.next(),this.match(l.colon))},y.tsInType=function(s){var a=this.inType;this.inType=!0;try{return s()}finally{this.inType=a}},y.tsTryParseIndexSignature=function(s){if(this.match(l.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(l.bracketL);var a=this.parseIdent();a.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(a),this.expect(l.bracketR),s.parameters=[a];var c=this.tsTryParseTypeAnnotation();return c&&(s.typeAnnotation=c),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSIndexSignature")}},y.tsParseNoneModifiers=function(s){this.tsParseModifiers({modified:s,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:H.InvalidModifierOnTypeParameterPositions})},y.tsParseTypeParameter=function(s){s===void 0&&(s=this.tsParseNoneModifiers.bind(this));var a=this.startNode();return s(a),a.name=this.tsParseTypeParameterName(),a.constraint=this.tsEatThenParseType(l._extends),a.default=this.tsEatThenParseType(l.eq),this.finishNode(a,"TSTypeParameter")},y.tsParseTypeParameters=function(s){var a=this.startNode();this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart")?this.next():this.unexpected();var c={value:-1};return a.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,s),!1,!0,c),a.params.length===0&&this.raise(this.start,H.EmptyTypeParameters),c.value!==-1&&this.addExtra(a,"trailingComma",c.value),this.finishNode(a,"TSTypeParameterDeclaration")},y.tsTryParseTypeParameters=function(s){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(s)},y.tsTryParse=function(s){var a=this.getCurLookaheadState(),c=s();return c!==void 0&&c!==!1?c:void this.setLookaheadState(a)},y.tsTokenCanFollowModifier=function(){return(this.match(l.bracketL)||this.match(l.braceL)||this.match(l.star)||this.match(l.ellipsis)||this.match(l.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()},y.tsNextTokenCanFollowModifier=function(){return this.next(!0),this.tsTokenCanFollowModifier()},y.tsParseModifier=function(s,a){if(nt(this.type)||this.type===l._in){var c=this.value;if(s.indexOf(c)!==-1&&!this.containsEsc){if(a&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return c}}},y.tsParseModifiersByMap=function(s){for(var a=s.modified,c=s.map,m=0,v=Object.keys(c);m<v.length;m++){var S=v[m];a[S]=c[S]}},y.tsParseModifiers=function(s){for(var a=this,c=s.modified,m=s.allowedModifiers,v=s.disallowedModifiers,S=s.stopOnStartOfClassStaticBlock,k=s.errorTemplate,_=k===void 0?H.InvalidModifierOnTypeMember:k,P={},V=function(ht,ut,ct,mt){ut===ct&&c[mt]&&a.raise(ht.column,H.InvalidModifiersOrder({orderedModifiers:[ct,mt]}))},B=function(ht,ut,ct,mt){(c[ct]&&ut===mt||c[mt]&&ut===ct)&&a.raise(ht.column,H.IncompatibleModifiers({modifiers:[ct,mt]}))};;){var z=this.startLoc,M=this.tsParseModifier(m.concat(v??[]),S);if(!M)break;ur(M)?c.accessibility?this.raise(this.start,H.DuplicateAccessibilityModifier()):(V(z,M,M,"override"),V(z,M,M,"static"),V(z,M,M,"readonly"),V(z,M,M,"accessor"),P.accessibility=M,c.accessibility=M):Ga(M)?c[M]?this.raise(this.start,H.DuplicateModifier({modifier:M})):(V(z,M,"in","out"),P[M]=M,c[M]=!0):za(M)?c[M]?this.raise(this.start,H.DuplicateModifier({modifier:M})):(B(z,M,"accessor","readonly"),B(z,M,"accessor","static"),B(z,M,"accessor","override"),P[M]=M,c[M]=!0):Object.hasOwnProperty.call(c,M)?this.raise(this.start,H.DuplicateModifier({modifier:M})):(V(z,M,"static","readonly"),V(z,M,"static","override"),V(z,M,"override","readonly"),V(z,M,"abstract","override"),B(z,M,"declare","override"),B(z,M,"static","abstract"),P[M]=M,c[M]=!0),v!=null&&v.includes(M)&&this.raise(this.start,_)}return P},y.tsParseInOutModifiers=function(s){this.tsParseModifiers({modified:s,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:H.InvalidModifierOnTypeParameter})},y.tsParseTypeArguments=function(){var s=this,a=this.startNode();return a.params=this.tsInType(function(){return s.tsInNoContext(function(){return s.expect(l.relational),s.tsParseDelimitedList("TypeParametersOrArguments",s.tsParseType.bind(s))})}),a.params.length===0&&this.raise(this.start,H.EmptyTypeArguments),this.exprAllowed=!1,this.expect(l.relational),this.finishNode(a,"TSTypeParameterInstantiation")},y.tsParseHeritageClause=function(s){var a=this,c=this.start,m=this.tsParseDelimitedList("HeritageClauseElement",function(){var v=a.startNode();return v.expression=a.tsParseEntityName(),a.tsMatchLeftRelational()&&(v.typeParameters=a.tsParseTypeArguments()),a.finishNode(v,"TSExpressionWithTypeArguments")});return m.length||this.raise(c,H.EmptyHeritageClauseType({token:s})),m},y.tsParseTypeMemberSemicolon=function(){this.eat(l.comma)||this.isLineTerminator()||this.expect(l.semi)},y.tsTryParseAndCatch=function(s){var a=this.tryParse(function(c){return s()||c()});if(!a.aborted&&a.node)return a.error&&this.setLookaheadState(a.failState),a.node},y.tsParseSignatureMember=function(s,a){return this.tsFillSignature(l.colon,a),this.tsParseTypeMemberSemicolon(),this.finishNode(a,s)},y.tsParsePropertyOrMethodSignature=function(s,a){this.eat(l.question)&&(s.optional=!0);var c=s;if(this.match(l.parenL)||this.tsMatchLeftRelational()){a&&this.raise(s.start,H.ReadonlyForMethodSignature);var m=c;m.kind&&this.tsMatchLeftRelational()&&this.raise(this.start,H.AccesorCannotHaveTypeParameters),this.tsFillSignature(l.colon,m),this.tsParseTypeMemberSemicolon();var v="parameters",S="typeAnnotation";if(m.kind==="get")m[v].length>0&&(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(m[v][0])&&this.raise(this.start,H.AccesorCannotDeclareThisParameter));else if(m.kind==="set"){if(m[v].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{var k=m[v][0];this.isThisParam(k)&&this.raise(this.start,H.AccesorCannotDeclareThisParameter),k.type==="Identifier"&&k.optional&&this.raise(this.start,H.SetAccesorCannotHaveOptionalParameter),k.type==="RestElement"&&this.raise(this.start,H.SetAccesorCannotHaveRestParameter)}m[S]&&this.raise(m[S].start,H.SetAccesorCannotHaveReturnType)}else m.kind="method";return this.finishNode(m,"TSMethodSignature")}var _=c;a&&(_.readonly=!0);var P=this.tsTryParseTypeAnnotation();return P&&(_.typeAnnotation=P),this.tsParseTypeMemberSemicolon(),this.finishNode(_,"TSPropertySignature")},y.tsParseTypeMember=function(){var s=this.startNode();if(this.match(l.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",s);if(this.match(l._new)){var a=this.startNode();return this.next(),this.match(l.parenL)||this.tsMatchLeftRelational()?this.tsParseSignatureMember("TSConstructSignatureDeclaration",s):(s.key=this.createIdentifier(a,"new"),this.tsParsePropertyOrMethodSignature(s,!1))}return this.tsParseModifiers({modified:s,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]}),this.tsTryParseIndexSignature(s)||(this.parsePropertyName(s),s.computed||s.key.type!=="Identifier"||s.key.name!=="get"&&s.key.name!=="set"||!this.tsTokenCanFollowModifier()||(s.kind=s.key.name,this.parsePropertyName(s)),this.tsParsePropertyOrMethodSignature(s,!!s.readonly))},y.tsParseList=function(s,a){for(var c=[];!this.tsIsListTerminator(s);)c.push(a());return c},y.tsParseObjectTypeMembers=function(){this.expect(l.braceL);var s=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(l.braceR),s},y.tsParseInterfaceDeclaration=function(s,a){if(a===void 0&&(a={}),this.hasFollowingLineBreak())return null;this.expectContextual("interface"),a.declare&&(s.declare=!0),nt(this.type)?(s.id=this.parseIdent(),this.checkLValSimple(s.id,7)):(s.id=null,this.raise(this.start,H.MissingInterfaceName)),s.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(l._extends)&&(s.extends=this.tsParseHeritageClause("extends"));var c=this.startNode();return c.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),s.body=this.finishNode(c,"TSInterfaceBody"),this.finishNode(s,"TSInterfaceDeclaration")},y.tsParseAbstractDeclaration=function(s){if(this.match(l._class))return s.abstract=!0,this.parseClass(s,!0);if(this.ts_isContextual(I.interface)){if(!this.hasFollowingLineBreak())return s.abstract=!0,this.tsParseInterfaceDeclaration(s)}else this.unexpected(s.start)},y.tsIsDeclarationStart=function(){return yt(this.type)},y.tsParseExpressionStatement=function(s,a){switch(a.name){case"declare":var c=this.tsTryParseDeclare(s);if(c)return c.declare=!0,c;break;case"global":if(this.match(l.braceL)){R.prototype.enterScope.call(this,Ve);var m=s;return m.global=!0,m.id=a,m.body=this.tsParseModuleBlock(),R.prototype.exitScope.call(this),this.finishNode(m,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(s,a.name,!1)}},y.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},y.tsIsExportDefaultSpecifier=function(){var s=this.type,a=this.isAsyncFunction(),c=this.isLet();if(nt(s)){if(a&&!this.containsEsc||c)return!1;if((s===I.type||s===I.interface)&&!this.containsEsc){var m=this.lookahead();if(nt(m.type)&&!this.isContextualWithState("from",m)||m.type===l.braceL)return!1}}else if(!this.match(l._default))return!1;var v=this.nextTokenStart(),S=this.isUnparsedContextual(v,"from");if(this.input.charCodeAt(v)===44||nt(this.type)&&S)return!0;if(this.match(l._default)&&S){var k=this.input.charCodeAt(this.nextTokenStartSince(v+4));return k===34||k===39}return!1},y.tsInAmbientContext=function(s){var a=this.isAmbientContext;this.isAmbientContext=!0;try{return s()}finally{this.isAmbientContext=a}},y.tsCheckLineTerminator=function(s){return s?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()},y.tsParseModuleOrNamespaceDeclaration=function(s,a){if(a===void 0&&(a=!1),s.id=this.parseIdent(),a||this.checkLValSimple(s.id,8),this.eat(l.dot)){var c=this.startNode();this.tsParseModuleOrNamespaceDeclaration(c,!0),s.body=c}else R.prototype.enterScope.call(this,Ve),s.body=this.tsParseModuleBlock(),R.prototype.exitScope.call(this);return this.finishNode(s,"TSModuleDeclaration")},y.checkLValSimple=function(s,a,c){return a===void 0&&(a=0),R.prototype.checkLValSimple.call(this,s,a,c)},y.tsParseTypeAliasDeclaration=function(s){var a=this;return s.id=this.parseIdent(),this.checkLValSimple(s.id,6),s.typeAnnotation=this.tsInType(function(){if(s.typeParameters=a.tsTryParseTypeParameters(a.tsParseInOutModifiers.bind(a)),a.expect(l.eq),a.ts_isContextual(I.interface)&&a.lookahead().type!==l.dot){var c=a.startNode();return a.next(),a.finishNode(c,"TSIntrinsicKeyword")}return a.tsParseType()}),this.semicolon(),this.finishNode(s,"TSTypeAliasDeclaration")},y.tsParseDeclaration=function(s,a,c){switch(a){case"abstract":if(this.tsCheckLineTerminator(c)&&(this.match(l._class)||nt(this.type)))return this.tsParseAbstractDeclaration(s);break;case"module":if(this.tsCheckLineTerminator(c)){if(this.match(l.string))return this.tsParseAmbientExternalModuleDeclaration(s);if(nt(this.type))return this.tsParseModuleOrNamespaceDeclaration(s)}break;case"namespace":if(this.tsCheckLineTerminator(c)&&nt(this.type))return this.tsParseModuleOrNamespaceDeclaration(s);break;case"type":if(this.tsCheckLineTerminator(c)&&nt(this.type))return this.tsParseTypeAliasDeclaration(s)}},y.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.value,!0)},y.tsParseImportEqualsDeclaration=function(s,a){s.isExport=a||!1,s.id=this.parseIdent(),this.checkLValSimple(s.id,2),R.prototype.expect.call(this,l.eq);var c=this.tsParseModuleReference();return s.importKind==="type"&&c.type!=="TSExternalModuleReference"&&this.raise(c.start,H.ImportAliasHasImportType),s.moduleReference=c,R.prototype.semicolon.call(this),this.finishNode(s,"TSImportEqualsDeclaration")},y.isExportDefaultSpecifier=function(){if(this.tsIsDeclarationStart())return!1;var s=this.type;if(nt(s)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((s===I.type||s===I.interface)&&!this.containsEsc){var a=this.lookahead();if(nt(a.type)&&!this.isContextualWithState("from",a)||a.type===l.braceL)return!1}}else if(!this.match(l._default))return!1;var c=this.nextTokenStart(),m=this.isUnparsedContextual(c,"from");if(this.input.charCodeAt(c)===44||nt(this.type)&&m)return!0;if(this.match(l._default)&&m){var v=this.input.charCodeAt(this.nextTokenStartSince(c+4));return v===34||v===39}return!1},y.parseTemplate=function(s){var a=(s===void 0?{}:s).isTagged,c=a!==void 0&&a,m=this.startNode();this.next(),m.expressions=[];var v=this.parseTemplateElement({isTagged:c});for(m.quasis=[v];!v.tail;)this.type===l.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(l.dollarBraceL),m.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(l.braceR),m.quasis.push(v=this.parseTemplateElement({isTagged:c}));return this.next(),this.finishNode(m,"TemplateLiteral")},y.parseFunction=function(s,a,c,m,v){this.initFunction(s),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!m)&&(this.type===l.star&&2&a&&this.unexpected(),s.generator=this.eat(l.star)),this.options.ecmaVersion>=8&&(s.async=!!m),1&a&&(s.id=4&a&&this.type!==l.name?null:this.parseIdent());var S=this.yieldPos,k=this.awaitPos,_=this.awaitIdentPos,P=this.maybeInArrowParameters;this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ei(s.async,s.generator)),1&a||(s.id=this.type===l.name?this.parseIdent():null),this.parseFunctionParams(s);var V=1&a;return this.parseFunctionBody(s,c,!1,v,{isFunctionDeclaration:V}),this.yieldPos=S,this.awaitPos=k,this.awaitIdentPos=_,1&a&&s.id&&!(2&a)&&this.checkLValSimple(s.id,s.body?this.strict||s.generator||s.async?this.treatFunctionsAsVar?1:2:3:0),this.maybeInArrowParameters=P,this.finishNode(s,V?"FunctionDeclaration":"FunctionExpression")},y.parseFunctionBody=function(s,a,c,m,v){a===void 0&&(a=!1),c===void 0&&(c=!1),m===void 0&&(m=!1),this.match(l.colon)&&(s.returnType=this.tsParseTypeOrTypePredicateAnnotation(l.colon));var S=v!=null&&v.isFunctionDeclaration?"TSDeclareFunction":v!=null&&v.isClassMethod?"TSDeclareMethod":void 0;return S&&!this.match(l.braceL)&&this.isLineTerminator()?this.finishNode(s,S):S==="TSDeclareFunction"&&this.isAmbientContext&&(this.raise(s.start,H.DeclareFunctionHasImplementation),s.declare)?(R.prototype.parseFunctionBody.call(this,s,a,c,!1),this.finishNode(s,S)):(R.prototype.parseFunctionBody.call(this,s,a,c,m),s)},y.parseNew=function(){var s;this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var a=this.startNode(),c=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(l.dot)){a.meta=c;var m=this.containsEsc;return a.property=this.parseIdent(!0),a.property.name!=="target"&&this.raiseRecoverable(a.property.start,"The only valid meta property for new is 'new.target'"),m&&this.raiseRecoverable(a.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(a.start,"'new.target' can only be used in functions and class static block"),this.finishNode(a,"MetaProperty")}var v=this.start,S=this.startLoc,k=this.type===l._import;a.callee=this.parseSubscripts(this.parseExprAtom(),v,S,!0,!1),k&&a.callee.type==="ImportExpression"&&this.raise(v,"Cannot use new with import()");var _=a.callee;return _.type!=="TSInstantiationExpression"||(s=_.extra)!=null&&s.parenthesized||(a.typeParameters=_.typeParameters,a.callee=_.expression),a.arguments=this.eat(l.parenL)?this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1):[],this.finishNode(a,"NewExpression")},y.parseExprOp=function(s,a,c,m,v){var S;if(l._in.binop>m&&!this.hasPrecedingLineBreak()&&(this.isContextual("as")&&(S="TSAsExpression"),g&&this.isContextual("satisfies")&&(S="TSSatisfiesExpression"),S)){var k=this.startNodeAt(a,c);k.expression=s;var _=this.tsTryNextParseConstantContext();return k.typeAnnotation=_||this.tsNextThenParseType(),this.finishNode(k,S),this.reScan_lt_gt(),this.parseExprOp(k,a,c,m,v)}return R.prototype.parseExprOp.call(this,s,a,c,m,v)},y.parseImportSpecifiers=function(){var s=[],a=!0;if(w.tokenIsIdentifier(this.type)&&(s.push(this.parseImportDefaultSpecifier()),!this.eat(l.comma)))return s;if(this.type===l.star)return s.push(this.parseImportNamespaceSpecifier()),s;for(this.expect(l.braceL);!this.eat(l.braceR);){if(a)a=!1;else if(this.expect(l.comma),this.afterTrailingComma(l.braceR))break;s.push(this.parseImportSpecifier())}return s},y.parseImport=function(s){var a=this.lookahead();if(s.importKind="value",this.importOrExportOuterKind="value",nt(a.type)||this.match(l.star)||this.match(l.braceL)){var c=this.lookahead(2);if(c.type!==l.comma&&!this.isContextualWithState("from",c)&&c.type!==l.eq&&this.ts_eatContextualWithState("type",1,a)&&(this.importOrExportOuterKind="type",s.importKind="type",a=this.lookahead(),c=this.lookahead(2)),nt(a.type)&&c.type===l.eq){this.next();var m=this.tsParseImportEqualsDeclaration(s);return this.importOrExportOuterKind="value",m}}return this.next(),this.type===l.string?(s.specifiers=[],s.source=this.parseExprAtom()):(s.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),s.source=this.type===l.string?this.parseExprAtom():this.unexpected()),this.parseMaybeImportAttributes(s),this.semicolon(),this.finishNode(s,"ImportDeclaration"),this.importOrExportOuterKind="value",s.importKind==="type"&&s.specifiers.length>1&&s.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(s.start,H.TypeImportCannotSpecifyDefaultAndNamed),s},y.parseExportDefaultDeclaration=function(){if(this.isAbstractClass()){var s=this.startNode();return this.next(),s.abstract=!0,this.parseClass(s,!0)}if(this.match(I.interface)){var a=this.tsParseInterfaceDeclaration(this.startNode());if(a)return a}return R.prototype.parseExportDefaultDeclaration.call(this)},y.parseExportAllDeclaration=function(s,a){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(s.exported=this.parseModuleExportName(),this.checkExport(a,s.exported,this.lastTokStart)):s.exported=null),this.expectContextual("from"),this.type!==l.string&&this.unexpected(),s.source=this.parseExprAtom(),this.parseMaybeImportAttributes(s),this.semicolon(),this.finishNode(s,"ExportAllDeclaration")},y.parseDynamicImport=function(s){if(this.next(),s.source=this.parseMaybeAssign(),this.eat(l.comma)){var a=this.parseExpression();s.arguments=[a]}if(!this.eat(l.parenR)){var c=this.start;this.eat(l.comma)&&this.eat(l.parenR)?this.raiseRecoverable(c,"Trailing comma is not allowed in import()"):this.unexpected(c)}return this.finishNode(s,"ImportExpression")},y.parseExport=function(s,a){var c=this.lookahead();if(this.ts_eatWithState(l._import,2,c)){this.ts_isContextual(I.type)&&this.lookaheadCharCode()!==61?(s.importKind="type",this.importOrExportOuterKind="type",this.next()):(s.importKind="value",this.importOrExportOuterKind="value");var m=this.tsParseImportEqualsDeclaration(s,!0);return this.importOrExportOuterKind=void 0,m}if(this.ts_eatWithState(l.eq,2,c)){var v=s;return v.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(v,"TSExportAssignment")}if(this.ts_eatContextualWithState("as",2,c)){var S=s;return this.expectContextual("namespace"),S.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(S,"TSNamespaceExportDeclaration")}if(this.ts_isContextualWithState(c,I.type)&&this.lookahead(2).type===l.braceL?(this.next(),this.importOrExportOuterKind="type",s.exportKind="type"):(this.importOrExportOuterKind="value",s.exportKind="value"),this.next(),this.eat(l.star))return this.parseExportAllDeclaration(s,a);if(this.eat(l._default))return this.checkExport(a,"default",this.lastTokStart),s.declaration=this.parseExportDefaultDeclaration(),this.finishNode(s,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())s.declaration=this.parseExportDeclaration(s),s.declaration.type==="VariableDeclaration"?this.checkVariableExport(a,s.declaration.declarations):this.checkExport(a,s.declaration.id,s.declaration.id.start),s.specifiers=[],s.source=null;else{if(s.declaration=null,s.specifiers=this.parseExportSpecifiers(a),this.eatContextual("from"))this.type!==l.string&&this.unexpected(),s.source=this.parseExprAtom(),this.parseMaybeImportAttributes(s);else{for(var k,_=rr(s.specifiers);!(k=_()).done;){var P=k.value;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`.")}s.source=null}this.semicolon()}return this.finishNode(s,"ExportNamedDeclaration")},y.checkExport=function(s,a,c){s&&(typeof a!="string"&&(a=a.type==="Identifier"?a.name:a.value),s[a]=!0)},y.parseMaybeDefault=function(s,a,c){var m=R.prototype.parseMaybeDefault.call(this,s,a,c);return m.type==="AssignmentPattern"&&m.typeAnnotation&&m.right.start<m.typeAnnotation.start&&this.raise(m.typeAnnotation.start,H.TypeAnnotationAfterAssign),m},y.typeCastToParameter=function(s){return s.expression.typeAnnotation=s.typeAnnotation,this.resetEndLocation(s.expression,s.typeAnnotation.end),s.expression},y.toAssignableList=function(s,a){for(var c=0;c<s.length;c++){var m=s[c];m?.type==="TSTypeCastExpression"&&(s[c]=this.typeCastToParameter(m))}return R.prototype.toAssignableList.call(this,s,a)},y.reportReservedArrowTypeParam=function(s){},y.parseExprAtom=function(s,a,c){if(this.type===I.jsxText)return this.jsx_parseText();if(this.type===I.jsxTagStart)return this.jsx_parseElement();if(this.type===I.at)return this.parseDecorators(),this.parseExprAtom();if(nt(this.type)){var m=this.potentialArrowAt===this.start,v=this.start,S=this.startLoc,k=this.containsEsc,_=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!k&&_.name==="async"&&!this.canInsertSemicolon()&&this.eat(l._function))return this.overrideContext(N.f_expr),this.parseFunction(this.startNodeAt(v,S),0,!1,!0,a);if(m&&!this.canInsertSemicolon()){if(this.eat(l.arrow))return this.parseArrowExpression(this.startNodeAt(v,S),[_],!1,a);if(this.options.ecmaVersion>=8&&_.name==="async"&&this.type===l.name&&!k&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return _=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(l.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(v,S),[_],!0,a)}return _}return R.prototype.parseExprAtom.call(this,s,a,c)},y.parseExprAtomDefault=function(){if(nt(this.type)){var s=this.potentialArrowAt===this.start,a=this.containsEsc,c=this.parseIdent();if(!a&&c.name==="async"&&!this.canInsertSemicolon()){var m=this.type;if(m===l._function)return this.next(),this.parseFunction(this.startNodeAtNode(c),void 0,!0,!0);if(nt(m)){if(this.lookaheadCharCode()===61){var v=this.parseIdent(!1);return!this.canInsertSemicolon()&&this.eat(l.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAtNode(c),[v],!0)}return c}}return s&&this.match(l.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(c),[c],!1)):c}this.unexpected()},y.parseIdentNode=function(){var s=this.startNode();return Rt(this.type)?(s.name=this.value,s):R.prototype.parseIdentNode.call(this)},y.parseVarStatement=function(s,a,c){c===void 0&&(c=!1);var m=this.isAmbientContext;this.next(),R.prototype.parseVar.call(this,s,!1,a,c||m),this.semicolon();var v=this.finishNode(s,"VariableDeclaration");if(!m)return v;for(var S,k=rr(v.declarations);!(S=k()).done;){var _=S.value,P=_.init;P&&(a!=="const"||_.id.typeAnnotation?this.raise(P.start,H.InitializerNotAllowedInAmbientContext):P.type!=="StringLiteral"&&P.type!=="BooleanLiteral"&&P.type!=="NumericLiteral"&&P.type!=="BigIntLiteral"&&(P.type!=="TemplateLiteral"||P.expressions.length>0)&&!Ka(P)&&this.raise(P.start,H.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference))}return v},y.parseStatement=function(s,a,c){if(this.match(I.at)&&this.parseDecorators(!0),this.match(l._const)&&this.isLookaheadContextual("enum")){var m=this.startNode();return this.expect(l._const),this.tsParseEnumDeclaration(m,{const:!0})}if(this.ts_isContextual(I.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(I.interface)){var v=this.tsParseInterfaceDeclaration(this.startNode());if(v)return v}return R.prototype.parseStatement.call(this,s,a,c)},y.parseAccessModifier=function(){return this.tsParseModifier(["public","protected","private"])},y.parsePostMemberNameModifiers=function(s){this.eat(l.question)&&(s.optional=!0),s.readonly&&this.match(l.parenL)&&this.raise(s.start,H.ClassMethodHasReadonly),s.declare&&this.match(l.parenL)&&this.raise(s.start,H.ClassMethodHasDeclare)},y.parseExpressionStatement=function(s,a){return(a.type==="Identifier"?this.tsParseExpressionStatement(s,a):void 0)||R.prototype.parseExpressionStatement.call(this,s,a)},y.shouldParseExportStatement=function(){return!!this.tsIsDeclarationStart()||!!this.match(I.at)||R.prototype.shouldParseExportStatement.call(this)},y.parseConditional=function(s,a,c,m,v){if(this.eat(l.question)){var S=this.startNodeAt(a,c);return S.test=s,S.consequent=this.parseMaybeAssign(),this.expect(l.colon),S.alternate=this.parseMaybeAssign(m),this.finishNode(S,"ConditionalExpression")}return s},y.parseMaybeConditional=function(s,a){var c=this,m=this.start,v=this.startLoc,S=this.parseExprOps(s,a);if(this.checkExpressionErrors(a))return S;if(!this.maybeInArrowParameters||!this.match(l.question))return this.parseConditional(S,m,v,s,a);var k=this.tryParse(function(){return c.parseConditional(S,m,v,s,a)});return k.node?(k.error&&this.setLookaheadState(k.failState),k.node):(k.error&&this.setOptionalParametersError(a,k.error),S)},y.parseParenItem=function(s){var a=this.start,c=this.startLoc;if(s=R.prototype.parseParenItem.call(this,s),this.eat(l.question)&&(s.optional=!0,this.resetEndLocation(s)),this.match(l.colon)){var m=this.startNodeAt(a,c);return m.expression=s,m.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(m,"TSTypeCastExpression")}return s},y.parseExportDeclaration=function(s){var a=this;if(!this.isAmbientContext&&this.ts_isContextual(I.declare))return this.tsInAmbientContext(function(){return a.parseExportDeclaration(s)});var c=this.start,m=this.startLoc,v=this.eatContextual("declare");!v||!this.ts_isContextual(I.declare)&&this.shouldParseExportStatement()||this.raise(this.start,H.ExpectedAmbientAfterExportDeclare);var S=nt(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);return S?((S.type==="TSInterfaceDeclaration"||S.type==="TSTypeAliasDeclaration"||v)&&(s.exportKind="type"),v&&(this.resetStartLocation(S,c,m),S.declare=!0),S):null},y.parseClassId=function(s,a){if(a||!this.isContextual("implements")){R.prototype.parseClassId.call(this,s,a);var c=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));c&&(s.typeParameters=c)}},y.parseClassPropertyAnnotation=function(s){s.optional||(this.value==="!"&&this.eat(l.prefix)?s.definite=!0:this.eat(l.question)&&(s.optional=!0));var a=this.tsTryParseTypeAnnotation();a&&(s.typeAnnotation=a)},y.parseClassField=function(s){if(s.key.type==="PrivateIdentifier")s.abstract&&this.raise(s.start,H.PrivateElementHasAbstract),s.accessibility&&this.raise(s.start,H.PrivateElementHasAccessibility({modifier:s.accessibility})),this.parseClassPropertyAnnotation(s);else if(this.parseClassPropertyAnnotation(s),this.isAmbientContext&&(!s.readonly||s.typeAnnotation)&&this.match(l.eq)&&this.raise(this.start,H.DeclareClassFieldHasInitializer),s.abstract&&this.match(l.eq)){var a=s.key;this.raise(this.start,H.AbstractPropertyHasInitializer({propertyName:a.type!=="Identifier"||s.computed?"["+this.input.slice(a.start,a.end)+"]":a.name}))}return R.prototype.parseClassField.call(this,s)},y.parseClassMethod=function(s,a,c,m){var v=s.kind==="constructor",S=s.key.type==="PrivateIdentifier",k=this.tsTryParseTypeParameters();S?(k&&(s.typeParameters=k),s.accessibility&&this.raise(s.start,H.PrivateMethodsHasAccessibility({modifier:s.accessibility}))):k&&v&&this.raise(k.start,H.ConstructorHasTypeParameters);var _=s.declare,P=s.kind;!(_!==void 0&&_)||P!=="get"&&P!=="set"||this.raise(s.start,H.DeclareAccessor({kind:P})),k&&(s.typeParameters=k);var V=s.key;s.kind==="constructor"?(a&&this.raise(V.start,"Constructor can't be a generator"),c&&this.raise(V.start,"Constructor can't be an async method")):s.static&&nr(s,"prototype")&&this.raise(V.start,"Classes may not have a static property named prototype");var B=s.value=this.parseMethod(a,c,m,!0,s);return s.kind==="get"&&B.params.length!==0&&this.raiseRecoverable(B.start,"getter should have no params"),s.kind==="set"&&B.params.length!==1&&this.raiseRecoverable(B.start,"setter should have exactly one param"),s.kind==="set"&&B.params[0].type==="RestElement"&&this.raiseRecoverable(B.params[0].start,"Setter cannot use rest params"),this.finishNode(s,"MethodDefinition")},y.isClassMethod=function(){return this.match(l.relational)},y.parseClassElement=function(s){var a=this;if(this.eat(l.semi))return null;var c,m=this.options.ecmaVersion,v=this.startNode(),S="",k=!1,_=!1,P="method",V=["declare","private","public","protected","accessor","override","abstract","readonly","static"],B=this.tsParseModifiers({modified:v,allowedModifiers:V,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:H.InvalidModifierOnTypeParameterPositions});c=!!B.static;var z=function(){if(!a.tsIsStartOfStaticBlocks()){var M=a.tsTryParseIndexSignature(v);if(M)return v.abstract&&a.raise(v.start,H.IndexSignatureHasAbstract),v.accessibility&&a.raise(v.start,H.IndexSignatureHasAccessibility({modifier:v.accessibility})),v.declare&&a.raise(v.start,H.IndexSignatureHasDeclare),v.override&&a.raise(v.start,H.IndexSignatureHasOverride),M;if(!a.inAbstractClass&&v.abstract&&a.raise(v.start,H.NonAbstractClassHasAbstractMethod),v.override&&s&&a.raise(v.start,H.OverrideNotInSubClass),v.static=c,c&&(a.isClassElementNameStart()||a.type===l.star||(S="static")),!S&&m>=8&&a.eatContextual("async")&&(!a.isClassElementNameStart()&&a.type!==l.star||a.canInsertSemicolon()?S="async":_=!0),!S&&(m>=9||!_)&&a.eat(l.star)&&(k=!0),!S&&!_&&!k){var ht=a.value;(a.eatContextual("get")||a.eatContextual("set"))&&(a.isClassElementNameStart()?P=ht:S=ht)}if(S?(v.computed=!1,v.key=a.startNodeAt(a.lastTokStart,a.lastTokStartLoc),v.key.name=S,a.finishNode(v.key,"Identifier")):a.parseClassElementName(v),a.parsePostMemberNameModifiers(v),a.isClassMethod()||m<13||a.type===l.parenL||P!=="method"||k||_){var ut=!v.static&&nr(v,"constructor"),ct=ut&&s;ut&&P!=="method"&&a.raise(v.key.start,"Constructor can't have get/set modifier"),v.kind=ut?"constructor":P,a.parseClassMethod(v,k,_,ct)}else a.parseClassField(v);return v}if(a.next(),a.next(),a.tsHasSomeModifiers(v,V)&&a.raise(a.start,H.StaticBlockCannotHaveModifier),m>=13)return R.prototype.parseClassStaticBlock.call(a,v),v};return v.declare?this.tsInAmbientContext(z):z(),v},y.isClassElementNameStart=function(){return!!this.tsIsIdentifier()||R.prototype.isClassElementNameStart.call(this)},y.parseClassSuper=function(s){R.prototype.parseClassSuper.call(this,s),s.superClass&&(this.tsMatchLeftRelational()||this.match(l.bitShift))&&(s.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual("implements")&&(s.implements=this.tsParseHeritageClause("implements"))},y.parseFunctionParams=function(s){var a=this.tsTryParseTypeParameters();a&&(s.typeParameters=a),R.prototype.parseFunctionParams.call(this,s)},y.parseVarId=function(s,a){R.prototype.parseVarId.call(this,s,a),s.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(l.prefix)&&(s.definite=!0);var c=this.tsTryParseTypeAnnotation();c&&(s.id.typeAnnotation=c,this.resetEndLocation(s.id))},y.parseArrowExpression=function(s,a,c,m){this.match(l.colon)&&(s.returnType=this.tsParseTypeAnnotation());var v=this.yieldPos,S=this.awaitPos,k=this.awaitIdentPos;this.enterScope(16|Ei(c,!1)),this.initFunction(s);var _=this.maybeInArrowParameters;return this.options.ecmaVersion>=8&&(s.async=!!c),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,s.params=this.toAssignableList(a,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(s,!0,!1,m),this.yieldPos=v,this.awaitPos=S,this.awaitIdentPos=k,this.maybeInArrowParameters=_,this.finishNode(s,"ArrowFunctionExpression")},y.parseMaybeAssignOrigin=function(s,a,c){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(s);this.exprAllowed=!1}var m=!1,v=-1,S=-1,k=-1;a?(v=a.parenthesizedAssign,S=a.trailingComma,k=a.doubleProto,a.parenthesizedAssign=a.trailingComma=-1):(a=new Re,m=!0);var _=this.start,P=this.startLoc;(this.type===l.parenL||nt(this.type))&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=s==="await");var V=this.parseMaybeConditional(s,a);if(c&&(V=c.call(this,V,_,P)),this.type.isAssign){var B=this.startNodeAt(_,P);return B.operator=this.value,this.type===l.eq&&(V=this.toAssignable(V,!0,a)),m||(a.parenthesizedAssign=a.trailingComma=a.doubleProto=-1),a.shorthandAssign>=V.start&&(a.shorthandAssign=-1),this.type===l.eq?this.checkLValPattern(V):this.checkLValSimple(V),B.left=V,this.next(),B.right=this.parseMaybeAssign(s),k>-1&&(a.doubleProto=k),this.finishNode(B,"AssignmentExpression")}return m&&this.checkExpressionErrors(a,!0),v>-1&&(a.parenthesizedAssign=v),S>-1&&(a.trailingComma=S),V},y.parseMaybeAssign=function(s,a,c){var m,v,S,k,_,P,V,B,z,M,ht,ut=this;if(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational()){if(B=this.cloneCurLookaheadState(),!(z=this.tryParse(function(){return ut.parseMaybeAssignOrigin(s,a,c)},B)).error)return z.node;var ct=this.context,mt=ct[ct.length-1];mt===w.tokContexts.tc_oTag&&ct[ct.length-2]===w.tokContexts.tc_expr?(ct.pop(),ct.pop()):mt!==w.tokContexts.tc_oTag&&mt!==w.tokContexts.tc_expr||ct.pop()}if(!((m=z)!=null&&m.error||this.tsMatchLeftRelational()))return this.parseMaybeAssignOrigin(s,a,c);B&&!this.compareLookaheadState(B,this.getCurLookaheadState())||(B=this.cloneCurLookaheadState());var Ct=this.tryParse(function(kt){var Wt,te;ht=ut.tsParseTypeParameters();var Nt=ut.parseMaybeAssignOrigin(s,a,c);return(Nt.type!=="ArrowFunctionExpression"||(Wt=Nt.extra)!=null&&Wt.parenthesized)&&kt(),((te=ht)==null?void 0:te.params.length)!==0&&ut.resetStartLocationFromNode(Nt,ht),Nt.typeParameters=ht,Nt},B);if(!Ct.error&&!Ct.aborted)return ht&&this.reportReservedArrowTypeParam(ht),Ct.node;if(!z&&(or(!0),!(M=this.tryParse(function(){return ut.parseMaybeAssignOrigin(s,a,c)},B)).error))return M.node;if((v=z)!=null&&v.node)return this.setLookaheadState(z.failState),z.node;if(Ct.node)return this.setLookaheadState(Ct.failState),ht&&this.reportReservedArrowTypeParam(ht),Ct.node;if((S=M)!=null&&S.node)return this.setLookaheadState(M.failState),M.node;throw(k=z)!=null&&k.thrown?z.error:Ct.thrown?Ct.error:(_=M)!=null&&_.thrown?M.error:((P=z)==null?void 0:P.error)||Ct.error||((V=M)==null?void 0:V.error)},y.parseAssignableListItem=function(s){for(var a=[];this.match(I.at);)a.push(this.parseDecorator());var c,m=this.start,v=this.startLoc,S=!1,k=!1;if(s!==void 0){var _={};this.tsParseModifiers({modified:_,allowedModifiers:["public","private","protected","override","readonly"]}),c=_.accessibility,k=_.override,S=_.readonly,s===!1&&(c||S||k)&&this.raise(v.start,H.UnexpectedParameterModifier)}var P=this.parseMaybeDefault(m,v);this.parseBindingListItem(P);var V=this.parseMaybeDefault(P.start,P.loc,P);if(a.length&&(V.decorators=a),c||S||k){var B=this.startNodeAt(m,v);return c&&(B.accessibility=c),S&&(B.readonly=S),k&&(B.override=k),V.type!=="Identifier"&&V.type!=="AssignmentPattern"&&this.raise(B.start,H.UnsupportedParameterPropertyKind),B.parameter=V,this.finishNode(B,"TSParameterProperty")}return V},y.checkLValInnerPattern=function(s,a,c){a===void 0&&(a=0),s.type==="TSParameterProperty"?this.checkLValInnerPattern(s.parameter,a,c):R.prototype.checkLValInnerPattern.call(this,s,a,c)},y.parseBindingListItem=function(s){this.eat(l.question)&&(s.type==="Identifier"||this.isAmbientContext||this.inType||this.raise(s.start,H.PatternIsOptional),s.optional=!0);var a=this.tsTryParseTypeAnnotation();return a&&(s.typeAnnotation=a),this.resetEndLocation(s),s},y.isAssignable=function(s,a){var c=this;switch(s.type){case"TSTypeCastExpression":return this.isAssignable(s.expression,a);case"TSParameterProperty":case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":var m=s.properties.length-1;return s.properties.every(function(v,S){return v.type!=="ObjectMethod"&&(S===m||v.type!=="SpreadElement")&&c.isAssignable(v)});case"Property":case"ObjectProperty":return this.isAssignable(s.value);case"SpreadElement":return this.isAssignable(s.argument);case"ArrayExpression":return s.elements.every(function(v){return v===null||c.isAssignable(v)});case"AssignmentExpression":return s.operator==="=";case"ParenthesizedExpression":return this.isAssignable(s.expression);case"MemberExpression":case"OptionalMemberExpression":return!a;default:return!1}},y.toAssignable=function(s,a,c){switch(a===void 0&&(a=!1),c===void 0&&(c=new Re),s.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(s,a,c);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":return a||this.raise(s.start,H.UnexpectedTypeCastInParameter),this.toAssignable(s.expression,a,c);case"MemberExpression":break;case"AssignmentExpression":return a||s.left.type!=="TSTypeCastExpression"||(s.left=this.typeCastToParameter(s.left)),R.prototype.toAssignable.call(this,s,a,c);case"TSTypeCastExpression":return this.typeCastToParameter(s);default:return R.prototype.toAssignable.call(this,s,a,c)}return s},y.toAssignableParenthesizedExpression=function(s,a,c){switch(s.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(s.expression,a,c);default:return R.prototype.toAssignable.call(this,s,a,c)}},y.curPosition=function(){if(this.options.locations){var s=R.prototype.curPosition.call(this);return Object.defineProperty(s,"offset",{get:function(){return function(a){var c=new T.Position(this.line,this.column+a);return c.index=this.index+a,c}}}),s.index=this.pos,s}},y.parseBindingAtom=function(){return this.type===l._this?this.parseIdent(!0):R.prototype.parseBindingAtom.call(this)},y.shouldParseArrow=function(s){var a,c=this;if(a=this.match(l.colon)?s.every(function(v){return c.isAssignable(v,!0)}):!this.canInsertSemicolon()){if(this.match(l.colon)){var m=this.tryParse(function(v){var S=c.tsParseTypeOrTypePredicateAnnotation(l.colon);return!c.canInsertSemicolon()&&c.match(l.arrow)||v(),S});if(m.aborted)return this.shouldParseArrowReturnType=void 0,!1;m.thrown||(m.error&&this.setLookaheadState(m.failState),this.shouldParseArrowReturnType=m.node)}return!!this.match(l.arrow)||(this.shouldParseArrowReturnType=void 0,!1)}return this.shouldParseArrowReturnType=void 0,a},y.parseParenArrowList=function(s,a,c,m){var v=this.startNodeAt(s,a);return v.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(v,c,!1,m)},y.parseParenAndDistinguishExpression=function(s,a){var c,m=this.start,v=this.startLoc,S=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){var k=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();var _,P=this.start,V=this.startLoc,B=[],z=!0,M=!1,ht=new Re,ut=this.yieldPos,ct=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==l.parenR;){if(z?z=!1:this.expect(l.comma),S&&this.afterTrailingComma(l.parenR,!0)){M=!0;break}if(this.type===l.ellipsis){_=this.start,B.push(this.parseParenItem(this.parseRestBinding())),this.type===l.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}B.push(this.parseMaybeAssign(a,ht,this.parseParenItem))}var mt=this.lastTokEnd,Ct=this.lastTokEndLoc;if(this.expect(l.parenR),this.maybeInArrowParameters=k,s&&this.shouldParseArrow(B)&&this.eat(l.arrow))return this.checkPatternErrors(ht,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=ut,this.awaitPos=ct,this.parseParenArrowList(m,v,B,a);B.length&&!M||this.unexpected(this.lastTokStart),_&&this.unexpected(_),this.checkExpressionErrors(ht,!0),this.yieldPos=ut||this.yieldPos,this.awaitPos=ct||this.awaitPos,B.length>1?((c=this.startNodeAt(P,V)).expressions=B,this.finishNodeAt(c,"SequenceExpression",mt,Ct)):c=B[0]}else c=this.parseParenExpression();if(this.options.preserveParens){var kt=this.startNodeAt(m,v);return kt.expression=c,this.finishNode(kt,"ParenthesizedExpression")}return c},y.parseTaggedTemplateExpression=function(s,a,c,m){var v=this.startNodeAt(a,c);return v.tag=s,v.quasi=this.parseTemplate({isTagged:!0}),m&&this.raise(a,"Tagged Template Literals are not allowed in optionalChain."),this.finishNode(v,"TaggedTemplateExpression")},y.shouldParseAsyncArrow=function(){var s=this;if(!this.match(l.colon))return!this.canInsertSemicolon()&&this.eat(l.arrow);var a=this.tryParse(function(c){var m=s.tsParseTypeOrTypePredicateAnnotation(l.colon);return!s.canInsertSemicolon()&&s.match(l.arrow)||c(),m});return a.aborted?(this.shouldParseAsyncArrowReturnType=void 0,!1):a.thrown?void 0:(a.error&&this.setLookaheadState(a.failState),this.shouldParseAsyncArrowReturnType=a.node,!this.canInsertSemicolon()&&this.eat(l.arrow))},y.parseSubscriptAsyncArrow=function(s,a,c,m){var v=this.startNodeAt(s,a);return v.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(v,c,!0,m)},y.parseExprList=function(s,a,c,m){for(var v=[],S=!0;!this.eat(s);){if(S)S=!1;else if(this.expect(l.comma),a&&this.afterTrailingComma(s))break;var k=void 0;c&&this.type===l.comma?k=null:this.type===l.ellipsis?(k=this.parseSpread(m),m&&this.type===l.comma&&m.trailingComma<0&&(m.trailingComma=this.start)):k=this.parseMaybeAssign(!1,m,this.parseParenItem),v.push(k)}return v},y.parseSubscript=function(s,a,c,m,v,S,k){var _=this,P=S;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(l.prefix)){this.exprAllowed=!1,this.next();var V=this.startNodeAt(a,c);return V.expression=s,s=this.finishNode(V,"TSNonNullExpression")}var B=!1;if(this.match(l.questionDot)&&this.lookaheadCharCode()===60){if(m)return s;s.optional=!0,P=B=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(l.bitShift)){var z,M=this.tsTryParseAndCatch(function(){if(!m&&_.atPossibleAsyncArrow(s)){var Ot=_.tsTryParseGenericAsyncArrowFunction(a,c,k);if(Ot)return s=Ot}var ae=_.tsParseTypeArgumentsInExpression();if(!ae)return s;if(B&&!_.match(l.parenL))return z=_.curPosition(),s;if(f(_.type)||_.type===l.backQuote){var be=_.parseTaggedTemplateExpression(s,a,c,P);return be.typeParameters=ae,be}if(!m&&_.eat(l.parenL)){var Se=new Re,at=_.startNodeAt(a,c);return at.callee=s,at.arguments=_.parseExprList(l.parenR,_.options.ecmaVersion>=8,!1,Se),_.tsCheckForInvalidTypeCasts(at.arguments),at.typeParameters=ae,P&&(at.optional=B),_.checkExpressionErrors(Se,!0),s=_.finishNode(at,"CallExpression")}var At=_.type;if(!(_.tsMatchRightRelational()||At===l.bitShift||At!==l.parenL&&(gt=At,!!gt.startsExpr)&&!_.hasPrecedingLineBreak())){var gt,Ce=_.startNodeAt(a,c);return Ce.expression=s,Ce.typeParameters=ae,_.finishNode(Ce,"TSInstantiationExpression")}});if(z&&this.unexpected(z),M)return M.type==="TSInstantiationExpression"&&(this.match(l.dot)||this.match(l.questionDot)&&this.lookaheadCharCode()!==40)&&this.raise(this.start,H.InvalidPropertyAccessAfterInstantiationExpression),s=M}var ht=this.options.ecmaVersion>=11,ut=ht&&this.eat(l.questionDot);m&&ut&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var ct=this.eat(l.bracketL);if(ct||ut&&this.type!==l.parenL&&this.type!==l.backQuote||this.eat(l.dot)){var mt=this.startNodeAt(a,c);mt.object=s,ct?(mt.property=this.parseExpression(),this.expect(l.bracketR)):mt.property=this.type===l.privateId&&s.type!=="Super"?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!=="never"),mt.computed=!!ct,ht&&(mt.optional=ut),s=this.finishNode(mt,"MemberExpression")}else if(!m&&this.eat(l.parenL)){var Ct=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;var kt=new Re,Wt=this.yieldPos,te=this.awaitPos,Nt=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var pe=this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1,kt);if(v&&!ut&&this.shouldParseAsyncArrow())this.checkPatternErrors(kt,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Wt,this.awaitPos=te,this.awaitIdentPos=Nt,s=this.parseSubscriptAsyncArrow(a,c,pe,k);else{this.checkExpressionErrors(kt,!0),this.yieldPos=Wt||this.yieldPos,this.awaitPos=te||this.awaitPos,this.awaitIdentPos=Nt||this.awaitIdentPos;var Xt=this.startNodeAt(a,c);Xt.callee=s,Xt.arguments=pe,ht&&(Xt.optional=ut),s=this.finishNode(Xt,"CallExpression")}this.maybeInArrowParameters=Ct}else if(this.type===l.backQuote){(ut||P)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var re=this.startNodeAt(a,c);re.tag=s,re.quasi=this.parseTemplate({isTagged:!0}),s=this.finishNode(re,"TaggedTemplateExpression")}return s},y.parseGetterSetter=function(s){s.kind=s.key.name,this.parsePropertyName(s),s.value=this.parseMethod(!1);var a=s.kind==="get"?0:1,c=s.value.params[0],m=c&&this.isThisParam(c);s.value.params.length!==(a=m?a+1:a)?this.raiseRecoverable(s.value.start,s.kind==="get"?"getter should have no params":"setter should have exactly one param"):s.kind==="set"&&s.value.params[0].type==="RestElement"&&this.raiseRecoverable(s.value.params[0].start,"Setter cannot use rest params")},y.parseProperty=function(s,a){if(!s){var c=[];if(this.match(I.at))for(;this.match(I.at);)c.push(this.parseDecorator());var m=R.prototype.parseProperty.call(this,s,a);return m.type==="SpreadElement"&&c.length&&this.raise(m.start,"Decorators can't be used with SpreadElement"),c.length&&(m.decorators=c,c=[]),m}return R.prototype.parseProperty.call(this,s,a)},y.parseCatchClauseParam=function(){var s=this.parseBindingAtom(),a=s.type==="Identifier";this.enterScope(a?32:0),this.checkLValPattern(s,a?4:2);var c=this.tsTryParseTypeAnnotation();return c&&(s.typeAnnotation=c,this.resetEndLocation(s)),this.expect(l.parenR),s},y.parseClass=function(s,a){var c=this.inAbstractClass;this.inAbstractClass=!!s.abstract;try{this.next(),this.takeDecorators(s);var m=this.strict;this.strict=!0,this.parseClassId(s,a),this.parseClassSuper(s);var v=this.enterClassBody(),S=this.startNode(),k=!1;S.body=[];var _=[];for(this.expect(l.braceL);this.type!==l.braceR;)if(this.match(I.at))_.push(this.parseDecorator());else{var P=this.parseClassElement(s.superClass!==null);_.length&&(P.decorators=_,this.resetStartLocationFromNode(P,_[0]),_=[]),P&&(S.body.push(P),P.type==="MethodDefinition"&&P.kind==="constructor"&&P.value.type==="FunctionExpression"?(k&&this.raiseRecoverable(P.start,"Duplicate constructor in the same class"),k=!0,P.decorators&&P.decorators.length>0&&this.raise(P.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")):P.key&&P.key.type==="PrivateIdentifier"&&Ua(v,P)&&this.raiseRecoverable(P.key.start,"Identifier '#"+P.key.name+"' has already been declared"))}return this.strict=m,this.next(),_.length&&this.raise(this.start,"Decorators must be attached to a class element."),s.body=this.finishNode(S,"ClassBody"),this.exitClassBody(),this.finishNode(s,a?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=c}},y.parseClassFunctionParams=function(){var s=this.tsTryParseTypeParameters(this.tsParseConstModifier),a=this.parseBindingList(l.parenR,!1,this.options.ecmaVersion>=8,!0);return s&&(a.typeParameters=s),a},y.parseMethod=function(s,a,c,m,v){var S=this.startNode(),k=this.yieldPos,_=this.awaitPos,P=this.awaitIdentPos;if(this.initFunction(S),this.options.ecmaVersion>=6&&(S.generator=s),this.options.ecmaVersion>=8&&(S.async=!!a),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|Ei(a,S.generator)|(c?128:0)),this.expect(l.parenL),S.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(S,!1,!0,!1,{isClassMethod:m}),this.yieldPos=k,this.awaitPos=_,this.awaitIdentPos=P,v&&v.abstract&&S.body){var V=v.key;this.raise(v.start,H.AbstractMethodHasImplementation({methodName:V.type!=="Identifier"||v.computed?"["+this.input.slice(V.start,V.end)+"]":V.name}))}return this.finishNode(S,"FunctionExpression")},St.parse=function(s,a){if(a.locations===!1)throw new Error("You have to enable options.locations while using acorn-typescript");a.locations=!0;var c=new this(a,s);return u&&(c.isAmbientContext=!0),c.parse()},St.parseExpressionAt=function(s,a,c){if(c.locations===!1)throw new Error("You have to enable options.locations while using acorn-typescript");c.locations=!0;var m=new this(c,s,a);return u&&(m.isAmbientContext=!0),m.nextToken(),m.parseExpression()},y.parseImportSpecifier=function(){if(this.ts_isContextual(I.type)){var s=this.startNode();return s.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(s,!0,this.importOrExportOuterKind==="type"),this.finishNode(s,"ImportSpecifier")}var a=R.prototype.parseImportSpecifier.call(this);return a.importKind="value",a},y.parseExportSpecifier=function(s){var a=this.ts_isContextual(I.type);if(!this.match(l.string)&&a){var c=this.startNode();return c.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(c,!1,this.importOrExportOuterKind==="type"),this.finishNode(c,"ExportSpecifier"),this.checkExport(s,c.exported,c.exported.start),c}var m=R.prototype.parseExportSpecifier.call(this,s);return m.exportKind="value",m},y.parseTypeOnlyImportExportSpecifier=function(s,a,c){var m,v=a?"imported":"local",S=a?"local":"exported",k=s[v],_=!1,P=!0,V=k.start;if(this.isContextual("as")){var B=this.parseIdent();if(this.isContextual("as")){var z=this.parseIdent();Rt(this.type)?(_=!0,k=B,m=a?this.parseIdent():this.parseModuleExportName(),P=!1):(m=z,P=!1)}else Rt(this.type)?(P=!1,m=a?this.parseIdent():this.parseModuleExportName()):(_=!0,k=B)}else Rt(this.type)&&(_=!0,a?(k=R.prototype.parseIdent.call(this,!0),this.isContextual("as")||this.checkUnreserved(k)):k=this.parseModuleExportName());_&&c&&this.raise(V,a?H.TypeModifierIsUsedInTypeImports:H.TypeModifierIsUsedInTypeExports),s[v]=k,s[S]=m,s[a?"importKind":"exportKind"]=_?"type":"value",P&&this.eatContextual("as")&&(s[S]=a?this.parseIdent():this.parseModuleExportName()),s[S]||(s[S]=this.copyNode(s[v])),a&&this.checkLValSimple(s[S],2)},y.raiseCommonCheck=function(s,a,c){return a==="Comma is not permitted after the rest element"?this.isAmbientContext&&this.match(l.comma)&&this.lookaheadCharCode()===41?void this.next():R.prototype.raise.call(this,s,a):c?R.prototype.raiseRecoverable.call(this,s,a):R.prototype.raise.call(this,s,a)},y.raiseRecoverable=function(s,a){return this.raiseCommonCheck(s,a,!0)},y.raise=function(s,a){return this.raiseCommonCheck(s,a,!0)},y.updateContext=function(s){var a=this.type;if(a==l.braceL){var c=this.curContext();c==K.tc_oTag?this.context.push(N.b_expr):c==K.tc_expr?this.context.push(N.b_tmpl):R.prototype.updateContext.call(this,s),this.exprAllowed=!0}else{if(a!==l.slash||s!==I.jsxTagStart)return R.prototype.updateContext.call(this,s);this.context.length-=2,this.context.push(K.tc_cTag),this.exprAllowed=!1}},y.jsx_parseOpeningElementAt=function(s,a){var c=this,m=this.startNodeAt(s,a),v=this.jsx_parseElementName();if(v&&(m.name=v),this.match(l.relational)||this.match(l.bitShift)){var S=this.tsTryParseAndCatch(function(){return c.tsParseTypeArgumentsInExpression()});S&&(m.typeParameters=S)}for(m.attributes=[];this.type!==l.slash&&this.type!==I.jsxTagEnd;)m.attributes.push(this.jsx_parseAttribute());return m.selfClosing=this.eat(l.slash),this.expect(I.jsxTagEnd),this.finishNode(m,v?"JSXOpeningElement":"JSXOpeningFragment")},y.enterScope=function(s){s===Ve&&this.importsStack.push([]),R.prototype.enterScope.call(this,s);var a=R.prototype.currentScope.call(this);a.types=[],a.enums=[],a.constEnums=[],a.classes=[],a.exportOnlyBindings=[]},y.exitScope=function(){R.prototype.currentScope.call(this).flags===Ve&&this.importsStack.pop(),R.prototype.exitScope.call(this)},y.hasImport=function(s,a){var c=this.importsStack.length;if(this.importsStack[c-1].indexOf(s)>-1)return!0;if(!a&&c>1){for(var m=0;m<c-1;m++)if(this.importsStack[m].indexOf(s)>-1)return!0}return!1},y.maybeExportDefined=function(s,a){this.inModule&&1&s.flags&&this.undefinedExports.delete(a)},y.isRedeclaredInScope=function(s,a,c){return!!(0&c)&&(2&c?s.lexical.indexOf(a)>-1||s.functions.indexOf(a)>-1||s.var.indexOf(a)>-1:3&c?s.lexical.indexOf(a)>-1||!R.prototype.treatFunctionsAsVarInScope.call(this,s)&&s.var.indexOf(a)>-1:s.lexical.indexOf(a)>-1&&!(32&s.flags&&s.lexical[0]===a)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(a)>-1)},y.checkRedeclarationInScope=function(s,a,c,m){this.isRedeclaredInScope(s,a,c)&&this.raise(m,"Identifier '"+a+"' has already been declared.")},y.declareName=function(s,a,c){if(4096&a)return this.hasImport(s,!0)&&this.raise(c,"Identifier '"+s+"' has already been declared."),void this.importsStack[this.importsStack.length-1].push(s);var m=this.currentScope();if(1024&a)return this.maybeExportDefined(m,s),void m.exportOnlyBindings.push(s);R.prototype.declareName.call(this,s,a,c),0&a&&(0&a||(this.checkRedeclarationInScope(m,s,a,c),this.maybeExportDefined(m,s)),m.types.push(s)),256&a&&m.enums.push(s),512&a&&m.constEnums.push(s),128&a&&m.classes.push(s)},y.checkLocalExport=function(s){var a=s.name;if(!this.hasImport(a)){for(var c=this.scopeStack.length-1;c>=0;c--){var m=this.scopeStack[c];if(m.types.indexOf(a)>-1||m.exportOnlyBindings.indexOf(a)>-1)return}R.prototype.checkLocalExport.call(this,s)}},bt=St,et=[{key:"acornTypeScript",get:function(){return w}}],(ot=[{key:"acornTypeScript",get:function(){return w}}])&&ir(bt.prototype,ot),et&&ir(bt,et),Object.defineProperty(bt,"prototype",{writable:!1}),St})(b);return vt}}var De=class{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:i=>this.replacement=i}}replace(i,n,u,p){i&&n&&(u!=null?i[n][u]=p:i[n]=p)}remove(i,n,u){i&&n&&(u!=null?i[n].splice(u,1):delete i[n])}};var ni=class extends De{constructor(i,n){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:u=>this.replacement=u},this.enter=i,this.leave=n}visit(i,n,u,p){if(i){if(this.enter){let b=this.should_skip,T=this.should_remove,w=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,i,n,u,p),this.replacement&&(i=this.replacement,this.replace(n,u,p,i)),this.should_remove&&this.remove(n,u,p);let l=this.should_skip,W=this.should_remove;if(this.should_skip=b,this.should_remove=T,this.replacement=w,l)return i;if(W)return null}let g;for(g in i){let b=i[g];if(b&&typeof b=="object")if(Array.isArray(b)){let T=b;for(let w=0;w<T.length;w+=1){let l=T[w];cr(l)&&(this.visit(l,i,g,w)||w--)}}else cr(b)&&this.visit(b,i,g,null)}if(this.leave){let b=this.replacement,T=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,i,n,u,p),this.replacement&&(i=this.replacement,this.replace(n,u,p,i)),this.should_remove&&this.remove(n,u,p);let w=this.should_remove;if(this.replacement=b,this.should_remove=T,w)return null}}return i}};function cr(t){return t!==null&&typeof t=="object"&&"type"in t&&typeof t.type=="string"}function pr(t,{enter:i,leave:n}){return new ni(i,n).visit(t,null)}var Li="__componentSourceLoc",Vi="$componentSourceLoc";var Xa=dt.extend(Ni(),(0,lr.default)()),Ja=dt.extend(Ni());function Qa(t){return/\.[jt]sx$/.test(t)?Xa:Ja}function Ri(t,i,n){let u=n||process.cwd();return`${t.startsWith(u)?t.slice(u.length+1):t}:${i.line}:${i.column+1}`}function Oi(t){return/^[A-Z]/.test(t)}function Ya(t){if(!t)return!1;if(t.type==="ArrowFunctionExpression"||t.type==="FunctionExpression")return!0;if(t.type!=="CallExpression")return!1;let i=t.callee;if(i.type==="Identifier")return["memo","forwardRef"].includes(i.name);if(i.type==="MemberExpression"){let n=i.object,u=i.property;if(n.type==="Identifier"&&n.name==="React"&&u.type==="Identifier")return["memo","forwardRef"].includes(u.name)}return!1}function fr(t,i){let{filename:n,projectRoot:u=process.cwd(),injectJsxSource:p=!0,injectComponentSource:g=!0}=i,b=/\.[jt]sx$/.test(n),T;try{T=Qa(n).parse(t,{ecmaVersion:"latest",sourceType:"module",locations:!0})}catch{return null}let w=[],l=[],W=new Set,Y=[];if(pr(T,{enter(E){let N=Y[Y.length-1]??null,D=Y[Y.length-2]??null;if(p&&b&&E.type==="JSXElement"){let I=E.openingElement,K=I.name,xt=!1;if(K.type==="JSXIdentifier"?xt=Oi(K.name):K.type==="JSXMemberExpression"&&(xt=!0),xt&&E.loc&&K.end!==void 0&&!I.attributes.some(f=>f.type==="JSXAttribute"&&f.name?.name===Vi)){let f=Ri(n,E.loc.start,u);w.push({at:K.end,text:` ${Vi}="${f}"`})}}if(g&&E.type==="FunctionDeclaration"){let I=E.id?.name,K=N?.type==="Program"||N?.type==="ExportNamedDeclaration"||N?.type==="ExportDefaultDeclaration";if(I&&Oi(I)&&K&&!W.has(I)&&E.loc){W.add(I);let xt=Ri(n,E.loc.start,u),G=N?.type==="ExportNamedDeclaration"||N?.type==="ExportDefaultDeclaration"?N.end:E.end;G!==void 0&&w.push({at:G,text:`
|
|
23
|
-
${I}.${Li} = "${xt}";`})}}if(g&&E.type==="VariableDeclarator"){let I=E.id,
|
|
24
|
-
${I.name}.${Li} = "${
|
|
22
|
+
`):_=String.fromCharCode(P),this.options.locations&&(++this.curLine,this.lineStart=this.pos),_},S.jsx_readString=function(k){for(var _="",P=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var V=this.input.charCodeAt(this.pos);if(V===k)break;V===38?(_+=this.input.slice(P,this.pos),_+=this.jsx_readEntity(),P=this.pos):s(V)?(_+=this.input.slice(P,this.pos),_+=this.jsx_readNewLine(!1),P=this.pos):++this.pos}return _+=this.input.slice(P,this.pos++),this.finishToken(et.string,_)},S.jsx_readEntity=function(){var k,_="",P=0,V=this.input[this.pos];V!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");for(var B=++this.pos;this.pos<this.input.length&&P++<10;){if((V=this.input[this.pos++])===";"){_[0]==="#"?_[1]==="x"?(_=_.substr(2),Ha.test(_)&&(k=String.fromCharCode(parseInt(_,16)))):(_=_.substr(1),Wa.test(_)&&(k=String.fromCharCode(parseInt(_,10)))):k=qa[_];break}_+=V}return k||(this.pos=B,"&")},S.jsx_readWord=function(){var k,_=this.pos;do k=this.input.charCodeAt(++this.pos);while(a(k)||k===45);return this.finishToken(y.jsxName,this.input.slice(_,this.pos))},S.jsx_parseIdentifier=function(){var k=this.startNode();return this.type===y.jsxName?k.name=this.value:this.type.keyword?k.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(k,"JSXIdentifier")},S.jsx_parseNamespacedName=function(){var k=this.start,_=this.startLoc,P=this.jsx_parseIdentifier();if(!c.allowNamespaces||!this.eat(et.colon))return P;var V=this.startNodeAt(k,_);return V.namespace=P,V.name=this.jsx_parseIdentifier(),this.finishNode(V,"JSXNamespacedName")},S.jsx_parseElementName=function(){if(this.type===y.jsxTagEnd)return"";var k=this.start,_=this.startLoc,P=this.jsx_parseNamespacedName();for(this.type!==et.dot||P.type!=="JSXNamespacedName"||c.allowNamespacedObjects||this.unexpected();this.eat(et.dot);){var V=this.startNodeAt(k,_);V.object=P,V.property=this.jsx_parseIdentifier(),P=this.finishNode(V,"JSXMemberExpression")}return P},S.jsx_parseAttributeValue=function(){switch(this.type){case et.braceL:var k=this.jsx_parseExpressionContainer();return k.expression.type==="JSXEmptyExpression"&&this.raise(k.start,"JSX attributes must only be assigned a non-empty expression"),k;case y.jsxTagStart:case et.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}},S.jsx_parseEmptyExpression=function(){var k=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(k,"JSXEmptyExpression",this.start,this.startLoc)},S.jsx_parseExpressionContainer=function(){var k=this.startNode();return this.next(),k.expression=this.type===et.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(et.braceR),this.finishNode(k,"JSXExpressionContainer")},S.jsx_parseAttribute=function(){var k=this.startNode();return this.eat(et.braceL)?(this.expect(et.ellipsis),k.argument=this.parseMaybeAssign(),this.expect(et.braceR),this.finishNode(k,"JSXSpreadAttribute")):(k.name=this.jsx_parseNamespacedName(),k.value=this.eat(et.eq)?this.jsx_parseAttributeValue():null,this.finishNode(k,"JSXAttribute"))},S.jsx_parseOpeningElementAt=function(k,_){var P=this.startNodeAt(k,_);P.attributes=[];var V=this.jsx_parseElementName();for(V&&(P.name=V);this.type!==et.slash&&this.type!==y.jsxTagEnd;)P.attributes.push(this.jsx_parseAttribute());return P.selfClosing=this.eat(et.slash),this.expect(y.jsxTagEnd),this.finishNode(P,V?"JSXOpeningElement":"JSXOpeningFragment")},S.jsx_parseClosingElementAt=function(k,_){var P=this.startNodeAt(k,_),V=this.jsx_parseElementName();return V&&(P.name=V),this.expect(y.jsxTagEnd),this.finishNode(P,V?"JSXClosingElement":"JSXClosingFragment")},S.jsx_parseElementAt=function(k,_){var P=this.startNodeAt(k,_),V=[],B=this.jsx_parseOpeningElementAt(k,_),G=null;if(!B.selfClosing){t:for(;;)switch(this.type){case y.jsxTagStart:if(k=this.start,_=this.startLoc,this.next(),this.eat(et.slash)){G=this.jsx_parseClosingElementAt(k,_);break t}V.push(this.jsx_parseElementAt(k,_));break;case y.jsxText:V.push(this.parseExprAtom());break;case et.braceL:V.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}Oe(G.name)!==Oe(B.name)&&this.raise(G.start,"Expected corresponding JSX closing tag for <"+Oe(B.name)+">")}var M=B.name?"Element":"Fragment";return P["opening"+M]=B,P["closing"+M]=G,P.children=V,this.type===et.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(P,"JSX"+M)},S.jsx_parseText=function(){var k=this.parseLiteral(this.value);return k.type="JSXText",k},S.jsx_parseElement=function(){var k=this.start,_=this.startLoc;return this.next(),this.jsx_parseElementAt(k,_)},v})(bt)})(T,w,b,t?.jsx),b=(function(R,St,bt){var ot=St.tokTypes,et=bt.tokTypes;return(function(y){function s(){return y.apply(this,arguments)||this}ri(s,y);var a=s.prototype;return a.parseMaybeImportAttributes=function(c){if(this.type===et._with||this.type===ot.assert){this.next();var m=this.parseImportAttributes();m&&(c.attributes=m)}},a.parseImportAttributes=function(){this.expect(et.braceL);var c=this.parseWithEntries();return this.expect(et.braceR),c},a.parseWithEntries=function(){var c=[],m=new Set;do{if(this.type===et.braceR)break;var v,S=this.startNode();v=this.type===et.string?this.parseLiteral(this.value):this.parseIdent(!0),this.next(),S.key=v,m.has(S.key.name)&&this.raise(this.pos,"Duplicated key in attributes"),m.add(S.key.name),this.type!==et.string&&this.raise(this.pos,"Only string is supported as an attribute value"),S.value=this.parseLiteral(this.value),c.push(this.finishNode(S,"ImportAttribute"))}while(this.eat(et.comma));return c},s})(R)})(b,w,T);var vt=(function(R){function St(s,a,c){var m;return(m=R.call(this,s,a,c)||this).preValue=null,m.preToken=null,m.isLookahead=!1,m.isAmbientContext=!1,m.inAbstractClass=!1,m.inType=!1,m.inDisallowConditionalTypesContext=!1,m.maybeInArrowParameters=!1,m.shouldParseArrowReturnType=void 0,m.shouldParseAsyncArrowReturnType=void 0,m.decoratorStack=[[]],m.importsStack=[[]],m.importOrExportOuterKind=void 0,m.tsParseConstModifier=m.tsParseModifiers.bind((function(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v})(m),{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:H.InvalidModifierOnTypeParameterPositions}),m}ri(St,R);var bt,ot,et,y=St.prototype;return y.getTokenFromCodeInType=function(s){return s===62||s===60?this.finishOp(l.relational,1):R.prototype.getTokenFromCode.call(this,s)},y.readToken=function(s){if(!this.inType){var a=this.curContext();if(a===Q.tc_expr)return this.jsx_readToken();if(a===Q.tc_oTag||a===Q.tc_cTag){if(Y(s))return this.jsx_readWord();if(s==62)return++this.pos,this.finishToken(I.jsxTagEnd);if((s===34||s===39)&&a==Q.tc_oTag)return this.jsx_readString(s)}if(s===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)return++this.pos,this.finishToken(I.jsxTagStart)}return R.prototype.readToken.call(this,s)},y.getTokenFromCode=function(s){return this.inType?this.getTokenFromCodeInType(s):s===64?(++this.pos,this.finishToken(I.at)):R.prototype.getTokenFromCode.call(this,s)},y.isAbstractClass=function(){return this.ts_isContextual(I.abstract)&&this.lookahead().type===l._class},y.finishNode=function(s,a){return s.type!==""&&s.end!==0?s:R.prototype.finishNode.call(this,s,a)},y.tryParse=function(s,a){a===void 0&&(a=this.cloneCurLookaheadState());var c={node:null};try{return{node:s(function(v){throw v===void 0&&(v=null),c.node=v,c}),error:null,thrown:!1,aborted:!1,failState:null}}catch(v){var m=this.getCurLookaheadState();if(this.setLookaheadState(a),v instanceof SyntaxError)return{node:null,error:v,thrown:!0,aborted:!1,failState:m};if(v===c)return{node:c.node,error:null,thrown:!1,aborted:!0,failState:m};throw v}},y.setOptionalParametersError=function(s,a){var c;s.optionalParametersLoc=(c=a?.loc)!=null?c:this.startLoc},y.reScan_lt_gt=function(){this.type===l.relational&&(this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos()))},y.reScan_lt=function(){var s=this.type;return s===l.bitShift?(this.pos-=2,this.finishOp(l.relational,1),l.relational):s},y.resetEndLocation=function(s,a){a===void 0&&(a=this.lastTokEndLoc),s.end=a.column,s.loc.end=a,this.options.ranges&&(s.range[1]=a.column)},y.startNodeAtNode=function(s){return R.prototype.startNodeAt.call(this,s.start,s.loc.start)},y.nextTokenStart=function(){return this.nextTokenStartSince(this.pos)},y.tsHasSomeModifiers=function(s,a){return a.some(function(c){return or(c)?s.accessibility===c:!!s[c]})},y.tsIsStartOfStaticBlocks=function(){return this.isContextual("static")&&this.lookaheadCharCode()===123},y.tsCheckForInvalidTypeCasts=function(s){var a=this;s.forEach(function(c){c?.type==="TSTypeCastExpression"&&a.raise(c.typeAnnotation.start,H.UnexpectedTypeAnnotation)})},y.atPossibleAsyncArrow=function(s){return s.type==="Identifier"&&s.name==="async"&&this.lastTokEndLoc.column===s.end&&!this.canInsertSemicolon()&&s.end-s.start==5&&s.start===this.potentialArrowAt},y.tsIsIdentifier=function(){return nt(this.type)},y.tsTryParseTypeOrTypePredicateAnnotation=function(){return this.match(l.colon)?this.tsParseTypeOrTypePredicateAnnotation(l.colon):void 0},y.tsTryParseGenericAsyncArrowFunction=function(s,a,c){var m=this;if(this.tsMatchLeftRelational()){var v=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;var S=this.tsTryParseAndCatch(function(){var k=m.startNodeAt(s,a);return k.typeParameters=m.tsParseTypeParameters(),R.prototype.parseFunctionParams.call(m,k),k.returnType=m.tsTryParseTypeOrTypePredicateAnnotation(),m.expect(l.arrow),k});if(this.maybeInArrowParameters=v,S)return R.prototype.parseArrowExpression.call(this,S,null,!0,c)}},y.tsParseTypeArgumentsInExpression=function(){if(this.reScan_lt()===l.relational)return this.tsParseTypeArguments()},y.tsInNoContext=function(s){var a=this.context;this.context=[a[0]];try{return s()}finally{this.context=a}},y.tsTryParseTypeAnnotation=function(){return this.match(l.colon)?this.tsParseTypeAnnotation():void 0},y.isUnparsedContextual=function(s,a){var c=s+a.length;if(this.input.slice(s,c)===a){var m=this.input.charCodeAt(c);return!(D(m)||(64512&m)==55296)}return!1},y.isAbstractConstructorSignature=function(){return this.ts_isContextual(I.abstract)&&this.lookahead().type===l._new},y.nextTokenStartSince=function(s){return Pi.lastIndex=s,Pi.test(this.input)?Pi.lastIndex:s},y.lookaheadCharCode=function(){return this.input.charCodeAt(this.nextTokenStart())},y.compareLookaheadState=function(s,a){for(var c=0,m=Object.keys(s);c<m.length;c++){var v=m[c];if(s[v]!==a[v])return!1}return!0},y.createLookaheadState=function(){this.value=null,this.context=[this.curContext()]},y.getCurLookaheadState=function(){return{endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context,startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}},y.cloneCurLookaheadState=function(){return{pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context&&this.context.slice(),startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}},y.setLookaheadState=function(s){this.pos=s.pos,this.value=s.value,this.endLoc=s.endLoc,this.lastTokEnd=s.lastTokEnd,this.lastTokStart=s.lastTokStart,this.lastTokStartLoc=s.lastTokStartLoc,this.type=s.type,this.start=s.start,this.end=s.end,this.context=s.context,this.startLoc=s.startLoc,this.lastTokEndLoc=s.lastTokEndLoc,this.curLine=s.curLine,this.lineStart=s.lineStart,this.curPosition=s.curPosition,this.containsEsc=s.containsEsc},y.tsLookAhead=function(s){var a=this.getCurLookaheadState(),c=s();return this.setLookaheadState(a),c},y.lookahead=function(s){var a=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,s!==void 0)for(var c=0;c<s;c++)this.nextToken();else this.nextToken();this.isLookahead=!1;var m=this.getCurLookaheadState();return this.setLookaheadState(a),m},y.readWord=function(){var s=this.readWord1(),a=l.name;return this.keywords.test(s)?a=W[s]:new RegExp(xt).test(s)&&(a=I[s]),this.finishToken(a,s)},y.skipBlockComment=function(){var s;this.isLookahead||(s=this.options.onComment&&this.curPosition());var a=this.pos,c=this.input.indexOf("*/",this.pos+=2);if(c===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=c+2,this.options.locations)for(var m,v=a;(m=ge(this.input,v,this.pos))>-1;)++this.curLine,v=this.lineStart=m;this.isLookahead||this.options.onComment&&this.options.onComment(!0,this.input.slice(a+2,c),a,this.pos,s,this.curPosition())},y.skipLineComment=function(s){var a,c=this.pos;this.isLookahead||(a=this.options.onComment&&this.curPosition());for(var m=this.input.charCodeAt(this.pos+=s);this.pos<this.input.length&&!E(m);)m=this.input.charCodeAt(++this.pos);this.isLookahead||this.options.onComment&&this.options.onComment(!1,this.input.slice(c+s,this.pos),c,this.pos,a,this.curPosition())},y.finishToken=function(s,a){this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var c=this.type;this.type=s,this.value=a,this.isLookahead||this.updateContext(c)},y.resetStartLocation=function(s,a,c){s.start=a,s.loc.start=c,this.options.ranges&&(s.range[0]=a)},y.isLineTerminator=function(){return this.eat(l.semi)||R.prototype.canInsertSemicolon.call(this)},y.hasFollowingLineBreak=function(){return rr.lastIndex=this.end,rr.test(this.input)},y.addExtra=function(s,a,c,m){if(m===void 0&&(m=!0),s){var v=s.extra=s.extra||{};m?v[a]=c:Object.defineProperty(v,a,{enumerable:m,value:c})}},y.isLiteralPropertyName=function(){return z(this.type)},y.hasPrecedingLineBreak=function(){return tt.test(this.input.slice(this.lastTokEndLoc.index,this.start))},y.createIdentifier=function(s,a){return s.name=a,this.finishNode(s,"Identifier")},y.resetStartLocationFromNode=function(s,a){this.resetStartLocation(s,a.start,a.loc.start)},y.isThisParam=function(s){return s.type==="Identifier"&&s.name==="this"},y.isLookaheadContextual=function(s){var a=this.nextTokenStart();return this.isUnparsedContextual(a,s)},y.ts_type_isContextual=function(s,a){return s===a&&!this.containsEsc},y.ts_isContextual=function(s){return this.type===s&&!this.containsEsc},y.ts_isContextualWithState=function(s,a){return s.type===a&&!s.containsEsc},y.isContextualWithState=function(s,a){return a.type===l.name&&a.value===s&&!a.containsEsc},y.tsIsStartOfMappedType=function(){return this.next(),this.eat(l.plusMin)?this.ts_isContextual(I.readonly):(this.ts_isContextual(I.readonly)&&this.next(),!!this.match(l.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(l._in))))},y.tsInDisallowConditionalTypesContext=function(s){var a=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return s()}finally{this.inDisallowConditionalTypesContext=a}},y.tsTryParseType=function(){return this.tsEatThenParseType(l.colon)},y.match=function(s){return this.type===s},y.matchJsx=function(s){return this.type===w.tokTypes[s]},y.ts_eatWithState=function(s,a,c){if(s===c.type){for(var m=0;m<a;m++)this.next();return!0}return!1},y.ts_eatContextualWithState=function(s,a,c){if(xt.test(s)){if(this.ts_isContextualWithState(c,I[s])){for(var m=0;m<a;m++)this.next();return!0}return!1}if(!this.isContextualWithState(s,c))return!1;for(var v=0;v<a;v++)this.next();return!0},y.canHaveLeadingDecorator=function(){return this.match(l._class)},y.eatContextual=function(s){return xt.test(s)?!!this.ts_isContextual(I[s])&&(this.next(),!0):R.prototype.eatContextual.call(this,s)},y.tsIsExternalModuleReference=function(){return this.isContextual("require")&&this.lookaheadCharCode()===40},y.tsParseExternalModuleReference=function(){var s=this.startNode();return this.expectContextual("require"),this.expect(l.parenL),this.match(l.string)||this.unexpected(),s.expression=this.parseExprAtom(),this.expect(l.parenR),this.finishNode(s,"TSExternalModuleReference")},y.tsParseEntityName=function(s){s===void 0&&(s=!0);for(var a=this.parseIdent(s);this.eat(l.dot);){var c=this.startNodeAtNode(a);c.left=a,c.right=this.parseIdent(s),a=this.finishNode(c,"TSQualifiedName")}return a},y.tsParseEnumMember=function(){var s=this.startNode();return s.id=this.match(l.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(l.eq)&&(s.initializer=this.parseMaybeAssign()),this.finishNode(s,"TSEnumMember")},y.tsParseEnumDeclaration=function(s,a){return a===void 0&&(a={}),a.const&&(s.const=!0),a.declare&&(s.declare=!0),this.expectContextual("enum"),s.id=this.parseIdent(),this.checkLValSimple(s.id),this.expect(l.braceL),s.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(l.braceR),this.finishNode(s,"TSEnumDeclaration")},y.tsParseModuleBlock=function(){var s=this.startNode();for(R.prototype.enterScope.call(this,512),this.expect(l.braceL),s.body=[];this.type!==l.braceR;){var a=this.parseStatement(null,!0);s.body.push(a)}return this.next(),R.prototype.exitScope.call(this),this.finishNode(s,"TSModuleBlock")},y.tsParseAmbientExternalModuleDeclaration=function(s){return this.ts_isContextual(I.global)?(s.global=!0,s.id=this.parseIdent()):this.match(l.string)?s.id=this.parseLiteral(this.value):this.unexpected(),this.match(l.braceL)?(R.prototype.enterScope.call(this,Ve),s.body=this.tsParseModuleBlock(),R.prototype.exitScope.call(this)):R.prototype.semicolon.call(this),this.finishNode(s,"TSModuleDeclaration")},y.tsTryParseDeclare=function(s){var a=this;if(!this.isLineTerminator()){var c,m=this.type;return this.isContextual("let")&&(m=l._var,c="let"),this.tsInAmbientContext(function(){if(m===l._function)return s.declare=!0,a.parseFunctionStatement(s,!1,!0);if(m===l._class)return s.declare=!0,a.parseClass(s,!0);if(m===I.enum)return a.tsParseEnumDeclaration(s,{declare:!0});if(m===I.global)return a.tsParseAmbientExternalModuleDeclaration(s);if(m===l._const||m===l._var)return a.match(l._const)&&a.isLookaheadContextual("enum")?(a.expect(l._const),a.tsParseEnumDeclaration(s,{const:!0,declare:!0})):(s.declare=!0,a.parseVarStatement(s,c||a.value,!0));if(m===I.interface){var v=a.tsParseInterfaceDeclaration(s,{declare:!0});if(v)return v}return nt(m)?a.tsParseDeclaration(s,a.value,!0):void 0})}},y.tsIsListTerminator=function(s){switch(s){case"EnumMembers":case"TypeMembers":return this.match(l.braceR);case"HeritageClauseElement":return this.match(l.braceL);case"TupleElementTypes":return this.match(l.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}},y.tsParseDelimitedListWorker=function(s,a,c,m){for(var v=[],S=-1;!this.tsIsListTerminator(s);){S=-1;var k=a();if(k==null)return;if(v.push(k),!this.eat(l.comma)){if(this.tsIsListTerminator(s))break;return void(c&&this.expect(l.comma))}S=this.lastTokStart}return m&&(m.value=S),v},y.tsParseDelimitedList=function(s,a,c){return(function(m){if(m==null)throw new Error("Unexpected "+m+" value.");return m})(this.tsParseDelimitedListWorker(s,a,!0,c))},y.tsParseBracketedList=function(s,a,c,m,v){m||this.expect(c?l.bracketL:l.relational);var S=this.tsParseDelimitedList(s,a,v);return this.expect(c?l.bracketR:l.relational),S},y.tsParseTypeParameterName=function(){return this.parseIdent().name},y.tsEatThenParseType=function(s){return this.match(s)?this.tsNextThenParseType():void 0},y.tsExpectThenParseType=function(s){var a=this;return this.tsDoThenParseType(function(){return a.expect(s)})},y.tsNextThenParseType=function(){var s=this;return this.tsDoThenParseType(function(){return s.next()})},y.tsDoThenParseType=function(s){var a=this;return this.tsInType(function(){return s(),a.tsParseType()})},y.tsSkipParameterStart=function(){if(nt(this.type)||this.match(l._this))return this.next(),!0;if(this.match(l.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(l.bracketL)){this.next();try{return this.parseBindingList(l.bracketR,!0,!0),!0}catch{return!1}}return!1},y.tsIsUnambiguouslyStartOfFunctionType=function(){return this.next(),!!(this.match(l.parenR)||this.match(l.ellipsis)||this.tsSkipParameterStart()&&(this.match(l.colon)||this.match(l.comma)||this.match(l.question)||this.match(l.eq)||this.match(l.parenR)&&(this.next(),this.match(l.arrow))))},y.tsIsStartOfFunctionType=function(){return!!this.tsMatchLeftRelational()||this.match(l.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},y.tsInAllowConditionalTypesContext=function(s){var a=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return s()}finally{this.inDisallowConditionalTypesContext=a}},y.tsParseBindingListForSignature=function(){var s=this;return R.prototype.parseBindingList.call(this,l.parenR,!0,!0).map(function(a){return a.type!=="Identifier"&&a.type!=="RestElement"&&a.type!=="ObjectPattern"&&a.type!=="ArrayPattern"&&s.raise(a.start,H.UnsupportedSignatureParameterKind(a.type)),a})},y.tsParseTypePredicateAsserts=function(){if(this.type!==I.asserts)return!1;var s=this.containsEsc;return this.next(),!(!nt(this.type)&&!this.match(l._this)||(s&&this.raise(this.lastTokStart,"Escape sequence in keyword asserts"),0))},y.tsParseThisTypeNode=function(){var s=this.startNode();return this.next(),this.finishNode(s,"TSThisType")},y.tsParseTypeAnnotation=function(s,a){var c=this;return s===void 0&&(s=!0),a===void 0&&(a=this.startNode()),this.tsInType(function(){s&&c.expect(l.colon),a.typeAnnotation=c.tsParseType()}),this.finishNode(a,"TSTypeAnnotation")},y.tsParseThisTypePredicate=function(s){this.next();var a=this.startNodeAtNode(s);return a.parameterName=s,a.typeAnnotation=this.tsParseTypeAnnotation(!1),a.asserts=!1,this.finishNode(a,"TSTypePredicate")},y.tsParseThisTypeOrThisTypePredicate=function(){var s=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(s):s},y.tsParseTypePredicatePrefix=function(){var s=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),s},y.tsParseTypeOrTypePredicateAnnotation=function(s){var a=this;return this.tsInType(function(){var c=a.startNode();a.expect(s);var m=a.startNode(),v=!!a.tsTryParse(a.tsParseTypePredicateAsserts.bind(a));if(v&&a.match(l._this)){var S=a.tsParseThisTypeOrThisTypePredicate();return S.type==="TSThisType"?(m.parameterName=S,m.asserts=!0,m.typeAnnotation=null,S=a.finishNode(m,"TSTypePredicate")):(a.resetStartLocationFromNode(S,m),S.asserts=!0),c.typeAnnotation=S,a.finishNode(c,"TSTypeAnnotation")}var k=a.tsIsIdentifier()&&a.tsTryParse(a.tsParseTypePredicatePrefix.bind(a));if(!k)return v?(m.parameterName=a.parseIdent(),m.asserts=v,m.typeAnnotation=null,c.typeAnnotation=a.finishNode(m,"TSTypePredicate"),a.finishNode(c,"TSTypeAnnotation")):a.tsParseTypeAnnotation(!1,c);var _=a.tsParseTypeAnnotation(!1);return m.parameterName=k,m.typeAnnotation=_,m.asserts=v,c.typeAnnotation=a.finishNode(m,"TSTypePredicate"),a.finishNode(c,"TSTypeAnnotation")})},y.tsFillSignature=function(s,a){var c=s===l.arrow;a.typeParameters=this.tsTryParseTypeParameters(),this.expect(l.parenL),a.parameters=this.tsParseBindingListForSignature(),(c||this.match(s))&&(a.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(s))},y.tsTryNextParseConstantContext=function(){if(this.lookahead().type!==l._const)return null;this.next();var s=this.tsParseTypeReference();return s.typeParameters&&this.raise(s.typeName.start,H.CannotFindName({name:"const"})),s},y.tsParseFunctionOrConstructorType=function(s,a){var c=this,m=this.startNode();return s==="TSConstructorType"&&(m.abstract=!!a,a&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(function(){return c.tsFillSignature(l.arrow,m)}),this.finishNode(m,s)},y.tsParseUnionOrIntersectionType=function(s,a,c){var m=this.startNode(),v=this.eat(c),S=[];do S.push(a());while(this.eat(c));return S.length!==1||v?(m.types=S,this.finishNode(m,s)):S[0]},y.tsCheckTypeAnnotationForReadOnly=function(s){switch(s.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(s.start,H.UnexpectedReadonly)}},y.tsParseTypeOperator=function(){var s=this.startNode(),a=this.value;return this.next(),s.operator=a,s.typeAnnotation=this.tsParseTypeOperatorOrHigher(),a==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(s),this.finishNode(s,"TSTypeOperator")},y.tsParseConstraintForInferType=function(){var s=this;if(this.eat(l._extends)){var a=this.tsInDisallowConditionalTypesContext(function(){return s.tsParseType()});if(this.inDisallowConditionalTypesContext||!this.match(l.question))return a}},y.tsParseInferType=function(){var s=this,a=this.startNode();this.expectContextual("infer");var c=this.startNode();return c.name=this.tsParseTypeParameterName(),c.constraint=this.tsTryParse(function(){return s.tsParseConstraintForInferType()}),a.typeParameter=this.finishNode(c,"TSTypeParameter"),this.finishNode(a,"TSInferType")},y.tsParseLiteralTypeNode=function(){var s=this,a=this.startNode();return a.literal=(function(){switch(s.type){case l.num:case l.string:case l._true:case l._false:return s.parseExprAtom();default:s.unexpected()}})(),this.finishNode(a,"TSLiteralType")},y.tsParseImportType=function(){var s=this.startNode();return this.expect(l._import),this.expect(l.parenL),this.match(l.string)||this.raise(this.start,H.UnsupportedImportTypeArgument),s.argument=this.parseExprAtom(),this.expect(l.parenR),this.eat(l.dot)&&(s.qualifier=this.tsParseEntityName()),this.tsMatchLeftRelational()&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSImportType")},y.tsParseTypeQuery=function(){var s=this.startNode();return this.expect(l._typeof),s.exprName=this.match(l._import)?this.tsParseImportType():this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSTypeQuery")},y.tsParseMappedTypeParameter=function(){var s=this.startNode();return s.name=this.tsParseTypeParameterName(),s.constraint=this.tsExpectThenParseType(l._in),this.finishNode(s,"TSTypeParameter")},y.tsParseMappedType=function(){var s=this.startNode();return this.expect(l.braceL),this.match(l.plusMin)?(s.readonly=this.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(s.readonly=!0),this.expect(l.bracketL),s.typeParameter=this.tsParseMappedTypeParameter(),s.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(l.bracketR),this.match(l.plusMin)?(s.optional=this.value,this.next(),this.expect(l.question)):this.eat(l.question)&&(s.optional=!0),s.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(l.braceR),this.finishNode(s,"TSMappedType")},y.tsParseTypeLiteral=function(){var s=this.startNode();return s.members=this.tsParseObjectTypeMembers(),this.finishNode(s,"TSTypeLiteral")},y.tsParseTupleElementType=function(){var s=this.startLoc,a=this.start,c=this.eat(l.ellipsis),m=this.tsParseType(),v=this.eat(l.question);if(this.eat(l.colon)){var S=this.startNodeAtNode(m);S.optional=v,m.type!=="TSTypeReference"||m.typeParameters||m.typeName.type!=="Identifier"?(this.raise(m.start,H.InvalidTupleMemberLabel),S.label=m):S.label=m.typeName,S.elementType=this.tsParseType(),m=this.finishNode(S,"TSNamedTupleMember")}else if(v){var k=this.startNodeAtNode(m);k.typeAnnotation=m,m=this.finishNode(k,"TSOptionalType")}if(c){var _=this.startNodeAt(a,s);_.typeAnnotation=m,m=this.finishNode(_,"TSRestType")}return m},y.tsParseTupleType=function(){var s=this,a=this.startNode();a.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var c=!1,m=null;return a.elementTypes.forEach(function(v){var S=v.type;!c||S==="TSRestType"||S==="TSOptionalType"||S==="TSNamedTupleMember"&&v.optional||s.raise(v.start,H.OptionalTypeBeforeRequired),c||(c=S==="TSNamedTupleMember"&&v.optional||S==="TSOptionalType");var k=S;S==="TSRestType"&&(k=(v=v.typeAnnotation).type);var _=k==="TSNamedTupleMember";m!=null||(m=_),m!==_&&s.raise(v.start,H.MixedLabeledAndUnlabeledElements)}),this.finishNode(a,"TSTupleType")},y.tsParseTemplateLiteralType=function(){var s=this.startNode();return s.literal=this.parseTemplate({isTagged:!1}),this.finishNode(s,"TSLiteralType")},y.tsParseTypeReference=function(){var s=this.startNode();return s.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSTypeReference")},y.tsMatchLeftRelational=function(){return this.match(l.relational)&&this.value==="<"},y.tsMatchRightRelational=function(){return this.match(l.relational)&&this.value===">"},y.tsParseParenthesizedType=function(){var s=this.startNode();return this.expect(l.parenL),s.typeAnnotation=this.tsParseType(),this.expect(l.parenR),this.finishNode(s,"TSParenthesizedType")},y.tsParseNonArrayType=function(){switch(this.type){case l.string:case l.num:case l._true:case l._false:return this.tsParseLiteralTypeNode();case l.plusMin:if(this.value==="-"){var s=this.startNode();return this.lookahead().type!==l.num&&this.unexpected(),s.literal=this.parseMaybeUnary(),this.finishNode(s,"TSLiteralType")}break;case l._this:return this.tsParseThisTypeOrThisTypePredicate();case l._typeof:return this.tsParseTypeQuery();case l._import:return this.tsParseImportType();case l.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case l.bracketL:return this.tsParseTupleType();case l.parenL:return this.tsParseParenthesizedType();case l.backQuote:case l.dollarBraceL:return this.tsParseTemplateLiteralType();default:var a=this.type;if(nt(a)||a===l._void||a===l._null){var c=a===l._void?"TSVoidKeyword":a===l._null?"TSNullKeyword":(function(v){switch(v){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}})(this.value);if(c!==void 0&&this.lookaheadCharCode()!==46){var m=this.startNode();return this.next(),this.finishNode(m,c)}return this.tsParseTypeReference()}}this.unexpected()},y.tsParseArrayTypeOrHigher=function(){for(var s=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(l.bracketL);)if(this.match(l.bracketR)){var a=this.startNodeAtNode(s);a.elementType=s,this.expect(l.bracketR),s=this.finishNode(a,"TSArrayType")}else{var c=this.startNodeAtNode(s);c.objectType=s,c.indexType=this.tsParseType(),this.expect(l.bracketR),s=this.finishNode(c,"TSIndexedAccessType")}return s},y.tsParseTypeOperatorOrHigher=function(){var s=this;return Me(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(function(){return s.tsParseArrayTypeOrHigher()})},y.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),l.bitwiseAND)},y.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),l.bitwiseOR)},y.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(l._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()},y.tsParseType=function(){var s=this;nr(this.inType);var a=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(l._extends))return a;var c=this.startNodeAtNode(a);return c.checkType=a,c.extendsType=this.tsInDisallowConditionalTypesContext(function(){return s.tsParseNonConditionalType()}),this.expect(l.question),c.trueType=this.tsInAllowConditionalTypesContext(function(){return s.tsParseType()}),this.expect(l.colon),c.falseType=this.tsInAllowConditionalTypesContext(function(){return s.tsParseType()}),this.finishNode(c,"TSConditionalType")},y.tsIsUnambiguouslyIndexSignature=function(){return this.next(),!!nt(this.type)&&(this.next(),this.match(l.colon))},y.tsInType=function(s){var a=this.inType;this.inType=!0;try{return s()}finally{this.inType=a}},y.tsTryParseIndexSignature=function(s){if(this.match(l.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(l.bracketL);var a=this.parseIdent();a.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(a),this.expect(l.bracketR),s.parameters=[a];var c=this.tsTryParseTypeAnnotation();return c&&(s.typeAnnotation=c),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSIndexSignature")}},y.tsParseNoneModifiers=function(s){this.tsParseModifiers({modified:s,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:H.InvalidModifierOnTypeParameterPositions})},y.tsParseTypeParameter=function(s){s===void 0&&(s=this.tsParseNoneModifiers.bind(this));var a=this.startNode();return s(a),a.name=this.tsParseTypeParameterName(),a.constraint=this.tsEatThenParseType(l._extends),a.default=this.tsEatThenParseType(l.eq),this.finishNode(a,"TSTypeParameter")},y.tsParseTypeParameters=function(s){var a=this.startNode();this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart")?this.next():this.unexpected();var c={value:-1};return a.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,s),!1,!0,c),a.params.length===0&&this.raise(this.start,H.EmptyTypeParameters),c.value!==-1&&this.addExtra(a,"trailingComma",c.value),this.finishNode(a,"TSTypeParameterDeclaration")},y.tsTryParseTypeParameters=function(s){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(s)},y.tsTryParse=function(s){var a=this.getCurLookaheadState(),c=s();return c!==void 0&&c!==!1?c:void this.setLookaheadState(a)},y.tsTokenCanFollowModifier=function(){return(this.match(l.bracketL)||this.match(l.braceL)||this.match(l.star)||this.match(l.ellipsis)||this.match(l.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()},y.tsNextTokenCanFollowModifier=function(){return this.next(!0),this.tsTokenCanFollowModifier()},y.tsParseModifier=function(s,a){if(nt(this.type)||this.type===l._in){var c=this.value;if(s.indexOf(c)!==-1&&!this.containsEsc){if(a&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return c}}},y.tsParseModifiersByMap=function(s){for(var a=s.modified,c=s.map,m=0,v=Object.keys(c);m<v.length;m++){var S=v[m];a[S]=c[S]}},y.tsParseModifiers=function(s){for(var a=this,c=s.modified,m=s.allowedModifiers,v=s.disallowedModifiers,S=s.stopOnStartOfClassStaticBlock,k=s.errorTemplate,_=k===void 0?H.InvalidModifierOnTypeMember:k,P={},V=function(ht,ut,ct,mt){ut===ct&&c[mt]&&a.raise(ht.column,H.InvalidModifiersOrder({orderedModifiers:[ct,mt]}))},B=function(ht,ut,ct,mt){(c[ct]&&ut===mt||c[mt]&&ut===ct)&&a.raise(ht.column,H.IncompatibleModifiers({modifiers:[ct,mt]}))};;){var G=this.startLoc,M=this.tsParseModifier(m.concat(v??[]),S);if(!M)break;or(M)?c.accessibility?this.raise(this.start,H.DuplicateAccessibilityModifier()):(V(G,M,M,"override"),V(G,M,M,"static"),V(G,M,M,"readonly"),V(G,M,M,"accessor"),P.accessibility=M,c.accessibility=M):Ga(M)?c[M]?this.raise(this.start,H.DuplicateModifier({modifier:M})):(V(G,M,"in","out"),P[M]=M,c[M]=!0):za(M)?c[M]?this.raise(this.start,H.DuplicateModifier({modifier:M})):(B(G,M,"accessor","readonly"),B(G,M,"accessor","static"),B(G,M,"accessor","override"),P[M]=M,c[M]=!0):Object.hasOwnProperty.call(c,M)?this.raise(this.start,H.DuplicateModifier({modifier:M})):(V(G,M,"static","readonly"),V(G,M,"static","override"),V(G,M,"override","readonly"),V(G,M,"abstract","override"),B(G,M,"declare","override"),B(G,M,"static","abstract"),P[M]=M,c[M]=!0),v!=null&&v.includes(M)&&this.raise(this.start,_)}return P},y.tsParseInOutModifiers=function(s){this.tsParseModifiers({modified:s,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:H.InvalidModifierOnTypeParameter})},y.tsParseTypeArguments=function(){var s=this,a=this.startNode();return a.params=this.tsInType(function(){return s.tsInNoContext(function(){return s.expect(l.relational),s.tsParseDelimitedList("TypeParametersOrArguments",s.tsParseType.bind(s))})}),a.params.length===0&&this.raise(this.start,H.EmptyTypeArguments),this.exprAllowed=!1,this.expect(l.relational),this.finishNode(a,"TSTypeParameterInstantiation")},y.tsParseHeritageClause=function(s){var a=this,c=this.start,m=this.tsParseDelimitedList("HeritageClauseElement",function(){var v=a.startNode();return v.expression=a.tsParseEntityName(),a.tsMatchLeftRelational()&&(v.typeParameters=a.tsParseTypeArguments()),a.finishNode(v,"TSExpressionWithTypeArguments")});return m.length||this.raise(c,H.EmptyHeritageClauseType({token:s})),m},y.tsParseTypeMemberSemicolon=function(){this.eat(l.comma)||this.isLineTerminator()||this.expect(l.semi)},y.tsTryParseAndCatch=function(s){var a=this.tryParse(function(c){return s()||c()});if(!a.aborted&&a.node)return a.error&&this.setLookaheadState(a.failState),a.node},y.tsParseSignatureMember=function(s,a){return this.tsFillSignature(l.colon,a),this.tsParseTypeMemberSemicolon(),this.finishNode(a,s)},y.tsParsePropertyOrMethodSignature=function(s,a){this.eat(l.question)&&(s.optional=!0);var c=s;if(this.match(l.parenL)||this.tsMatchLeftRelational()){a&&this.raise(s.start,H.ReadonlyForMethodSignature);var m=c;m.kind&&this.tsMatchLeftRelational()&&this.raise(this.start,H.AccesorCannotHaveTypeParameters),this.tsFillSignature(l.colon,m),this.tsParseTypeMemberSemicolon();var v="parameters",S="typeAnnotation";if(m.kind==="get")m[v].length>0&&(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(m[v][0])&&this.raise(this.start,H.AccesorCannotDeclareThisParameter));else if(m.kind==="set"){if(m[v].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{var k=m[v][0];this.isThisParam(k)&&this.raise(this.start,H.AccesorCannotDeclareThisParameter),k.type==="Identifier"&&k.optional&&this.raise(this.start,H.SetAccesorCannotHaveOptionalParameter),k.type==="RestElement"&&this.raise(this.start,H.SetAccesorCannotHaveRestParameter)}m[S]&&this.raise(m[S].start,H.SetAccesorCannotHaveReturnType)}else m.kind="method";return this.finishNode(m,"TSMethodSignature")}var _=c;a&&(_.readonly=!0);var P=this.tsTryParseTypeAnnotation();return P&&(_.typeAnnotation=P),this.tsParseTypeMemberSemicolon(),this.finishNode(_,"TSPropertySignature")},y.tsParseTypeMember=function(){var s=this.startNode();if(this.match(l.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",s);if(this.match(l._new)){var a=this.startNode();return this.next(),this.match(l.parenL)||this.tsMatchLeftRelational()?this.tsParseSignatureMember("TSConstructSignatureDeclaration",s):(s.key=this.createIdentifier(a,"new"),this.tsParsePropertyOrMethodSignature(s,!1))}return this.tsParseModifiers({modified:s,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]}),this.tsTryParseIndexSignature(s)||(this.parsePropertyName(s),s.computed||s.key.type!=="Identifier"||s.key.name!=="get"&&s.key.name!=="set"||!this.tsTokenCanFollowModifier()||(s.kind=s.key.name,this.parsePropertyName(s)),this.tsParsePropertyOrMethodSignature(s,!!s.readonly))},y.tsParseList=function(s,a){for(var c=[];!this.tsIsListTerminator(s);)c.push(a());return c},y.tsParseObjectTypeMembers=function(){this.expect(l.braceL);var s=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(l.braceR),s},y.tsParseInterfaceDeclaration=function(s,a){if(a===void 0&&(a={}),this.hasFollowingLineBreak())return null;this.expectContextual("interface"),a.declare&&(s.declare=!0),nt(this.type)?(s.id=this.parseIdent(),this.checkLValSimple(s.id,7)):(s.id=null,this.raise(this.start,H.MissingInterfaceName)),s.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(l._extends)&&(s.extends=this.tsParseHeritageClause("extends"));var c=this.startNode();return c.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),s.body=this.finishNode(c,"TSInterfaceBody"),this.finishNode(s,"TSInterfaceDeclaration")},y.tsParseAbstractDeclaration=function(s){if(this.match(l._class))return s.abstract=!0,this.parseClass(s,!0);if(this.ts_isContextual(I.interface)){if(!this.hasFollowingLineBreak())return s.abstract=!0,this.tsParseInterfaceDeclaration(s)}else this.unexpected(s.start)},y.tsIsDeclarationStart=function(){return yt(this.type)},y.tsParseExpressionStatement=function(s,a){switch(a.name){case"declare":var c=this.tsTryParseDeclare(s);if(c)return c.declare=!0,c;break;case"global":if(this.match(l.braceL)){R.prototype.enterScope.call(this,Ve);var m=s;return m.global=!0,m.id=a,m.body=this.tsParseModuleBlock(),R.prototype.exitScope.call(this),this.finishNode(m,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(s,a.name,!1)}},y.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},y.tsIsExportDefaultSpecifier=function(){var s=this.type,a=this.isAsyncFunction(),c=this.isLet();if(nt(s)){if(a&&!this.containsEsc||c)return!1;if((s===I.type||s===I.interface)&&!this.containsEsc){var m=this.lookahead();if(nt(m.type)&&!this.isContextualWithState("from",m)||m.type===l.braceL)return!1}}else if(!this.match(l._default))return!1;var v=this.nextTokenStart(),S=this.isUnparsedContextual(v,"from");if(this.input.charCodeAt(v)===44||nt(this.type)&&S)return!0;if(this.match(l._default)&&S){var k=this.input.charCodeAt(this.nextTokenStartSince(v+4));return k===34||k===39}return!1},y.tsInAmbientContext=function(s){var a=this.isAmbientContext;this.isAmbientContext=!0;try{return s()}finally{this.isAmbientContext=a}},y.tsCheckLineTerminator=function(s){return s?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()},y.tsParseModuleOrNamespaceDeclaration=function(s,a){if(a===void 0&&(a=!1),s.id=this.parseIdent(),a||this.checkLValSimple(s.id,8),this.eat(l.dot)){var c=this.startNode();this.tsParseModuleOrNamespaceDeclaration(c,!0),s.body=c}else R.prototype.enterScope.call(this,Ve),s.body=this.tsParseModuleBlock(),R.prototype.exitScope.call(this);return this.finishNode(s,"TSModuleDeclaration")},y.checkLValSimple=function(s,a,c){return a===void 0&&(a=0),R.prototype.checkLValSimple.call(this,s,a,c)},y.tsParseTypeAliasDeclaration=function(s){var a=this;return s.id=this.parseIdent(),this.checkLValSimple(s.id,6),s.typeAnnotation=this.tsInType(function(){if(s.typeParameters=a.tsTryParseTypeParameters(a.tsParseInOutModifiers.bind(a)),a.expect(l.eq),a.ts_isContextual(I.interface)&&a.lookahead().type!==l.dot){var c=a.startNode();return a.next(),a.finishNode(c,"TSIntrinsicKeyword")}return a.tsParseType()}),this.semicolon(),this.finishNode(s,"TSTypeAliasDeclaration")},y.tsParseDeclaration=function(s,a,c){switch(a){case"abstract":if(this.tsCheckLineTerminator(c)&&(this.match(l._class)||nt(this.type)))return this.tsParseAbstractDeclaration(s);break;case"module":if(this.tsCheckLineTerminator(c)){if(this.match(l.string))return this.tsParseAmbientExternalModuleDeclaration(s);if(nt(this.type))return this.tsParseModuleOrNamespaceDeclaration(s)}break;case"namespace":if(this.tsCheckLineTerminator(c)&&nt(this.type))return this.tsParseModuleOrNamespaceDeclaration(s);break;case"type":if(this.tsCheckLineTerminator(c)&&nt(this.type))return this.tsParseTypeAliasDeclaration(s)}},y.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.value,!0)},y.tsParseImportEqualsDeclaration=function(s,a){s.isExport=a||!1,s.id=this.parseIdent(),this.checkLValSimple(s.id,2),R.prototype.expect.call(this,l.eq);var c=this.tsParseModuleReference();return s.importKind==="type"&&c.type!=="TSExternalModuleReference"&&this.raise(c.start,H.ImportAliasHasImportType),s.moduleReference=c,R.prototype.semicolon.call(this),this.finishNode(s,"TSImportEqualsDeclaration")},y.isExportDefaultSpecifier=function(){if(this.tsIsDeclarationStart())return!1;var s=this.type;if(nt(s)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((s===I.type||s===I.interface)&&!this.containsEsc){var a=this.lookahead();if(nt(a.type)&&!this.isContextualWithState("from",a)||a.type===l.braceL)return!1}}else if(!this.match(l._default))return!1;var c=this.nextTokenStart(),m=this.isUnparsedContextual(c,"from");if(this.input.charCodeAt(c)===44||nt(this.type)&&m)return!0;if(this.match(l._default)&&m){var v=this.input.charCodeAt(this.nextTokenStartSince(c+4));return v===34||v===39}return!1},y.parseTemplate=function(s){var a=(s===void 0?{}:s).isTagged,c=a!==void 0&&a,m=this.startNode();this.next(),m.expressions=[];var v=this.parseTemplateElement({isTagged:c});for(m.quasis=[v];!v.tail;)this.type===l.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(l.dollarBraceL),m.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(l.braceR),m.quasis.push(v=this.parseTemplateElement({isTagged:c}));return this.next(),this.finishNode(m,"TemplateLiteral")},y.parseFunction=function(s,a,c,m,v){this.initFunction(s),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!m)&&(this.type===l.star&&2&a&&this.unexpected(),s.generator=this.eat(l.star)),this.options.ecmaVersion>=8&&(s.async=!!m),1&a&&(s.id=4&a&&this.type!==l.name?null:this.parseIdent());var S=this.yieldPos,k=this.awaitPos,_=this.awaitIdentPos,P=this.maybeInArrowParameters;this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ei(s.async,s.generator)),1&a||(s.id=this.type===l.name?this.parseIdent():null),this.parseFunctionParams(s);var V=1&a;return this.parseFunctionBody(s,c,!1,v,{isFunctionDeclaration:V}),this.yieldPos=S,this.awaitPos=k,this.awaitIdentPos=_,1&a&&s.id&&!(2&a)&&this.checkLValSimple(s.id,s.body?this.strict||s.generator||s.async?this.treatFunctionsAsVar?1:2:3:0),this.maybeInArrowParameters=P,this.finishNode(s,V?"FunctionDeclaration":"FunctionExpression")},y.parseFunctionBody=function(s,a,c,m,v){a===void 0&&(a=!1),c===void 0&&(c=!1),m===void 0&&(m=!1),this.match(l.colon)&&(s.returnType=this.tsParseTypeOrTypePredicateAnnotation(l.colon));var S=v!=null&&v.isFunctionDeclaration?"TSDeclareFunction":v!=null&&v.isClassMethod?"TSDeclareMethod":void 0;return S&&!this.match(l.braceL)&&this.isLineTerminator()?this.finishNode(s,S):S==="TSDeclareFunction"&&this.isAmbientContext&&(this.raise(s.start,H.DeclareFunctionHasImplementation),s.declare)?(R.prototype.parseFunctionBody.call(this,s,a,c,!1),this.finishNode(s,S)):(R.prototype.parseFunctionBody.call(this,s,a,c,m),s)},y.parseNew=function(){var s;this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var a=this.startNode(),c=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(l.dot)){a.meta=c;var m=this.containsEsc;return a.property=this.parseIdent(!0),a.property.name!=="target"&&this.raiseRecoverable(a.property.start,"The only valid meta property for new is 'new.target'"),m&&this.raiseRecoverable(a.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(a.start,"'new.target' can only be used in functions and class static block"),this.finishNode(a,"MetaProperty")}var v=this.start,S=this.startLoc,k=this.type===l._import;a.callee=this.parseSubscripts(this.parseExprAtom(),v,S,!0,!1),k&&a.callee.type==="ImportExpression"&&this.raise(v,"Cannot use new with import()");var _=a.callee;return _.type!=="TSInstantiationExpression"||(s=_.extra)!=null&&s.parenthesized||(a.typeParameters=_.typeParameters,a.callee=_.expression),a.arguments=this.eat(l.parenL)?this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1):[],this.finishNode(a,"NewExpression")},y.parseExprOp=function(s,a,c,m,v){var S;if(l._in.binop>m&&!this.hasPrecedingLineBreak()&&(this.isContextual("as")&&(S="TSAsExpression"),g&&this.isContextual("satisfies")&&(S="TSSatisfiesExpression"),S)){var k=this.startNodeAt(a,c);k.expression=s;var _=this.tsTryNextParseConstantContext();return k.typeAnnotation=_||this.tsNextThenParseType(),this.finishNode(k,S),this.reScan_lt_gt(),this.parseExprOp(k,a,c,m,v)}return R.prototype.parseExprOp.call(this,s,a,c,m,v)},y.parseImportSpecifiers=function(){var s=[],a=!0;if(w.tokenIsIdentifier(this.type)&&(s.push(this.parseImportDefaultSpecifier()),!this.eat(l.comma)))return s;if(this.type===l.star)return s.push(this.parseImportNamespaceSpecifier()),s;for(this.expect(l.braceL);!this.eat(l.braceR);){if(a)a=!1;else if(this.expect(l.comma),this.afterTrailingComma(l.braceR))break;s.push(this.parseImportSpecifier())}return s},y.parseImport=function(s){var a=this.lookahead();if(s.importKind="value",this.importOrExportOuterKind="value",nt(a.type)||this.match(l.star)||this.match(l.braceL)){var c=this.lookahead(2);if(c.type!==l.comma&&!this.isContextualWithState("from",c)&&c.type!==l.eq&&this.ts_eatContextualWithState("type",1,a)&&(this.importOrExportOuterKind="type",s.importKind="type",a=this.lookahead(),c=this.lookahead(2)),nt(a.type)&&c.type===l.eq){this.next();var m=this.tsParseImportEqualsDeclaration(s);return this.importOrExportOuterKind="value",m}}return this.next(),this.type===l.string?(s.specifiers=[],s.source=this.parseExprAtom()):(s.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),s.source=this.type===l.string?this.parseExprAtom():this.unexpected()),this.parseMaybeImportAttributes(s),this.semicolon(),this.finishNode(s,"ImportDeclaration"),this.importOrExportOuterKind="value",s.importKind==="type"&&s.specifiers.length>1&&s.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(s.start,H.TypeImportCannotSpecifyDefaultAndNamed),s},y.parseExportDefaultDeclaration=function(){if(this.isAbstractClass()){var s=this.startNode();return this.next(),s.abstract=!0,this.parseClass(s,!0)}if(this.match(I.interface)){var a=this.tsParseInterfaceDeclaration(this.startNode());if(a)return a}return R.prototype.parseExportDefaultDeclaration.call(this)},y.parseExportAllDeclaration=function(s,a){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(s.exported=this.parseModuleExportName(),this.checkExport(a,s.exported,this.lastTokStart)):s.exported=null),this.expectContextual("from"),this.type!==l.string&&this.unexpected(),s.source=this.parseExprAtom(),this.parseMaybeImportAttributes(s),this.semicolon(),this.finishNode(s,"ExportAllDeclaration")},y.parseDynamicImport=function(s){if(this.next(),s.source=this.parseMaybeAssign(),this.eat(l.comma)){var a=this.parseExpression();s.arguments=[a]}if(!this.eat(l.parenR)){var c=this.start;this.eat(l.comma)&&this.eat(l.parenR)?this.raiseRecoverable(c,"Trailing comma is not allowed in import()"):this.unexpected(c)}return this.finishNode(s,"ImportExpression")},y.parseExport=function(s,a){var c=this.lookahead();if(this.ts_eatWithState(l._import,2,c)){this.ts_isContextual(I.type)&&this.lookaheadCharCode()!==61?(s.importKind="type",this.importOrExportOuterKind="type",this.next()):(s.importKind="value",this.importOrExportOuterKind="value");var m=this.tsParseImportEqualsDeclaration(s,!0);return this.importOrExportOuterKind=void 0,m}if(this.ts_eatWithState(l.eq,2,c)){var v=s;return v.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(v,"TSExportAssignment")}if(this.ts_eatContextualWithState("as",2,c)){var S=s;return this.expectContextual("namespace"),S.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(S,"TSNamespaceExportDeclaration")}if(this.ts_isContextualWithState(c,I.type)&&this.lookahead(2).type===l.braceL?(this.next(),this.importOrExportOuterKind="type",s.exportKind="type"):(this.importOrExportOuterKind="value",s.exportKind="value"),this.next(),this.eat(l.star))return this.parseExportAllDeclaration(s,a);if(this.eat(l._default))return this.checkExport(a,"default",this.lastTokStart),s.declaration=this.parseExportDefaultDeclaration(),this.finishNode(s,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())s.declaration=this.parseExportDeclaration(s),s.declaration.type==="VariableDeclaration"?this.checkVariableExport(a,s.declaration.declarations):this.checkExport(a,s.declaration.id,s.declaration.id.start),s.specifiers=[],s.source=null;else{if(s.declaration=null,s.specifiers=this.parseExportSpecifiers(a),this.eatContextual("from"))this.type!==l.string&&this.unexpected(),s.source=this.parseExprAtom(),this.parseMaybeImportAttributes(s);else{for(var k,_=sr(s.specifiers);!(k=_()).done;){var P=k.value;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`.")}s.source=null}this.semicolon()}return this.finishNode(s,"ExportNamedDeclaration")},y.checkExport=function(s,a,c){s&&(typeof a!="string"&&(a=a.type==="Identifier"?a.name:a.value),s[a]=!0)},y.parseMaybeDefault=function(s,a,c){var m=R.prototype.parseMaybeDefault.call(this,s,a,c);return m.type==="AssignmentPattern"&&m.typeAnnotation&&m.right.start<m.typeAnnotation.start&&this.raise(m.typeAnnotation.start,H.TypeAnnotationAfterAssign),m},y.typeCastToParameter=function(s){return s.expression.typeAnnotation=s.typeAnnotation,this.resetEndLocation(s.expression,s.typeAnnotation.end),s.expression},y.toAssignableList=function(s,a){for(var c=0;c<s.length;c++){var m=s[c];m?.type==="TSTypeCastExpression"&&(s[c]=this.typeCastToParameter(m))}return R.prototype.toAssignableList.call(this,s,a)},y.reportReservedArrowTypeParam=function(s){},y.parseExprAtom=function(s,a,c){if(this.type===I.jsxText)return this.jsx_parseText();if(this.type===I.jsxTagStart)return this.jsx_parseElement();if(this.type===I.at)return this.parseDecorators(),this.parseExprAtom();if(nt(this.type)){var m=this.potentialArrowAt===this.start,v=this.start,S=this.startLoc,k=this.containsEsc,_=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!k&&_.name==="async"&&!this.canInsertSemicolon()&&this.eat(l._function))return this.overrideContext(N.f_expr),this.parseFunction(this.startNodeAt(v,S),0,!1,!0,a);if(m&&!this.canInsertSemicolon()){if(this.eat(l.arrow))return this.parseArrowExpression(this.startNodeAt(v,S),[_],!1,a);if(this.options.ecmaVersion>=8&&_.name==="async"&&this.type===l.name&&!k&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return _=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(l.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(v,S),[_],!0,a)}return _}return R.prototype.parseExprAtom.call(this,s,a,c)},y.parseExprAtomDefault=function(){if(nt(this.type)){var s=this.potentialArrowAt===this.start,a=this.containsEsc,c=this.parseIdent();if(!a&&c.name==="async"&&!this.canInsertSemicolon()){var m=this.type;if(m===l._function)return this.next(),this.parseFunction(this.startNodeAtNode(c),void 0,!0,!0);if(nt(m)){if(this.lookaheadCharCode()===61){var v=this.parseIdent(!1);return!this.canInsertSemicolon()&&this.eat(l.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAtNode(c),[v],!0)}return c}}return s&&this.match(l.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(c),[c],!1)):c}this.unexpected()},y.parseIdentNode=function(){var s=this.startNode();return Rt(this.type)?(s.name=this.value,s):R.prototype.parseIdentNode.call(this)},y.parseVarStatement=function(s,a,c){c===void 0&&(c=!1);var m=this.isAmbientContext;this.next(),R.prototype.parseVar.call(this,s,!1,a,c||m),this.semicolon();var v=this.finishNode(s,"VariableDeclaration");if(!m)return v;for(var S,k=sr(v.declarations);!(S=k()).done;){var _=S.value,P=_.init;P&&(a!=="const"||_.id.typeAnnotation?this.raise(P.start,H.InitializerNotAllowedInAmbientContext):P.type!=="StringLiteral"&&P.type!=="BooleanLiteral"&&P.type!=="NumericLiteral"&&P.type!=="BigIntLiteral"&&(P.type!=="TemplateLiteral"||P.expressions.length>0)&&!Ka(P)&&this.raise(P.start,H.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference))}return v},y.parseStatement=function(s,a,c){if(this.match(I.at)&&this.parseDecorators(!0),this.match(l._const)&&this.isLookaheadContextual("enum")){var m=this.startNode();return this.expect(l._const),this.tsParseEnumDeclaration(m,{const:!0})}if(this.ts_isContextual(I.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(I.interface)){var v=this.tsParseInterfaceDeclaration(this.startNode());if(v)return v}return R.prototype.parseStatement.call(this,s,a,c)},y.parseAccessModifier=function(){return this.tsParseModifier(["public","protected","private"])},y.parsePostMemberNameModifiers=function(s){this.eat(l.question)&&(s.optional=!0),s.readonly&&this.match(l.parenL)&&this.raise(s.start,H.ClassMethodHasReadonly),s.declare&&this.match(l.parenL)&&this.raise(s.start,H.ClassMethodHasDeclare)},y.parseExpressionStatement=function(s,a){return(a.type==="Identifier"?this.tsParseExpressionStatement(s,a):void 0)||R.prototype.parseExpressionStatement.call(this,s,a)},y.shouldParseExportStatement=function(){return!!this.tsIsDeclarationStart()||!!this.match(I.at)||R.prototype.shouldParseExportStatement.call(this)},y.parseConditional=function(s,a,c,m,v){if(this.eat(l.question)){var S=this.startNodeAt(a,c);return S.test=s,S.consequent=this.parseMaybeAssign(),this.expect(l.colon),S.alternate=this.parseMaybeAssign(m),this.finishNode(S,"ConditionalExpression")}return s},y.parseMaybeConditional=function(s,a){var c=this,m=this.start,v=this.startLoc,S=this.parseExprOps(s,a);if(this.checkExpressionErrors(a))return S;if(!this.maybeInArrowParameters||!this.match(l.question))return this.parseConditional(S,m,v,s,a);var k=this.tryParse(function(){return c.parseConditional(S,m,v,s,a)});return k.node?(k.error&&this.setLookaheadState(k.failState),k.node):(k.error&&this.setOptionalParametersError(a,k.error),S)},y.parseParenItem=function(s){var a=this.start,c=this.startLoc;if(s=R.prototype.parseParenItem.call(this,s),this.eat(l.question)&&(s.optional=!0,this.resetEndLocation(s)),this.match(l.colon)){var m=this.startNodeAt(a,c);return m.expression=s,m.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(m,"TSTypeCastExpression")}return s},y.parseExportDeclaration=function(s){var a=this;if(!this.isAmbientContext&&this.ts_isContextual(I.declare))return this.tsInAmbientContext(function(){return a.parseExportDeclaration(s)});var c=this.start,m=this.startLoc,v=this.eatContextual("declare");!v||!this.ts_isContextual(I.declare)&&this.shouldParseExportStatement()||this.raise(this.start,H.ExpectedAmbientAfterExportDeclare);var S=nt(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);return S?((S.type==="TSInterfaceDeclaration"||S.type==="TSTypeAliasDeclaration"||v)&&(s.exportKind="type"),v&&(this.resetStartLocation(S,c,m),S.declare=!0),S):null},y.parseClassId=function(s,a){if(a||!this.isContextual("implements")){R.prototype.parseClassId.call(this,s,a);var c=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));c&&(s.typeParameters=c)}},y.parseClassPropertyAnnotation=function(s){s.optional||(this.value==="!"&&this.eat(l.prefix)?s.definite=!0:this.eat(l.question)&&(s.optional=!0));var a=this.tsTryParseTypeAnnotation();a&&(s.typeAnnotation=a)},y.parseClassField=function(s){if(s.key.type==="PrivateIdentifier")s.abstract&&this.raise(s.start,H.PrivateElementHasAbstract),s.accessibility&&this.raise(s.start,H.PrivateElementHasAccessibility({modifier:s.accessibility})),this.parseClassPropertyAnnotation(s);else if(this.parseClassPropertyAnnotation(s),this.isAmbientContext&&(!s.readonly||s.typeAnnotation)&&this.match(l.eq)&&this.raise(this.start,H.DeclareClassFieldHasInitializer),s.abstract&&this.match(l.eq)){var a=s.key;this.raise(this.start,H.AbstractPropertyHasInitializer({propertyName:a.type!=="Identifier"||s.computed?"["+this.input.slice(a.start,a.end)+"]":a.name}))}return R.prototype.parseClassField.call(this,s)},y.parseClassMethod=function(s,a,c,m){var v=s.kind==="constructor",S=s.key.type==="PrivateIdentifier",k=this.tsTryParseTypeParameters();S?(k&&(s.typeParameters=k),s.accessibility&&this.raise(s.start,H.PrivateMethodsHasAccessibility({modifier:s.accessibility}))):k&&v&&this.raise(k.start,H.ConstructorHasTypeParameters);var _=s.declare,P=s.kind;!(_!==void 0&&_)||P!=="get"&&P!=="set"||this.raise(s.start,H.DeclareAccessor({kind:P})),k&&(s.typeParameters=k);var V=s.key;s.kind==="constructor"?(a&&this.raise(V.start,"Constructor can't be a generator"),c&&this.raise(V.start,"Constructor can't be an async method")):s.static&&ar(s,"prototype")&&this.raise(V.start,"Classes may not have a static property named prototype");var B=s.value=this.parseMethod(a,c,m,!0,s);return s.kind==="get"&&B.params.length!==0&&this.raiseRecoverable(B.start,"getter should have no params"),s.kind==="set"&&B.params.length!==1&&this.raiseRecoverable(B.start,"setter should have exactly one param"),s.kind==="set"&&B.params[0].type==="RestElement"&&this.raiseRecoverable(B.params[0].start,"Setter cannot use rest params"),this.finishNode(s,"MethodDefinition")},y.isClassMethod=function(){return this.match(l.relational)},y.parseClassElement=function(s){var a=this;if(this.eat(l.semi))return null;var c,m=this.options.ecmaVersion,v=this.startNode(),S="",k=!1,_=!1,P="method",V=["declare","private","public","protected","accessor","override","abstract","readonly","static"],B=this.tsParseModifiers({modified:v,allowedModifiers:V,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:H.InvalidModifierOnTypeParameterPositions});c=!!B.static;var G=function(){if(!a.tsIsStartOfStaticBlocks()){var M=a.tsTryParseIndexSignature(v);if(M)return v.abstract&&a.raise(v.start,H.IndexSignatureHasAbstract),v.accessibility&&a.raise(v.start,H.IndexSignatureHasAccessibility({modifier:v.accessibility})),v.declare&&a.raise(v.start,H.IndexSignatureHasDeclare),v.override&&a.raise(v.start,H.IndexSignatureHasOverride),M;if(!a.inAbstractClass&&v.abstract&&a.raise(v.start,H.NonAbstractClassHasAbstractMethod),v.override&&s&&a.raise(v.start,H.OverrideNotInSubClass),v.static=c,c&&(a.isClassElementNameStart()||a.type===l.star||(S="static")),!S&&m>=8&&a.eatContextual("async")&&(!a.isClassElementNameStart()&&a.type!==l.star||a.canInsertSemicolon()?S="async":_=!0),!S&&(m>=9||!_)&&a.eat(l.star)&&(k=!0),!S&&!_&&!k){var ht=a.value;(a.eatContextual("get")||a.eatContextual("set"))&&(a.isClassElementNameStart()?P=ht:S=ht)}if(S?(v.computed=!1,v.key=a.startNodeAt(a.lastTokStart,a.lastTokStartLoc),v.key.name=S,a.finishNode(v.key,"Identifier")):a.parseClassElementName(v),a.parsePostMemberNameModifiers(v),a.isClassMethod()||m<13||a.type===l.parenL||P!=="method"||k||_){var ut=!v.static&&ar(v,"constructor"),ct=ut&&s;ut&&P!=="method"&&a.raise(v.key.start,"Constructor can't have get/set modifier"),v.kind=ut?"constructor":P,a.parseClassMethod(v,k,_,ct)}else a.parseClassField(v);return v}if(a.next(),a.next(),a.tsHasSomeModifiers(v,V)&&a.raise(a.start,H.StaticBlockCannotHaveModifier),m>=13)return R.prototype.parseClassStaticBlock.call(a,v),v};return v.declare?this.tsInAmbientContext(G):G(),v},y.isClassElementNameStart=function(){return!!this.tsIsIdentifier()||R.prototype.isClassElementNameStart.call(this)},y.parseClassSuper=function(s){R.prototype.parseClassSuper.call(this,s),s.superClass&&(this.tsMatchLeftRelational()||this.match(l.bitShift))&&(s.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual("implements")&&(s.implements=this.tsParseHeritageClause("implements"))},y.parseFunctionParams=function(s){var a=this.tsTryParseTypeParameters();a&&(s.typeParameters=a),R.prototype.parseFunctionParams.call(this,s)},y.parseVarId=function(s,a){R.prototype.parseVarId.call(this,s,a),s.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(l.prefix)&&(s.definite=!0);var c=this.tsTryParseTypeAnnotation();c&&(s.id.typeAnnotation=c,this.resetEndLocation(s.id))},y.parseArrowExpression=function(s,a,c,m){this.match(l.colon)&&(s.returnType=this.tsParseTypeAnnotation());var v=this.yieldPos,S=this.awaitPos,k=this.awaitIdentPos;this.enterScope(16|Ei(c,!1)),this.initFunction(s);var _=this.maybeInArrowParameters;return this.options.ecmaVersion>=8&&(s.async=!!c),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,s.params=this.toAssignableList(a,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(s,!0,!1,m),this.yieldPos=v,this.awaitPos=S,this.awaitIdentPos=k,this.maybeInArrowParameters=_,this.finishNode(s,"ArrowFunctionExpression")},y.parseMaybeAssignOrigin=function(s,a,c){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(s);this.exprAllowed=!1}var m=!1,v=-1,S=-1,k=-1;a?(v=a.parenthesizedAssign,S=a.trailingComma,k=a.doubleProto,a.parenthesizedAssign=a.trailingComma=-1):(a=new Re,m=!0);var _=this.start,P=this.startLoc;(this.type===l.parenL||nt(this.type))&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=s==="await");var V=this.parseMaybeConditional(s,a);if(c&&(V=c.call(this,V,_,P)),this.type.isAssign){var B=this.startNodeAt(_,P);return B.operator=this.value,this.type===l.eq&&(V=this.toAssignable(V,!0,a)),m||(a.parenthesizedAssign=a.trailingComma=a.doubleProto=-1),a.shorthandAssign>=V.start&&(a.shorthandAssign=-1),this.type===l.eq?this.checkLValPattern(V):this.checkLValSimple(V),B.left=V,this.next(),B.right=this.parseMaybeAssign(s),k>-1&&(a.doubleProto=k),this.finishNode(B,"AssignmentExpression")}return m&&this.checkExpressionErrors(a,!0),v>-1&&(a.parenthesizedAssign=v),S>-1&&(a.trailingComma=S),V},y.parseMaybeAssign=function(s,a,c){var m,v,S,k,_,P,V,B,G,M,ht,ut=this;if(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational()){if(B=this.cloneCurLookaheadState(),!(G=this.tryParse(function(){return ut.parseMaybeAssignOrigin(s,a,c)},B)).error)return G.node;var ct=this.context,mt=ct[ct.length-1];mt===w.tokContexts.tc_oTag&&ct[ct.length-2]===w.tokContexts.tc_expr?(ct.pop(),ct.pop()):mt!==w.tokContexts.tc_oTag&&mt!==w.tokContexts.tc_expr||ct.pop()}if(!((m=G)!=null&&m.error||this.tsMatchLeftRelational()))return this.parseMaybeAssignOrigin(s,a,c);B&&!this.compareLookaheadState(B,this.getCurLookaheadState())||(B=this.cloneCurLookaheadState());var Ct=this.tryParse(function(kt){var Wt,te;ht=ut.tsParseTypeParameters();var Nt=ut.parseMaybeAssignOrigin(s,a,c);return(Nt.type!=="ArrowFunctionExpression"||(Wt=Nt.extra)!=null&&Wt.parenthesized)&&kt(),((te=ht)==null?void 0:te.params.length)!==0&&ut.resetStartLocationFromNode(Nt,ht),Nt.typeParameters=ht,Nt},B);if(!Ct.error&&!Ct.aborted)return ht&&this.reportReservedArrowTypeParam(ht),Ct.node;if(!G&&(nr(!0),!(M=this.tryParse(function(){return ut.parseMaybeAssignOrigin(s,a,c)},B)).error))return M.node;if((v=G)!=null&&v.node)return this.setLookaheadState(G.failState),G.node;if(Ct.node)return this.setLookaheadState(Ct.failState),ht&&this.reportReservedArrowTypeParam(ht),Ct.node;if((S=M)!=null&&S.node)return this.setLookaheadState(M.failState),M.node;throw(k=G)!=null&&k.thrown?G.error:Ct.thrown?Ct.error:(_=M)!=null&&_.thrown?M.error:((P=G)==null?void 0:P.error)||Ct.error||((V=M)==null?void 0:V.error)},y.parseAssignableListItem=function(s){for(var a=[];this.match(I.at);)a.push(this.parseDecorator());var c,m=this.start,v=this.startLoc,S=!1,k=!1;if(s!==void 0){var _={};this.tsParseModifiers({modified:_,allowedModifiers:["public","private","protected","override","readonly"]}),c=_.accessibility,k=_.override,S=_.readonly,s===!1&&(c||S||k)&&this.raise(v.start,H.UnexpectedParameterModifier)}var P=this.parseMaybeDefault(m,v);this.parseBindingListItem(P);var V=this.parseMaybeDefault(P.start,P.loc,P);if(a.length&&(V.decorators=a),c||S||k){var B=this.startNodeAt(m,v);return c&&(B.accessibility=c),S&&(B.readonly=S),k&&(B.override=k),V.type!=="Identifier"&&V.type!=="AssignmentPattern"&&this.raise(B.start,H.UnsupportedParameterPropertyKind),B.parameter=V,this.finishNode(B,"TSParameterProperty")}return V},y.checkLValInnerPattern=function(s,a,c){a===void 0&&(a=0),s.type==="TSParameterProperty"?this.checkLValInnerPattern(s.parameter,a,c):R.prototype.checkLValInnerPattern.call(this,s,a,c)},y.parseBindingListItem=function(s){this.eat(l.question)&&(s.type==="Identifier"||this.isAmbientContext||this.inType||this.raise(s.start,H.PatternIsOptional),s.optional=!0);var a=this.tsTryParseTypeAnnotation();return a&&(s.typeAnnotation=a),this.resetEndLocation(s),s},y.isAssignable=function(s,a){var c=this;switch(s.type){case"TSTypeCastExpression":return this.isAssignable(s.expression,a);case"TSParameterProperty":case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":var m=s.properties.length-1;return s.properties.every(function(v,S){return v.type!=="ObjectMethod"&&(S===m||v.type!=="SpreadElement")&&c.isAssignable(v)});case"Property":case"ObjectProperty":return this.isAssignable(s.value);case"SpreadElement":return this.isAssignable(s.argument);case"ArrayExpression":return s.elements.every(function(v){return v===null||c.isAssignable(v)});case"AssignmentExpression":return s.operator==="=";case"ParenthesizedExpression":return this.isAssignable(s.expression);case"MemberExpression":case"OptionalMemberExpression":return!a;default:return!1}},y.toAssignable=function(s,a,c){switch(a===void 0&&(a=!1),c===void 0&&(c=new Re),s.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(s,a,c);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":return a||this.raise(s.start,H.UnexpectedTypeCastInParameter),this.toAssignable(s.expression,a,c);case"MemberExpression":break;case"AssignmentExpression":return a||s.left.type!=="TSTypeCastExpression"||(s.left=this.typeCastToParameter(s.left)),R.prototype.toAssignable.call(this,s,a,c);case"TSTypeCastExpression":return this.typeCastToParameter(s);default:return R.prototype.toAssignable.call(this,s,a,c)}return s},y.toAssignableParenthesizedExpression=function(s,a,c){switch(s.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(s.expression,a,c);default:return R.prototype.toAssignable.call(this,s,a,c)}},y.curPosition=function(){if(this.options.locations){var s=R.prototype.curPosition.call(this);return Object.defineProperty(s,"offset",{get:function(){return function(a){var c=new T.Position(this.line,this.column+a);return c.index=this.index+a,c}}}),s.index=this.pos,s}},y.parseBindingAtom=function(){return this.type===l._this?this.parseIdent(!0):R.prototype.parseBindingAtom.call(this)},y.shouldParseArrow=function(s){var a,c=this;if(a=this.match(l.colon)?s.every(function(v){return c.isAssignable(v,!0)}):!this.canInsertSemicolon()){if(this.match(l.colon)){var m=this.tryParse(function(v){var S=c.tsParseTypeOrTypePredicateAnnotation(l.colon);return!c.canInsertSemicolon()&&c.match(l.arrow)||v(),S});if(m.aborted)return this.shouldParseArrowReturnType=void 0,!1;m.thrown||(m.error&&this.setLookaheadState(m.failState),this.shouldParseArrowReturnType=m.node)}return!!this.match(l.arrow)||(this.shouldParseArrowReturnType=void 0,!1)}return this.shouldParseArrowReturnType=void 0,a},y.parseParenArrowList=function(s,a,c,m){var v=this.startNodeAt(s,a);return v.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(v,c,!1,m)},y.parseParenAndDistinguishExpression=function(s,a){var c,m=this.start,v=this.startLoc,S=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){var k=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();var _,P=this.start,V=this.startLoc,B=[],G=!0,M=!1,ht=new Re,ut=this.yieldPos,ct=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==l.parenR;){if(G?G=!1:this.expect(l.comma),S&&this.afterTrailingComma(l.parenR,!0)){M=!0;break}if(this.type===l.ellipsis){_=this.start,B.push(this.parseParenItem(this.parseRestBinding())),this.type===l.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}B.push(this.parseMaybeAssign(a,ht,this.parseParenItem))}var mt=this.lastTokEnd,Ct=this.lastTokEndLoc;if(this.expect(l.parenR),this.maybeInArrowParameters=k,s&&this.shouldParseArrow(B)&&this.eat(l.arrow))return this.checkPatternErrors(ht,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=ut,this.awaitPos=ct,this.parseParenArrowList(m,v,B,a);B.length&&!M||this.unexpected(this.lastTokStart),_&&this.unexpected(_),this.checkExpressionErrors(ht,!0),this.yieldPos=ut||this.yieldPos,this.awaitPos=ct||this.awaitPos,B.length>1?((c=this.startNodeAt(P,V)).expressions=B,this.finishNodeAt(c,"SequenceExpression",mt,Ct)):c=B[0]}else c=this.parseParenExpression();if(this.options.preserveParens){var kt=this.startNodeAt(m,v);return kt.expression=c,this.finishNode(kt,"ParenthesizedExpression")}return c},y.parseTaggedTemplateExpression=function(s,a,c,m){var v=this.startNodeAt(a,c);return v.tag=s,v.quasi=this.parseTemplate({isTagged:!0}),m&&this.raise(a,"Tagged Template Literals are not allowed in optionalChain."),this.finishNode(v,"TaggedTemplateExpression")},y.shouldParseAsyncArrow=function(){var s=this;if(!this.match(l.colon))return!this.canInsertSemicolon()&&this.eat(l.arrow);var a=this.tryParse(function(c){var m=s.tsParseTypeOrTypePredicateAnnotation(l.colon);return!s.canInsertSemicolon()&&s.match(l.arrow)||c(),m});return a.aborted?(this.shouldParseAsyncArrowReturnType=void 0,!1):a.thrown?void 0:(a.error&&this.setLookaheadState(a.failState),this.shouldParseAsyncArrowReturnType=a.node,!this.canInsertSemicolon()&&this.eat(l.arrow))},y.parseSubscriptAsyncArrow=function(s,a,c,m){var v=this.startNodeAt(s,a);return v.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(v,c,!0,m)},y.parseExprList=function(s,a,c,m){for(var v=[],S=!0;!this.eat(s);){if(S)S=!1;else if(this.expect(l.comma),a&&this.afterTrailingComma(s))break;var k=void 0;c&&this.type===l.comma?k=null:this.type===l.ellipsis?(k=this.parseSpread(m),m&&this.type===l.comma&&m.trailingComma<0&&(m.trailingComma=this.start)):k=this.parseMaybeAssign(!1,m,this.parseParenItem),v.push(k)}return v},y.parseSubscript=function(s,a,c,m,v,S,k){var _=this,P=S;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(l.prefix)){this.exprAllowed=!1,this.next();var V=this.startNodeAt(a,c);return V.expression=s,s=this.finishNode(V,"TSNonNullExpression")}var B=!1;if(this.match(l.questionDot)&&this.lookaheadCharCode()===60){if(m)return s;s.optional=!0,P=B=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(l.bitShift)){var G,M=this.tsTryParseAndCatch(function(){if(!m&&_.atPossibleAsyncArrow(s)){var Ot=_.tsTryParseGenericAsyncArrowFunction(a,c,k);if(Ot)return s=Ot}var ae=_.tsParseTypeArgumentsInExpression();if(!ae)return s;if(B&&!_.match(l.parenL))return G=_.curPosition(),s;if(d(_.type)||_.type===l.backQuote){var be=_.parseTaggedTemplateExpression(s,a,c,P);return be.typeParameters=ae,be}if(!m&&_.eat(l.parenL)){var Se=new Re,at=_.startNodeAt(a,c);return at.callee=s,at.arguments=_.parseExprList(l.parenR,_.options.ecmaVersion>=8,!1,Se),_.tsCheckForInvalidTypeCasts(at.arguments),at.typeParameters=ae,P&&(at.optional=B),_.checkExpressionErrors(Se,!0),s=_.finishNode(at,"CallExpression")}var At=_.type;if(!(_.tsMatchRightRelational()||At===l.bitShift||At!==l.parenL&&(gt=At,!!gt.startsExpr)&&!_.hasPrecedingLineBreak())){var gt,Ce=_.startNodeAt(a,c);return Ce.expression=s,Ce.typeParameters=ae,_.finishNode(Ce,"TSInstantiationExpression")}});if(G&&this.unexpected(G),M)return M.type==="TSInstantiationExpression"&&(this.match(l.dot)||this.match(l.questionDot)&&this.lookaheadCharCode()!==40)&&this.raise(this.start,H.InvalidPropertyAccessAfterInstantiationExpression),s=M}var ht=this.options.ecmaVersion>=11,ut=ht&&this.eat(l.questionDot);m&&ut&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var ct=this.eat(l.bracketL);if(ct||ut&&this.type!==l.parenL&&this.type!==l.backQuote||this.eat(l.dot)){var mt=this.startNodeAt(a,c);mt.object=s,ct?(mt.property=this.parseExpression(),this.expect(l.bracketR)):mt.property=this.type===l.privateId&&s.type!=="Super"?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!=="never"),mt.computed=!!ct,ht&&(mt.optional=ut),s=this.finishNode(mt,"MemberExpression")}else if(!m&&this.eat(l.parenL)){var Ct=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;var kt=new Re,Wt=this.yieldPos,te=this.awaitPos,Nt=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var pe=this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1,kt);if(v&&!ut&&this.shouldParseAsyncArrow())this.checkPatternErrors(kt,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Wt,this.awaitPos=te,this.awaitIdentPos=Nt,s=this.parseSubscriptAsyncArrow(a,c,pe,k);else{this.checkExpressionErrors(kt,!0),this.yieldPos=Wt||this.yieldPos,this.awaitPos=te||this.awaitPos,this.awaitIdentPos=Nt||this.awaitIdentPos;var Xt=this.startNodeAt(a,c);Xt.callee=s,Xt.arguments=pe,ht&&(Xt.optional=ut),s=this.finishNode(Xt,"CallExpression")}this.maybeInArrowParameters=Ct}else if(this.type===l.backQuote){(ut||P)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var re=this.startNodeAt(a,c);re.tag=s,re.quasi=this.parseTemplate({isTagged:!0}),s=this.finishNode(re,"TaggedTemplateExpression")}return s},y.parseGetterSetter=function(s){s.kind=s.key.name,this.parsePropertyName(s),s.value=this.parseMethod(!1);var a=s.kind==="get"?0:1,c=s.value.params[0],m=c&&this.isThisParam(c);s.value.params.length!==(a=m?a+1:a)?this.raiseRecoverable(s.value.start,s.kind==="get"?"getter should have no params":"setter should have exactly one param"):s.kind==="set"&&s.value.params[0].type==="RestElement"&&this.raiseRecoverable(s.value.params[0].start,"Setter cannot use rest params")},y.parseProperty=function(s,a){if(!s){var c=[];if(this.match(I.at))for(;this.match(I.at);)c.push(this.parseDecorator());var m=R.prototype.parseProperty.call(this,s,a);return m.type==="SpreadElement"&&c.length&&this.raise(m.start,"Decorators can't be used with SpreadElement"),c.length&&(m.decorators=c,c=[]),m}return R.prototype.parseProperty.call(this,s,a)},y.parseCatchClauseParam=function(){var s=this.parseBindingAtom(),a=s.type==="Identifier";this.enterScope(a?32:0),this.checkLValPattern(s,a?4:2);var c=this.tsTryParseTypeAnnotation();return c&&(s.typeAnnotation=c,this.resetEndLocation(s)),this.expect(l.parenR),s},y.parseClass=function(s,a){var c=this.inAbstractClass;this.inAbstractClass=!!s.abstract;try{this.next(),this.takeDecorators(s);var m=this.strict;this.strict=!0,this.parseClassId(s,a),this.parseClassSuper(s);var v=this.enterClassBody(),S=this.startNode(),k=!1;S.body=[];var _=[];for(this.expect(l.braceL);this.type!==l.braceR;)if(this.match(I.at))_.push(this.parseDecorator());else{var P=this.parseClassElement(s.superClass!==null);_.length&&(P.decorators=_,this.resetStartLocationFromNode(P,_[0]),_=[]),P&&(S.body.push(P),P.type==="MethodDefinition"&&P.kind==="constructor"&&P.value.type==="FunctionExpression"?(k&&this.raiseRecoverable(P.start,"Duplicate constructor in the same class"),k=!0,P.decorators&&P.decorators.length>0&&this.raise(P.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")):P.key&&P.key.type==="PrivateIdentifier"&&Ua(v,P)&&this.raiseRecoverable(P.key.start,"Identifier '#"+P.key.name+"' has already been declared"))}return this.strict=m,this.next(),_.length&&this.raise(this.start,"Decorators must be attached to a class element."),s.body=this.finishNode(S,"ClassBody"),this.exitClassBody(),this.finishNode(s,a?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=c}},y.parseClassFunctionParams=function(){var s=this.tsTryParseTypeParameters(this.tsParseConstModifier),a=this.parseBindingList(l.parenR,!1,this.options.ecmaVersion>=8,!0);return s&&(a.typeParameters=s),a},y.parseMethod=function(s,a,c,m,v){var S=this.startNode(),k=this.yieldPos,_=this.awaitPos,P=this.awaitIdentPos;if(this.initFunction(S),this.options.ecmaVersion>=6&&(S.generator=s),this.options.ecmaVersion>=8&&(S.async=!!a),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|Ei(a,S.generator)|(c?128:0)),this.expect(l.parenL),S.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(S,!1,!0,!1,{isClassMethod:m}),this.yieldPos=k,this.awaitPos=_,this.awaitIdentPos=P,v&&v.abstract&&S.body){var V=v.key;this.raise(v.start,H.AbstractMethodHasImplementation({methodName:V.type!=="Identifier"||v.computed?"["+this.input.slice(V.start,V.end)+"]":V.name}))}return this.finishNode(S,"FunctionExpression")},St.parse=function(s,a){if(a.locations===!1)throw new Error("You have to enable options.locations while using acorn-typescript");a.locations=!0;var c=new this(a,s);return u&&(c.isAmbientContext=!0),c.parse()},St.parseExpressionAt=function(s,a,c){if(c.locations===!1)throw new Error("You have to enable options.locations while using acorn-typescript");c.locations=!0;var m=new this(c,s,a);return u&&(m.isAmbientContext=!0),m.nextToken(),m.parseExpression()},y.parseImportSpecifier=function(){if(this.ts_isContextual(I.type)){var s=this.startNode();return s.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(s,!0,this.importOrExportOuterKind==="type"),this.finishNode(s,"ImportSpecifier")}var a=R.prototype.parseImportSpecifier.call(this);return a.importKind="value",a},y.parseExportSpecifier=function(s){var a=this.ts_isContextual(I.type);if(!this.match(l.string)&&a){var c=this.startNode();return c.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(c,!1,this.importOrExportOuterKind==="type"),this.finishNode(c,"ExportSpecifier"),this.checkExport(s,c.exported,c.exported.start),c}var m=R.prototype.parseExportSpecifier.call(this,s);return m.exportKind="value",m},y.parseTypeOnlyImportExportSpecifier=function(s,a,c){var m,v=a?"imported":"local",S=a?"local":"exported",k=s[v],_=!1,P=!0,V=k.start;if(this.isContextual("as")){var B=this.parseIdent();if(this.isContextual("as")){var G=this.parseIdent();Rt(this.type)?(_=!0,k=B,m=a?this.parseIdent():this.parseModuleExportName(),P=!1):(m=G,P=!1)}else Rt(this.type)?(P=!1,m=a?this.parseIdent():this.parseModuleExportName()):(_=!0,k=B)}else Rt(this.type)&&(_=!0,a?(k=R.prototype.parseIdent.call(this,!0),this.isContextual("as")||this.checkUnreserved(k)):k=this.parseModuleExportName());_&&c&&this.raise(V,a?H.TypeModifierIsUsedInTypeImports:H.TypeModifierIsUsedInTypeExports),s[v]=k,s[S]=m,s[a?"importKind":"exportKind"]=_?"type":"value",P&&this.eatContextual("as")&&(s[S]=a?this.parseIdent():this.parseModuleExportName()),s[S]||(s[S]=this.copyNode(s[v])),a&&this.checkLValSimple(s[S],2)},y.raiseCommonCheck=function(s,a,c){return a==="Comma is not permitted after the rest element"?this.isAmbientContext&&this.match(l.comma)&&this.lookaheadCharCode()===41?void this.next():R.prototype.raise.call(this,s,a):c?R.prototype.raiseRecoverable.call(this,s,a):R.prototype.raise.call(this,s,a)},y.raiseRecoverable=function(s,a){return this.raiseCommonCheck(s,a,!0)},y.raise=function(s,a){return this.raiseCommonCheck(s,a,!0)},y.updateContext=function(s){var a=this.type;if(a==l.braceL){var c=this.curContext();c==Q.tc_oTag?this.context.push(N.b_expr):c==Q.tc_expr?this.context.push(N.b_tmpl):R.prototype.updateContext.call(this,s),this.exprAllowed=!0}else{if(a!==l.slash||s!==I.jsxTagStart)return R.prototype.updateContext.call(this,s);this.context.length-=2,this.context.push(Q.tc_cTag),this.exprAllowed=!1}},y.jsx_parseOpeningElementAt=function(s,a){var c=this,m=this.startNodeAt(s,a),v=this.jsx_parseElementName();if(v&&(m.name=v),this.match(l.relational)||this.match(l.bitShift)){var S=this.tsTryParseAndCatch(function(){return c.tsParseTypeArgumentsInExpression()});S&&(m.typeParameters=S)}for(m.attributes=[];this.type!==l.slash&&this.type!==I.jsxTagEnd;)m.attributes.push(this.jsx_parseAttribute());return m.selfClosing=this.eat(l.slash),this.expect(I.jsxTagEnd),this.finishNode(m,v?"JSXOpeningElement":"JSXOpeningFragment")},y.enterScope=function(s){s===Ve&&this.importsStack.push([]),R.prototype.enterScope.call(this,s);var a=R.prototype.currentScope.call(this);a.types=[],a.enums=[],a.constEnums=[],a.classes=[],a.exportOnlyBindings=[]},y.exitScope=function(){R.prototype.currentScope.call(this).flags===Ve&&this.importsStack.pop(),R.prototype.exitScope.call(this)},y.hasImport=function(s,a){var c=this.importsStack.length;if(this.importsStack[c-1].indexOf(s)>-1)return!0;if(!a&&c>1){for(var m=0;m<c-1;m++)if(this.importsStack[m].indexOf(s)>-1)return!0}return!1},y.maybeExportDefined=function(s,a){this.inModule&&1&s.flags&&this.undefinedExports.delete(a)},y.isRedeclaredInScope=function(s,a,c){return!!(0&c)&&(2&c?s.lexical.indexOf(a)>-1||s.functions.indexOf(a)>-1||s.var.indexOf(a)>-1:3&c?s.lexical.indexOf(a)>-1||!R.prototype.treatFunctionsAsVarInScope.call(this,s)&&s.var.indexOf(a)>-1:s.lexical.indexOf(a)>-1&&!(32&s.flags&&s.lexical[0]===a)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(a)>-1)},y.checkRedeclarationInScope=function(s,a,c,m){this.isRedeclaredInScope(s,a,c)&&this.raise(m,"Identifier '"+a+"' has already been declared.")},y.declareName=function(s,a,c){if(4096&a)return this.hasImport(s,!0)&&this.raise(c,"Identifier '"+s+"' has already been declared."),void this.importsStack[this.importsStack.length-1].push(s);var m=this.currentScope();if(1024&a)return this.maybeExportDefined(m,s),void m.exportOnlyBindings.push(s);R.prototype.declareName.call(this,s,a,c),0&a&&(0&a||(this.checkRedeclarationInScope(m,s,a,c),this.maybeExportDefined(m,s)),m.types.push(s)),256&a&&m.enums.push(s),512&a&&m.constEnums.push(s),128&a&&m.classes.push(s)},y.checkLocalExport=function(s){var a=s.name;if(!this.hasImport(a)){for(var c=this.scopeStack.length-1;c>=0;c--){var m=this.scopeStack[c];if(m.types.indexOf(a)>-1||m.exportOnlyBindings.indexOf(a)>-1)return}R.prototype.checkLocalExport.call(this,s)}},bt=St,et=[{key:"acornTypeScript",get:function(){return w}}],(ot=[{key:"acornTypeScript",get:function(){return w}}])&&er(bt.prototype,ot),et&&er(bt,et),Object.defineProperty(bt,"prototype",{writable:!1}),St})(b);return vt}}var De=class{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:i=>this.replacement=i}}replace(i,n,u,p){i&&n&&(u!=null?i[n][u]=p:i[n]=p)}remove(i,n,u){i&&n&&(u!=null?i[n].splice(u,1):delete i[n])}};var ni=class extends De{constructor(i,n){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:u=>this.replacement=u},this.enter=i,this.leave=n}visit(i,n,u,p){if(i){if(this.enter){let b=this.should_skip,T=this.should_remove,w=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,i,n,u,p),this.replacement&&(i=this.replacement,this.replace(n,u,p,i)),this.should_remove&&this.remove(n,u,p);let l=this.should_skip,W=this.should_remove;if(this.should_skip=b,this.should_remove=T,this.replacement=w,l)return i;if(W)return null}let g;for(g in i){let b=i[g];if(b&&typeof b=="object")if(Array.isArray(b)){let T=b;for(let w=0;w<T.length;w+=1){let l=T[w];hr(l)&&(this.visit(l,i,g,w)||w--)}}else hr(b)&&this.visit(b,i,g,null)}if(this.leave){let b=this.replacement,T=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,i,n,u,p),this.replacement&&(i=this.replacement,this.replace(n,u,p,i)),this.should_remove&&this.remove(n,u,p);let w=this.should_remove;if(this.replacement=b,this.should_remove=T,w)return null}}return i}};function hr(t){return t!==null&&typeof t=="object"&&"type"in t&&typeof t.type=="string"}function cr(t,{enter:i,leave:n}){return new ni(i,n).visit(t,null)}var Li="__componentSourceLoc",Vi="$componentSourceLoc";var Xa=dt.extend(Ni(),(0,lr.default)()),Ja=dt.extend(Ni());function Qa(t){return/\.[jt]sx$/.test(t)?Xa:Ja}function Ri(t,i,n){let u=n||process.cwd();return`${t.startsWith(u)?t.slice(u.length+1):t}:${i.line}:${i.column+1}`}function pr(t){return/^[A-Z]/.test(t)}function Ya(t){if(!t)return!1;if(t.type==="ArrowFunctionExpression"||t.type==="FunctionExpression")return!0;if(t.type!=="CallExpression")return!1;let i=t.callee;if(i.type==="Identifier")return["memo","forwardRef"].includes(i.name);if(i.type==="MemberExpression"){let n=i.object,u=i.property;if(n.type==="Identifier"&&n.name==="React"&&u.type==="Identifier")return["memo","forwardRef"].includes(u.name)}return!1}function fr(t,i){let{filename:n,projectRoot:u=process.cwd(),injectJsxSource:p=!0,injectComponentSource:g=!0}=i,b=/\.[jt]sx$/.test(n),T;try{T=Qa(n).parse(t,{ecmaVersion:"latest",sourceType:"module",locations:!0})}catch{return null}let w=[],l=[],W=new Set,Y=[];if(cr(T,{enter(E){let N=Y[Y.length-1]??null,D=Y[Y.length-2]??null;if(p&&b&&E.type==="JSXElement"){let I=E.openingElement,Q=I.name;if(E.loc&&Q.end!==void 0&&!I.attributes.some(z=>z.type==="JSXAttribute"&&z.name?.name===Vi)){let z=Ri(n,E.loc.start,u);w.push({at:Q.end,text:` ${Vi}="${z}"`})}}if(g&&E.type==="FunctionDeclaration"){let I=E.id?.name,Q=N?.type==="Program"||N?.type==="ExportNamedDeclaration"||N?.type==="ExportDefaultDeclaration";if(I&&pr(I)&&Q&&!W.has(I)&&E.loc){W.add(I);let xt=Ri(n,E.loc.start,u),z=N?.type==="ExportNamedDeclaration"||N?.type==="ExportDefaultDeclaration"?N.end:E.end;z!==void 0&&w.push({at:z,text:`
|
|
23
|
+
${I}.${Li} = "${xt}";`})}}if(g&&E.type==="VariableDeclarator"){let I=E.id,Q=N?.type==="VariableDeclaration"&&(D?.type==="Program"||D?.type==="ExportNamedDeclaration"||D?.type==="ExportDefaultDeclaration");if(I.type==="Identifier"&&pr(I.name)&&Q&&!W.has(I.name)){let xt=E.init;if(xt&&Ya(xt)){let z=E.loc||xt.loc;if(z){W.add(I.name);let d=Ri(n,z.start,u),yt=D?.type==="ExportNamedDeclaration"||D?.type==="ExportDefaultDeclaration"?D.end:N?.end;yt!==void 0&&w.push({at:yt,text:`
|
|
24
|
+
${I.name}.${Li} = "${d}";`})}}}}Y.push(E)},leave(){Y.pop()}}),w.length===0&&l.length===0)return null;w.sort((E,N)=>N.at-E.at);let tt=t;for(let{at:E,text:N}of w)tt=tt.slice(0,E)+N+tt.slice(E);return l.length>0&&(tt+=l.join("")),{code:tt}}async function Za(t,i){let n=fr(t,i);return{code:n?n.code:t,map:n?.map??null}}function $a(t={}){let i={projectRoot:process.cwd(),injectComponentSource:!0,injectJsxSource:!0,...t};return{kind:"swc",name:"react-code-locator/swc",options:i,config:{transform:(u,p)=>Za(u,{...i,...p})}}}var Cn=$a();export{$a as createSwcSourceAdapter,Cn as swcSourceAdapter,Za as transformSourceWithSwcLocator};
|
|
25
25
|
//# sourceMappingURL=swc.js.map
|