@turboforge/sync 0.0.0 → 0.0.1
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/chunk-ZY4O5KW5.mjs +6 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +24 -18
- package/dist/cli.mjs +2 -2
- package/dist/defu-4NW2TEDJ.mjs +1 -0
- package/dist/dist-WX6I3LW6.mjs +139 -0
- package/dist/index.d.mts +1 -7
- package/dist/index.d.ts +1 -7
- package/dist/index.js +4 -4
- package/dist/index.mjs +1 -1
- package/dist/jiti-D4HPEZZY.mjs +20 -0
- package/package.json +2 -2
- package/dist/chunk-P3TVCV3U.mjs +0 -6
- package/dist/defu-EM2AXOCS.mjs +0 -1
- package/dist/dist-VHTBRCO5.mjs +0 -139
- package/dist/jiti-7K72E5ZK.mjs +0 -14
package/dist/cli.js
CHANGED
|
@@ -1,23 +1,29 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var kn=Object.create;var le=Object.defineProperty;var In=Object.getOwnPropertyDescriptor;var Rn=Object.getOwnPropertyNames;var An=Object.getPrototypeOf,Pn=Object.prototype.hasOwnProperty;var gs=(l,f)=>()=>(l&&(f=l(l=0)),f);var Tn=(l,f)=>()=>(f||l((f={exports:{}}).exports,f),f.exports),He=(l,f)=>{for(var d in f)le(l,d,{get:f[d],enumerable:!0})},xs=(l,f,d,b)=>{if(f&&typeof f=="object"||typeof f=="function")for(let y of Rn(f))!Pn.call(l,y)&&y!==d&&le(l,y,{get:()=>f[y],enumerable:!(b=In(f,y))||b.enumerable});return l};var ue=(l,f,d)=>(d=l!=null?kn(An(l)):{},xs(f||!l||!l.__esModule?le(d,"default",{value:l,enumerable:!0}):d,l)),Nn=l=>xs(le({},"__esModule",{value:!0}),l);var vs=Tn((Jn,ys)=>{"use strict";(()=>{var l={"./node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist lazy recursive":function(y){function x(w){return Promise.resolve().then(function(){var H=new Error("Cannot find module '"+w+"'");throw H.code="MODULE_NOT_FOUND",H})}x.keys=()=>[],x.resolve=x,x.id="./node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist lazy recursive",y.exports=x}},f={};function d(y){var x=f[y];if(x!==void 0)return x.exports;var w=f[y]={exports:{}};return l[y](w,w.exports,d),w.exports}d.n=y=>{var x=y&&y.__esModule?()=>y.default:()=>y;return d.d(x,{a:x}),x},d.d=(y,x)=>{for(var w in x)d.o(x,w)&&!d.o(y,w)&&Object.defineProperty(y,w,{enumerable:!0,get:x[w]})},d.o=(y,x)=>Object.prototype.hasOwnProperty.call(y,x);var b={};(()=>{"use strict";d.d(b,{default:()=>ms});let y=require("os");var x=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],w=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],H="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",q={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"},Z="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",et={5:Z,"5module":Z+" export import",6:Z+" const class extends export import super"},M=/^in(stanceof)?$/,A=new RegExp("["+H+"]"),N=new RegExp("["+H+"\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65]");function j(t,e){for(var i=65536,s=0;s<e.length;s+=2){if((i+=e[s])>t)return!1;if((i+=e[s+1])>=t)return!0}return!1}function $(t,e){return t<65?t===36:t<91||(t<97?t===95:t<123||(t<=65535?t>=170&&A.test(String.fromCharCode(t)):e!==!1&&j(t,w)))}function F(t,e){return t<48?t===36:t<58||!(t<65)&&(t<91||(t<97?t===95:t<123||(t<=65535?t>=170&&N.test(String.fromCharCode(t)):e!==!1&&(j(t,w)||j(t,x)))))}var k=function(t,e){e===void 0&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function z(t,e){return new k(t,{beforeExpr:!0,binop:e})}var W={beforeExpr:!0},X={startsExpr:!0},ve={};function T(t,e){return e===void 0&&(e={}),e.keyword=t,ve[t]=new k(t,e)}var n={num:new k("num",X),regexp:new k("regexp",X),string:new k("string",X),name:new k("name",X),privateId:new k("privateId",X),eof:new k("eof"),bracketL:new k("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new k("]"),braceL:new k("{",{beforeExpr:!0,startsExpr:!0}),braceR:new k("}"),parenL:new k("(",{beforeExpr:!0,startsExpr:!0}),parenR:new k(")"),comma:new k(",",W),semi:new k(";",W),colon:new k(":",W),dot:new k("."),question:new k("?",W),questionDot:new k("?."),arrow:new k("=>",W),template:new k("template"),invalidTemplate:new k("invalidTemplate"),ellipsis:new k("...",W),backQuote:new k("`",X),dollarBraceL:new k("${",{beforeExpr:!0,startsExpr:!0}),eq:new k("=",{beforeExpr:!0,isAssign:!0}),assign:new k("_=",{beforeExpr:!0,isAssign:!0}),incDec:new k("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new k("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:z("||",1),logicalAND:z("&&",2),bitwiseOR:z("|",3),bitwiseXOR:z("^",4),bitwiseAND:z("&",5),equality:z("==/!=/===/!==",6),relational:z("</>/<=/>=",7),bitShift:z("<</>>/>>>",8),plusMin:new k("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:z("%",10),star:z("*",10),slash:z("/",10),starstar:new k("**",{beforeExpr:!0}),coalesce:z("??",1),_break:T("break"),_case:T("case",W),_catch:T("catch"),_continue:T("continue"),_debugger:T("debugger"),_default:T("default",W),_do:T("do",{isLoop:!0,beforeExpr:!0}),_else:T("else",W),_finally:T("finally"),_for:T("for",{isLoop:!0}),_function:T("function",X),_if:T("if"),_return:T("return",W),_switch:T("switch"),_throw:T("throw",W),_try:T("try"),_var:T("var"),_const:T("const"),_while:T("while",{isLoop:!0}),_with:T("with"),_new:T("new",{beforeExpr:!0,startsExpr:!0}),_this:T("this",X),_super:T("super",X),_class:T("class",X),_extends:T("extends",W),_export:T("export"),_import:T("import",X),_null:T("null",X),_true:T("true",X),_false:T("false",X),_in:T("in",{beforeExpr:!0,binop:7}),_instanceof:T("instanceof",{beforeExpr:!0,binop:7}),_typeof:T("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:T("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:T("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},tt=/\r\n?|\n|\u2028|\u2029/,zs=new RegExp(tt.source,"g");function kt(t){return t===10||t===13||t===8232||t===8233}function ei(t,e,i){i===void 0&&(i=t.length);for(var s=e;s<i;s++){var r=t.charCodeAt(s);if(kt(r))return s<i-1&&r===13&&t.charCodeAt(s+1)===10?s+2:s+1}return-1}var ii=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,K=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,si=Object.prototype,Js=si.hasOwnProperty,Ys=si.toString,It=Object.hasOwn||function(t,e){return Js.call(t,e)},ri=Array.isArray||function(t){return Ys.call(t)==="[object Array]"},ni=Object.create(null);function pt(t){return ni[t]||(ni[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function ot(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}var Qs=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Mt=function(t,e){this.line=t,this.column=e};Mt.prototype.offset=function(t){return new Mt(this.line,this.column+t)};var Yt=function(t,e,i){this.start=e,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};function ai(t,e){for(var i=1,s=0;;){var r=ei(t,s,e);if(r<0)return new Mt(i,e-s);++i,s=r}}var _e={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},oi=!1;function Zs(t){var e={};for(var i in _e)e[i]=t&&It(t,i)?t[i]:_e[i];if(e.ecmaVersion==="latest"?e.ecmaVersion=1e8:e.ecmaVersion==null?(!oi&&typeof console=="object"&&console.warn&&(oi=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
3
|
-
|
|
4
|
-
`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(tt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=n.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=t.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&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},nt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};G.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},nt.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},nt.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},nt.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},nt.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t].flags;if(768&e)return!1;if(2&e)return(4&e)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},nt.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},nt.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},nt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},nt.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t].flags;if(768&e||2&e&&!(16&e))return!0}return!1},nt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Xs)>0},G.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=this,s=0;s<t.length;s++)i=t[s](i);return i},G.parse=function(t,e){return new this(e,t).parse()},G.parseExpressionAt=function(t,e,i){var s=new this(i,t,e);return s.nextToken(),s.parseExpression()},G.tokenizer=function(t,e){return new this(e,t)},Object.defineProperties(G.prototype,nt);var J=G.prototype,tr=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;J.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){K.lastIndex=t,t+=K.exec(this.input)[0].length;var e=tr.exec(this.input.slice(t));if(!e)return!1;if((e[1]||e[2])==="use strict"){K.lastIndex=t+e[0].length;var i=K.exec(this.input),s=i.index+i[0].length,r=this.input.charAt(s);return r===";"||r==="}"||tt.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||r==="!"&&this.input.charAt(s+1)==="=")}t+=e[0].length,K.lastIndex=t,t+=K.exec(this.input)[0].length,this.input[t]===";"&&t++}},J.eat=function(t){return this.type===t&&(this.next(),!0)},J.isContextual=function(t){return this.type===n.name&&this.value===t&&!this.containsEsc},J.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},J.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},J.canInsertSemicolon=function(){return this.type===n.eof||this.type===n.braceR||tt.test(this.input.slice(this.lastTokEnd,this.start))},J.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},J.semicolon=function(){this.eat(n.semi)||this.insertSemicolon()||this.unexpected()},J.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},J.expect=function(t){this.eat(t)||this.unexpected()},J.unexpected=function(t){this.raise(t??this.start,"Unexpected token")};var Qt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};J.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var i=e?t.parenthesizedAssign:t.parenthesizedBind;i>-1&&this.raiseRecoverable(i,e?"Assigning to rvalue":"Parenthesized pattern")}},J.checkExpressionErrors=function(t,e){if(!t)return!1;var i=t.shorthandAssign,s=t.doubleProto;if(!e)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},J.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")},J.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};var _=G.prototype;_.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==n.eof;){var i=this.parseStatement(null,!0,e);t.body.push(i)}if(this.inModule)for(var s=0,r=Object.keys(this.undefinedExports);s<r.length;s+=1){var a=r[s];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};var Ee={kind:"loop"},er={kind:"switch"};_.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;K.lastIndex=this.pos;var e=K.exec(this.input),i=this.pos+e[0].length,s=this.input.charCodeAt(i);if(s===91||s===92)return!0;if(t)return!1;if(s===123||s>55295&&s<56320)return!0;if($(s,!0)){for(var r=i+1;F(s=this.input.charCodeAt(r),!0);)++r;if(s===92||s>55295&&s<56320)return!0;var a=this.input.slice(i,r);if(!M.test(a))return!0}return!1},_.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;K.lastIndex=this.pos;var t,e=K.exec(this.input),i=this.pos+e[0].length;return!(tt.test(this.input.slice(this.pos,i))||this.input.slice(i,i+8)!=="function"||i+8!==this.input.length&&(F(t=this.input.charCodeAt(i+8))||t>55295&&t<56320))},_.isUsingKeyword=function(t,e){if(this.options.ecmaVersion<17||!this.isContextual(t?"await":"using"))return!1;K.lastIndex=this.pos;var i=K.exec(this.input),s=this.pos+i[0].length;if(tt.test(this.input.slice(this.pos,s)))return!1;if(t){var r,a=s+5;if(this.input.slice(s,a)!=="using"||a===this.input.length||F(r=this.input.charCodeAt(a))||r>55295&&r<56320)return!1;K.lastIndex=a;var o=K.exec(this.input);if(o&&tt.test(this.input.slice(a,a+o[0].length)))return!1}if(e){var c,h=s+2;if(!(this.input.slice(s,h)!=="of"||h!==this.input.length&&(F(c=this.input.charCodeAt(h))||c>55295&&c<56320)))return!1}var u=this.input.charCodeAt(s);return $(u,!0)||u===92},_.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)},_.isUsing=function(t){return this.isUsingKeyword(!1,t)},_.parseStatement=function(t,e,i){var s,r=this.type,a=this.startNode();switch(this.isLet(t)&&(r=n._var,s="let"),r){case n._break:case n._continue:return this.parseBreakContinueStatement(a,r.keyword);case n._debugger:return this.parseDebuggerStatement(a);case n._do:return this.parseDoStatement(a);case n._for:return this.parseForStatement(a);case n._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!t);case n._class:return t&&this.unexpected(),this.parseClass(a,!0);case n._if:return this.parseIfStatement(a);case n._return:return this.parseReturnStatement(a);case n._switch:return this.parseSwitchStatement(a);case n._throw:return this.parseThrowStatement(a);case n._try:return this.parseTryStatement(a);case n._const:case n._var:return s=s||this.value,t&&s!=="var"&&this.unexpected(),this.parseVarStatement(a,s);case n._while:return this.parseWhileStatement(a);case n._with:return this.parseWithStatement(a);case n.braceL:return this.parseBlock(!0,a);case n.semi:return this.parseEmptyStatement(a);case n._export:case n._import:if(this.options.ecmaVersion>10&&r===n._import){K.lastIndex=this.pos;var o=K.exec(this.input),c=this.pos+o[0].length,h=this.input.charCodeAt(c);if(h===40||h===46)return this.parseExpressionStatement(a,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||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'")),r===n._import?this.parseImport(a):this.parseExport(a,i);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!t);var u=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(u)return e&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),u==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(a,!1,u),this.semicolon(),this.finishNode(a,"VariableDeclaration");var p=this.value,g=this.parseExpression();return r===n.name&&g.type==="Identifier"&&this.eat(n.colon)?this.parseLabeledStatement(a,p,g,t):this.parseExpressionStatement(a,g)}},_.parseBreakContinueStatement=function(t,e){var i=e==="break";this.next(),this.eat(n.semi)||this.insertSemicolon()?t.label=null:this.type!==n.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var r=this.labels[s];if((t.label==null||r.name===t.label.name)&&(r.kind!=null&&(i||r.kind==="loop")||t.label&&i))break}return s===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,i?"BreakStatement":"ContinueStatement")},_.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},_.parseDoStatement=function(t){return this.next(),this.labels.push(Ee),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(n._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(n.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},_.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ee),this.enterScope(0),this.expect(n.parenL),this.type===n.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var i=this.isLet();if(this.type===n._var||this.type===n._const||i){var s=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),this.parseForAfterInit(t,s,e)}var a=this.isContextual("let"),o=!1,c=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(c){var h=this.startNode();return this.next(),c==="await using"&&this.next(),this.parseVar(h,!0,c),this.finishNode(h,"VariableDeclaration"),this.parseForAfterInit(t,h,e)}var u=this.containsEsc,p=new Qt,g=this.start,m=e>-1?this.parseExprSubscripts(p,"await"):this.parseExpression(!0,p);return this.type===n._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===n._in&&this.unexpected(e),t.await=!0):o&&this.options.ecmaVersion>=8&&(m.start!==g||u||m.type!=="Identifier"||m.name!=="async"?this.options.ecmaVersion>=9&&(t.await=!1):this.unexpected()),a&&o&&this.raise(m.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(m,!1,p),this.checkLValPattern(m),this.parseForIn(t,m)):(this.checkExpressionErrors(p,!0),e>-1&&this.unexpected(e),this.parseFor(t,m))},_.parseForAfterInit=function(t,e,i){return(this.type===n._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&e.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===n._in?i>-1&&this.unexpected(i):t.await=i>-1),this.parseForIn(t,e)):(i>-1&&this.unexpected(i),this.parseFor(t,e))},_.parseFunctionStatement=function(t,e,i){return this.next(),this.parseFunction(t,jt|(i?0:we),!1,e)},_.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(n._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},_.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(n.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},_.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(n.braceL),this.labels.push(er),this.enterScope(0);for(var i=!1;this.type!==n.braceR;)if(this.type===n._case||this.type===n._default){var s=this.type===n._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),s?e.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(n.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},_.parseThrowStatement=function(t){return this.next(),tt.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 ir=[];_.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e=t.type==="Identifier";return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(n.parenR),t},_.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===n._catch){var e=this.startNode();this.next(),this.eat(n.parenL)?e.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0)),e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(n._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},_.parseVarStatement=function(t,e,i){return this.next(),this.parseVar(t,!1,e,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")},_.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(Ee),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},_.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")},_.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},_.parseLabeledStatement=function(t,e,i,s){for(var r=0,a=this.labels;r<a.length;r+=1)a[r].name===e&&this.raise(i.start,"Label '"+e+"' is already declared");for(var o=this.type.isLoop?"loop":this.type===n._switch?"switch":null,c=this.labels.length-1;c>=0;c--){var h=this.labels[c];if(h.statementStart!==t.start)break;h.statementStart=this.start,h.kind=o}return this.labels.push({name:e,kind:o,statementStart:this.start}),t.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")},_.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},_.parseBlock=function(t,e,i){for(t===void 0&&(t=!0),e===void 0&&(e=this.startNode()),e.body=[],this.expect(n.braceL),t&&this.enterScope(0);this.type!==n.braceR;){var s=this.parseStatement(null);e.body.push(s)}return i&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},_.parseFor=function(t,e){return t.init=e,this.expect(n.semi),t.test=this.type===n.semi?null:this.parseExpression(),this.expect(n.semi),t.update=this.type===n.parenR?null:this.parseExpression(),this.expect(n.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},_.parseForIn=function(t,e){var i=this.type===n._in;return this.next(),e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(e.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(n.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")},_.parseVar=function(t,e,i,s){for(t.declarations=[],t.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(n.eq)?r.init=this.parseMaybeAssign(e):s||i!=="const"||this.type===n._in||this.options.ecmaVersion>=6&&this.isContextual("of")?s||i!=="using"&&i!=="await using"||!(this.options.ecmaVersion>=17)||this.type===n._in||this.isContextual("of")?s||r.id.type==="Identifier"||e&&(this.type===n._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+i+" declaration"):this.unexpected(),t.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(n.comma))break}return t},_.parseVarId=function(t,e){t.id=e==="using"||e==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(t.id,e==="var"?1:2,!1)};var jt=1,we=2;function sr(t,e){var i=e.key.name,s=t[i],r="true";return e.type!=="MethodDefinition"||e.kind!=="get"&&e.kind!=="set"||(r=(e.static?"s":"i")+e.kind),s==="iget"&&r==="iset"||s==="iset"&&r==="iget"||s==="sget"&&r==="sset"||s==="sset"&&r==="sget"?(t[i]="true",!1):!!s||(t[i]=r,!1)}function Zt(t,e){var i=t.computed,s=t.key;return!i&&(s.type==="Identifier"&&s.name===e||s.type==="Literal"&&s.value===e)}_.parseFunction=function(t,e,i,s,r){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===n.star&&e&we&&this.unexpected(),t.generator=this.eat(n.star)),this.options.ecmaVersion>=8&&(t.async=!!s),e&jt&&(t.id=4&e&&this.type!==n.name?null:this.parseIdent(),!t.id||e&we||this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var a=this.yieldPos,o=this.awaitPos,c=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(be(t.async,t.generator)),e&jt||(t.id=this.type===n.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,i,!1,r),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=c,this.finishNode(t,e&jt?"FunctionDeclaration":"FunctionExpression")},_.parseFunctionParams=function(t){this.expect(n.parenL),t.params=this.parseBindingList(n.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},_.parseClass=function(t,e){this.next();var i=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var s=this.enterClassBody(),r=this.startNode(),a=!1;for(r.body=[],this.expect(n.braceL);this.type!==n.braceR;){var o=this.parseClassElement(t.superClass!==null);o&&(r.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(a&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),a=!0):o.key&&o.key.type==="PrivateIdentifier"&&sr(s,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=i,this.next(),t.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},_.parseClassElement=function(t){if(this.eat(n.semi))return null;var e=this.options.ecmaVersion,i=this.startNode(),s="",r=!1,a=!1,o="method",c=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(n.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===n.star?c=!0:s="static"}if(i.static=c,!s&&e>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==n.star||this.canInsertSemicolon()?s="async":a=!0),!s&&(e>=9||!a)&&this.eat(n.star)&&(r=!0),!s&&!a&&!r){var h=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=h:s=h)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),e<13||this.type===n.parenL||o!=="method"||r||a){var u=!i.static&&Zt(i,"constructor"),p=u&&t;u&&o!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=u?"constructor":o,this.parseClassMethod(i,r,a,p)}else this.parseClassField(i);return i},_.isClassElementNameStart=function(){return this.type===n.name||this.type===n.privateId||this.type===n.num||this.type===n.string||this.type===n.bracketL||this.type.keyword},_.parseClassElementName=function(t){this.type===n.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)},_.parseClassMethod=function(t,e,i,s){var r=t.key;t.kind==="constructor"?(e&&this.raise(r.start,"Constructor can't be a generator"),i&&this.raise(r.start,"Constructor can't be an async method")):t.static&&Zt(t,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var a=t.value=this.parseMethod(e,i,s);return t.kind==="get"&&a.params.length!==0&&this.raiseRecoverable(a.start,"getter should have no params"),t.kind==="set"&&a.params.length!==1&&this.raiseRecoverable(a.start,"setter should have exactly one param"),t.kind==="set"&&a.params[0].type==="RestElement"&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},_.parseClassField=function(t){return Zt(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&Zt(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(n.eq)?(this.enterScope(576),t.value=this.parseMaybeAssign(),this.exitScope()):t.value=null,this.semicolon(),this.finishNode(t,"PropertyDefinition")},_.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==n.braceR;){var i=this.parseStatement(null);t.body.push(i)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},_.parseClassId=function(t,e){this.type===n.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(e===!0&&this.unexpected(),t.id=null)},_.parseClassSuper=function(t){t.superClass=this.eat(n._extends)?this.parseExprSubscripts(null,!1):null},_.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},_.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,i=t.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,r=s===0?null:this.privateNameStack[s-1],a=0;a<i.length;++a){var o=i[a];It(e,o.name)||(r?r.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}},_.parseExportAllDeclaration=function(t,e){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==n.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},_.parseExport=function(t,e){if(this.next(),this.eat(n.star))return this.parseExportAllDeclaration(t,e);if(this.eat(n._default))return this.checkExport(e,"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(e,t.declaration.declarations):this.checkExport(e,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(e),this.eatContextual("from"))this.type!==n.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause());else{for(var i=0,s=t.specifiers;i<s.length;i+=1){var r=s[i];this.checkUnreserved(r.local),this.checkLocalExport(r.local),r.local.type==="Literal"&&this.raise(r.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")},_.parseExportDeclaration=function(t){return this.parseStatement(null)},_.parseExportDefaultDeclaration=function(){var t;if(this.type===n._function||(t=this.isAsyncFunction())){var e=this.startNode();return this.next(),t&&this.next(),this.parseFunction(e,4|jt,!1,t)}if(this.type===n._class){var i=this.startNode();return this.parseClass(i,"nullableID")}var s=this.parseMaybeAssign();return this.semicolon(),s},_.checkExport=function(t,e,i){t&&(typeof e!="string"&&(e=e.type==="Identifier"?e.name:e.value),It(t,e)&&this.raiseRecoverable(i,"Duplicate export '"+e+"'"),t[e]=!0)},_.checkPatternExport=function(t,e){var i=e.type;if(i==="Identifier")this.checkExport(t,e,e.start);else if(i==="ObjectPattern")for(var s=0,r=e.properties;s<r.length;s+=1){var a=r[s];this.checkPatternExport(t,a)}else if(i==="ArrayPattern")for(var o=0,c=e.elements;o<c.length;o+=1){var h=c[o];h&&this.checkPatternExport(t,h)}else i==="Property"?this.checkPatternExport(t,e.value):i==="AssignmentPattern"?this.checkPatternExport(t,e.left):i==="RestElement"&&this.checkPatternExport(t,e.argument)},_.checkVariableExport=function(t,e){if(t)for(var i=0,s=e;i<s.length;i+=1){var r=s[i];this.checkPatternExport(t,r.id)}},_.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},_.parseExportSpecifier=function(t){var e=this.startNode();return e.local=this.parseModuleExportName(),e.exported=this.eatContextual("as")?this.parseModuleExportName():e.local,this.checkExport(t,e.exported,e.exported.start),this.finishNode(e,"ExportSpecifier")},_.parseExportSpecifiers=function(t){var e=[],i=!0;for(this.expect(n.braceL);!this.eat(n.braceR);){if(i)i=!1;else if(this.expect(n.comma),this.afterTrailingComma(n.braceR))break;e.push(this.parseExportSpecifier(t))}return e},_.parseImport=function(t){return this.next(),this.type===n.string?(t.specifiers=ir,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===n.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},_.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,2),this.finishNode(t,"ImportSpecifier")},_.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportDefaultSpecifier")},_.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportNamespaceSpecifier")},_.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===n.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(n.comma)))return t;if(this.type===n.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(n.braceL);!this.eat(n.braceR);){if(e)e=!1;else if(this.expect(n.comma),this.afterTrailingComma(n.braceR))break;t.push(this.parseImportSpecifier())}return t},_.parseWithClause=function(){var t=[];if(!this.eat(n._with))return t;this.expect(n.braceL);for(var e={},i=!0;!this.eat(n.braceR);){if(i)i=!1;else if(this.expect(n.comma),this.afterTrailingComma(n.braceR))break;var s=this.parseImportAttribute(),r=s.key.type==="Identifier"?s.key.name:s.key.value;It(e,r)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+r+"'"),e[r]=!0,t.push(s)}return t},_.parseImportAttribute=function(){var t=this.startNode();return t.key=this.type===n.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(n.colon),this.type!==n.string&&this.unexpected(),t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")},_.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===n.string){var t=this.parseLiteral(this.value);return Qs.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},_.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)},_.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 it=G.prototype;it.toAssignable=function(t,e,i){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",i&&this.checkPatternErrors(i,!0);for(var s=0,r=t.properties;s<r.length;s+=1){var a=r[s];this.toAssignable(a,e),a.type!=="RestElement"||a.argument.type!=="ArrayPattern"&&a.argument.type!=="ObjectPattern"||this.raise(a.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,e);break;case"ArrayExpression":t.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),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,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,i);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return t},it.toAssignableList=function(t,e){for(var i=t.length,s=0;s<i;s++){var r=t[s];r&&this.toAssignable(r,e)}if(i){var a=t[i-1];this.options.ecmaVersion===6&&e&&a&&a.type==="RestElement"&&a.argument.type!=="Identifier"&&this.unexpected(a.argument.start)}return t},it.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},it.parseRestBinding=function(){var t=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==n.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},it.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case n.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(n.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case n.braceL:return this.parseObj(!0)}return this.parseIdent()},it.parseBindingList=function(t,e,i,s){for(var r=[],a=!0;!this.eat(t);)if(a?a=!1:this.expect(n.comma),e&&this.type===n.comma)r.push(null);else{if(i&&this.afterTrailingComma(t))break;if(this.type===n.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),r.push(o),this.type===n.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}r.push(this.parseAssignableListItem(s))}return r},it.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e},it.parseBindingListItem=function(t){return t},it.parseMaybeDefault=function(t,e,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(n.eq))return i;var s=this.startNodeAt(t,e);return s.left=i,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},it.checkLValSimple=function(t,e,i){e===void 0&&(e=0);var s=e!==0;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(s?"Binding ":"Assigning to ")+t.name+" in strict mode"),s&&(e===2&&t.name==="let"&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),i&&(It(i,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),i[t.name]=!0),e!==5&&this.declareName(t.name,e,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,i);default:this.raise(t.start,(s?"Binding":"Assigning to")+" rvalue")}},it.checkLValPattern=function(t,e,i){switch(e===void 0&&(e=0),t.type){case"ObjectPattern":for(var s=0,r=t.properties;s<r.length;s+=1){var a=r[s];this.checkLValInnerPattern(a,e,i)}break;case"ArrayPattern":for(var o=0,c=t.elements;o<c.length;o+=1){var h=c[o];h&&this.checkLValInnerPattern(h,e,i)}break;default:this.checkLValSimple(t,e,i)}},it.checkLValInnerPattern=function(t,e,i){switch(e===void 0&&(e=0),t.type){case"Property":this.checkLValInnerPattern(t.value,e,i);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,i);break;case"RestElement":this.checkLValPattern(t.argument,e,i);break;default:this.checkLValPattern(t,e,i)}};var rt=function(t,e,i,s,r){this.token=t,this.isExpr=!!e,this.preserveSpace=!!i,this.override=s,this.generator=!!r},U={b_stat:new rt("{",!1),b_expr:new rt("{",!0),b_tmpl:new rt("${",!1),p_stat:new rt("(",!1),p_expr:new rt("(",!0),q_tmpl:new rt("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new rt("function",!1),f_expr:new rt("function",!0),f_expr_gen:new rt("function",!0,!1,null,!0),f_gen:new rt("function",!1,!1,null,!0)},Rt=G.prototype;Rt.initialContext=function(){return[U.b_stat]},Rt.curContext=function(){return this.context[this.context.length-1]},Rt.braceIsBlock=function(t){var e=this.curContext();return e===U.f_expr||e===U.f_stat||(t!==n.colon||e!==U.b_stat&&e!==U.b_expr?t===n._return||t===n.name&&this.exprAllowed?tt.test(this.input.slice(this.lastTokEnd,this.start)):t===n._else||t===n.semi||t===n.eof||t===n.parenR||t===n.arrow||(t===n.braceL?e===U.b_stat:t!==n._var&&t!==n._const&&t!==n.name&&!this.exprAllowed):!e.isExpr)},Rt.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if(e.token==="function")return e.generator}return!1},Rt.updateContext=function(t){var e,i=this.type;i.keyword&&t===n.dot?this.exprAllowed=!1:(e=i.updateContext)?e.call(this,t):this.exprAllowed=i.beforeExpr},Rt.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)},n.parenR.updateContext=n.braceR.updateContext=function(){if(this.context.length!==1){var t=this.context.pop();t===U.b_stat&&this.curContext().token==="function"&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},n.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?U.b_stat:U.b_expr),this.exprAllowed=!0},n.dollarBraceL.updateContext=function(){this.context.push(U.b_tmpl),this.exprAllowed=!0},n.parenL.updateContext=function(t){var e=t===n._if||t===n._for||t===n._with||t===n._while;this.context.push(e?U.p_stat:U.p_expr),this.exprAllowed=!0},n.incDec.updateContext=function(){},n._function.updateContext=n._class.updateContext=function(t){!t.beforeExpr||t===n._else||t===n.semi&&this.curContext()!==U.p_stat||t===n._return&&tt.test(this.input.slice(this.lastTokEnd,this.start))||(t===n.colon||t===n.braceL)&&this.curContext()===U.b_stat?this.context.push(U.f_stat):this.context.push(U.f_expr),this.exprAllowed=!1},n.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},n.backQuote.updateContext=function(){this.curContext()===U.q_tmpl?this.context.pop():this.context.push(U.q_tmpl),this.exprAllowed=!1},n.star.updateContext=function(t){if(t===n._function){var e=this.context.length-1;this.context[e]===U.f_expr?this.context[e]=U.f_expr_gen:this.context[e]=U.f_gen}this.exprAllowed=!0},n.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==n.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var S=G.prototype;function hi(t){return t.type==="Identifier"||t.type==="ParenthesizedExpression"&&hi(t.expression)}function Se(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&Se(t.expression)||t.type==="ParenthesizedExpression"&&Se(t.expression)}S.checkPropClash=function(t,e,i){if(!(this.options.ecmaVersion>=9&&t.type==="SpreadElement"||this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var s,r=t.key;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=String(r.value);break;default:return}var a=t.kind;if(this.options.ecmaVersion>=6)s==="__proto__"&&a==="init"&&(e.proto&&(i?i.doubleProto<0&&(i.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),e.proto=!0);else{var o=e[s="$"+s];o?(a==="init"?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(r.start,"Redefinition of property"):o=e[s]={init:!1,get:!1,set:!1},o[a]=!0}}},S.parseExpression=function(t,e){var i=this.start,s=this.startLoc,r=this.parseMaybeAssign(t,e);if(this.type===n.comma){var a=this.startNodeAt(i,s);for(a.expressions=[r];this.eat(n.comma);)a.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(a,"SequenceExpression")}return r},S.parseMaybeAssign=function(t,e,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var s=!1,r=-1,a=-1,o=-1;e?(r=e.parenthesizedAssign,a=e.trailingComma,o=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new Qt,s=!0);var c=this.start,h=this.startLoc;this.type!==n.parenL&&this.type!==n.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=t==="await");var u=this.parseMaybeConditional(t,e);if(i&&(u=i.call(this,u,c,h)),this.type.isAssign){var p=this.startNodeAt(c,h);return p.operator=this.value,this.type===n.eq&&(u=this.toAssignable(u,!1,e)),s||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=u.start&&(e.shorthandAssign=-1),this.type===n.eq?this.checkLValPattern(u):this.checkLValSimple(u),p.left=u,this.next(),p.right=this.parseMaybeAssign(t),o>-1&&(e.doubleProto=o),this.finishNode(p,"AssignmentExpression")}return s&&this.checkExpressionErrors(e,!0),r>-1&&(e.parenthesizedAssign=r),a>-1&&(e.trailingComma=a),u},S.parseMaybeConditional=function(t,e){var i=this.start,s=this.startLoc,r=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return r;if(this.eat(n.question)){var a=this.startNodeAt(i,s);return a.test=r,a.consequent=this.parseMaybeAssign(),this.expect(n.colon),a.alternate=this.parseMaybeAssign(t),this.finishNode(a,"ConditionalExpression")}return r},S.parseExprOps=function(t,e){var i=this.start,s=this.startLoc,r=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)||r.start===i&&r.type==="ArrowFunctionExpression"?r:this.parseExprOp(r,i,s,-1,t)},S.parseExprOp=function(t,e,i,s,r){var a=this.type.binop;if(a!=null&&(!r||this.type!==n._in)&&a>s){var o=this.type===n.logicalOR||this.type===n.logicalAND,c=this.type===n.coalesce;c&&(a=n.logicalAND.binop);var h=this.value;this.next();var u=this.start,p=this.startLoc,g=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),u,p,a,r),m=this.buildBinary(e,i,t,g,h,o||c);return(o&&this.type===n.coalesce||c&&(this.type===n.logicalOR||this.type===n.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(m,e,i,s,r)}return t},S.buildBinary=function(t,e,i,s,r,a){s.type==="PrivateIdentifier"&&this.raise(s.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(t,e);return o.left=i,o.operator=r,o.right=s,this.finishNode(o,a?"LogicalExpression":"BinaryExpression")},S.parseMaybeUnary=function(t,e,i,s){var r,a=this.start,o=this.startLoc;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(s),e=!0;else if(this.type.prefix){var c=this.startNode(),h=this.type===n.incDec;c.operator=this.value,c.prefix=!0,this.next(),c.argument=this.parseMaybeUnary(null,!0,h,s),this.checkExpressionErrors(t,!0),h?this.checkLValSimple(c.argument):this.strict&&c.operator==="delete"&&hi(c.argument)?this.raiseRecoverable(c.start,"Deleting local variable in strict mode"):c.operator==="delete"&&Se(c.argument)?this.raiseRecoverable(c.start,"Private fields can not be deleted"):e=!0,r=this.finishNode(c,h?"UpdateExpression":"UnaryExpression")}else if(e||this.type!==n.privateId){if(r=this.parseExprSubscripts(t,s),this.checkExpressionErrors(t))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var u=this.startNodeAt(a,o);u.operator=this.value,u.prefix=!1,u.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(u,"UpdateExpression")}}else(s||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==n._in&&this.unexpected();return i||!this.eat(n.starstar)?r:e?void this.unexpected(this.lastTokStart):this.buildBinary(a,o,r,this.parseMaybeUnary(null,!1,!1,s),"**",!1)},S.parseExprSubscripts=function(t,e){var i=this.start,s=this.startLoc,r=this.parseExprAtom(t,e);if(r.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return r;var a=this.parseSubscripts(r,i,s,!1,e);return t&&a.type==="MemberExpression"&&(t.parenthesizedAssign>=a.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=a.start&&(t.parenthesizedBind=-1),t.trailingComma>=a.start&&(t.trailingComma=-1)),a},S.parseSubscripts=function(t,e,i,s,r){for(var a=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,o=!1;;){var c=this.parseSubscript(t,e,i,s,a,o,r);if(c.optional&&(o=!0),c===t||c.type==="ArrowFunctionExpression"){if(o){var h=this.startNodeAt(e,i);h.expression=c,c=this.finishNode(h,"ChainExpression")}return c}t=c}},S.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(n.arrow)},S.parseSubscriptAsyncArrow=function(t,e,i,s){return this.parseArrowExpression(this.startNodeAt(t,e),i,!0,s)},S.parseSubscript=function(t,e,i,s,r,a,o){var c=this.options.ecmaVersion>=11,h=c&&this.eat(n.questionDot);s&&h&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var u=this.eat(n.bracketL);if(u||h&&this.type!==n.parenL&&this.type!==n.backQuote||this.eat(n.dot)){var p=this.startNodeAt(e,i);p.object=t,u?(p.property=this.parseExpression(),this.expect(n.bracketR)):this.type===n.privateId&&t.type!=="Super"?p.property=this.parsePrivateIdent():p.property=this.parseIdent(this.options.allowReserved!=="never"),p.computed=!!u,c&&(p.optional=h),t=this.finishNode(p,"MemberExpression")}else if(!s&&this.eat(n.parenL)){var g=new Qt,m=this.yieldPos,C=this.awaitPos,V=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var I=this.parseExprList(n.parenR,this.options.ecmaVersion>=8,!1,g);if(r&&!h&&this.shouldParseAsyncArrow())return this.checkPatternErrors(g,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=m,this.awaitPos=C,this.awaitIdentPos=V,this.parseSubscriptAsyncArrow(e,i,I,o);this.checkExpressionErrors(g,!0),this.yieldPos=m||this.yieldPos,this.awaitPos=C||this.awaitPos,this.awaitIdentPos=V||this.awaitIdentPos;var O=this.startNodeAt(e,i);O.callee=t,O.arguments=I,c&&(O.optional=h),t=this.finishNode(O,"CallExpression")}else if(this.type===n.backQuote){(h||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var L=this.startNodeAt(e,i);L.tag=t,L.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(L,"TaggedTemplateExpression")}return t},S.parseExprAtom=function(t,e,i){this.type===n.slash&&this.readRegexp();var s,r=this.potentialArrowAt===this.start;switch(this.type){case n._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type!==n.parenL||this.allowDirectSuper||this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==n.dot&&this.type!==n.bracketL&&this.type!==n.parenL&&this.unexpected(),this.finishNode(s,"Super");case n._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case n.name:var a=this.start,o=this.startLoc,c=this.containsEsc,h=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!c&&h.name==="async"&&!this.canInsertSemicolon()&&this.eat(n._function))return this.overrideContext(U.f_expr),this.parseFunction(this.startNodeAt(a,o),0,!1,!0,e);if(r&&!this.canInsertSemicolon()){if(this.eat(n.arrow))return this.parseArrowExpression(this.startNodeAt(a,o),[h],!1,e);if(this.options.ecmaVersion>=8&&h.name==="async"&&this.type===n.name&&!c&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return h=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(n.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,o),[h],!0,e)}return h;case n.regexp:var u=this.value;return(s=this.parseLiteral(u.value)).regex={pattern:u.pattern,flags:u.flags},s;case n.num:case n.string:return this.parseLiteral(this.value);case n._null:case n._true:case n._false:return(s=this.startNode()).value=this.type===n._null?null:this.type===n._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case n.parenL:var p=this.start,g=this.parseParenAndDistinguishExpression(r,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(g)&&(t.parenthesizedAssign=p),t.parenthesizedBind<0&&(t.parenthesizedBind=p)),g;case n.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(n.bracketR,!0,!0,t),this.finishNode(s,"ArrayExpression");case n.braceL:return this.overrideContext(U.b_expr),this.parseObj(!1,t);case n._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case n._class:return this.parseClass(this.startNode(),!1);case n._new:return this.parseNew();case n.backQuote:return this.parseTemplate();case n._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},S.parseExprAtomDefault=function(){this.unexpected()},S.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===n.parenL&&!t)return this.parseDynamicImport(e);if(this.type===n.dot){var i=this.startNodeAt(e.start,e.loc&&e.loc.start);return i.name="import",e.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(e)}this.unexpected()},S.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(n.parenR)?t.options=null:(this.expect(n.comma),this.afterTrailingComma(n.parenR)?t.options=null:(t.options=this.parseMaybeAssign(),this.eat(n.parenR)||(this.expect(n.comma),this.afterTrailingComma(n.parenR)||this.unexpected())));else if(!this.eat(n.parenR)){var e=this.start;this.eat(n.comma)&&this.eat(n.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},S.parseImportMeta=function(t){this.next();var e=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'"),e&&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")},S.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),e.raw.charCodeAt(e.raw.length-1)===110&&(e.bigint=e.value!=null?e.value.toString():e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},S.parseParenExpression=function(){this.expect(n.parenL);var t=this.parseExpression();return this.expect(n.parenR),t},S.shouldParseArrow=function(t){return!this.canInsertSemicolon()},S.parseParenAndDistinguishExpression=function(t,e){var i,s=this.start,r=this.startLoc,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o,c=this.start,h=this.startLoc,u=[],p=!0,g=!1,m=new Qt,C=this.yieldPos,V=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==n.parenR;){if(p?p=!1:this.expect(n.comma),a&&this.afterTrailingComma(n.parenR,!0)){g=!0;break}if(this.type===n.ellipsis){o=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===n.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}u.push(this.parseMaybeAssign(!1,m,this.parseParenItem))}var I=this.lastTokEnd,O=this.lastTokEndLoc;if(this.expect(n.parenR),t&&this.shouldParseArrow(u)&&this.eat(n.arrow))return this.checkPatternErrors(m,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=C,this.awaitPos=V,this.parseParenArrowList(s,r,u,e);u.length&&!g||this.unexpected(this.lastTokStart),o&&this.unexpected(o),this.checkExpressionErrors(m,!0),this.yieldPos=C||this.yieldPos,this.awaitPos=V||this.awaitPos,u.length>1?((i=this.startNodeAt(c,h)).expressions=u,this.finishNodeAt(i,"SequenceExpression",I,O)):i=u[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var L=this.startNodeAt(s,r);return L.expression=i,this.finishNode(L,"ParenthesizedExpression")}return i},S.parseParenItem=function(t){return t},S.parseParenArrowList=function(t,e,i,s){return this.parseArrowExpression(this.startNodeAt(t,e),i,!1,s)};var rr=[];S.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===n.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var i=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'"),i&&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 s=this.start,r=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,r,!0,!1),this.eat(n.parenL)?t.arguments=this.parseExprList(n.parenR,this.options.ecmaVersion>=8,!1):t.arguments=rr,this.finishNode(t,"NewExpression")},S.parseTemplateElement=function(t){var e=t.isTagged,i=this.startNode();return this.type===n.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,`
|
|
2
|
+
"use strict";var $n=Object.create;var _i=Object.defineProperty;var Bn=Object.getOwnPropertyDescriptor;var Wn=Object.getOwnPropertyNames;var qn=Object.getPrototypeOf,Gn=Object.prototype.hasOwnProperty;var Ys=(g,v)=>()=>(g&&(v=g(g=0)),v);var Hn=(g,v)=>()=>(v||g((v={exports:{}}).exports,v),v.exports),zi=(g,v)=>{for(var w in v)_i(g,w,{get:v[w],enumerable:!0})},Qs=(g,v,w,L)=>{if(v&&typeof v=="object"||typeof v=="function")for(let S of Wn(v))!Gn.call(g,S)&&S!==w&&_i(g,S,{get:()=>v[S],enumerable:!(L=Bn(v,S))||L.enumerable});return g};var Ei=(g,v,w)=>(w=g!=null?$n(qn(g)):{},Qs(v||!g||!g.__esModule?_i(w,"default",{value:g,enumerable:!0}):w,g)),Kn=g=>Qs(_i({},"__esModule",{value:!0}),g);var Zs=Hn((pa,Xs)=>{"use strict";(()=>{var g={"./node_modules/.pnpm/mlly@1.8.2/node_modules/mlly/dist lazy recursive"(S){function T(N){return Promise.resolve().then(function(){var ct=new Error("Cannot find module '"+N+"'");throw ct.code="MODULE_NOT_FOUND",ct})}T.keys=()=>[],T.resolve=T,T.id="./node_modules/.pnpm/mlly@1.8.2/node_modules/mlly/dist lazy recursive",S.exports=T},fs(S){"use strict";S.exports=require("fs")},"node:fs"(S){"use strict";S.exports=require("fs")},"node:module"(S){"use strict";S.exports=require("module")},"node:path"(S){"use strict";S.exports=require("path")},os(S){"use strict";S.exports=require("os")},path(S){"use strict";S.exports=require("path")},"./node_modules/.pnpm/get-tsconfig@4.14.0/node_modules/get-tsconfig/dist/index.cjs"(S,T,N){"use strict";var ct=Object.defineProperty,C=(a,p)=>ct(a,"name",{value:p,configurable:!0}),O=N("node:path"),bt=N("node:fs"),lt=N("node:module"),q=N("./node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.cjs"),K=N("fs"),ht=N("os"),ot=N("path");function B(a){return a.startsWith("\\\\?\\")?a:a.replace(/\\/g,"/")}C(B,"slash");let $=C(a=>{let p=bt[a];return(x,...h)=>{let E=`${a}:${h.join(":")}`,_=x?.get(E);return _===void 0&&(_=Reflect.apply(p,bt,h),x?.set(E,_)),_}},"cacheFs"),at=$("existsSync"),yt=$("readFileSync"),M=$("statSync"),W=C((a,p,x)=>{for(;;){let h=O.posix.join(a,p);if(at(x,h))return h;let E=O.dirname(a);if(E===a)return;a=E}},"findUp"),V=/^\.{1,2}(\/.*)?$/,n=C(a=>{let p=B(a);return V.test(p)?p:`./${p}`},"normalizeRelativePath");function it(a,p=!1){let x=a.length,h=0,E="",_=0,d=16,A=0,P=0,j=0,X=0,Q=0;function pt(k,_t){let kt=0,Y=0;for(;kt<k;){let D=a.charCodeAt(h);if(D>=48&&D<=57)Y=16*Y+D-48;else if(D>=65&&D<=70)Y=16*Y+D-65+10;else{if(!(D>=97&&D<=102))break;Y=16*Y+D-97+10}h++,kt++}return kt<k&&(Y=-1),Y}function st(k){h=k,E="",_=0,d=16,Q=0}function rt(){let k=h;if(a.charCodeAt(h)===48)h++;else for(h++;h<a.length&&wt(a.charCodeAt(h));)h++;if(h<a.length&&a.charCodeAt(h)===46){if(h++,!(h<a.length&&wt(a.charCodeAt(h))))return Q=3,a.substring(k,h);for(h++;h<a.length&&wt(a.charCodeAt(h));)h++}let _t=h;if(h<a.length&&(a.charCodeAt(h)===69||a.charCodeAt(h)===101))if(h++,(h<a.length&&a.charCodeAt(h)===43||a.charCodeAt(h)===45)&&h++,h<a.length&&wt(a.charCodeAt(h))){for(h++;h<a.length&&wt(a.charCodeAt(h));)h++;_t=h}else Q=3;return a.substring(k,_t)}function nt(){let k="",_t=h;for(;;){if(h>=x){k+=a.substring(_t,h),Q=2;break}let kt=a.charCodeAt(h);if(kt===34){k+=a.substring(_t,h),h++;break}if(kt!==92){if(kt>=0&&kt<=31){if(xt(kt)){k+=a.substring(_t,h),Q=2;break}Q=6}h++}else{if(k+=a.substring(_t,h),h++,h>=x){Q=2;break}switch(a.charCodeAt(h++)){case 34:k+='"';break;case 92:k+="\\";break;case 47:k+="/";break;case 98:k+="\b";break;case 102:k+="\f";break;case 110:k+=`
|
|
3
|
+
`;break;case 114:k+="\r";break;case 116:k+=" ";break;case 117:let Y=pt(4);Y>=0?k+=String.fromCharCode(Y):Q=4;break;default:Q=5}_t=h}}return k}function mt(){if(E="",Q=0,_=h,P=A,X=j,h>=x)return _=x,d=17;let k=a.charCodeAt(h);if(ft(k)){do h++,E+=String.fromCharCode(k),k=a.charCodeAt(h);while(ft(k));return d=15}if(xt(k))return h++,E+=String.fromCharCode(k),k===13&&a.charCodeAt(h)===10&&(h++,E+=`
|
|
4
|
+
`),A++,j=h,d=14;switch(k){case 123:return h++,d=1;case 125:return h++,d=2;case 91:return h++,d=3;case 93:return h++,d=4;case 58:return h++,d=6;case 44:return h++,d=5;case 34:return h++,E=nt(),d=10;case 47:let _t=h-1;if(a.charCodeAt(h+1)===47){for(h+=2;h<x&&!xt(a.charCodeAt(h));)h++;return E=a.substring(_t,h),d=12}if(a.charCodeAt(h+1)===42){h+=2;let kt=x-1,Y=!1;for(;h<kt;){let D=a.charCodeAt(h);if(D===42&&a.charCodeAt(h+1)===47){h+=2,Y=!0;break}h++,xt(D)&&(D===13&&a.charCodeAt(h)===10&&h++,A++,j=h)}return Y||(h++,Q=1),E=a.substring(_t,h),d=13}return E+=String.fromCharCode(k),h++,d=16;case 45:if(E+=String.fromCharCode(k),h++,h===x||!wt(a.charCodeAt(h)))return d=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return E+=rt(),d=11;default:for(;h<x&&Lt(k);)h++,k=a.charCodeAt(h);if(_!==h){switch(E=a.substring(_,h),E){case"true":return d=8;case"false":return d=9;case"null":return d=7}return d=16}return E+=String.fromCharCode(k),h++,d=16}}function Lt(k){if(ft(k)||xt(k))return!1;switch(k){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function Mt(){let k;do k=mt();while(k>=12&&k<=15);return k}return C(pt,"scanHexDigits"),C(st,"setPosition"),C(rt,"scanNumber"),C(nt,"scanString"),C(mt,"scanNext"),C(Lt,"isUnknownContentCharacter"),C(Mt,"scanNextNonTrivia"),{setPosition:st,getPosition:C(()=>h,"getPosition"),scan:p?Mt:mt,getToken:C(()=>d,"getToken"),getTokenValue:C(()=>E,"getTokenValue"),getTokenOffset:C(()=>_,"getTokenOffset"),getTokenLength:C(()=>h-_,"getTokenLength"),getTokenStartLine:C(()=>P,"getTokenStartLine"),getTokenStartCharacter:C(()=>_-X,"getTokenStartCharacter"),getTokenError:C(()=>Q,"getTokenError")}}function ft(a){return a===32||a===9}function xt(a){return a===10||a===13}function wt(a){return a>=48&&a<=57}var Dt,u;C(it,"createScanner"),C(ft,"isWhiteSpace"),C(xt,"isLineBreak"),C(wt,"isDigit"),(u=Dt||(Dt={}))[u.lineFeed=10]="lineFeed",u[u.carriageReturn=13]="carriageReturn",u[u.space=32]="space",u[u._0=48]="_0",u[u._1=49]="_1",u[u._2=50]="_2",u[u._3=51]="_3",u[u._4=52]="_4",u[u._5=53]="_5",u[u._6=54]="_6",u[u._7=55]="_7",u[u._8=56]="_8",u[u._9=57]="_9",u[u.a=97]="a",u[u.b=98]="b",u[u.c=99]="c",u[u.d=100]="d",u[u.e=101]="e",u[u.f=102]="f",u[u.g=103]="g",u[u.h=104]="h",u[u.i=105]="i",u[u.j=106]="j",u[u.k=107]="k",u[u.l=108]="l",u[u.m=109]="m",u[u.n=110]="n",u[u.o=111]="o",u[u.p=112]="p",u[u.q=113]="q",u[u.r=114]="r",u[u.s=115]="s",u[u.t=116]="t",u[u.u=117]="u",u[u.v=118]="v",u[u.w=119]="w",u[u.x=120]="x",u[u.y=121]="y",u[u.z=122]="z",u[u.A=65]="A",u[u.B=66]="B",u[u.C=67]="C",u[u.D=68]="D",u[u.E=69]="E",u[u.F=70]="F",u[u.G=71]="G",u[u.H=72]="H",u[u.I=73]="I",u[u.J=74]="J",u[u.K=75]="K",u[u.L=76]="L",u[u.M=77]="M",u[u.N=78]="N",u[u.O=79]="O",u[u.P=80]="P",u[u.Q=81]="Q",u[u.R=82]="R",u[u.S=83]="S",u[u.T=84]="T",u[u.U=85]="U",u[u.V=86]="V",u[u.W=87]="W",u[u.X=88]="X",u[u.Y=89]="Y",u[u.Z=90]="Z",u[u.asterisk=42]="asterisk",u[u.backslash=92]="backslash",u[u.closeBrace=125]="closeBrace",u[u.closeBracket=93]="closeBracket",u[u.colon=58]="colon",u[u.comma=44]="comma",u[u.dot=46]="dot",u[u.doubleQuote=34]="doubleQuote",u[u.minus=45]="minus",u[u.openBrace=123]="openBrace",u[u.openBracket=91]="openBracket",u[u.plus=43]="plus",u[u.slash=47]="slash",u[u.formFeed=12]="formFeed",u[u.tab=9]="tab",new Array(20).fill(0).map((a,p)=>" ".repeat(p));let Bt=200;var me,He,Wt;function Te(a,p=[],x=me.DEFAULT){let h=null,E=[],_=[];function d(A){Array.isArray(E)?E.push(A):h!==null&&(E[h]=A)}return C(d,"onValue"),Re(a,{onObjectBegin:C(()=>{let A={};d(A),_.push(E),E=A,h=null},"onObjectBegin"),onObjectProperty:C(A=>{h=A},"onObjectProperty"),onObjectEnd:C(()=>{E=_.pop()},"onObjectEnd"),onArrayBegin:C(()=>{let A=[];d(A),_.push(E),E=A,h=null},"onArrayBegin"),onArrayEnd:C(()=>{E=_.pop()},"onArrayEnd"),onLiteralValue:d,onError:C((A,P,j)=>{p.push({error:A,offset:P,length:j})},"onError")},x),E[0]}function Re(a,p,x=me.DEFAULT){let h=it(a,!1),E=[],_=0;function d(Z){return Z?()=>_===0&&Z(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}function A(Z){return Z?gt=>_===0&&Z(gt,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}function P(Z){return Z?gt=>_===0&&Z(gt,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>E.slice()):()=>!0}function j(Z){return Z?()=>{_>0?_++:Z(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>E.slice())===!1&&(_=1)}:()=>!0}function X(Z){return Z?()=>{_>0&&_--,_===0&&Z(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter())}:()=>!0}C(d,"toNoArgVisit"),C(A,"toOneArgVisit"),C(P,"toOneArgVisitWithPath"),C(j,"toBeginVisit"),C(X,"toEndVisit");let Q=j(p.onObjectBegin),pt=P(p.onObjectProperty),st=X(p.onObjectEnd),rt=j(p.onArrayBegin),nt=X(p.onArrayEnd),mt=P(p.onLiteralValue),Lt=A(p.onSeparator),Mt=d(p.onComment),k=A(p.onError),_t=x&&x.disallowComments,kt=x&&x.allowTrailingComma;function Y(){for(;;){let Z=h.scan();switch(h.getTokenError()){case 4:D(14);break;case 5:D(15);break;case 3:D(13);break;case 1:_t||D(11);break;case 2:D(12);break;case 6:D(16)}switch(Z){case 12:case 13:_t?D(10):Mt();break;case 16:D(1);break;case 15:case 14:break;default:return Z}}}function D(Z,gt=[],hi=[]){if(k(Z),gt.length+hi.length>0){let _e=h.getToken();for(;_e!==17;){if(gt.indexOf(_e)!==-1){Y();break}if(hi.indexOf(_e)!==-1)break;_e=Y()}}}function Ue(Z){let gt=h.getTokenValue();return Z?mt(gt):(pt(gt),E.push(gt)),Y(),!0}function ai(){switch(h.getToken()){case 11:let Z=h.getTokenValue(),gt=Number(Z);isNaN(gt)&&(D(2),gt=0),mt(gt);break;case 7:mt(null);break;case 8:mt(!0);break;case 9:mt(!1);break;default:return!1}return Y(),!0}function oi(){return h.getToken()!==10?(D(3,[],[2,5]),!1):(Ue(!1),h.getToken()===6?(Lt(":"),Y(),oe()||D(4,[],[2,5])):D(5,[],[2,5]),E.pop(),!0)}function ci(){Q(),Y();let Z=!1;for(;h.getToken()!==2&&h.getToken()!==17;){if(h.getToken()===5){if(Z||D(4,[],[]),Lt(","),Y(),h.getToken()===2&&kt)break}else Z&&D(6,[],[]);oi()||D(4,[],[2,5]),Z=!0}return st(),h.getToken()!==2?D(7,[2],[]):Y(),!0}function li(){rt(),Y();let Z=!0,gt=!1;for(;h.getToken()!==4&&h.getToken()!==17;){if(h.getToken()===5){if(gt||D(4,[],[]),Lt(","),Y(),h.getToken()===4&&kt)break}else gt&&D(6,[],[]);Z?(E.push(0),Z=!1):E[E.length-1]++,oe()||D(4,[],[4,5]),gt=!0}return nt(),Z||E.pop(),h.getToken()!==4?D(8,[4],[]):Y(),!0}function oe(){switch(h.getToken()){case 3:return li();case 1:return ci();case 10:return Ue(!0);default:return ai()}}return C(Y,"scanNext"),C(D,"handleError"),C(Ue,"parseString"),C(ai,"parseLiteral"),C(oi,"parseProperty"),C(ci,"parseObject"),C(li,"parseArray"),C(oe,"parseValue"),Y(),h.getToken()===17?!!x.allowEmptyContent||(D(4,[],[]),!1):oe()?(h.getToken()!==17&&D(9,[],[]),!0):(D(4,[],[]),!1)}new Array(Bt).fill(0).map((a,p)=>`
|
|
5
|
+
`+" ".repeat(p)),new Array(Bt).fill(0).map((a,p)=>"\r"+" ".repeat(p)),new Array(Bt).fill(0).map((a,p)=>`\r
|
|
6
|
+
`+" ".repeat(p)),new Array(Bt).fill(0).map((a,p)=>`
|
|
7
|
+
`+" ".repeat(p)),new Array(Bt).fill(0).map((a,p)=>"\r"+" ".repeat(p)),new Array(Bt).fill(0).map((a,p)=>`\r
|
|
8
|
+
`+" ".repeat(p)),(function(a){a.DEFAULT={allowTrailingComma:!1}})(me||(me={})),C(Te,"parse$1"),C(Re,"visit"),(function(a){a[a.None=0]="None",a[a.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",a[a.UnexpectedEndOfString=2]="UnexpectedEndOfString",a[a.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",a[a.InvalidUnicode=4]="InvalidUnicode",a[a.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",a[a.InvalidCharacter=6]="InvalidCharacter"})(He||(He={})),(function(a){a[a.OpenBraceToken=1]="OpenBraceToken",a[a.CloseBraceToken=2]="CloseBraceToken",a[a.OpenBracketToken=3]="OpenBracketToken",a[a.CloseBracketToken=4]="CloseBracketToken",a[a.CommaToken=5]="CommaToken",a[a.ColonToken=6]="ColonToken",a[a.NullKeyword=7]="NullKeyword",a[a.TrueKeyword=8]="TrueKeyword",a[a.FalseKeyword=9]="FalseKeyword",a[a.StringLiteral=10]="StringLiteral",a[a.NumericLiteral=11]="NumericLiteral",a[a.LineCommentTrivia=12]="LineCommentTrivia",a[a.BlockCommentTrivia=13]="BlockCommentTrivia",a[a.LineBreakTrivia=14]="LineBreakTrivia",a[a.Trivia=15]="Trivia",a[a.Unknown=16]="Unknown",a[a.EOF=17]="EOF"})(Wt||(Wt={}));let Vt=Te;var Ot;(function(a){a[a.InvalidSymbol=1]="InvalidSymbol",a[a.InvalidNumberFormat=2]="InvalidNumberFormat",a[a.PropertyNameExpected=3]="PropertyNameExpected",a[a.ValueExpected=4]="ValueExpected",a[a.ColonExpected=5]="ColonExpected",a[a.CommaExpected=6]="CommaExpected",a[a.CloseBraceExpected=7]="CloseBraceExpected",a[a.CloseBracketExpected=8]="CloseBracketExpected",a[a.EndOfFileExpected=9]="EndOfFileExpected",a[a.InvalidCommentToken=10]="InvalidCommentToken",a[a.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",a[a.UnexpectedEndOfString=12]="UnexpectedEndOfString",a[a.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",a[a.InvalidUnicode=14]="InvalidUnicode",a[a.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",a[a.InvalidCharacter=16]="InvalidCharacter"})(Ot||(Ot={}));let Ke=C((a,p)=>Vt(yt(p,a,"utf8")),"readJsonc"),qt=Symbol("implicitBaseUrl"),St="${configDir}",Je=C(()=>{let{findPnpApi:a}=lt;return a&&a(process.cwd())},"getPnpApi"),re=C((a,p,x,h)=>{let E=`resolveFromPackageJsonPath:${a}:${p}:${x}`;if(h!=null&&h.has(E))return h.get(E);let _=Ke(a,h);if(!_)return;let d=p||"tsconfig.json";if(!x&&_.exports)try{let[A]=q.resolveExports(_.exports,p,["require","types"]);d=A}catch{return!1}else!p&&_.tsconfig&&(d=_.tsconfig);return d=O.join(a,"..",d),h?.set(E,d),d},"resolveFromPackageJsonPath"),ge="package.json",Pe="tsconfig.json",Ai=C((a,p,x)=>{let h=a;if(a===".."&&(h=O.join(h,Pe)),a[0]==="."&&(h=O.resolve(p,h)),O.isAbsolute(h)){if(at(x,h)){if(M(x,h).isFile())return h}else if(!h.endsWith(".json")){let st=`${h}.json`;if(at(x,st))return st}return}let[E,..._]=a.split("/"),d=E[0]==="@"?`${E}/${_.shift()}`:E,A=_.join("/"),P=Je();if(P){let{resolveRequest:st}=P;try{if(d===a){let rt=st(O.join(d,ge),p);if(rt){let nt=re(rt,A,!1,x);if(nt&&at(x,nt))return nt}}else{let rt;try{rt=st(a,p,{extensions:[".json"]})}catch{rt=st(O.join(a,Pe),p)}if(rt)return rt}}catch{}}let j=W(O.resolve(p),O.join("node_modules",d),x);if(!j||!M(x,j).isDirectory())return;let X=O.join(j,ge);if(at(x,X)){let st=re(X,A,!1,x);if(st===!1)return;if(st&&at(x,st)&&M(x,st).isFile())return st}let Q=O.join(j,A),pt=Q.endsWith(".json");if(!pt){let st=`${Q}.json`;if(at(x,st))return st}if(at(x,Q)){if(M(x,Q).isDirectory()){let st=O.join(Q,ge);if(at(x,st)){let nt=re(st,"",!0,x);if(nt&&at(x,nt))return nt}let rt=O.join(Q,Pe);if(at(x,rt))return rt}else if(pt)return Q}},"resolveExtendsPath"),xe=C((a,p)=>n(O.relative(a,p)),"pathRelative"),ye=["files","include","exclude"],dt=C((a,p,x)=>{let h=O.join(p,x);return B(O.relative(a,h))||"./"},"resolveAndRelativize"),Rt=C((a,p,x)=>{let h=O.relative(a,p);return h?B(`${h}/${x.startsWith("./")?x.slice(2):x}`):x},"prefixPattern"),Ct=C((a,p,x,h)=>{let E=Ai(a,p,h);if(!E)throw new Error(`File '${a}' not found.`);if(x.has(E))throw new Error(`Circularity detected while resolving configuration: ${E}`);x.add(E);let _=O.dirname(E),d=ne(E,h,x);delete d.references;let{compilerOptions:A}=d;if(A){let{baseUrl:P}=A;P&&!P.startsWith(St)&&(A.baseUrl=dt(p,_,P));let{outDir:j}=A;j&&!j.startsWith(St)&&(A.outDir=dt(p,_,j));let{declarationDir:X}=A;X&&!X.startsWith(St)&&(A.declarationDir=dt(p,_,X));let{rootDir:Q}=A;Q&&!Q.startsWith(St)&&(A.rootDir=dt(p,_,Q));let{rootDirs:pt}=A;pt&&(A.rootDirs=pt.map(rt=>rt.startsWith(St)?rt:dt(p,_,rt)));let{typeRoots:st}=A;st&&(A.typeRoots=st.map(rt=>rt.startsWith(St)?rt:dt(p,_,rt)))}for(let P of ye){let j=d[P];j&&(d[P]=j.map(X=>X.startsWith(St)?X:Rt(p,_,X)))}return d},"resolveExtends"),ze=["outDir","declarationDir"],ne=C((a,p,x=new Set)=>{let h;try{h=Ke(a,p)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${a}`)}if(typeof h!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${a}`);let E=O.dirname(a);if(h.compilerOptions){let{compilerOptions:_}=h;_.paths&&!_.baseUrl&&(_[qt]=E)}if(h.extends){let _=Array.isArray(h.extends)?h.extends:[h.extends];delete h.extends;for(let d of _.reverse()){let A=Ct(d,E,new Set(x),p),P={...A,...h,compilerOptions:{...A.compilerOptions,...h.compilerOptions}};A.watchOptions&&(P.watchOptions={...A.watchOptions,...h.watchOptions}),h=P}}if(h.compilerOptions){let{compilerOptions:_}=h,d=["baseUrl","rootDir"];for(let A of d){let P=_[A];if(P&&!P.startsWith(St)){let j=O.resolve(E,P),X=xe(E,j);_[A]=X}}for(let A of ze){let P=_[A];P&&(Array.isArray(h.exclude)||(h.exclude=ze.map(j=>_[j]).filter(Boolean)),P.startsWith(St)||(P=n(P)),_[A]=P)}}else h.compilerOptions={};if(h.include&&(h.include=h.include.map(B)),h.files&&(h.files=h.files.map(_=>_.startsWith(St)?_:n(_))),h.watchOptions){let{watchOptions:_}=h;_.excludeDirectories&&(_.excludeDirectories=_.excludeDirectories.map(d=>B(O.resolve(E,d)))),_.excludeFiles&&(_.excludeFiles=_.excludeFiles.map(d=>B(O.resolve(E,d)))),_.watchFile&&(_.watchFile=_.watchFile.toLowerCase()),_.watchDirectory&&(_.watchDirectory=_.watchDirectory.toLowerCase()),_.fallbackPolling&&(_.fallbackPolling=_.fallbackPolling.toLowerCase())}return h},"_parseTsconfig"),R=C((a,p)=>{if(a.startsWith(St))return B(O.join(p,a.slice(12)))},"interpolateConfigDir"),Le=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],Ti=C(a=>{if(a.strict){let p=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(let x of p)a[x]===void 0&&(a[x]=!0)}if(a.composite&&(a.declaration!=null||(a.declaration=!0),a.incremental!=null||(a.incremental=!0)),a.target){let p=a.target.toLowerCase();p==="es2015"&&(p="es6"),a.target=p,p==="esnext"&&(a.module!=null||(a.module="es6"),a.useDefineForClassFields!=null||(a.useDefineForClassFields=!0)),(p==="es6"||p==="es2016"||p==="es2017"||p==="es2018"||p==="es2019"||p==="es2020"||p==="es2021"||p==="es2022"||p==="es2023"||p==="es2024")&&(a.module!=null||(a.module="es6")),(p==="es2022"||p==="es2023"||p==="es2024")&&(a.useDefineForClassFields!=null||(a.useDefineForClassFields=!0))}if(a.module){let p=a.module.toLowerCase();if(p==="es2015"&&(p="es6"),a.module=p,(p==="es6"||p==="es2020"||p==="es2022"||p==="esnext"||p==="none"||p==="system"||p==="umd"||p==="amd")&&(a.moduleResolution!=null||(a.moduleResolution="classic")),p==="system"&&(a.allowSyntheticDefaultImports!=null||(a.allowSyntheticDefaultImports=!0)),(p==="node16"||p==="node18"||p==="node20"||p==="nodenext"||p==="preserve")&&(a.esModuleInterop!=null||(a.esModuleInterop=!0),a.allowSyntheticDefaultImports!=null||(a.allowSyntheticDefaultImports=!0)),(p==="node16"||p==="node18"||p==="node20"||p==="nodenext")&&(a.moduleDetection!=null||(a.moduleDetection="force")),p==="node16"&&(a.target!=null||(a.target="es2022"),a.moduleResolution!=null||(a.moduleResolution="node16")),p==="node18"&&(a.target!=null||(a.target="es2022"),a.moduleResolution!=null||(a.moduleResolution="node16")),p==="node20"&&(a.target!=null||(a.target="es2023"),a.moduleResolution!=null||(a.moduleResolution="node16"),a.resolveJsonModule!=null||(a.resolveJsonModule=!0)),p==="nodenext"&&(a.target!=null||(a.target="esnext"),a.moduleResolution!=null||(a.moduleResolution="nodenext"),a.resolveJsonModule!=null||(a.resolveJsonModule=!0)),p==="node16"||p==="node18"||p==="node20"||p==="nodenext"){let x=a.target;(x==="es3"||x==="es2022"||x==="es2023"||x==="es2024"||x==="esnext")&&(a.useDefineForClassFields!=null||(a.useDefineForClassFields=!0))}p==="preserve"&&(a.moduleResolution!=null||(a.moduleResolution="bundler"))}if(a.moduleResolution){let p=a.moduleResolution.toLowerCase();p==="node"&&(p="node10"),a.moduleResolution=p,(p==="node16"||p==="nodenext"||p==="bundler")&&(a.resolvePackageJsonExports!=null||(a.resolvePackageJsonExports=!0),a.resolvePackageJsonImports!=null||(a.resolvePackageJsonImports=!0)),p==="bundler"&&(a.allowSyntheticDefaultImports!=null||(a.allowSyntheticDefaultImports=!0),a.resolveJsonModule!=null||(a.resolveJsonModule=!0))}a.jsx&&(a.jsx=a.jsx.toLowerCase()),a.moduleDetection&&(a.moduleDetection=a.moduleDetection.toLowerCase()),a.importsNotUsedAsValues&&(a.importsNotUsedAsValues=a.importsNotUsedAsValues.toLowerCase()),a.newLine&&(a.newLine=a.newLine.toLowerCase()),a.esModuleInterop&&(a.allowSyntheticDefaultImports!=null||(a.allowSyntheticDefaultImports=!0)),a.verbatimModuleSyntax&&(a.isolatedModules!=null||(a.isolatedModules=!0),a.preserveConstEnums!=null||(a.preserveConstEnums=!0)),a.isolatedModules&&(a.preserveConstEnums!=null||(a.preserveConstEnums=!0)),a.rewriteRelativeImportExtensions&&(a.allowImportingTsExtensions!=null||(a.allowImportingTsExtensions=!0)),a.lib&&(a.lib=a.lib.map(p=>p.toLowerCase())),a.checkJs&&(a.allowJs!=null||(a.allowJs=!0))},"normalizeCompilerOptions"),Ye=C((a,p=new Map)=>{let x=O.resolve(a),h=ne(x,p),E=O.dirname(x),{compilerOptions:_}=h;if(_){for(let A of Le){let P=_[A];if(P){let j=R(P,E);_[A]=j?xe(E,j):P}}for(let A of["rootDirs","typeRoots"]){let P=_[A];P&&(_[A]=P.map(j=>{let X=R(j,E);return X?xe(E,X):n(j)}))}let{paths:d}=_;if(d)for(let A of Object.keys(d))d[A]=d[A].map(P=>{var j;return(j=R(P,E))!=null?j:P});Ti(_)}for(let d of ye){let A=h[d];A&&(h[d]=A.map(P=>{var j;return(j=R(P,E))!=null?j:P}))}return h},"parseTsconfig");var ae=Object.defineProperty,zt=C((a,p)=>ae(a,"name",{value:p,configurable:!0}),"s");let Qe=zt(a=>{let p="";for(let x=0;x<a.length;x+=1){let h=a[x],E=h.toUpperCase();p+=h===E?h.toLowerCase():E}return p},"invertCase"),Yt=new Map,It=zt((a,p)=>{let x=ot.join(a,`.is-fs-case-sensitive-test-${process.pid}`);try{return p.writeFileSync(x,""),!p.existsSync(Qe(x))}finally{try{p.unlinkSync(x)}catch{}}},"checkDirectoryCaseWithWrite"),Pt=zt((a,p,x)=>{try{return It(a,x)}catch(h){if(p===void 0)return It(ht.tmpdir(),x);throw h}},"checkDirectoryCaseWithFallback"),ut=zt((a,p=K,x=!0)=>{let h=a??process.cwd();if(x&&Yt.has(h))return Yt.get(h);let E,_=Qe(h);return E=_!==h&&p.existsSync(h)?!p.existsSync(_):Pt(h,a,p),x&&Yt.set(h,E),E},"isFsCaseSensitive"),{join:Gt}=O.posix,F={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},Xe=C(a=>{let p=[...F.ts],x=[...F.cts],h=[...F.mts];return a!=null&&a.allowJs&&(p.push(".js",".jsx"),x.push(".cjs"),h.push(".mjs")),[...p,...x,...h]},"getSupportedExtensions"),Oe=C(a=>{let p=[];if(!a)return p;let{outDir:x,declarationDir:h}=a;return x&&p.push(x),h&&p.push(h),p},"getDefaultExcludeSpec"),Ze=C(a=>a.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),Qt=`(?!(${["node_modules","bower_components","jspm_packages"].join("|")})(/|$))`,Ut=/(?:^|\/)[^.*?]+$/,ti="**/*",jt="[^/]",Ht="[^./]",Ne=process.platform==="win32",ei=C(({config:a,path:p},x=ut())=>{if("extends"in a)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");if(!O.isAbsolute(p))throw new Error("The tsconfig path must be absolute");Ne&&(p=B(p));let h=O.dirname(p),{files:E,include:_,exclude:d,compilerOptions:A}=a,P=C(nt=>O.isAbsolute(nt)?nt:Gt(h,nt),"resolvePattern"),j=E?.map(P),X=Xe(A),Q=x?"":"i",pt=(d||Oe(A)).map(nt=>{let mt=P(nt),Lt=Ze(mt).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${jt}*`).replaceAll(String.raw`\?`,jt);return new RegExp(`^${Lt}($|/)`,Q)}),st=E||_?_:[ti],rt=st?st.map(nt=>{let mt=P(nt);Ut.test(mt)&&(mt=Gt(mt,ti));let Lt=Ze(mt).replaceAll(String.raw`/\*\*`,`(/${Qt}${Ht}${jt}*)*?`).replaceAll(/(\/)?\\\*/g,(Mt,k)=>{let _t=`(${Ht}|(\\.(?!min\\.js$))?)*`;return k?`/${Qt}${Ht}${_t}`:_t}).replaceAll(/(\/)?\\\?/g,(Mt,k)=>k?`/${Qt}${jt}`:jt);return new RegExp(`^${Lt}$`,Q)}):void 0;return nt=>{if(!O.isAbsolute(nt))throw new Error("filePath must be absolute");return Ne&&(nt=B(nt)),j!=null&&j.includes(nt)||X.some(mt=>nt.endsWith(mt))&&!pt.some(mt=>mt.test(nt))&&rt&&rt.some(mt=>mt.test(nt))?a:void 0}},"createFilesMatcher"),ve=C((a,p,x)=>{let h=O.resolve(a),E=B(a);for(;;){let _=W(E,p,x);if(!_)return;let d=O.resolve(_),A=Ye(d,x),P={path:B(d),config:A};if(ei(P)(h))return P;let j=O.dirname(_),X=O.dirname(j);if(X===j)return;E=X}},"findConfigApplicable"),De=C((a=process.cwd(),p="tsconfig.json",x=new Map,h=!1)=>{var E;return h?(E=ve(a,p,x))==null?void 0:E.path:W(B(a),p,x)},"findTsconfig"),Ri=C((a=process.cwd(),p="tsconfig.json",x=new Map,h=!1)=>{var E;if(!h){let _=De(a,p,x);return _?{path:_,config:Ye(_,x)}:null}return(E=ve(a,p,x))!=null?E:null},"getTsconfig"),Pi=/\*/g,Ve=C((a,p)=>{let x=a.match(Pi);if(x&&x.length>1)throw new Error(p)},"assertStarCount"),ii=C(a=>{if(a.includes("*")){let[p,x]=a.split("*");return{prefix:p,suffix:x}}return a},"parsePattern"),si=C(({prefix:a,suffix:p},x)=>x.startsWith(a)&&x.endsWith(p),"isPatternMatch"),ri=C((a,p,x)=>Object.entries(a).map(([h,E])=>(Ve(h,`Pattern '${h}' can have at most one '*' character.`),{pattern:ii(h),substitutions:E.map(_=>{if(Ve(_,`Substitution '${_}' in pattern '${h}' can have at most one '*' character.`),!p&&!V.test(_)&&!O.isAbsolute(_))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return O.resolve(x,_)})})),"parsePaths"),ni=C(a=>{let{compilerOptions:p}=a.config;if(!p)return null;let{baseUrl:x,paths:h}=p;if(!x&&!h)return null;let E=qt in p&&p[qt],_=O.resolve(O.dirname(a.path),x||E||"."),d=h?ri(h,x,_):[];return A=>{if(V.test(A))return[];let P=[];for(let pt of d){if(pt.pattern===A)return pt.substitutions.map(B);typeof pt.pattern!="string"&&P.push(pt)}let j,X=-1;for(let pt of P)si(pt.pattern,A)&&pt.pattern.prefix.length>X&&(X=pt.pattern.prefix.length,j=pt);if(!j)return x?[B(O.join(_,A))]:[];let Q=A.slice(j.pattern.prefix.length,A.length-j.pattern.suffix.length);return j.substitutions.map(pt=>B(pt.replace("*",Q)))}},"createPathsMatcher");T.createPathsMatcher=ni,T.getTsconfig=Ri},"./node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.cjs"(S,T){"use strict";Object.defineProperty(T,"__esModule",{value:!0});let N=M=>M!==null&&typeof M=="object",ct=(M,W)=>Object.assign(new Error(`[${M}]: ${W}`),{code:M}),C="ERR_INVALID_PACKAGE_CONFIG",O="ERR_INVALID_PACKAGE_TARGET",bt=/^\d+$/,lt=/^(\.{1,2}|node_modules)$/i,q=/\/|\\/;var K,ht=((K=ht||{}).Export="exports",K.Import="imports",K);let ot=(M,W,V,n,it)=>{if(W==null)return[];if(typeof W=="string"){let[ft,...xt]=W.split(q);if(ft===".."||xt.some(wt=>lt.test(wt)))throw ct(O,`Invalid "${M}" target "${W}" defined in the package config`);return[it?W.replace(/\*/g,it):W]}if(Array.isArray(W))return W.flatMap(ft=>ot(M,ft,V,n,it));if(N(W)){for(let ft of Object.keys(W)){if(bt.test(ft))throw ct(C,"Cannot contain numeric property keys");if(ft==="default"||n.includes(ft))return ot(M,W[ft],V,n,it)}return[]}throw ct(O,`Invalid "${M}" target "${W}"`)},B="*",$=(M,W)=>{let V=M.indexOf(B),n=W.indexOf(B);return V===n?W.length>M.length:n>V};function at(M,W){if(!W.includes(B)&&M.hasOwnProperty(W))return[W];let V,n;for(let it of Object.keys(M))if(it.includes(B)){let[ft,xt,wt]=it.split(B);if(wt===void 0&&W.startsWith(ft)&&W.endsWith(xt)){let Dt=W.slice(ft.length,-xt.length||void 0);Dt&&(!V||$(V,it))&&(V=it,n=Dt)}}return[V,n]}let yt=/^\w+:/;T.resolveExports=(M,W,V)=>{if(!M)throw new Error('"exports" is required');W=W===""?".":`./${W}`,(typeof M=="string"||Array.isArray(M)||N(M)&&(xt=>Object.keys(xt).reduce((wt,Dt)=>{let u=Dt===""||Dt[0]!==".";if(wt===void 0||wt===u)return u;throw ct(C,'"exports" cannot contain some keys starting with "." and some not')},void 0))(M))&&(M={".":M});let[n,it]=at(M,W),ft=ot(ht.Export,M[n],W,V,it);if(ft.length===0)throw ct("ERR_PACKAGE_PATH_NOT_EXPORTED",W==="."?'No "exports" main defined':`Package subpath '${W}' is not defined by "exports"`);for(let xt of ft)if(!xt.startsWith("./")&&!yt.test(xt))throw ct(O,`Invalid "exports" target "${xt}" defined in the package config`);return ft},T.resolveImports=(M,W,V)=>{if(!M)throw new Error('"imports" is required');let[n,it]=at(M,W),ft=ot(ht.Import,M[n],W,V,it);if(ft.length===0)throw ct("ERR_PACKAGE_IMPORT_NOT_DEFINED",`Package import specifier "${W}" is not defined in package`);return ft}}},v={};function w(S){var T=v[S];if(T!==void 0)return T.exports;var N=v[S]={exports:{}};return g[S](N,N.exports,w),N.exports}w.n=S=>{var T=S&&S.__esModule?()=>S.default:()=>S;return w.d(T,{a:T}),T},w.d=(S,T)=>{for(var N in T)w.o(T,N)&&!w.o(S,N)&&Object.defineProperty(S,N,{enumerable:!0,get:T[N]})},w.o=(S,T)=>Object.prototype.hasOwnProperty.call(S,T);var L={};(()=>{"use strict";w.d(L,{default:()=>Ws});let S=require("os");var T=[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],ct="\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",C={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"},O="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",bt={5:O,"5module":O+" export import",6:O+" const class extends export import super"},lt=/^in(stanceof)?$/,q=new RegExp("["+ct+"]"),K=new RegExp("["+ct+"\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]");function ht(t,e){for(var i=65536,s=0;s<e.length;s+=2){if((i+=e[s])>t)return!1;if((i+=e[s+1])>=t)return!0}return!1}function ot(t,e){return t<65?t===36:t<91||(t<97?t===95:t<123||(t<=65535?t>=170&&q.test(String.fromCharCode(t)):e!==!1&&ht(t,N)))}function B(t,e){return t<48?t===36:t<58||!(t<65)&&(t<91||(t<97?t===95:t<123||(t<=65535?t>=170&&K.test(String.fromCharCode(t)):e!==!1&&(ht(t,N)||ht(t,T)))))}var $=function(t,e){e===void 0&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function at(t,e){return new $(t,{beforeExpr:!0,binop:e})}var yt={beforeExpr:!0},M={startsExpr:!0},W={};function V(t,e){return e===void 0&&(e={}),e.keyword=t,W[t]=new $(t,e)}var n={num:new $("num",M),regexp:new $("regexp",M),string:new $("string",M),name:new $("name",M),privateId:new $("privateId",M),eof:new $("eof"),bracketL:new $("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new $("]"),braceL:new $("{",{beforeExpr:!0,startsExpr:!0}),braceR:new $("}"),parenL:new $("(",{beforeExpr:!0,startsExpr:!0}),parenR:new $(")"),comma:new $(",",yt),semi:new $(";",yt),colon:new $(":",yt),dot:new $("."),question:new $("?",yt),questionDot:new $("?."),arrow:new $("=>",yt),template:new $("template"),invalidTemplate:new $("invalidTemplate"),ellipsis:new $("...",yt),backQuote:new $("`",M),dollarBraceL:new $("${",{beforeExpr:!0,startsExpr:!0}),eq:new $("=",{beforeExpr:!0,isAssign:!0}),assign:new $("_=",{beforeExpr:!0,isAssign:!0}),incDec:new $("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new $("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:at("||",1),logicalAND:at("&&",2),bitwiseOR:at("|",3),bitwiseXOR:at("^",4),bitwiseAND:at("&",5),equality:at("==/!=/===/!==",6),relational:at("</>/<=/>=",7),bitShift:at("<</>>/>>>",8),plusMin:new $("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:at("%",10),star:at("*",10),slash:at("/",10),starstar:new $("**",{beforeExpr:!0}),coalesce:at("??",1),_break:V("break"),_case:V("case",yt),_catch:V("catch"),_continue:V("continue"),_debugger:V("debugger"),_default:V("default",yt),_do:V("do",{isLoop:!0,beforeExpr:!0}),_else:V("else",yt),_finally:V("finally"),_for:V("for",{isLoop:!0}),_function:V("function",M),_if:V("if"),_return:V("return",yt),_switch:V("switch"),_throw:V("throw",yt),_try:V("try"),_var:V("var"),_const:V("const"),_while:V("while",{isLoop:!0}),_with:V("with"),_new:V("new",{beforeExpr:!0,startsExpr:!0}),_this:V("this",M),_super:V("super",M),_class:V("class",M),_extends:V("extends",yt),_export:V("export"),_import:V("import",M),_null:V("null",M),_true:V("true",M),_false:V("false",M),_in:V("in",{beforeExpr:!0,binop:7}),_instanceof:V("instanceof",{beforeExpr:!0,binop:7}),_typeof:V("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:V("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:V("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},it=/\r\n?|\n|\u2028|\u2029/,ft=new RegExp(it.source,"g");function xt(t){return t===10||t===13||t===8232||t===8233}function wt(t,e,i){i===void 0&&(i=t.length);for(var s=e;s<i;s++){var r=t.charCodeAt(s);if(xt(r))return s<i-1&&r===13&&t.charCodeAt(s+1)===10?s+2:s+1}return-1}var Dt=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,u=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Bt=Object.prototype,me=Bt.hasOwnProperty,He=Bt.toString,Wt=Object.hasOwn||function(t,e){return me.call(t,e)},Te=Array.isArray||function(t){return He.call(t)==="[object Array]"},Re=Object.create(null);function Vt(t){return Re[t]||(Re[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function Ot(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}var Ke=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,qt=function(t,e){this.line=t,this.column=e};qt.prototype.offset=function(t){return new qt(this.line,this.column+t)};var St=function(t,e,i){this.start=e,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};function Je(t,e){for(var i=1,s=0;;){var r=wt(t,s,e);if(r<0)return new qt(i,e-s);++i,s=r}}var re={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},ge=!1;function Pe(t){var e={};for(var i in re)e[i]=t&&Wt(t,i)?t[i]:re[i];if(e.ecmaVersion==="latest"?e.ecmaVersion=1e8:e.ecmaVersion==null?(!ge&&typeof console=="object"&&console.warn&&(ge=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
9
|
+
Defaulting to 2020, but this will stop working in the future.`)),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),e.allowReserved==null&&(e.allowReserved=e.ecmaVersion<5),t&&t.allowHashBang!=null||(e.allowHashBang=e.ecmaVersion>=14),Te(e.onToken)){var s=e.onToken;e.onToken=function(r){return s.push(r)}}if(Te(e.onComment)&&(e.onComment=(function(r,o){return function(c,l,f,y,m,I){var b={type:c?"Block":"Line",value:l,start:f,end:y};r.locations&&(b.loc=new St(this,m,I)),r.ranges&&(b.range=[f,y]),o.push(b)}})(e,e.onComment)),e.sourceType==="commonjs"&&e.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return e}var Ai=256,xe=259;function ye(t,e){return 2|(t?4:0)|(e?8:0)}var dt=function(t,e,i){this.options=t=Pe(t),this.sourceFile=t.sourceFile,this.keywords=Vt(bt[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var s="";t.allowReserved!==!0&&(s=C[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(s+=" await")),this.reservedWords=Vt(s);var r=(s?s+" ":"")+C.strict;this.reservedWordsStrict=Vt(r),this.reservedWordsStrictBind=Vt(r+" "+C.strictBind),this.input=String(e),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
|
|
10
|
+
`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(it).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=n.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=t.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&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?2:1),this.regexpState=null,this.privateNameStack=[]},Rt={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 t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},Rt.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Rt.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},Rt.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},Rt.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t].flags;if(768&e)return!1;if(2&e)return(4&e)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Rt.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&1&this.currentVarScope().flags)},Rt.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},Rt.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Rt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Rt.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t].flags;if(768&e||2&e&&!(16&e))return!0}return!1},Rt.allowUsing.get=function(){var t=this.currentScope().flags;return!(1024&t)&&!(!this.inModule&&1&t)},Rt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Ai)>0},dt.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=this,s=0;s<t.length;s++)i=t[s](i);return i},dt.parse=function(t,e){return new this(e,t).parse()},dt.parseExpressionAt=function(t,e,i){var s=new this(i,t,e);return s.nextToken(),s.parseExpression()},dt.tokenizer=function(t,e){return new this(e,t)},Object.defineProperties(dt.prototype,Rt);var Ct=dt.prototype,ze=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Ct.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){u.lastIndex=t,t+=u.exec(this.input)[0].length;var e=ze.exec(this.input.slice(t));if(!e)return!1;if((e[1]||e[2])==="use strict"){u.lastIndex=t+e[0].length;var i=u.exec(this.input),s=i.index+i[0].length,r=this.input.charAt(s);return r===";"||r==="}"||it.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||r==="!"&&this.input.charAt(s+1)==="=")}t+=e[0].length,u.lastIndex=t,t+=u.exec(this.input)[0].length,this.input[t]===";"&&t++}},Ct.eat=function(t){return this.type===t&&(this.next(),!0)},Ct.isContextual=function(t){return this.type===n.name&&this.value===t&&!this.containsEsc},Ct.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},Ct.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},Ct.canInsertSemicolon=function(){return this.type===n.eof||this.type===n.braceR||it.test(this.input.slice(this.lastTokEnd,this.start))},Ct.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Ct.semicolon=function(){this.eat(n.semi)||this.insertSemicolon()||this.unexpected()},Ct.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},Ct.expect=function(t){this.eat(t)||this.unexpected()},Ct.unexpected=function(t){this.raise(t??this.start,"Unexpected token")};var ne=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ct.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var i=e?t.parenthesizedAssign:t.parenthesizedBind;i>-1&&this.raiseRecoverable(i,e?"Assigning to rvalue":"Parenthesized pattern")}},Ct.checkExpressionErrors=function(t,e){if(!t)return!1;var i=t.shorthandAssign,s=t.doubleProto;if(!e)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},Ct.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")},Ct.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};var R=dt.prototype;R.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==n.eof;){var i=this.parseStatement(null,!0,e);t.body.push(i)}if(this.inModule)for(var s=0,r=Object.keys(this.undefinedExports);s<r.length;s+=1){var o=r[s];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' 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 Le={kind:"loop"},Ti={kind:"switch"};R.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;u.lastIndex=this.pos;var e=u.exec(this.input),i=this.pos+e[0].length,s=this.fullCharCodeAt(i);if(s===91||s===92)return!0;if(t)return!1;if(s===123)return!0;if(ot(s)){var r=i;do i+=s<=65535?1:2;while(B(s=this.fullCharCodeAt(i)));if(s===92)return!0;var o=this.input.slice(r,i);if(!lt.test(o))return!0}return!1},R.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;u.lastIndex=this.pos;var t,e=u.exec(this.input),i=this.pos+e[0].length;return!(it.test(this.input.slice(this.pos,i))||this.input.slice(i,i+8)!=="function"||i+8!==this.input.length&&(B(t=this.fullCharCodeAt(i+8))||t===92))},R.isUsingKeyword=function(t,e){if(this.options.ecmaVersion<17||!this.isContextual(t?"await":"using"))return!1;u.lastIndex=this.pos;var i=u.exec(this.input),s=this.pos+i[0].length;if(it.test(this.input.slice(this.pos,s)))return!1;if(t){var r,o=s+5;if(this.input.slice(s,o)!=="using"||o===this.input.length||B(r=this.fullCharCodeAt(o))||r===92)return!1;u.lastIndex=o;var c=u.exec(this.input);if(s=o+c[0].length,c&&it.test(this.input.slice(o,s)))return!1}var l=this.fullCharCodeAt(s);if(!ot(l)&&l!==92)return!1;var f=s;do s+=l<=65535?1:2;while(B(l=this.fullCharCodeAt(s)));if(l===92)return!0;var y=this.input.slice(f,s);return!(lt.test(y)||e&&y==="of")},R.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)},R.isUsing=function(t){return this.isUsingKeyword(!1,t)},R.parseStatement=function(t,e,i){var s,r=this.type,o=this.startNode();switch(this.isLet(t)&&(r=n._var,s="let"),r){case n._break:case n._continue:return this.parseBreakContinueStatement(o,r.keyword);case n._debugger:return this.parseDebuggerStatement(o);case n._do:return this.parseDoStatement(o);case n._for:return this.parseForStatement(o);case n._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1,!t);case n._class:return t&&this.unexpected(),this.parseClass(o,!0);case n._if:return this.parseIfStatement(o);case n._return:return this.parseReturnStatement(o);case n._switch:return this.parseSwitchStatement(o);case n._throw:return this.parseThrowStatement(o);case n._try:return this.parseTryStatement(o);case n._const:case n._var:return s=s||this.value,t&&s!=="var"&&this.unexpected(),this.parseVarStatement(o,s);case n._while:return this.parseWhileStatement(o);case n._with:return this.parseWithStatement(o);case n.braceL:return this.parseBlock(!0,o);case n.semi:return this.parseEmptyStatement(o);case n._export:case n._import:if(this.options.ecmaVersion>10&&r===n._import){u.lastIndex=this.pos;var c=u.exec(this.input),l=this.pos+c[0].length,f=this.input.charCodeAt(l);if(f===40||f===46)return this.parseExpressionStatement(o,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||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'")),r===n._import?this.parseImport(o):this.parseExport(o,i);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(o,!0,!t);var y=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(y)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"),y==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(o,!1,y),this.semicolon(),this.finishNode(o,"VariableDeclaration");var m=this.value,I=this.parseExpression();return r===n.name&&I.type==="Identifier"&&this.eat(n.colon)?this.parseLabeledStatement(o,m,I,t):this.parseExpressionStatement(o,I)}},R.parseBreakContinueStatement=function(t,e){var i=e==="break";this.next(),this.eat(n.semi)||this.insertSemicolon()?t.label=null:this.type!==n.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var r=this.labels[s];if((t.label==null||r.name===t.label.name)&&(r.kind!=null&&(i||r.kind==="loop")||t.label&&i))break}return s===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,i?"BreakStatement":"ContinueStatement")},R.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},R.parseDoStatement=function(t){return this.next(),this.labels.push(Le),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(n._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(n.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},R.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Le),this.enterScope(0),this.expect(n.parenL),this.type===n.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var i=this.isLet();if(this.type===n._var||this.type===n._const||i){var s=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),this.parseForAfterInit(t,s,e)}var o=this.isContextual("let"),c=!1,l=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(l){var f=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(f,!0,l),this.finishNode(f,"VariableDeclaration"),this.parseForAfterInit(t,f,e)}var y=this.containsEsc,m=new ne,I=this.start,b=e>-1?this.parseExprSubscripts(m,"await"):this.parseExpression(!0,m);return this.type===n._in||(c=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===n._in&&this.unexpected(e),t.await=!0):c&&this.options.ecmaVersion>=8&&(b.start!==I||y||b.type!=="Identifier"||b.name!=="async"?this.options.ecmaVersion>=9&&(t.await=!1):this.unexpected()),o&&c&&this.raise(b.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(b,!1,m),this.checkLValPattern(b),this.parseForIn(t,b)):(this.checkExpressionErrors(m,!0),e>-1&&this.unexpected(e),this.parseFor(t,b))},R.parseForAfterInit=function(t,e,i){return(this.type===n._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&e.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===n._in?i>-1&&this.unexpected(i):t.await=i>-1),this.parseForIn(t,e)):(i>-1&&this.unexpected(i),this.parseFor(t,e))},R.parseFunctionStatement=function(t,e,i){return this.next(),this.parseFunction(t,ae|(i?0:zt),!1,e)},R.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(n._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},R.parseReturnStatement=function(t){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(n.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},R.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(n.braceL),this.labels.push(Ti),this.enterScope(1024);for(var i=!1;this.type!==n.braceR;)if(this.type===n._case||this.type===n._default){var s=this.type===n._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),s?e.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(n.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},R.parseThrowStatement=function(t){return this.next(),it.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 Ye=[];R.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e=t.type==="Identifier";return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(n.parenR),t},R.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===n._catch){var e=this.startNode();this.next(),this.eat(n.parenL)?e.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0)),e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(n._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},R.parseVarStatement=function(t,e,i){return this.next(),this.parseVar(t,!1,e,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")},R.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(Le),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},R.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")},R.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},R.parseLabeledStatement=function(t,e,i,s){for(var r=0,o=this.labels;r<o.length;r+=1)o[r].name===e&&this.raise(i.start,"Label '"+e+"' is already declared");for(var c=this.type.isLoop?"loop":this.type===n._switch?"switch":null,l=this.labels.length-1;l>=0;l--){var f=this.labels[l];if(f.statementStart!==t.start)break;f.statementStart=this.start,f.kind=c}return this.labels.push({name:e,kind:c,statementStart:this.start}),t.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")},R.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},R.parseBlock=function(t,e,i){for(t===void 0&&(t=!0),e===void 0&&(e=this.startNode()),e.body=[],this.expect(n.braceL),t&&this.enterScope(0);this.type!==n.braceR;){var s=this.parseStatement(null);e.body.push(s)}return i&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},R.parseFor=function(t,e){return t.init=e,this.expect(n.semi),t.test=this.type===n.semi?null:this.parseExpression(),this.expect(n.semi),t.update=this.type===n.parenR?null:this.parseExpression(),this.expect(n.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},R.parseForIn=function(t,e){var i=this.type===n._in;return this.next(),e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(e.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(n.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")},R.parseVar=function(t,e,i,s){for(t.declarations=[],t.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(n.eq)?r.init=this.parseMaybeAssign(e):s||i!=="const"||this.type===n._in||this.options.ecmaVersion>=6&&this.isContextual("of")?s||i!=="using"&&i!=="await using"||!(this.options.ecmaVersion>=17)||this.type===n._in||this.isContextual("of")?s||r.id.type==="Identifier"||e&&(this.type===n._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+i+" declaration"):this.unexpected(),t.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(n.comma))break}return t},R.parseVarId=function(t,e){t.id=e==="using"||e==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(t.id,e==="var"?1:2,!1)};var ae=1,zt=2;function Qe(t,e){var i=e.key.name,s=t[i],r="true";return e.type!=="MethodDefinition"||e.kind!=="get"&&e.kind!=="set"||(r=(e.static?"s":"i")+e.kind),s==="iget"&&r==="iset"||s==="iset"&&r==="iget"||s==="sget"&&r==="sset"||s==="sset"&&r==="sget"?(t[i]="true",!1):!!s||(t[i]=r,!1)}function Yt(t,e){var i=t.computed,s=t.key;return!i&&(s.type==="Identifier"&&s.name===e||s.type==="Literal"&&s.value===e)}R.parseFunction=function(t,e,i,s,r){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===n.star&&e&zt&&this.unexpected(),t.generator=this.eat(n.star)),this.options.ecmaVersion>=8&&(t.async=!!s),e&ae&&(t.id=4&e&&this.type!==n.name?null:this.parseIdent(),!t.id||e&zt||this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var o=this.yieldPos,c=this.awaitPos,l=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ye(t.async,t.generator)),e&ae||(t.id=this.type===n.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,i,!1,r),this.yieldPos=o,this.awaitPos=c,this.awaitIdentPos=l,this.finishNode(t,e&ae?"FunctionDeclaration":"FunctionExpression")},R.parseFunctionParams=function(t){this.expect(n.parenL),t.params=this.parseBindingList(n.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},R.parseClass=function(t,e){this.next();var i=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var s=this.enterClassBody(),r=this.startNode(),o=!1;for(r.body=[],this.expect(n.braceL);this.type!==n.braceR;){var c=this.parseClassElement(t.superClass!==null);c&&(r.body.push(c),c.type==="MethodDefinition"&&c.kind==="constructor"?(o&&this.raiseRecoverable(c.start,"Duplicate constructor in the same class"),o=!0):c.key&&c.key.type==="PrivateIdentifier"&&Qe(s,c)&&this.raiseRecoverable(c.key.start,"Identifier '#"+c.key.name+"' has already been declared"))}return this.strict=i,this.next(),t.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},R.parseClassElement=function(t){if(this.eat(n.semi))return null;var e=this.options.ecmaVersion,i=this.startNode(),s="",r=!1,o=!1,c="method",l=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(n.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===n.star?l=!0:s="static"}if(i.static=l,!s&&e>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==n.star||this.canInsertSemicolon()?s="async":o=!0),!s&&(e>=9||!o)&&this.eat(n.star)&&(r=!0),!s&&!o&&!r){var f=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?c=f:s=f)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),e<13||this.type===n.parenL||c!=="method"||r||o){var y=!i.static&&Yt(i,"constructor"),m=y&&t;y&&c!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=y?"constructor":c,this.parseClassMethod(i,r,o,m)}else this.parseClassField(i);return i},R.isClassElementNameStart=function(){return this.type===n.name||this.type===n.privateId||this.type===n.num||this.type===n.string||this.type===n.bracketL||this.type.keyword},R.parseClassElementName=function(t){this.type===n.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)},R.parseClassMethod=function(t,e,i,s){var r=t.key;t.kind==="constructor"?(e&&this.raise(r.start,"Constructor can't be a generator"),i&&this.raise(r.start,"Constructor can't be an async method")):t.static&&Yt(t,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var o=t.value=this.parseMethod(e,i,s);return t.kind==="get"&&o.params.length!==0&&this.raiseRecoverable(o.start,"getter should have no params"),t.kind==="set"&&o.params.length!==1&&this.raiseRecoverable(o.start,"setter should have exactly one param"),t.kind==="set"&&o.params[0].type==="RestElement"&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},R.parseClassField=function(t){return Yt(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&Yt(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(n.eq)?(this.enterScope(576),t.value=this.parseMaybeAssign(),this.exitScope()):t.value=null,this.semicolon(),this.finishNode(t,"PropertyDefinition")},R.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==n.braceR;){var i=this.parseStatement(null);t.body.push(i)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},R.parseClassId=function(t,e){this.type===n.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(e===!0&&this.unexpected(),t.id=null)},R.parseClassSuper=function(t){t.superClass=this.eat(n._extends)?this.parseExprSubscripts(null,!1):null},R.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},R.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,i=t.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,r=s===0?null:this.privateNameStack[s-1],o=0;o<i.length;++o){var c=i[o];Wt(e,c.name)||(r?r.used.push(c):this.raiseRecoverable(c.start,"Private field '#"+c.name+"' must be declared in an enclosing class"))}},R.parseExportAllDeclaration=function(t,e){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==n.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},R.parseExport=function(t,e){if(this.next(),this.eat(n.star))return this.parseExportAllDeclaration(t,e);if(this.eat(n._default))return this.checkExport(e,"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(e,t.declaration.declarations):this.checkExport(e,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(e),this.eatContextual("from"))this.type!==n.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause());else{for(var i=0,s=t.specifiers;i<s.length;i+=1){var r=s[i];this.checkUnreserved(r.local),this.checkLocalExport(r.local),r.local.type==="Literal"&&this.raise(r.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")},R.parseExportDeclaration=function(t){return this.parseStatement(null)},R.parseExportDefaultDeclaration=function(){var t;if(this.type===n._function||(t=this.isAsyncFunction())){var e=this.startNode();return this.next(),t&&this.next(),this.parseFunction(e,4|ae,!1,t)}if(this.type===n._class){var i=this.startNode();return this.parseClass(i,"nullableID")}var s=this.parseMaybeAssign();return this.semicolon(),s},R.checkExport=function(t,e,i){t&&(typeof e!="string"&&(e=e.type==="Identifier"?e.name:e.value),Wt(t,e)&&this.raiseRecoverable(i,"Duplicate export '"+e+"'"),t[e]=!0)},R.checkPatternExport=function(t,e){var i=e.type;if(i==="Identifier")this.checkExport(t,e,e.start);else if(i==="ObjectPattern")for(var s=0,r=e.properties;s<r.length;s+=1){var o=r[s];this.checkPatternExport(t,o)}else if(i==="ArrayPattern")for(var c=0,l=e.elements;c<l.length;c+=1){var f=l[c];f&&this.checkPatternExport(t,f)}else i==="Property"?this.checkPatternExport(t,e.value):i==="AssignmentPattern"?this.checkPatternExport(t,e.left):i==="RestElement"&&this.checkPatternExport(t,e.argument)},R.checkVariableExport=function(t,e){if(t)for(var i=0,s=e;i<s.length;i+=1){var r=s[i];this.checkPatternExport(t,r.id)}},R.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},R.parseExportSpecifier=function(t){var e=this.startNode();return e.local=this.parseModuleExportName(),e.exported=this.eatContextual("as")?this.parseModuleExportName():e.local,this.checkExport(t,e.exported,e.exported.start),this.finishNode(e,"ExportSpecifier")},R.parseExportSpecifiers=function(t){var e=[],i=!0;for(this.expect(n.braceL);!this.eat(n.braceR);){if(i)i=!1;else if(this.expect(n.comma),this.afterTrailingComma(n.braceR))break;e.push(this.parseExportSpecifier(t))}return e},R.parseImport=function(t){return this.next(),this.type===n.string?(t.specifiers=Ye,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===n.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},R.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,2),this.finishNode(t,"ImportSpecifier")},R.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportDefaultSpecifier")},R.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportNamespaceSpecifier")},R.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===n.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(n.comma)))return t;if(this.type===n.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(n.braceL);!this.eat(n.braceR);){if(e)e=!1;else if(this.expect(n.comma),this.afterTrailingComma(n.braceR))break;t.push(this.parseImportSpecifier())}return t},R.parseWithClause=function(){var t=[];if(!this.eat(n._with))return t;this.expect(n.braceL);for(var e={},i=!0;!this.eat(n.braceR);){if(i)i=!1;else if(this.expect(n.comma),this.afterTrailingComma(n.braceR))break;var s=this.parseImportAttribute(),r=s.key.type==="Identifier"?s.key.name:s.key.value;Wt(e,r)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+r+"'"),e[r]=!0,t.push(s)}return t},R.parseImportAttribute=function(){var t=this.startNode();return t.key=this.type===n.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(n.colon),this.type!==n.string&&this.unexpected(),t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")},R.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===n.string){var t=this.parseLiteral(this.value);return Ke.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},R.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)},R.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 It=dt.prototype;It.toAssignable=function(t,e,i){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",i&&this.checkPatternErrors(i,!0);for(var s=0,r=t.properties;s<r.length;s+=1){var o=r[s];this.toAssignable(o,e),o.type!=="RestElement"||o.argument.type!=="ArrayPattern"&&o.argument.type!=="ObjectPattern"||this.raise(o.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,e);break;case"ArrayExpression":t.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),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,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,i);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return t},It.toAssignableList=function(t,e){for(var i=t.length,s=0;s<i;s++){var r=t[s];r&&this.toAssignable(r,e)}if(i){var o=t[i-1];this.options.ecmaVersion===6&&e&&o&&o.type==="RestElement"&&o.argument.type!=="Identifier"&&this.unexpected(o.argument.start)}return t},It.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},It.parseRestBinding=function(){var t=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==n.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},It.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case n.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(n.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case n.braceL:return this.parseObj(!0)}return this.parseIdent()},It.parseBindingList=function(t,e,i,s){for(var r=[],o=!0;!this.eat(t);)if(o?o=!1:this.expect(n.comma),e&&this.type===n.comma)r.push(null);else{if(i&&this.afterTrailingComma(t))break;if(this.type===n.ellipsis){var c=this.parseRestBinding();this.parseBindingListItem(c),r.push(c),this.type===n.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}r.push(this.parseAssignableListItem(s))}return r},It.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e},It.parseBindingListItem=function(t){return t},It.parseMaybeDefault=function(t,e,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(n.eq))return i;var s=this.startNodeAt(t,e);return s.left=i,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},It.checkLValSimple=function(t,e,i){e===void 0&&(e=0);var s=e!==0;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(s?"Binding ":"Assigning to ")+t.name+" in strict mode"),s&&(e===2&&t.name==="let"&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),i&&(Wt(i,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),i[t.name]=!0),e!==5&&this.declareName(t.name,e,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,i);default:this.raise(t.start,(s?"Binding":"Assigning to")+" rvalue")}},It.checkLValPattern=function(t,e,i){switch(e===void 0&&(e=0),t.type){case"ObjectPattern":for(var s=0,r=t.properties;s<r.length;s+=1){var o=r[s];this.checkLValInnerPattern(o,e,i)}break;case"ArrayPattern":for(var c=0,l=t.elements;c<l.length;c+=1){var f=l[c];f&&this.checkLValInnerPattern(f,e,i)}break;default:this.checkLValSimple(t,e,i)}},It.checkLValInnerPattern=function(t,e,i){switch(e===void 0&&(e=0),t.type){case"Property":this.checkLValInnerPattern(t.value,e,i);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,i);break;case"RestElement":this.checkLValPattern(t.argument,e,i);break;default:this.checkLValPattern(t,e,i)}};var Pt=function(t,e,i,s,r){this.token=t,this.isExpr=!!e,this.preserveSpace=!!i,this.override=s,this.generator=!!r},ut={b_stat:new Pt("{",!1),b_expr:new Pt("{",!0),b_tmpl:new Pt("${",!1),p_stat:new Pt("(",!1),p_expr:new Pt("(",!0),q_tmpl:new Pt("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new Pt("function",!1),f_expr:new Pt("function",!0),f_expr_gen:new Pt("function",!0,!1,null,!0),f_gen:new Pt("function",!1,!1,null,!0)},Gt=dt.prototype;Gt.initialContext=function(){return[ut.b_stat]},Gt.curContext=function(){return this.context[this.context.length-1]},Gt.braceIsBlock=function(t){var e=this.curContext();return e===ut.f_expr||e===ut.f_stat||(t!==n.colon||e!==ut.b_stat&&e!==ut.b_expr?t===n._return||t===n.name&&this.exprAllowed?it.test(this.input.slice(this.lastTokEnd,this.start)):t===n._else||t===n.semi||t===n.eof||t===n.parenR||t===n.arrow||(t===n.braceL?e===ut.b_stat:t!==n._var&&t!==n._const&&t!==n.name&&!this.exprAllowed):!e.isExpr)},Gt.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if(e.token==="function")return e.generator}return!1},Gt.updateContext=function(t){var e,i=this.type;i.keyword&&t===n.dot?this.exprAllowed=!1:(e=i.updateContext)?e.call(this,t):this.exprAllowed=i.beforeExpr},Gt.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)},n.parenR.updateContext=n.braceR.updateContext=function(){if(this.context.length!==1){var t=this.context.pop();t===ut.b_stat&&this.curContext().token==="function"&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},n.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?ut.b_stat:ut.b_expr),this.exprAllowed=!0},n.dollarBraceL.updateContext=function(){this.context.push(ut.b_tmpl),this.exprAllowed=!0},n.parenL.updateContext=function(t){var e=t===n._if||t===n._for||t===n._with||t===n._while;this.context.push(e?ut.p_stat:ut.p_expr),this.exprAllowed=!0},n.incDec.updateContext=function(){},n._function.updateContext=n._class.updateContext=function(t){!t.beforeExpr||t===n._else||t===n.semi&&this.curContext()!==ut.p_stat||t===n._return&&it.test(this.input.slice(this.lastTokEnd,this.start))||(t===n.colon||t===n.braceL)&&this.curContext()===ut.b_stat?this.context.push(ut.f_stat):this.context.push(ut.f_expr),this.exprAllowed=!1},n.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},n.backQuote.updateContext=function(){this.curContext()===ut.q_tmpl?this.context.pop():this.context.push(ut.q_tmpl),this.exprAllowed=!1},n.star.updateContext=function(t){if(t===n._function){var e=this.context.length-1;this.context[e]===ut.f_expr?this.context[e]=ut.f_expr_gen:this.context[e]=ut.f_gen}this.exprAllowed=!0},n.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==n.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var F=dt.prototype;function Xe(t){return t.type==="Identifier"||t.type==="ParenthesizedExpression"&&Xe(t.expression)}function Oe(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&Oe(t.expression)||t.type==="ParenthesizedExpression"&&Oe(t.expression)}F.checkPropClash=function(t,e,i){if(!(this.options.ecmaVersion>=9&&t.type==="SpreadElement"||this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var s,r=t.key;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=String(r.value);break;default:return}var o=t.kind;if(this.options.ecmaVersion>=6)s==="__proto__"&&o==="init"&&(e.proto&&(i?i.doubleProto<0&&(i.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),e.proto=!0);else{var c=e[s="$"+s];c?(o==="init"?this.strict&&c.init||c.get||c.set:c.init||c[o])&&this.raiseRecoverable(r.start,"Redefinition of property"):c=e[s]={init:!1,get:!1,set:!1},c[o]=!0}}},F.parseExpression=function(t,e){var i=this.start,s=this.startLoc,r=this.parseMaybeAssign(t,e);if(this.type===n.comma){var o=this.startNodeAt(i,s);for(o.expressions=[r];this.eat(n.comma);)o.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(o,"SequenceExpression")}return r},F.parseMaybeAssign=function(t,e,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var s=!1,r=-1,o=-1,c=-1;e?(r=e.parenthesizedAssign,o=e.trailingComma,c=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new ne,s=!0);var l=this.start,f=this.startLoc;this.type!==n.parenL&&this.type!==n.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=t==="await");var y=this.parseMaybeConditional(t,e);if(i&&(y=i.call(this,y,l,f)),this.type.isAssign){var m=this.startNodeAt(l,f);return m.operator=this.value,this.type===n.eq&&(y=this.toAssignable(y,!1,e)),s||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=y.start&&(e.shorthandAssign=-1),this.type===n.eq?this.checkLValPattern(y):this.checkLValSimple(y),m.left=y,this.next(),m.right=this.parseMaybeAssign(t),c>-1&&(e.doubleProto=c),this.finishNode(m,"AssignmentExpression")}return s&&this.checkExpressionErrors(e,!0),r>-1&&(e.parenthesizedAssign=r),o>-1&&(e.trailingComma=o),y},F.parseMaybeConditional=function(t,e){var i=this.start,s=this.startLoc,r=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return r;if(this.eat(n.question)){var o=this.startNodeAt(i,s);return o.test=r,o.consequent=this.parseMaybeAssign(),this.expect(n.colon),o.alternate=this.parseMaybeAssign(t),this.finishNode(o,"ConditionalExpression")}return r},F.parseExprOps=function(t,e){var i=this.start,s=this.startLoc,r=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)||r.start===i&&r.type==="ArrowFunctionExpression"?r:this.parseExprOp(r,i,s,-1,t)},F.parseExprOp=function(t,e,i,s,r){var o=this.type.binop;if(o!=null&&(!r||this.type!==n._in)&&o>s){var c=this.type===n.logicalOR||this.type===n.logicalAND,l=this.type===n.coalesce;l&&(o=n.logicalAND.binop);var f=this.value;this.next();var y=this.start,m=this.startLoc,I=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),y,m,o,r),b=this.buildBinary(e,i,t,I,f,c||l);return(c&&this.type===n.coalesce||l&&(this.type===n.logicalOR||this.type===n.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(b,e,i,s,r)}return t},F.buildBinary=function(t,e,i,s,r,o){s.type==="PrivateIdentifier"&&this.raise(s.start,"Private identifier can only be left side of binary expression");var c=this.startNodeAt(t,e);return c.left=i,c.operator=r,c.right=s,this.finishNode(c,o?"LogicalExpression":"BinaryExpression")},F.parseMaybeUnary=function(t,e,i,s){var r,o=this.start,c=this.startLoc;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(s),e=!0;else if(this.type.prefix){var l=this.startNode(),f=this.type===n.incDec;l.operator=this.value,l.prefix=!0,this.next(),l.argument=this.parseMaybeUnary(null,!0,f,s),this.checkExpressionErrors(t,!0),f?this.checkLValSimple(l.argument):this.strict&&l.operator==="delete"&&Xe(l.argument)?this.raiseRecoverable(l.start,"Deleting local variable in strict mode"):l.operator==="delete"&&Oe(l.argument)?this.raiseRecoverable(l.start,"Private fields can not be deleted"):e=!0,r=this.finishNode(l,f?"UpdateExpression":"UnaryExpression")}else if(e||this.type!==n.privateId){if(r=this.parseExprSubscripts(t,s),this.checkExpressionErrors(t))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var y=this.startNodeAt(o,c);y.operator=this.value,y.prefix=!1,y.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(y,"UpdateExpression")}}else(s||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==n._in&&this.unexpected();return i||!this.eat(n.starstar)?r:e?void this.unexpected(this.lastTokStart):this.buildBinary(o,c,r,this.parseMaybeUnary(null,!1,!1,s),"**",!1)},F.parseExprSubscripts=function(t,e){var i=this.start,s=this.startLoc,r=this.parseExprAtom(t,e);if(r.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return r;var o=this.parseSubscripts(r,i,s,!1,e);return t&&o.type==="MemberExpression"&&(t.parenthesizedAssign>=o.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=o.start&&(t.parenthesizedBind=-1),t.trailingComma>=o.start&&(t.trailingComma=-1)),o},F.parseSubscripts=function(t,e,i,s,r){for(var o=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,c=!1;;){var l=this.parseSubscript(t,e,i,s,o,c,r);if(l.optional&&(c=!0),l===t||l.type==="ArrowFunctionExpression"){if(c){var f=this.startNodeAt(e,i);f.expression=l,l=this.finishNode(f,"ChainExpression")}return l}t=l}},F.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(n.arrow)},F.parseSubscriptAsyncArrow=function(t,e,i,s){return this.parseArrowExpression(this.startNodeAt(t,e),i,!0,s)},F.parseSubscript=function(t,e,i,s,r,o,c){var l=this.options.ecmaVersion>=11,f=l&&this.eat(n.questionDot);s&&f&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var y=this.eat(n.bracketL);if(y||f&&this.type!==n.parenL&&this.type!==n.backQuote||this.eat(n.dot)){var m=this.startNodeAt(e,i);m.object=t,y?(m.property=this.parseExpression(),this.expect(n.bracketR)):this.type===n.privateId&&t.type!=="Super"?m.property=this.parsePrivateIdent():m.property=this.parseIdent(this.options.allowReserved!=="never"),m.computed=!!y,l&&(m.optional=f),t=this.finishNode(m,"MemberExpression")}else if(!s&&this.eat(n.parenL)){var I=new ne,b=this.yieldPos,U=this.awaitPos,tt=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Et=this.parseExprList(n.parenR,this.options.ecmaVersion>=8,!1,I);if(r&&!f&&this.shouldParseAsyncArrow())return this.checkPatternErrors(I,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=b,this.awaitPos=U,this.awaitIdentPos=tt,this.parseSubscriptAsyncArrow(e,i,Et,c);this.checkExpressionErrors(I,!0),this.yieldPos=b||this.yieldPos,this.awaitPos=U||this.awaitPos,this.awaitIdentPos=tt||this.awaitIdentPos;var J=this.startNodeAt(e,i);J.callee=t,J.arguments=Et,l&&(J.optional=f),t=this.finishNode(J,"CallExpression")}else if(this.type===n.backQuote){(f||o)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var et=this.startNodeAt(e,i);et.tag=t,et.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(et,"TaggedTemplateExpression")}return t},F.parseExprAtom=function(t,e,i){this.type===n.slash&&this.readRegexp();var s,r=this.potentialArrowAt===this.start;switch(this.type){case n._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type!==n.parenL||this.allowDirectSuper||this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==n.dot&&this.type!==n.bracketL&&this.type!==n.parenL&&this.unexpected(),this.finishNode(s,"Super");case n._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case n.name:var o=this.start,c=this.startLoc,l=this.containsEsc,f=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!l&&f.name==="async"&&!this.canInsertSemicolon()&&this.eat(n._function))return this.overrideContext(ut.f_expr),this.parseFunction(this.startNodeAt(o,c),0,!1,!0,e);if(r&&!this.canInsertSemicolon()){if(this.eat(n.arrow))return this.parseArrowExpression(this.startNodeAt(o,c),[f],!1,e);if(this.options.ecmaVersion>=8&&f.name==="async"&&this.type===n.name&&!l&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return f=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(n.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(o,c),[f],!0,e)}return f;case n.regexp:var y=this.value;return(s=this.parseLiteral(y.value)).regex={pattern:y.pattern,flags:y.flags},s;case n.num:case n.string:return this.parseLiteral(this.value);case n._null:case n._true:case n._false:return(s=this.startNode()).value=this.type===n._null?null:this.type===n._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case n.parenL:var m=this.start,I=this.parseParenAndDistinguishExpression(r,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(I)&&(t.parenthesizedAssign=m),t.parenthesizedBind<0&&(t.parenthesizedBind=m)),I;case n.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(n.bracketR,!0,!0,t),this.finishNode(s,"ArrayExpression");case n.braceL:return this.overrideContext(ut.b_expr),this.parseObj(!1,t);case n._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case n._class:return this.parseClass(this.startNode(),!1);case n._new:return this.parseNew();case n.backQuote:return this.parseTemplate();case n._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},F.parseExprAtomDefault=function(){this.unexpected()},F.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===n.parenL&&!t)return this.parseDynamicImport(e);if(this.type===n.dot){var i=this.startNodeAt(e.start,e.loc&&e.loc.start);return i.name="import",e.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(e)}this.unexpected()},F.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(n.parenR)?t.options=null:(this.expect(n.comma),this.afterTrailingComma(n.parenR)?t.options=null:(t.options=this.parseMaybeAssign(),this.eat(n.parenR)||(this.expect(n.comma),this.afterTrailingComma(n.parenR)||this.unexpected())));else if(!this.eat(n.parenR)){var e=this.start;this.eat(n.comma)&&this.eat(n.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},F.parseImportMeta=function(t){this.next();var e=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'"),e&&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")},F.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),e.raw.charCodeAt(e.raw.length-1)===110&&(e.bigint=e.value!=null?e.value.toString():e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},F.parseParenExpression=function(){this.expect(n.parenL);var t=this.parseExpression();return this.expect(n.parenR),t},F.shouldParseArrow=function(t){return!this.canInsertSemicolon()},F.parseParenAndDistinguishExpression=function(t,e){var i,s=this.start,r=this.startLoc,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var c,l=this.start,f=this.startLoc,y=[],m=!0,I=!1,b=new ne,U=this.yieldPos,tt=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==n.parenR;){if(m?m=!1:this.expect(n.comma),o&&this.afterTrailingComma(n.parenR,!0)){I=!0;break}if(this.type===n.ellipsis){c=this.start,y.push(this.parseParenItem(this.parseRestBinding())),this.type===n.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}y.push(this.parseMaybeAssign(!1,b,this.parseParenItem))}var Et=this.lastTokEnd,J=this.lastTokEndLoc;if(this.expect(n.parenR),t&&this.shouldParseArrow(y)&&this.eat(n.arrow))return this.checkPatternErrors(b,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=U,this.awaitPos=tt,this.parseParenArrowList(s,r,y,e);y.length&&!I||this.unexpected(this.lastTokStart),c&&this.unexpected(c),this.checkExpressionErrors(b,!0),this.yieldPos=U||this.yieldPos,this.awaitPos=tt||this.awaitPos,y.length>1?((i=this.startNodeAt(l,f)).expressions=y,this.finishNodeAt(i,"SequenceExpression",Et,J)):i=y[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var et=this.startNodeAt(s,r);return et.expression=i,this.finishNode(et,"ParenthesizedExpression")}return i},F.parseParenItem=function(t){return t},F.parseParenArrowList=function(t,e,i,s){return this.parseArrowExpression(this.startNodeAt(t,e),i,!1,s)};var Ze=[];F.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===n.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var i=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'"),i&&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 s=this.start,r=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,r,!0,!1),this.eat(n.parenL)?t.arguments=this.parseExprList(n.parenR,this.options.ecmaVersion>=8,!1):t.arguments=Ze,this.finishNode(t,"NewExpression")},F.parseTemplateElement=function(t){var e=t.isTagged,i=this.startNode();return this.type===n.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,`
|
|
5
11
|
`),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
6
|
-
`),cooked:this.value},this.next(),i.tail=this.type===n.backQuote,this.finishNode(i,"TemplateElement")},S.parseTemplate=function(t){t===void 0&&(t={});var e=t.isTagged;e===void 0&&(e=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:e});for(i.quasis=[s];!s.tail;)this.type===n.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(n.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(n.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(i,"TemplateLiteral")},S.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===n.name||this.type===n.num||this.type===n.string||this.type===n.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===n.star)&&!tt.test(this.input.slice(this.lastTokEnd,this.start))},S.parseObj=function(t,e){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(n.braceR);){if(s)s=!1;else if(this.expect(n.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(n.braceR))break;var a=this.parseProperty(t,e);t||this.checkPropClash(a,r,e),i.properties.push(a)}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")},S.parseProperty=function(t,e){var i,s,r,a,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(n.ellipsis))return t?(o.argument=this.parseIdent(!1),this.type===n.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(o.argument=this.parseMaybeAssign(!1,e),this.type===n.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(t||e)&&(r=this.start,a=this.startLoc),t||(i=this.eat(n.star)));var c=this.containsEsc;return this.parsePropertyName(o),!t&&!c&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(o)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(n.star),this.parsePropertyName(o)):s=!1,this.parsePropertyValue(o,t,i,s,r,a,e,c),this.finishNode(o,"Property")},S.parseGetterSetter=function(t){var e=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=e;var i=t.kind==="get"?0:1;if(t.value.params.length!==i){var s=t.value.start;t.kind==="get"?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"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")},S.parsePropertyValue=function(t,e,i,s,r,a,o,c){(i||s)&&this.type===n.colon&&this.unexpected(),this.eat(n.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),t.kind="init"):this.options.ecmaVersion>=6&&this.type===n.parenL?(e&&this.unexpected(),t.method=!0,t.value=this.parseMethod(i,s),t.kind="init"):e||c||!(this.options.ecmaVersion>=5)||t.computed||t.key.type!=="Identifier"||t.key.name!=="get"&&t.key.name!=="set"||this.type===n.comma||this.type===n.braceR||this.type===n.eq?this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(t.key),t.key.name!=="await"||this.awaitIdentPos||(this.awaitIdentPos=r),e?t.value=this.parseMaybeDefault(r,a,this.copyNode(t.key)):this.type===n.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),t.value=this.parseMaybeDefault(r,a,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):this.unexpected():((i||s)&&this.unexpected(),this.parseGetterSetter(t))},S.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(n.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(n.bracketR),t.key;t.computed=!1}return t.key=this.type===n.num||this.type===n.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},S.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},S.parseMethod=function(t,e,i){var s=this.startNode(),r=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=t),this.options.ecmaVersion>=8&&(s.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|be(e,s.generator)|(i?128:0)),this.expect(n.parenL),s.params=this.parseBindingList(n.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(s,"FunctionExpression")},S.parseArrowExpression=function(t,e,i,s){var r=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(16|be(i,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,s),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(t,"ArrowFunctionExpression")},S.parseFunctionBody=function(t,e,i,s){var r=e&&this.type!==n.braceL,a=this.strict,o=!1;if(r)t.body=this.parseMaybeAssign(s),t.expression=!0,this.checkParams(t,!1);else{var c=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);a&&!c||(o=this.strictDirective(this.end))&&c&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var h=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(t,!a&&!o&&!e&&!i&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,5),t.body=this.parseBlock(!1,void 0,o&&!a),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=h}this.exitScope()},S.isSimpleParamList=function(t){for(var e=0,i=t;e<i.length;e+=1)if(i[e].type!=="Identifier")return!1;return!0},S.checkParams=function(t,e){for(var i=Object.create(null),s=0,r=t.params;s<r.length;s+=1){var a=r[s];this.checkLValInnerPattern(a,1,e?null:i)}},S.parseExprList=function(t,e,i,s){for(var r=[],a=!0;!this.eat(t);){if(a)a=!1;else if(this.expect(n.comma),e&&this.afterTrailingComma(t))break;var o=void 0;i&&this.type===n.comma?o=null:this.type===n.ellipsis?(o=this.parseSpread(s),s&&this.type===n.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):o=this.parseMaybeAssign(!1,s),r.push(o)}return r},S.checkUnreserved=function(t){var e=t.start,i=t.end,s=t.name;this.inGenerator&&s==="yield"&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&s==="await"&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().flags&ci||s!=="arguments"||this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||s!=="arguments"&&s!=="await"||this.raise(e,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(e,"Unexpected keyword '"+s+"'"),this.options.ecmaVersion<6&&this.input.slice(e,i).indexOf("\\")!==-1||(this.strict?this.reservedWordsStrict:this.reservedWords).test(s)&&(this.inAsync||s!=="await"||this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+s+"' is reserved"))},S.parseIdent=function(t){var e=this.parseIdentNode();return this.next(!!t),this.finishNode(e,"Identifier"),t||(this.checkUnreserved(e),e.name!=="await"||this.awaitIdentPos||(this.awaitIdentPos=e.start)),e},S.parseIdentNode=function(){var t=this.startNode();return this.type===n.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=n.name):this.unexpected(),t},S.parsePrivateIdent=function(){var t=this.startNode();return this.type===n.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},S.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===n.semi||this.canInsertSemicolon()||this.type!==n.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(n.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")},S.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(e,"AwaitExpression")};var Xt=G.prototype;Xt.raise=function(t,e){var i=ai(this.input,t);e+=" ("+i.line+":"+i.column+")",this.sourceFile&&(e+=" in "+this.sourceFile);var s=new SyntaxError(e);throw s.pos=t,s.loc=i,s.raisedAt=this.pos,s},Xt.raiseRecoverable=Xt.raise,Xt.curPosition=function(){if(this.options.locations)return new Mt(this.curLine,this.pos-this.lineStart)};var lt=G.prototype,nr=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};lt.enterScope=function(t){this.scopeStack.push(new nr(t))},lt.exitScope=function(){this.scopeStack.pop()},lt.treatFunctionsAsVarInScope=function(t){return 2&t.flags||!this.inModule&&1&t.flags},lt.declareName=function(t,e,i){var s=!1;if(e===2){var r=this.currentScope();s=r.lexical.indexOf(t)>-1||r.functions.indexOf(t)>-1||r.var.indexOf(t)>-1,r.lexical.push(t),this.inModule&&1&r.flags&&delete this.undefinedExports[t]}else if(e===4)this.currentScope().lexical.push(t);else if(e===3){var a=this.currentScope();s=this.treatFunctionsAsVar?a.lexical.indexOf(t)>-1:a.lexical.indexOf(t)>-1||a.var.indexOf(t)>-1,a.functions.push(t)}else for(var o=this.scopeStack.length-1;o>=0;--o){var c=this.scopeStack[o];if(c.lexical.indexOf(t)>-1&&!(32&c.flags&&c.lexical[0]===t)||!this.treatFunctionsAsVarInScope(c)&&c.functions.indexOf(t)>-1){s=!0;break}if(c.var.push(t),this.inModule&&1&c.flags&&delete this.undefinedExports[t],c.flags&ci)break}s&&this.raiseRecoverable(i,"Identifier '"+t+"' has already been declared")},lt.checkLocalExport=function(t){this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1&&(this.undefinedExports[t.name]=t)},lt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},lt.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags)return e}},lt.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags&&!(16&e.flags))return e}};var te=function(t,e,i){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new Yt(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},$t=G.prototype;function pi(t,e,i,s){return t.type=e,t.end=i,this.options.locations&&(t.loc.end=s),this.options.ranges&&(t.range[1]=i),t}$t.startNode=function(){return new te(this,this.start,this.startLoc)},$t.startNodeAt=function(t,e){return new te(this,t,e)},$t.finishNode=function(t,e){return pi.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},$t.finishNodeAt=function(t,e,i,s){return pi.call(this,t,e,i,s)},$t.copyNode=function(t){var e=new te(this,t.start,this.startLoc);for(var i in t)e[i]=t[i];return e};var li="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",Ce=li+" Extended_Pictographic",ke=Ce+" EBase EComp EMod EPres ExtPict",ar={9:li,10:Ce,11:Ce,12:ke,13:ke,14:ke},or={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},ui="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",fi="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",di=fi+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",mi=di+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",gi=mi+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",xi=gi+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",cr={9:fi,10:di,11:mi,12:gi,13:xi,14:xi+" Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz"},yi={};function hr(t){var e=yi[t]={binary:pt(ar[t]+" "+ui),binaryOfStrings:pt(or[t]),nonBinary:{General_Category:pt(ui),Script:pt(cr[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}for(var Ie=0,vi=[9,10,11,12,13,14];Ie<vi.length;Ie+=1)hr(vi[Ie]);var v=G.prototype,ee=function(t,e){this.parent=t,this.base=e||this};ee.prototype.separatedFrom=function(t){for(var e=this;e;e=e.parent)for(var i=t;i;i=i.parent)if(e.base===i.base&&e!==i)return!0;return!1},ee.prototype.sibling=function(){return new ee(this.parent,this.base)};var at=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=yi[t.options.ecmaVersion>=14?14:t.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};function pr(t){return t===105||t===109||t===115}function _i(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}function bi(t){return t>=65&&t<=90||t>=97&&t<=122}at.prototype.reset=function(t,e,i){var s=i.indexOf("v")!==-1,r=i.indexOf("u")!==-1;this.start=0|t,this.source=e+"",this.flags=i,s&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=r&&this.parser.options.ecmaVersion>=9)},at.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},at.prototype.at=function(t,e){e===void 0&&(e=!1);var i=this.source,s=i.length;if(t>=s)return-1;var r=i.charCodeAt(t);if(!e&&!this.switchU||r<=55295||r>=57344||t+1>=s)return r;var a=i.charCodeAt(t+1);return a>=56320&&a<=57343?(r<<10)+a-56613888:r},at.prototype.nextIndex=function(t,e){e===void 0&&(e=!1);var i=this.source,s=i.length;if(t>=s)return s;var r,a=i.charCodeAt(t);return!e&&!this.switchU||a<=55295||a>=57344||t+1>=s||(r=i.charCodeAt(t+1))<56320||r>57343?t+1:t+2},at.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)},at.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},at.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)},at.prototype.eat=function(t,e){return e===void 0&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},at.prototype.eatChars=function(t,e){e===void 0&&(e=!1);for(var i=this.pos,s=0,r=t;s<r.length;s+=1){var a=r[s],o=this.at(i,e);if(o===-1||o!==a)return!1;i=this.nextIndex(i,e)}return this.pos=i,!0},v.validateRegExpFlags=function(t){for(var e=t.validFlags,i=t.flags,s=!1,r=!1,a=0;a<i.length;a++){var o=i.charAt(a);e.indexOf(o)===-1&&this.raise(t.start,"Invalid regular expression flag"),i.indexOf(o,a+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),o==="u"&&(s=!0),o==="v"&&(r=!0)}this.options.ecmaVersion>=15&&s&&r&&this.raise(t.start,"Invalid regular expression flag")},v.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&(function(e){for(var i in e)return!0;return!1})(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))},v.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 e=0,i=t.backReferenceNames;e<i.length;e+=1){var s=i[e];t.groupNames[s]||t.raise("Invalid named capture referenced")}},v.regexp_disjunction=function(t){var e=this.options.ecmaVersion>=16;for(e&&(t.branchID=new ee(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)e&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);e&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},v.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},v.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)},v.regexp_eatAssertion=function(t){var e=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=e}if(t.eat(40)&&t.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!i,!0}return t.pos=e,!1},v.regexp_eatQuantifier=function(t,e){return e===void 0&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},v.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},v.regexp_eatBracedQuantifier=function(t,e){var i=t.pos;if(t.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue),t.eat(125)))return r!==-1&&r<s&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=i}return!1},v.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)},v.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},v.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)){if(this.options.ecmaVersion>=16){var i=this.regexp_eatModifiers(t),s=t.eat(45);if(i||s){for(var r=0;r<i.length;r++){var a=i.charAt(r);i.indexOf(a,r+1)>-1&&t.raise("Duplicate regular expression modifiers")}if(s){var o=this.regexp_eatModifiers(t);i||o||t.current()!==58||t.raise("Invalid regular expression modifiers");for(var c=0;c<o.length;c++){var h=o.charAt(c);(o.indexOf(h,c+1)>-1||i.indexOf(h)>-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=e}return!1},v.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},v.regexp_eatModifiers=function(t){for(var e="",i=0;(i=t.current())!==-1&&pr(i);)e+=ot(i),t.advance();return e},v.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)},v.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},v.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!_i(e)&&(t.lastIntValue=e,t.advance(),!0)},v.regexp_eatPatternCharacters=function(t){for(var e=t.pos,i=0;(i=t.current())!==-1&&!_i(i);)t.advance();return t.pos!==e},v.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return!(e===-1||e===36||e>=40&&e<=43||e===46||e===63||e===91||e===94||e===124)&&(t.advance(),!0)},v.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var e=this.options.ecmaVersion>=16,i=t.groupNames[t.lastStringValue];if(i)if(e)for(var s=0,r=i;s<r.length;s+=1)r[s].separatedFrom(t.branchID)||t.raise("Duplicate capture group name");else t.raise("Duplicate capture group name");e?(i||(t.groupNames[t.lastStringValue]=[])).push(t.branchID):t.groupNames[t.lastStringValue]=!0}},v.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},v.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=ot(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=ot(t.lastIntValue);return!0}return!1},v.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return t.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),(function(r){return $(r,!0)||r===36||r===95})(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},v.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return t.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),(function(r){return F(r,!0)||r===36||r===95||r===8204||r===8205})(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},v.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(t.current()===99&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},v.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var i=t.lastIntValue;if(t.switchU)return i>t.maxBackReference&&(t.maxBackReference=i),!0;if(i<=t.numCapturingParens)return!0;t.pos=e}return!1},v.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},v.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)},v.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},v.regexp_eatZero=function(t){return t.current()===48&&!ie(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},v.regexp_eatControlEscape=function(t){var e=t.current();return e===116?(t.lastIntValue=9,t.advance(),!0):e===110?(t.lastIntValue=10,t.advance(),!0):e===118?(t.lastIntValue=11,t.advance(),!0):e===102?(t.lastIntValue=12,t.advance(),!0):e===114&&(t.lastIntValue=13,t.advance(),!0)},v.regexp_eatControlLetter=function(t){var e=t.current();return!!bi(e)&&(t.lastIntValue=e%32,t.advance(),!0)},v.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){e===void 0&&(e=!1);var i,s=t.pos,r=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var a=t.lastIntValue;if(r&&a>=55296&&a<=56319){var o=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var c=t.lastIntValue;if(c>=56320&&c<=57343)return t.lastIntValue=1024*(a-55296)+(c-56320)+65536,!0}t.pos=o,t.lastIntValue=a}return!0}if(r&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&(i=t.lastIntValue)>=0&&i<=1114111)return!0;r&&t.raise("Invalid unicode escape"),t.pos=s}return!1},v.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(e===99||t.switchN&&e===107)&&(t.lastIntValue=e,t.advance(),!0)},v.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do t.lastIntValue=10*t.lastIntValue+(e-48),t.advance();while((e=t.current())>=48&&e<=57);return!0}return!1};function Ei(t){return bi(t)||t===95}function lr(t){return Ei(t)||ie(t)}function ie(t){return t>=48&&t<=57}function wi(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function Si(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t-48}function Ci(t){return t>=48&&t<=55}v.regexp_eatCharacterClassEscape=function(t){var e=t.current();if((function(r){return r===100||r===68||r===115||r===83||r===119||r===87})(e))return t.lastIntValue=-1,t.advance(),1;var i=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((i=e===80)||e===112)){var s;if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return i&&s===2&&t.raise("Invalid property name"),s;t.raise("Invalid property name")}return 0},v.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var i=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,i,s),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,r)}return 0},v.regexp_validateUnicodePropertyNameAndValue=function(t,e,i){It(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(i)||t.raise("Invalid property value")},v.regexp_validateUnicodePropertyNameOrValue=function(t,e){return t.unicodeProperties.binary.test(e)?1:t.switchV&&t.unicodeProperties.binaryOfStrings.test(e)?2:void t.raise("Invalid property name")},v.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";Ei(e=t.current());)t.lastStringValue+=ot(e),t.advance();return t.lastStringValue!==""},v.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";lr(e=t.current());)t.lastStringValue+=ot(e),t.advance();return t.lastStringValue!==""},v.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},v.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),i=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&i===2&&t.raise("Negated character class may contain strings"),!0}return!1},v.regexp_classContents=function(t){return t.current()===93?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},v.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var i=t.lastIntValue;!t.switchU||e!==-1&&i!==-1||t.raise("Invalid character class"),e!==-1&&i!==-1&&e>i&&t.raise("Range out of order in character class")}}},v.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var i=t.current();(i===99||Ci(i))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var s=t.current();return s!==93&&(t.lastIntValue=s,t.advance(),!0)},v.regexp_eatClassEscape=function(t){var e=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=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},v.regexp_classSetExpression=function(t){var e,i=1;if(!this.regexp_eatClassSetRange(t))if(e=this.regexp_eatClassSetOperand(t)){e===2&&(i=2);for(var s=t.pos;t.eatChars([38,38]);)t.current()!==38&&(e=this.regexp_eatClassSetOperand(t))?e!==2&&(i=1):t.raise("Invalid character in character class");if(s!==t.pos)return i;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(s!==t.pos)return i}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(!(e=this.regexp_eatClassSetOperand(t)))return i;e===2&&(i=2)}},v.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var i=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var s=t.lastIntValue;return i!==-1&&s!==-1&&i>s&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},v.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},v.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var i=t.eat(94),s=this.regexp_classContents(t);if(t.eat(93))return i&&s===2&&t.raise("Negated character class may contain strings"),s;t.pos=e}if(t.eat(92)){var r=this.regexp_eatCharacterClassEscape(t);if(r)return r;t.pos=e}return null},v.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var i=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return i}else t.raise("Invalid escape");t.pos=e}return null},v.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)this.regexp_classString(t)===2&&(e=2);return e},v.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return e===1?1:2},v.regexp_eatClassSetCharacter=function(t){var e=t.pos;if(t.eat(92))return!(!this.regexp_eatCharacterEscape(t)&&!this.regexp_eatClassSetReservedPunctuator(t))||(t.eat(98)?(t.lastIntValue=8,!0):(t.pos=e,!1));var i=t.current();return!(i<0||i===t.lookahead()&&(function(s){return s===33||s>=35&&s<=38||s>=42&&s<=44||s===46||s>=58&&s<=64||s===94||s===96||s===126})(i))&&!(function(s){return s===40||s===41||s===45||s===47||s>=91&&s<=93||s>=123&&s<=125})(i)&&(t.advance(),t.lastIntValue=i,!0)},v.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return!!(function(i){return i===33||i===35||i===37||i===38||i===44||i===45||i>=58&&i<=62||i===64||i===96||i===126})(e)&&(t.lastIntValue=e,t.advance(),!0)},v.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!ie(e)&&e!==95)&&(t.lastIntValue=e%32,t.advance(),!0)},v.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},v.regexp_eatDecimalDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;ie(i=t.current());)t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();return t.pos!==e},v.regexp_eatHexDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;wi(i=t.current());)t.lastIntValue=16*t.lastIntValue+Si(i),t.advance();return t.pos!==e},v.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*i+t.lastIntValue:t.lastIntValue=8*e+i}else t.lastIntValue=e;return!0}return!1},v.regexp_eatOctalDigit=function(t){var e=t.current();return Ci(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},v.regexp_eatFixedHexDigits=function(t,e){var i=t.pos;t.lastIntValue=0;for(var s=0;s<e;++s){var r=t.current();if(!wi(r))return t.pos=i,!1;t.lastIntValue=16*t.lastIntValue+Si(r),t.advance()}return!0};var Re=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Yt(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},P=G.prototype;function ki(t){return typeof BigInt!="function"?null:BigInt(t.replace(/_/g,""))}P.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 Re(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},P.getToken=function(){return this.next(),new Re(this)},typeof Symbol<"u"&&(P[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===n.eof,value:e}}}}),P.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(n.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},P.readToken=function(t){return $(t,this.options.ecmaVersion>=6)||t===92?this.readWord():this.getTokenFromCode(t)},P.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(t<=55295||t>=56320)return t;var e=this.input.charCodeAt(this.pos+1);return e<=56319||e>=57344?t:(t<<10)+e-56613888},P.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,r=e;(s=ei(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,i),e,this.pos,t,this.curPosition())},P.skipLineComment=function(t){for(var e=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!kt(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,i,this.curPosition())},P.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&&ii.test(String.fromCharCode(t))))break t;++this.pos}}},P.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)},P.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&t===46&&e===46?(this.pos+=3,this.finishToken(n.ellipsis)):(++this.pos,this.finishToken(n.dot))},P.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):t===61?this.finishOp(n.assign,2):this.finishOp(n.slash,1)},P.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),i=1,s=t===42?n.star:n.modulo;return this.options.ecmaVersion>=7&&t===42&&e===42&&(++i,s=n.starstar,e=this.input.charCodeAt(this.pos+2)),e===61?this.finishOp(n.assign,i+1):this.finishOp(s,i)},P.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(n.assign,3):this.finishOp(t===124?n.logicalOR:n.logicalAND,2):e===61?this.finishOp(n.assign,2):this.finishOp(t===124?n.bitwiseOR:n.bitwiseAND,1)},P.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(n.assign,2):this.finishOp(n.bitwiseXOR,1)},P.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?e!==45||this.inModule||this.input.charCodeAt(this.pos+2)!==62||this.lastTokEnd!==0&&!tt.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(n.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):e===61?this.finishOp(n.assign,2):this.finishOp(n.plusMin,1)},P.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;return e===t?(i=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(n.assign,i+1):this.finishOp(n.bitShift,i)):e!==33||t!==60||this.inModule||this.input.charCodeAt(this.pos+2)!==45||this.input.charCodeAt(this.pos+3)!==45?(e===61&&(i=2),this.finishOp(n.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},P.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(n.equality,this.input.charCodeAt(this.pos+2)===61?3:2):t===61&&e===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(n.arrow)):this.finishOp(t===61?n.eq:n.prefix,1)},P.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(e===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(n.questionDot,2)}if(e===63)return t>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(n.assign,3):this.finishOp(n.coalesce,2)}return this.finishOp(n.question,1)},P.readToken_numberSign=function(){var t=35;if(this.options.ecmaVersion>=13&&(++this.pos,$(t=this.fullCharCodeAtPos(),!0)||t===92))return this.finishToken(n.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+ot(t)+"'")},P.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(n.parenL);case 41:return++this.pos,this.finishToken(n.parenR);case 59:return++this.pos,this.finishToken(n.semi);case 44:return++this.pos,this.finishToken(n.comma);case 91:return++this.pos,this.finishToken(n.bracketL);case 93:return++this.pos,this.finishToken(n.bracketR);case 123:return++this.pos,this.finishToken(n.braceL);case 125:return++this.pos,this.finishToken(n.braceR);case 58:return++this.pos,this.finishToken(n.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(n.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(e===120||e===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(e===111||e===79)return this.readRadixNumber(8);if(e===98||e===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(n.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+ot(t)+"'")},P.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)},P.readRegexp=function(){for(var t,e,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(tt.test(s)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if(s==="[")e=!0;else if(s==="]"&&e)e=!1;else if(s==="/"&&!e)break;t=s==="\\"}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var c=this.regexpState||(this.regexpState=new at(this));c.reset(i,r,o),this.validateRegExpFlags(c),this.validateRegExpPattern(c);var h=null;try{h=new RegExp(r,o)}catch{}return this.finishToken(n.regexp,{pattern:r,flags:o,value:h})},P.readInt=function(t,e,i){for(var s=this.options.ecmaVersion>=12&&e===void 0,r=i&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,c=0,h=0,u=e??1/0;h<u;++h,++this.pos){var p=this.input.charCodeAt(this.pos),g=void 0;if(s&&p===95)r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),c===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),h===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),c=p;else{if((g=p>=97?p-97+10:p>=65?p-65+10:p>=48&&p<=57?p-48:1/0)>=t)break;c=p,o=o*t+g}}return s&&c===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||e!=null&&this.pos-a!==e?null:o},P.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var i=this.readInt(t);return i==null&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=ki(this.input.slice(e,this.pos)),++this.pos):$(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(n.num,i)},P.readNumber=function(t){var e=this.pos;t||this.readInt(10,void 0,!0)!==null||this.raise(e,"Invalid number");var i=this.pos-e>=2&&this.input.charCodeAt(e)===48;i&&this.strict&&this.raise(e,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!t&&this.options.ecmaVersion>=11&&s===110){var r=ki(this.input.slice(e,this.pos));return++this.pos,$(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(n.num,r)}i&&/[89]/.test(this.input.slice(e,this.pos))&&(i=!1),s!==46||i||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),s!==69&&s!==101||i||((s=this.input.charCodeAt(++this.pos))!==43&&s!==45||++this.pos,this.readInt(10)===null&&this.raise(e,"Invalid number")),$(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a,o=(a=this.input.slice(e,this.pos),i?parseInt(a,8):parseFloat(a.replace(/_/g,"")));return this.finishToken(n.num,o)},P.readCodePoint=function(){var t;if(this.input.charCodeAt(this.pos)===123){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},P.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===t)break;s===92?(e+=this.input.slice(i,this.pos),e+=this.readEscapedChar(!1),i=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(kt(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(n.string,e)};var Ii={};P.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==Ii)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},P.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ii;this.raise(t,e)},P.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos!==this.start||this.type!==n.template&&this.type!==n.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(n.template,t)):i===36?(this.pos+=2,this.finishToken(n.dollarBraceL)):(++this.pos,this.finishToken(n.backQuote));if(i===92)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(kt(i)){switch(t+=this.input.slice(e,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:t+=`
|
|
7
|
-
`;break;default:t+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},
|
|
12
|
+
`),cooked:this.value},this.next(),i.tail=this.type===n.backQuote,this.finishNode(i,"TemplateElement")},F.parseTemplate=function(t){t===void 0&&(t={});var e=t.isTagged;e===void 0&&(e=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:e});for(i.quasis=[s];!s.tail;)this.type===n.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(n.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(n.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(i,"TemplateLiteral")},F.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===n.name||this.type===n.num||this.type===n.string||this.type===n.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===n.star)&&!it.test(this.input.slice(this.lastTokEnd,this.start))},F.parseObj=function(t,e){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(n.braceR);){if(s)s=!1;else if(this.expect(n.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(n.braceR))break;var o=this.parseProperty(t,e);t||this.checkPropClash(o,r,e),i.properties.push(o)}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")},F.parseProperty=function(t,e){var i,s,r,o,c=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(n.ellipsis))return t?(c.argument=this.parseIdent(!1),this.type===n.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(c,"RestElement")):(c.argument=this.parseMaybeAssign(!1,e),this.type===n.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(c,"SpreadElement"));this.options.ecmaVersion>=6&&(c.method=!1,c.shorthand=!1,(t||e)&&(r=this.start,o=this.startLoc),t||(i=this.eat(n.star)));var l=this.containsEsc;return this.parsePropertyName(c),!t&&!l&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(c)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(n.star),this.parsePropertyName(c)):s=!1,this.parsePropertyValue(c,t,i,s,r,o,e,l),this.finishNode(c,"Property")},F.parseGetterSetter=function(t){var e=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=e;var i=t.kind==="get"?0:1;if(t.value.params.length!==i){var s=t.value.start;t.kind==="get"?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"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")},F.parsePropertyValue=function(t,e,i,s,r,o,c,l){(i||s)&&this.type===n.colon&&this.unexpected(),this.eat(n.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,c),t.kind="init"):this.options.ecmaVersion>=6&&this.type===n.parenL?(e&&this.unexpected(),t.method=!0,t.value=this.parseMethod(i,s),t.kind="init"):e||l||!(this.options.ecmaVersion>=5)||t.computed||t.key.type!=="Identifier"||t.key.name!=="get"&&t.key.name!=="set"||this.type===n.comma||this.type===n.braceR||this.type===n.eq?this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(t.key),t.key.name!=="await"||this.awaitIdentPos||(this.awaitIdentPos=r),e?t.value=this.parseMaybeDefault(r,o,this.copyNode(t.key)):this.type===n.eq&&c?(c.shorthandAssign<0&&(c.shorthandAssign=this.start),t.value=this.parseMaybeDefault(r,o,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):this.unexpected():((i||s)&&this.unexpected(),this.parseGetterSetter(t))},F.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(n.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(n.bracketR),t.key;t.computed=!1}return t.key=this.type===n.num||this.type===n.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},F.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},F.parseMethod=function(t,e,i){var s=this.startNode(),r=this.yieldPos,o=this.awaitPos,c=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=t),this.options.ecmaVersion>=8&&(s.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|ye(e,s.generator)|(i?128:0)),this.expect(n.parenL),s.params=this.parseBindingList(n.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=o,this.awaitIdentPos=c,this.finishNode(s,"FunctionExpression")},F.parseArrowExpression=function(t,e,i,s){var r=this.yieldPos,o=this.awaitPos,c=this.awaitIdentPos;return this.enterScope(16|ye(i,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,s),this.yieldPos=r,this.awaitPos=o,this.awaitIdentPos=c,this.finishNode(t,"ArrowFunctionExpression")},F.parseFunctionBody=function(t,e,i,s){var r=e&&this.type!==n.braceL,o=this.strict,c=!1;if(r)t.body=this.parseMaybeAssign(s),t.expression=!0,this.checkParams(t,!1);else{var l=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);o&&!l||(c=this.strictDirective(this.end))&&l&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var f=this.labels;this.labels=[],c&&(this.strict=!0),this.checkParams(t,!o&&!c&&!e&&!i&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,5),t.body=this.parseBlock(!1,void 0,c&&!o),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=f}this.exitScope()},F.isSimpleParamList=function(t){for(var e=0,i=t;e<i.length;e+=1)if(i[e].type!=="Identifier")return!1;return!0},F.checkParams=function(t,e){for(var i=Object.create(null),s=0,r=t.params;s<r.length;s+=1){var o=r[s];this.checkLValInnerPattern(o,1,e?null:i)}},F.parseExprList=function(t,e,i,s){for(var r=[],o=!0;!this.eat(t);){if(o)o=!1;else if(this.expect(n.comma),e&&this.afterTrailingComma(t))break;var c=void 0;i&&this.type===n.comma?c=null:this.type===n.ellipsis?(c=this.parseSpread(s),s&&this.type===n.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):c=this.parseMaybeAssign(!1,s),r.push(c)}return r},F.checkUnreserved=function(t){var e=t.start,i=t.end,s=t.name;this.inGenerator&&s==="yield"&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&s==="await"&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().flags&xe||s!=="arguments"||this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||s!=="arguments"&&s!=="await"||this.raise(e,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(e,"Unexpected keyword '"+s+"'"),this.options.ecmaVersion<6&&this.input.slice(e,i).indexOf("\\")!==-1||(this.strict?this.reservedWordsStrict:this.reservedWords).test(s)&&(this.inAsync||s!=="await"||this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+s+"' is reserved"))},F.parseIdent=function(t){var e=this.parseIdentNode();return this.next(!!t),this.finishNode(e,"Identifier"),t||(this.checkUnreserved(e),e.name!=="await"||this.awaitIdentPos||(this.awaitIdentPos=e.start)),e},F.parseIdentNode=function(){var t=this.startNode();return this.type===n.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=n.name):this.unexpected(),t},F.parsePrivateIdent=function(){var t=this.startNode();return this.type===n.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},F.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===n.semi||this.canInsertSemicolon()||this.type!==n.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(n.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")},F.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(e,"AwaitExpression")};var Qt=dt.prototype;Qt.raise=function(t,e){var i=Je(this.input,t);e+=" ("+i.line+":"+i.column+")",this.sourceFile&&(e+=" in "+this.sourceFile);var s=new SyntaxError(e);throw s.pos=t,s.loc=i,s.raisedAt=this.pos,s},Qt.raiseRecoverable=Qt.raise,Qt.curPosition=function(){if(this.options.locations)return new qt(this.curLine,this.pos-this.lineStart)};var Ut=dt.prototype,ti=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};Ut.enterScope=function(t){this.scopeStack.push(new ti(t))},Ut.exitScope=function(){this.scopeStack.pop()},Ut.treatFunctionsAsVarInScope=function(t){return 2&t.flags||!this.inModule&&1&t.flags},Ut.declareName=function(t,e,i){var s=!1;if(e===2){var r=this.currentScope();s=r.lexical.indexOf(t)>-1||r.functions.indexOf(t)>-1||r.var.indexOf(t)>-1,r.lexical.push(t),this.inModule&&1&r.flags&&delete this.undefinedExports[t]}else if(e===4)this.currentScope().lexical.push(t);else if(e===3){var o=this.currentScope();s=this.treatFunctionsAsVar?o.lexical.indexOf(t)>-1:o.lexical.indexOf(t)>-1||o.var.indexOf(t)>-1,o.functions.push(t)}else for(var c=this.scopeStack.length-1;c>=0;--c){var l=this.scopeStack[c];if(l.lexical.indexOf(t)>-1&&!(32&l.flags&&l.lexical[0]===t)||!this.treatFunctionsAsVarInScope(l)&&l.functions.indexOf(t)>-1){s=!0;break}if(l.var.push(t),this.inModule&&1&l.flags&&delete this.undefinedExports[t],l.flags&xe)break}s&&this.raiseRecoverable(i,"Identifier '"+t+"' has already been declared")},Ut.checkLocalExport=function(t){this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1&&(this.undefinedExports[t.name]=t)},Ut.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Ut.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags)return e}},Ut.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags&&!(16&e.flags))return e}};var jt=function(t,e,i){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new St(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},Ht=dt.prototype;function Ne(t,e,i,s){return t.type=e,t.end=i,this.options.locations&&(t.loc.end=s),this.options.ranges&&(t.range[1]=i),t}Ht.startNode=function(){return new jt(this,this.start,this.startLoc)},Ht.startNodeAt=function(t,e){return new jt(this,t,e)},Ht.finishNode=function(t,e){return Ne.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},Ht.finishNodeAt=function(t,e,i,s){return Ne.call(this,t,e,i,s)},Ht.copyNode=function(t){var e=new jt(this,t.start,this.startLoc);for(var i in t)e[i]=t[i];return e};var ei="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",ve=ei+" Extended_Pictographic",De=ve+" EBase EComp EMod EPres ExtPict",Ri={9:ei,10:ve,11:ve,12:De,13:De,14:De},Pi={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},Ve="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",ii="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",si=ii+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ri=si+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ni=ri+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",a=ni+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",p={9:ii,10:si,11:ri,12:ni,13:a,14:a+" 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"},x={};function h(t){var e=x[t]={binary:Vt(Ri[t]+" "+Ve),binaryOfStrings:Vt(Pi[t]),nonBinary:{General_Category:Vt(Ve),Script:Vt(p[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}for(var E=0,_=[9,10,11,12,13,14];E<_.length;E+=1)h(_[E]);var d=dt.prototype,A=function(t,e){this.parent=t,this.base=e||this};A.prototype.separatedFrom=function(t){for(var e=this;e;e=e.parent)for(var i=t;i;i=i.parent)if(e.base===i.base&&e!==i)return!0;return!1},A.prototype.sibling=function(){return new A(this.parent,this.base)};var P=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=x[t.options.ecmaVersion>=14?14:t.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};function j(t){return t===105||t===109||t===115}function X(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}function Q(t){return t>=65&&t<=90||t>=97&&t<=122}P.prototype.reset=function(t,e,i){var s=i.indexOf("v")!==-1,r=i.indexOf("u")!==-1;this.start=0|t,this.source=e+"",this.flags=i,s&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=r&&this.parser.options.ecmaVersion>=9)},P.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},P.prototype.at=function(t,e){e===void 0&&(e=!1);var i=this.source,s=i.length;if(t>=s)return-1;var r=i.charCodeAt(t);if(!e&&!this.switchU||r<=55295||r>=57344||t+1>=s)return r;var o=i.charCodeAt(t+1);return o>=56320&&o<=57343?(r<<10)+o-56613888:r},P.prototype.nextIndex=function(t,e){e===void 0&&(e=!1);var i=this.source,s=i.length;if(t>=s)return s;var r,o=i.charCodeAt(t);return!e&&!this.switchU||o<=55295||o>=57344||t+1>=s||(r=i.charCodeAt(t+1))<56320||r>57343?t+1:t+2},P.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)},P.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},P.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)},P.prototype.eat=function(t,e){return e===void 0&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},P.prototype.eatChars=function(t,e){e===void 0&&(e=!1);for(var i=this.pos,s=0,r=t;s<r.length;s+=1){var o=r[s],c=this.at(i,e);if(c===-1||c!==o)return!1;i=this.nextIndex(i,e)}return this.pos=i,!0},d.validateRegExpFlags=function(t){for(var e=t.validFlags,i=t.flags,s=!1,r=!1,o=0;o<i.length;o++){var c=i.charAt(o);e.indexOf(c)===-1&&this.raise(t.start,"Invalid regular expression flag"),i.indexOf(c,o+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),c==="u"&&(s=!0),c==="v"&&(r=!0)}this.options.ecmaVersion>=15&&s&&r&&this.raise(t.start,"Invalid regular expression flag")},d.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&(function(e){for(var i in e)return!0;return!1})(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))},d.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 e=0,i=t.backReferenceNames;e<i.length;e+=1){var s=i[e];t.groupNames[s]||t.raise("Invalid named capture referenced")}},d.regexp_disjunction=function(t){var e=this.options.ecmaVersion>=16;for(e&&(t.branchID=new A(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)e&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);e&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},d.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},d.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)},d.regexp_eatAssertion=function(t){var e=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=e}if(t.eat(40)&&t.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!i,!0}return t.pos=e,!1},d.regexp_eatQuantifier=function(t,e){return e===void 0&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},d.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},d.regexp_eatBracedQuantifier=function(t,e){var i=t.pos;if(t.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue),t.eat(125)))return r!==-1&&r<s&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=i}return!1},d.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)},d.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},d.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)){if(this.options.ecmaVersion>=16){var i=this.regexp_eatModifiers(t),s=t.eat(45);if(i||s){for(var r=0;r<i.length;r++){var o=i.charAt(r);i.indexOf(o,r+1)>-1&&t.raise("Duplicate regular expression modifiers")}if(s){var c=this.regexp_eatModifiers(t);i||c||t.current()!==58||t.raise("Invalid regular expression modifiers");for(var l=0;l<c.length;l++){var f=c.charAt(l);(c.indexOf(f,l+1)>-1||i.indexOf(f)>-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=e}return!1},d.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},d.regexp_eatModifiers=function(t){for(var e="",i=0;(i=t.current())!==-1&&j(i);)e+=Ot(i),t.advance();return e},d.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)},d.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},d.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!X(e)&&(t.lastIntValue=e,t.advance(),!0)},d.regexp_eatPatternCharacters=function(t){for(var e=t.pos,i=0;(i=t.current())!==-1&&!X(i);)t.advance();return t.pos!==e},d.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return!(e===-1||e===36||e>=40&&e<=43||e===46||e===63||e===91||e===94||e===124)&&(t.advance(),!0)},d.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var e=this.options.ecmaVersion>=16,i=t.groupNames[t.lastStringValue];if(i)if(e)for(var s=0,r=i;s<r.length;s+=1)r[s].separatedFrom(t.branchID)||t.raise("Duplicate capture group name");else t.raise("Duplicate capture group name");e?(i||(t.groupNames[t.lastStringValue]=[])).push(t.branchID):t.groupNames[t.lastStringValue]=!0}},d.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},d.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=Ot(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=Ot(t.lastIntValue);return!0}return!1},d.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return t.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),(function(r){return ot(r,!0)||r===36||r===95})(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},d.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return t.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),(function(r){return B(r,!0)||r===36||r===95||r===8204||r===8205})(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},d.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(t.current()===99&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},d.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var i=t.lastIntValue;if(t.switchU)return i>t.maxBackReference&&(t.maxBackReference=i),!0;if(i<=t.numCapturingParens)return!0;t.pos=e}return!1},d.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},d.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)},d.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},d.regexp_eatZero=function(t){return t.current()===48&&!rt(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},d.regexp_eatControlEscape=function(t){var e=t.current();return e===116?(t.lastIntValue=9,t.advance(),!0):e===110?(t.lastIntValue=10,t.advance(),!0):e===118?(t.lastIntValue=11,t.advance(),!0):e===102?(t.lastIntValue=12,t.advance(),!0):e===114&&(t.lastIntValue=13,t.advance(),!0)},d.regexp_eatControlLetter=function(t){var e=t.current();return!!Q(e)&&(t.lastIntValue=e%32,t.advance(),!0)},d.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){e===void 0&&(e=!1);var i,s=t.pos,r=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(r&&o>=55296&&o<=56319){var c=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var l=t.lastIntValue;if(l>=56320&&l<=57343)return t.lastIntValue=1024*(o-55296)+(l-56320)+65536,!0}t.pos=c,t.lastIntValue=o}return!0}if(r&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&(i=t.lastIntValue)>=0&&i<=1114111)return!0;r&&t.raise("Invalid unicode escape"),t.pos=s}return!1},d.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(e===99||t.switchN&&e===107)&&(t.lastIntValue=e,t.advance(),!0)},d.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do t.lastIntValue=10*t.lastIntValue+(e-48),t.advance();while((e=t.current())>=48&&e<=57);return!0}return!1};function pt(t){return Q(t)||t===95}function st(t){return pt(t)||rt(t)}function rt(t){return t>=48&&t<=57}function nt(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function mt(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t-48}function Lt(t){return t>=48&&t<=55}d.regexp_eatCharacterClassEscape=function(t){var e=t.current();if((function(r){return r===100||r===68||r===115||r===83||r===119||r===87})(e))return t.lastIntValue=-1,t.advance(),1;var i=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((i=e===80)||e===112)){var s;if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return i&&s===2&&t.raise("Invalid property name"),s;t.raise("Invalid property name")}return 0},d.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var i=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,i,s),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,r)}return 0},d.regexp_validateUnicodePropertyNameAndValue=function(t,e,i){Wt(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(i)||t.raise("Invalid property value")},d.regexp_validateUnicodePropertyNameOrValue=function(t,e){return t.unicodeProperties.binary.test(e)?1:t.switchV&&t.unicodeProperties.binaryOfStrings.test(e)?2:void t.raise("Invalid property name")},d.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";pt(e=t.current());)t.lastStringValue+=Ot(e),t.advance();return t.lastStringValue!==""},d.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";st(e=t.current());)t.lastStringValue+=Ot(e),t.advance();return t.lastStringValue!==""},d.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},d.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),i=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&i===2&&t.raise("Negated character class may contain strings"),!0}return!1},d.regexp_classContents=function(t){return t.current()===93?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},d.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var i=t.lastIntValue;!t.switchU||e!==-1&&i!==-1||t.raise("Invalid character class"),e!==-1&&i!==-1&&e>i&&t.raise("Range out of order in character class")}}},d.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var i=t.current();(i===99||Lt(i))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var s=t.current();return s!==93&&(t.lastIntValue=s,t.advance(),!0)},d.regexp_eatClassEscape=function(t){var e=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=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},d.regexp_classSetExpression=function(t){var e,i=1;if(!this.regexp_eatClassSetRange(t))if(e=this.regexp_eatClassSetOperand(t)){e===2&&(i=2);for(var s=t.pos;t.eatChars([38,38]);)t.current()!==38&&(e=this.regexp_eatClassSetOperand(t))?e!==2&&(i=1):t.raise("Invalid character in character class");if(s!==t.pos)return i;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(s!==t.pos)return i}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(!(e=this.regexp_eatClassSetOperand(t)))return i;e===2&&(i=2)}},d.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var i=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var s=t.lastIntValue;return i!==-1&&s!==-1&&i>s&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},d.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},d.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var i=t.eat(94),s=this.regexp_classContents(t);if(t.eat(93))return i&&s===2&&t.raise("Negated character class may contain strings"),s;t.pos=e}if(t.eat(92)){var r=this.regexp_eatCharacterClassEscape(t);if(r)return r;t.pos=e}return null},d.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var i=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return i}else t.raise("Invalid escape");t.pos=e}return null},d.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)this.regexp_classString(t)===2&&(e=2);return e},d.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return e===1?1:2},d.regexp_eatClassSetCharacter=function(t){var e=t.pos;if(t.eat(92))return!(!this.regexp_eatCharacterEscape(t)&&!this.regexp_eatClassSetReservedPunctuator(t))||(t.eat(98)?(t.lastIntValue=8,!0):(t.pos=e,!1));var i=t.current();return!(i<0||i===t.lookahead()&&(function(s){return s===33||s>=35&&s<=38||s>=42&&s<=44||s===46||s>=58&&s<=64||s===94||s===96||s===126})(i))&&!(function(s){return s===40||s===41||s===45||s===47||s>=91&&s<=93||s>=123&&s<=125})(i)&&(t.advance(),t.lastIntValue=i,!0)},d.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return!!(function(i){return i===33||i===35||i===37||i===38||i===44||i===45||i>=58&&i<=62||i===64||i===96||i===126})(e)&&(t.lastIntValue=e,t.advance(),!0)},d.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!rt(e)&&e!==95)&&(t.lastIntValue=e%32,t.advance(),!0)},d.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},d.regexp_eatDecimalDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;rt(i=t.current());)t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();return t.pos!==e},d.regexp_eatHexDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;nt(i=t.current());)t.lastIntValue=16*t.lastIntValue+mt(i),t.advance();return t.pos!==e},d.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*i+t.lastIntValue:t.lastIntValue=8*e+i}else t.lastIntValue=e;return!0}return!1},d.regexp_eatOctalDigit=function(t){var e=t.current();return Lt(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},d.regexp_eatFixedHexDigits=function(t,e){var i=t.pos;t.lastIntValue=0;for(var s=0;s<e;++s){var r=t.current();if(!nt(r))return t.pos=i,!1;t.lastIntValue=16*t.lastIntValue+mt(r),t.advance()}return!0};var Mt=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new St(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},k=dt.prototype;function _t(t){return typeof BigInt!="function"?null:BigInt(t.replace(/_/g,""))}k.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 Mt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},k.getToken=function(){return this.next(),new Mt(this)},typeof Symbol<"u"&&(k[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===n.eof,value:e}}}}),k.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(n.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},k.readToken=function(t){return ot(t,this.options.ecmaVersion>=6)||t===92?this.readWord():this.getTokenFromCode(t)},k.fullCharCodeAt=function(t){var e=this.input.charCodeAt(t);if(e<=55295||e>=56320)return e;var i=this.input.charCodeAt(t+1);return i<=56319||i>=57344?e:(e<<10)+i-56613888},k.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},k.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,r=e;(s=wt(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,i),e,this.pos,t,this.curPosition())},k.skipLineComment=function(t){for(var e=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!xt(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,i,this.curPosition())},k.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&&Dt.test(String.fromCharCode(t))))break t;++this.pos}}},k.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)},k.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&t===46&&e===46?(this.pos+=3,this.finishToken(n.ellipsis)):(++this.pos,this.finishToken(n.dot))},k.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):t===61?this.finishOp(n.assign,2):this.finishOp(n.slash,1)},k.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),i=1,s=t===42?n.star:n.modulo;return this.options.ecmaVersion>=7&&t===42&&e===42&&(++i,s=n.starstar,e=this.input.charCodeAt(this.pos+2)),e===61?this.finishOp(n.assign,i+1):this.finishOp(s,i)},k.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(n.assign,3):this.finishOp(t===124?n.logicalOR:n.logicalAND,2):e===61?this.finishOp(n.assign,2):this.finishOp(t===124?n.bitwiseOR:n.bitwiseAND,1)},k.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(n.assign,2):this.finishOp(n.bitwiseXOR,1)},k.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?e!==45||this.inModule||this.input.charCodeAt(this.pos+2)!==62||this.lastTokEnd!==0&&!it.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(n.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):e===61?this.finishOp(n.assign,2):this.finishOp(n.plusMin,1)},k.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;return e===t?(i=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(n.assign,i+1):this.finishOp(n.bitShift,i)):e!==33||t!==60||this.inModule||this.input.charCodeAt(this.pos+2)!==45||this.input.charCodeAt(this.pos+3)!==45?(e===61&&(i=2),this.finishOp(n.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},k.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(n.equality,this.input.charCodeAt(this.pos+2)===61?3:2):t===61&&e===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(n.arrow)):this.finishOp(t===61?n.eq:n.prefix,1)},k.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(e===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(n.questionDot,2)}if(e===63)return t>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(n.assign,3):this.finishOp(n.coalesce,2)}return this.finishOp(n.question,1)},k.readToken_numberSign=function(){var t=35;if(this.options.ecmaVersion>=13&&(++this.pos,ot(t=this.fullCharCodeAtPos(),!0)||t===92))return this.finishToken(n.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Ot(t)+"'")},k.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(n.parenL);case 41:return++this.pos,this.finishToken(n.parenR);case 59:return++this.pos,this.finishToken(n.semi);case 44:return++this.pos,this.finishToken(n.comma);case 91:return++this.pos,this.finishToken(n.bracketL);case 93:return++this.pos,this.finishToken(n.bracketR);case 123:return++this.pos,this.finishToken(n.braceL);case 125:return++this.pos,this.finishToken(n.braceR);case 58:return++this.pos,this.finishToken(n.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(n.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(e===120||e===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(e===111||e===79)return this.readRadixNumber(8);if(e===98||e===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(n.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Ot(t)+"'")},k.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)},k.readRegexp=function(){for(var t,e,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(it.test(s)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if(s==="[")e=!0;else if(s==="]"&&e)e=!1;else if(s==="/"&&!e)break;t=s==="\\"}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var o=this.pos,c=this.readWord1();this.containsEsc&&this.unexpected(o);var l=this.regexpState||(this.regexpState=new P(this));l.reset(i,r,c),this.validateRegExpFlags(l),this.validateRegExpPattern(l);var f=null;try{f=new RegExp(r,c)}catch{}return this.finishToken(n.regexp,{pattern:r,flags:c,value:f})},k.readInt=function(t,e,i){for(var s=this.options.ecmaVersion>=12&&e===void 0,r=i&&this.input.charCodeAt(this.pos)===48,o=this.pos,c=0,l=0,f=0,y=e??1/0;f<y;++f,++this.pos){var m=this.input.charCodeAt(this.pos),I=void 0;if(s&&m===95)r&&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"),f===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),l=m;else{if((I=m>=97?m-97+10:m>=65?m-65+10:m>=48&&m<=57?m-48:1/0)>=t)break;l=m,c=c*t+I}}return s&&l===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||e!=null&&this.pos-o!==e?null:c},k.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var i=this.readInt(t);return i==null&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=_t(this.input.slice(e,this.pos)),++this.pos):ot(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(n.num,i)},k.readNumber=function(t){var e=this.pos;t||this.readInt(10,void 0,!0)!==null||this.raise(e,"Invalid number");var i=this.pos-e>=2&&this.input.charCodeAt(e)===48;i&&this.strict&&this.raise(e,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!t&&this.options.ecmaVersion>=11&&s===110){var r=_t(this.input.slice(e,this.pos));return++this.pos,ot(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(n.num,r)}i&&/[89]/.test(this.input.slice(e,this.pos))&&(i=!1),s!==46||i||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),s!==69&&s!==101||i||((s=this.input.charCodeAt(++this.pos))!==43&&s!==45||++this.pos,this.readInt(10)===null&&this.raise(e,"Invalid number")),ot(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o,c=(o=this.input.slice(e,this.pos),i?parseInt(o,8):parseFloat(o.replace(/_/g,"")));return this.finishToken(n.num,c)},k.readCodePoint=function(){var t;if(this.input.charCodeAt(this.pos)===123){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},k.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===t)break;s===92?(e+=this.input.slice(i,this.pos),e+=this.readEscapedChar(!1),i=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(xt(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(n.string,e)};var kt={};k.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==kt)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},k.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw kt;this.raise(t,e)},k.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos!==this.start||this.type!==n.template&&this.type!==n.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(n.template,t)):i===36?(this.pos+=2,this.finishToken(n.dollarBraceL)):(++this.pos,this.finishToken(n.backQuote));if(i===92)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(xt(i)){switch(t+=this.input.slice(e,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:t+=`
|
|
13
|
+
`;break;default:t+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},k.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(n.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
8
14
|
`&&++this.pos;case`
|
|
9
|
-
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},
|
|
10
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return ot(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 i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(e>=48&&e<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,e=this.input.charCodeAt(this.pos),s==="0"&&e!==56&&e!==57||!this.strict&&!t||this.invalidStringToken(this.pos-1-s.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return kt(e)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(e)}},P.readHexChar=function(t){var e=this.pos,i=this.readInt(16,t);return i===null&&this.invalidStringToken(e,"Bad character escape sequence"),i},P.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(F(r,s))this.pos+=r<=65535?1:2;else{if(r!==92)break;this.containsEsc=!0,t+=this.input.slice(i,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(e?$:F)(o,s)||this.invalidStringToken(a,"Invalid Unicode escape"),t+=ot(o),i=this.pos}e=!1}return t+this.input.slice(i,this.pos)},P.readWord=function(){var t=this.readWord1(),e=n.name;return this.keywords.test(t)&&(e=ve[t]),this.finishToken(e,t)},G.acorn={Parser:G,version:"8.15.0",defaultOptions:_e,Position:Mt,SourceLocation:Yt,getLineInfo:ai,Node:te,TokenType:k,tokTypes:n,keywordTypes:ve,TokContext:rt,tokContexts:U,isIdentifierChar:F,isIdentifierStart:$,Token:Re,isNewLine:kt,lineBreak:tt,lineBreakG:zs,nonASCIIwhitespace:ii};let At=require("module"),Y=require("fs");String.fromCharCode;let ur=/\/$|\/\?|\/#/,fr=/^\.?\//;function dr(t="",e){return e?ur.test(t):t.endsWith("/")}function mr(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(dr(t,!0))return t||"/";let i=t,s="",r=t.indexOf("#");if(r!==-1&&(i=t.slice(0,r),s=t.slice(r),!i))return s;let[a,...o]=i.split("?");return a+"/"+(o.length>0?`?${o.join("?")}`:"")+s}function gr(t){return t&&t!=="/"}function Ri(t,...e){let i=t||"";for(let s of e.filter(r=>gr(r)))if(i){let r=s.replace(fr,"");i=mr(i)+r}else i=s;return i}let xr=/^[A-Za-z]:\//;function Pt(t=""){return t&&t.replace(/\\/g,"/").replace(xr,e=>e.toUpperCase())}let yr=/^[/\\]{2}/,vr=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Ai=/^[A-Za-z]:$/,_r=/.(\.[^./]+|\.)$/,br=function(t){if(t.length===0)return".";let e=(t=Pt(t)).match(yr),i=vt(t),s=t[t.length-1]==="/";return(t=Pi(t,!i)).length===0?i?"/":s?"./":".":(s&&(t+="/"),Ai.test(t)&&(t+="/"),e?i?`//${t}`:`//./${t}`:i&&!vt(t)?`/${t}`:t)},ut=function(...t){let e="";for(let i of t)if(i)if(e.length>0){let s=e[e.length-1]==="/",r=i[0]==="/";e+=s&&r?i.slice(1):s||r?i:`/${i}`}else e+=i;return br(e)};function Er(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}let wr=function(...t){let e="",i=!1;for(let s=(t=t.map(r=>Pt(r))).length-1;s>=-1&&!i;s--){let r=s>=0?t[s]:Er();r&&r.length!==0&&(e=`${r}/${e}`,i=vt(r))}return e=Pi(e,!i),i&&!vt(e)?`/${e}`:e.length>0?e:"."};function Pi(t,e){let i="",s=0,r=-1,a=0,o=null;for(let c=0;c<=t.length;++c){if(c<t.length)o=t[c];else{if(o==="/")break;o="/"}if(o==="/"){if(!(r===c-1||a===1))if(a===2){if(i.length<2||s!==2||i[i.length-1]!=="."||i[i.length-2]!=="."){if(i.length>2){let h=i.lastIndexOf("/");h===-1?(i="",s=0):(i=i.slice(0,h),s=i.length-1-i.lastIndexOf("/")),r=c,a=0;continue}if(i.length>0){i="",s=0,r=c,a=0;continue}}e&&(i+=i.length>0?"/..":"..",s=2)}else i.length>0?i+=`/${t.slice(r+1,c)}`:i=t.slice(r+1,c),s=c-r-1;r=c,a=0}else o==="."&&a!==-1?++a:a=-1}return i}let vt=function(t){return vr.test(t)},Ti=function(t){if(t==="..")return"";let e=_r.exec(Pt(t));return e&&e[1]||""},se=function(t){let e=Pt(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Ai.test(e[0])&&(e[0]+="/"),e.join("/")||(vt(t)?"/":".")},Ni=function(t,e){let i=Pt(t).split("/"),s="";for(let r=i.length-1;r>=0;r--){let a=i[r];if(a){s=a;break}}return e&&s.endsWith(e)?s.slice(0,-e.length):s},E=require("url"),ft=require("assert"),_t=require("process"),Ae=require("path"),Sr=require("v8"),re=require("util"),Li=new Set(At.builtinModules);function Pe(t){return t.replace(/\\/g,"/")}let Cr={}.hasOwnProperty,kr=/^([A-Z][a-z\d]*)+$/,Ir=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),Q={};function Te(t,e="and"){return t.length<3?t.join(` ${e} `):`${t.slice(0,-1).join(", ")}, ${e} ${t[t.length-1]}`}let Oi=new Map,Di;function st(t,e,i){return Oi.set(t,e),(function(s,r){return a;function a(...o){let c=Error.stackTraceLimit;Ne()&&(Error.stackTraceLimit=0);let h=new s;Ne()&&(Error.stackTraceLimit=c);let u=(function(p,g,m){let C=Oi.get(p);if(ft(C!==void 0,"expected `message` to be found"),typeof C=="function")return ft(C.length<=g.length,`Code: ${p}; The provided arguments length (${g.length}) does not match the required ones (${C.length}).`),Reflect.apply(C,m,g);let V=/%[dfijoOs]/g,I=0;for(;V.exec(C)!==null;)I++;return ft(I===g.length,`Code: ${p}; The provided arguments length (${g.length}) does not match the required ones (${I}).`),g.length===0?C:(g.unshift(C),Reflect.apply(re.format,null,g))})(r,o,h);return Object.defineProperties(h,{message:{value:u,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${r}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),Rr(h),h.code=r,h}})(i,t)}function Ne(){try{if(Sr.startupSnapshot.isBuildingSnapshot())return!1}catch{}let t=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return t===void 0?Object.isExtensible(Error):Cr.call(t,"writable")&&t.writable!==void 0?t.writable:t.set!==void 0}Q.ERR_INVALID_ARG_TYPE=st("ERR_INVALID_ARG_TYPE",(t,e,i)=>{ft(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let s="The ";if(t.endsWith(" argument"))s+=`${t} `;else{let c=t.includes(".")?"property":"argument";s+=`"${t}" ${c} `}s+="must be ";let r=[],a=[],o=[];for(let c of e)ft(typeof c=="string","All expected entries have to be of type string"),Ir.has(c)?r.push(c.toLowerCase()):kr.exec(c)===null?(ft(c!=="object",'The value "object" should be written as "Object"'),o.push(c)):a.push(c);if(a.length>0){let c=r.indexOf("object");c!==-1&&(r.slice(c,1),a.push("Object"))}return r.length>0&&(s+=`${r.length>1?"one of type":"of type"} ${Te(r,"or")}`,(a.length>0||o.length>0)&&(s+=" or ")),a.length>0&&(s+=`an instance of ${Te(a,"or")}`,o.length>0&&(s+=" or ")),o.length>0&&(o.length>1?s+=`one of ${Te(o,"or")}`:(o[0].toLowerCase()!==o[0]&&(s+="an "),s+=`${o[0]}`)),s+=`. Received ${(function(c){if(c==null)return String(c);if(typeof c=="function"&&c.name)return`function ${c.name}`;if(typeof c=="object")return c.constructor&&c.constructor.name?`an instance of ${c.constructor.name}`:`${(0,re.inspect)(c,{depth:-1})}`;let h=(0,re.inspect)(c,{colors:!1});return h.length>28&&(h=`${h.slice(0,25)}...`),`type ${typeof c} (${h})`})(i)}`,s},TypeError),Q.ERR_INVALID_MODULE_SPECIFIER=st("ERR_INVALID_MODULE_SPECIFIER",(t,e,i=void 0)=>`Invalid module "${t}" ${e}${i?` imported from ${i}`:""}`,TypeError),Q.ERR_INVALID_PACKAGE_CONFIG=st("ERR_INVALID_PACKAGE_CONFIG",(t,e,i)=>`Invalid package config ${t}${e?` while importing ${e}`:""}${i?`. ${i}`:""}`,Error),Q.ERR_INVALID_PACKAGE_TARGET=st("ERR_INVALID_PACKAGE_TARGET",(t,e,i,s=!1,r=void 0)=>{let a=typeof i=="string"&&!s&&i.length>0&&!i.startsWith("./");return e==="."?(ft(s===!1),`Invalid "exports" main target ${JSON.stringify(i)} defined in the package config ${t}package.json${r?` imported from ${r}`:""}${a?'; targets must start with "./"':""}`):`Invalid "${s?"imports":"exports"}" target ${JSON.stringify(i)} defined for '${e}' in the package config ${t}package.json${r?` imported from ${r}`:""}${a?'; targets must start with "./"':""}`},Error),Q.ERR_MODULE_NOT_FOUND=st("ERR_MODULE_NOT_FOUND",(t,e,i=!1)=>`Cannot find ${i?"module":"package"} '${t}' imported from ${e}`,Error),Q.ERR_NETWORK_IMPORT_DISALLOWED=st("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error),Q.ERR_PACKAGE_IMPORT_NOT_DEFINED=st("ERR_PACKAGE_IMPORT_NOT_DEFINED",(t,e,i)=>`Package import specifier "${t}" is not defined${e?` in package ${e}package.json`:""} imported from ${i}`,TypeError),Q.ERR_PACKAGE_PATH_NOT_EXPORTED=st("ERR_PACKAGE_PATH_NOT_EXPORTED",(t,e,i=void 0)=>e==="."?`No "exports" main defined in ${t}package.json${i?` imported from ${i}`:""}`:`Package subpath '${e}' is not defined by "exports" in ${t}package.json${i?` imported from ${i}`:""}`,Error),Q.ERR_UNSUPPORTED_DIR_IMPORT=st("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),Q.ERR_UNSUPPORTED_RESOLVE_REQUEST=st("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError),Q.ERR_UNKNOWN_FILE_EXTENSION=st("ERR_UNKNOWN_FILE_EXTENSION",(t,e)=>`Unknown file extension "${t}" for ${e}`,TypeError),Q.ERR_INVALID_ARG_VALUE=st("ERR_INVALID_ARG_VALUE",(t,e,i="is invalid")=>{let s=(0,re.inspect)(e);return s.length>128&&(s=`${s.slice(0,128)}...`),`The ${t.includes(".")?"property":"argument"} '${t}' ${i}. Received ${s}`},TypeError);let Rr=(function(t){let e="__node_internal_"+t.name;return Object.defineProperty(t,"name",{value:e}),t})(function(t){let e=Ne();return e&&(Di=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(t),e&&(Error.stackTraceLimit=Di),t}),Ft={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:Ar}=Q,Vi=new Map;function Ui(t,{base:e,specifier:i}){let s=Vi.get(t);if(s)return s;let r;try{r=Y.readFileSync(Ae.toNamespacedPath(t),"utf8")}catch(o){let c=o;if(c.code!=="ENOENT")throw c}let a={exists:!1,pjsonPath:t,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(r!==void 0){let o;try{o=JSON.parse(r)}catch(c){let h=c,u=new Ar(t,(e?`"${i}" from `:"")+(0,E.fileURLToPath)(e||i),h.message);throw u.cause=h,u}a.exists=!0,Ft.call(o,"name")&&typeof o.name=="string"&&(a.name=o.name),Ft.call(o,"main")&&typeof o.main=="string"&&(a.main=o.main),Ft.call(o,"exports")&&(a.exports=o.exports),Ft.call(o,"imports")&&(a.imports=o.imports),!Ft.call(o,"type")||o.type!=="commonjs"&&o.type!=="module"||(a.type=o.type)}return Vi.set(t,a),a}function Le(t){let e=new URL("package.json",t);for(;!e.pathname.endsWith("node_modules/package.json");){let i=Ui((0,E.fileURLToPath)(e),{specifier:t});if(i.exists)return i;let s=e;if(e=new URL("../package.json",e),e.pathname===s.pathname)break}return{pjsonPath:(0,E.fileURLToPath)(e),exists:!1,type:"none"}}function Mi(t){return Le(t).type}let{ERR_UNKNOWN_FILE_EXTENSION:Pr}=Q,Tr={}.hasOwnProperty,Nr={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"},ji={__proto__:null,"data:":function(t){let{1:e}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(t.pathname)||[null,null,null];return(function(i){return i&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(i)?"module":i==="application/json"?"json":null})(e)},"file:":function(t,e,i){let s=(function(o){let c=o.pathname,h=c.length;for(;h--;){let u=c.codePointAt(h);if(u===47)return"";if(u===46)return c.codePointAt(h-1)===47?"":c.slice(h)}return""})(t);if(s===".js"){let o=Mi(t);return o!=="none"?o:"commonjs"}if(s===""){let o=Mi(t);return o==="none"||o==="commonjs"?"commonjs":"module"}let r=Nr[s];if(r)return r;if(i)return;let a=(0,E.fileURLToPath)(t);throw new Pr(s,a)},"http:":$i,"https:":$i,"node:":()=>"builtin"};function $i(){}let ne=RegExp.prototype[Symbol.replace],{ERR_INVALID_MODULE_SPECIFIER:ae,ERR_INVALID_PACKAGE_CONFIG:Fi,ERR_INVALID_PACKAGE_TARGET:Lr,ERR_MODULE_NOT_FOUND:Oe,ERR_PACKAGE_IMPORT_NOT_DEFINED:Or,ERR_PACKAGE_PATH_NOT_EXPORTED:Dr,ERR_UNSUPPORTED_DIR_IMPORT:Vr,ERR_UNSUPPORTED_RESOLVE_REQUEST:Bi}=Q,qi={}.hasOwnProperty,Wi=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,Gi=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,Ur=/^\.|%|\\/,oe=/\*/g,Mr=/%2f|%5c/i,Hi=new Set,jr=/[/\\]{2}/;function Ki(t,e,i,s,r,a,o){if(_t.noDeprecation)return;let c=(0,E.fileURLToPath)(s),h=jr.exec(o?t:e)!==null;_t.emitWarning(`Use of deprecated ${h?"double slash":"leading or trailing slash matching"} resolving "${t}" for module request "${e}" ${e===i?"":`matched to "${i}" `}in the "${r?"imports":"exports"}" field module resolution of the package at ${c}${a?` imported from ${(0,E.fileURLToPath)(a)}`:""}.`,"DeprecationWarning","DEP0166")}function zi(t,e,i,s){if(_t.noDeprecation||(function(h,u){let p=h.protocol;return Tr.call(ji,p)&&ji[p](h,u,!0)||null})(t,{parentURL:i.href})!=="module")return;let a=(0,E.fileURLToPath)(t.href),o=(0,E.fileURLToPath)(new E.URL(".",e)),c=(0,E.fileURLToPath)(i);s?Ae.resolve(o,s)!==a&&_t.emitWarning(`Package ${o} has a "main" field set to "${s}", excluding the full filename and extension to the resolved file at "${a.slice(o.length)}", imported from ${c}.
|
|
11
|
-
Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):
|
|
12
|
-
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function Ji(t){try{return(0,Y.statSync)(t)}catch{}}function De(t){let e=(0,Y.statSync)(t,{throwIfNoEntry:!1}),i=e?e.isFile():void 0;return i!=null&&i}function $r(t,e,i){let s;if(e.main!==void 0){if(s=new E.URL(e.main,t),De(s))return s;let o=[`./${e.main}.js`,`./${e.main}.json`,`./${e.main}.node`,`./${e.main}/index.js`,`./${e.main}/index.json`,`./${e.main}/index.node`],c=-1;for(;++c<o.length&&(s=new E.URL(o[c],t),!De(s));)s=void 0;if(s)return zi(s,t,i,e.main),s}let r=["./index.js","./index.json","./index.node"],a=-1;for(;++a<r.length&&(s=new E.URL(r[a],t),!De(s));)s=void 0;if(s)return zi(s,t,i,e.main),s;throw new Oe((0,E.fileURLToPath)(new E.URL(".",t)),(0,E.fileURLToPath)(i))}function Ve(t,e,i){return new Dr((0,E.fileURLToPath)(new E.URL(".",e)),t,i&&(0,E.fileURLToPath)(i))}function Bt(t,e,i,s,r){return e=typeof e=="object"&&e!==null?JSON.stringify(e,null,""):`${e}`,new Lr((0,E.fileURLToPath)(new E.URL(".",i)),t,e,s,r&&(0,E.fileURLToPath)(r))}function Fr(t,e,i,s,r,a,o,c,h){if(e!==""&&!a&&t[t.length-1]!=="/")throw Bt(i,t,s,o,r);if(!t.startsWith("./")){if(o&&!t.startsWith("../")&&!t.startsWith("/")){let m=!1;try{new E.URL(t),m=!0}catch{}if(!m)return Zi(a?ne.call(oe,t,()=>e):t+e,s,h)}throw Bt(i,t,s,o,r)}if(Wi.exec(t.slice(2))!==null){if(Gi.exec(t.slice(2))!==null)throw Bt(i,t,s,o,r);if(!c){let m=a?i.replace("*",()=>e):i+e;Ki(a?ne.call(oe,t,()=>e):t,m,i,s,o,r,!0)}}let u=new E.URL(t,s),p=u.pathname,g=new E.URL(".",s).pathname;if(!p.startsWith(g))throw Bt(i,t,s,o,r);if(e==="")return u;if(Wi.exec(e)!==null){let m=a?i.replace("*",()=>e):i+e;Gi.exec(e)===null?c||Ki(a?ne.call(oe,t,()=>e):t,m,i,s,o,r,!1):(function(C,V,I,O,L){let D=`request is not a valid match in pattern "${V}" for the "${O?"imports":"exports"}" resolution of ${(0,E.fileURLToPath)(I)}`;throw new ae(C,D,L&&(0,E.fileURLToPath)(L))})(m,i,s,o,r)}return a?new E.URL(ne.call(oe,u.href,()=>e)):new E.URL(e,u)}function Br(t){let e=Number(t);return`${e}`===t&&e>=0&&e<4294967295}function Tt(t,e,i,s,r,a,o,c,h){if(typeof e=="string")return Fr(e,i,s,t,r,a,o,c,h);if(Array.isArray(e)){let u=e;if(u.length===0)return null;let p,g=-1;for(;++g<u.length;){let m=u[g],C;try{C=Tt(t,m,i,s,r,a,o,c,h)}catch(V){if(p=V,V.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw V}if(C!==void 0){if(C!==null)return C;p=null}}if(p==null)return null;throw p}if(typeof e=="object"&&e!==null){let u=Object.getOwnPropertyNames(e),p=-1;for(;++p<u.length;)if(Br(u[p]))throw new Fi((0,E.fileURLToPath)(t),r,'"exports" cannot contain numeric property keys.');for(p=-1;++p<u.length;){let g=u[p];if(g==="default"||h&&h.has(g)){let m=Tt(t,e[g],i,s,r,a,o,c,h);if(m===void 0)continue;return m}}return null}if(e===null)return null;throw Bt(s,e,t,o,r)}function qr(t,e,i){if(_t.noDeprecation)return;let s=(0,E.fileURLToPath)(e);Hi.has(s+"|"+t)||(Hi.add(s+"|"+t),_t.emitWarning(`Use of deprecated trailing slash pattern mapping "${t}" in the "exports" field module resolution of the package at ${s}${i?` imported from ${(0,E.fileURLToPath)(i)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function Yi(t,e,i,s,r){let a=i.exports;if((function(p,g,m){if(typeof p=="string"||Array.isArray(p))return!0;if(typeof p!="object"||p===null)return!1;let C=Object.getOwnPropertyNames(p),V=!1,I=0,O=-1;for(;++O<C.length;){let L=C[O],D=L===""||L[0]!==".";if(I++===0)V=D;else if(V!==D)throw new Fi((0,E.fileURLToPath)(g),m,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return V})(a,t,s)&&(a={".":a}),qi.call(a,e)&&!e.includes("*")&&!e.endsWith("/")){let p=Tt(t,a[e],"",e,s,!1,!1,!1,r);if(p==null)throw Ve(e,t,s);return p}let o="",c="",h=Object.getOwnPropertyNames(a),u=-1;for(;++u<h.length;){let p=h[u],g=p.indexOf("*");if(g!==-1&&e.startsWith(p.slice(0,g))){e.endsWith("/")&&qr(e,t,s);let m=p.slice(g+1);e.length>=p.length&&e.endsWith(m)&&Qi(o,p)===1&&p.lastIndexOf("*")===g&&(o=p,c=e.slice(g,e.length-m.length))}}if(o){let p=Tt(t,a[o],c,o,s,!0,!1,e.endsWith("/"),r);if(p==null)throw Ve(e,t,s);return p}throw Ve(e,t,s)}function Qi(t,e){let i=t.indexOf("*"),s=e.indexOf("*"),r=i===-1?t.length:i+1,a=s===-1?e.length:s+1;return r>a?-1:a>r||i===-1?1:s===-1||t.length>e.length?-1:e.length>t.length?1:0}function Wr(t,e,i){if(t==="#"||t.startsWith("#/")||t.endsWith("/"))throw new ae(t,"is not a valid internal imports specifier name",(0,E.fileURLToPath)(e));let s,r=Le(e);if(r.exists){s=(0,E.pathToFileURL)(r.pjsonPath);let a=r.imports;if(a)if(qi.call(a,t)&&!t.includes("*")){let o=Tt(s,a[t],"",t,e,!1,!0,!1,i);if(o!=null)return o}else{let o="",c="",h=Object.getOwnPropertyNames(a),u=-1;for(;++u<h.length;){let p=h[u],g=p.indexOf("*");if(g!==-1&&t.startsWith(p.slice(0,-1))){let m=p.slice(g+1);t.length>=p.length&&t.endsWith(m)&&Qi(o,p)===1&&p.lastIndexOf("*")===g&&(o=p,c=t.slice(g,t.length-m.length))}}if(o){let p=Tt(s,a[o],c,o,e,!0,!0,!1,i);if(p!=null)return p}}}throw(function(a,o,c){return new Or(a,o&&(0,E.fileURLToPath)(new E.URL(".",o)),(0,E.fileURLToPath)(c))})(t,s,e)}function Zi(t,e,i){if(At.builtinModules.includes(t))return new E.URL("node:"+t);let{packageName:s,packageSubpath:r,isScoped:a}=(function(p,g){let m=p.indexOf("/"),C=!0,V=!1;p[0]==="@"&&(V=!0,m===-1||p.length===0?C=!1:m=p.indexOf("/",m+1));let I=m===-1?p:p.slice(0,m);if(Ur.exec(I)!==null&&(C=!1),!C)throw new ae(p,"is not a valid package name",(0,E.fileURLToPath)(g));return{packageName:I,packageSubpath:"."+(m===-1?"":p.slice(m)),isScoped:V}})(t,e),o=Le(e);if(o.exists){let p=(0,E.pathToFileURL)(o.pjsonPath);if(o.name===s&&o.exports!==void 0&&o.exports!==null)return Yi(p,r,o,e,i)}let c,h=new E.URL("./node_modules/"+s+"/package.json",e),u=(0,E.fileURLToPath)(h);do{let p=Ji(u.slice(0,-13));if(!p||!p.isDirectory()){c=u,h=new E.URL((a?"../../../../node_modules/":"../../../node_modules/")+s+"/package.json",h),u=(0,E.fileURLToPath)(h);continue}let g=Ui(u,{base:e,specifier:t});return g.exports!==void 0&&g.exports!==null?Yi(h,r,g,e,i):r==="."?$r(h,g,e):new E.URL(r,h)}while(u.length!==c.length);throw new Oe(s,(0,E.fileURLToPath)(e),!1)}function Gr(t,e,i,s){let r=e.protocol,a=r==="data:"||r==="http:"||r==="https:",o;if((function(c){return c!==""&&(c[0]==="/"||(function(h){return h[0]==="."&&(h.length===1||h[1]==="/"||h[1]==="."&&(h.length===2||h[2]==="/"))})(c))})(t))try{o=new E.URL(t,e)}catch(c){let h=new Bi(t,e);throw h.cause=c,h}else if(r==="file:"&&t[0]==="#")o=Wr(t,e,i);else try{o=new E.URL(t)}catch(c){if(a&&!At.builtinModules.includes(t)){let h=new Bi(t,e);throw h.cause=c,h}o=Zi(t,e,i)}return ft(o!==void 0,"expected to be defined"),o.protocol!=="file:"?o:(function(c,h){if(Mr.exec(c.pathname)!==null)throw new ae(c.pathname,'must not include encoded "/" or "\\" characters',(0,E.fileURLToPath)(h));let u;try{u=(0,E.fileURLToPath)(c)}catch(g){let m=g;throw Object.defineProperty(m,"input",{value:String(c)}),Object.defineProperty(m,"module",{value:String(h)}),m}let p=Ji(u.endsWith("/")?u.slice(-1):u);if(p&&p.isDirectory()){let g=new Vr(u,(0,E.fileURLToPath)(h));throw g.url=String(c),g}if(!p||!p.isFile()){let g=new Oe(u||c.pathname,h&&(0,E.fileURLToPath)(h),!0);throw g.url=String(c),g}{let g=(0,Y.realpathSync)(u),{search:m,hash:C}=c;(c=(0,E.pathToFileURL)(g+(u.endsWith(Ae.sep)?"/":""))).search=m,c.hash=C}return c})(o,e)}function qt(t){return typeof t!="string"||t.startsWith("file://")?Pe((0,E.fileURLToPath)(t)):Pe(t)}function Nt(t){return(0,E.pathToFileURL)(qt(t)).toString()}let Hr=new Set(["node","import"]),Kr=[".mjs",".cjs",".js",".json"],zr=new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function Xi(t,e,i){try{return Gr(t,e,i)}catch(s){if(!zr.has(s?.code))throw s}}function Jr(t,e={}){if(typeof t!="string"){if(!(t instanceof URL))throw new TypeError("input must be a `string` or `URL`");t=qt(t)}if(/(?:node|data|http|https):/.test(t))return t;if(Li.has(t))return"node:"+t;if(t.startsWith("file://")&&(t=qt(t)),vt(t))try{if((0,Y.statSync)(t).isFile())return Nt(t)}catch(o){if(o?.code!=="ENOENT")throw o}let i=e.conditions?new Set(e.conditions):Hr,s=(Array.isArray(e.url)?e.url:[e.url]).filter(Boolean).map(o=>new URL((function(c){return typeof c!="string"&&(c=c.toString()),/(?:node|data|http|https|file):/.test(c)?c:Li.has(c)?"node:"+c:"file://"+encodeURI(Pe(c))})(o.toString())));s.length===0&&s.push(new URL(Nt(process.cwd())));let r=[...s];for(let o of s)o.protocol==="file:"&&r.push(new URL("./",o),new URL(Ri(o.pathname,"_index.js"),o),new URL("node_modules",o));let a;for(let o of r){if(a=Xi(t,o,i),a)break;for(let c of["","/index"]){for(let h of e.extensions||Kr)if(a=Xi(Ri(t,c)+h,o,i),a)break;if(a)break}if(a)break}if(!a){let o=new Error(`Cannot find module ${t} imported from ${r.join(", ")}`);throw o.code="ERR_MODULE_NOT_FOUND",o}return Nt(a)}function Yr(t,e){return Jr(t,e)}function Qr(t,e){return qt(Yr(t,e))}let Zr=/(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m,Xr=/\/\*.+?\*\/|\/\/.*(?=[nr])/g;function tn(t,e={}){return e.stripComments&&(t=t.replace(Xr,"")),Zr.test(t)}function ts(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}let en=new Set(["/","\\",void 0]),es=Symbol.for("pathe:normalizedAlias"),sn=/[/\\]/;function is(t){if(t[es])return t;let e=Object.fromEntries(Object.entries(t).sort(([i],[s])=>(function(r,a){return a.split("/").length-r.split("/").length})(i,s)));for(let i in e)for(let s in e)s===i||i.startsWith(s)||e[i]?.startsWith(s)&&en.has(e[i][s.length])&&(e[i]=e[s]+e[i].slice(s.length));return Object.defineProperty(e,es,{value:!0,enumerable:!1}),e}function ss(t="/"){let e=t[t.length-1];return e==="/"||e==="\\"}var rn={rE:"2.6.1"};let nn=require("crypto");var Ue=d.n(nn);let ce=Object.create(null),Wt=t=>globalThis.process?.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?ce:globalThis),dt=new Proxy(ce,{get:(t,e)=>Wt()[e]??ce[e],has:(t,e)=>e in Wt()||e in ce,set:(t,e,i)=>(Wt(!0)[e]=i,!0),deleteProperty(t,e){return e?(delete Wt(!0)[e],!0):!1},ownKeys(){let t=Wt(!0);return Object.keys(t)}}),an=typeof process<"u"&&process.env&&process.env.NODE_ENV||"",on=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}]],rs=(function(){if(globalThis.process?.env)for(let t of on){let e=t[1]||t[0];if(globalThis.process?.env[e])return{name:t[0].toLowerCase(),...t[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}})();rs.name;function bt(t){return!!t&&t!=="false"}let Me=globalThis.process?.platform||"",Hn=bt(dt.CI)||rs.ci!==!1,cn=bt(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY),Kn=(bt(dt.DEBUG),an==="test"||bt(dt.TEST)),ns=(bt(dt.MINIMAL),/^win/i.test(Me)),hn=(/^linux/i.test(Me),/^darwin/i.test(Me),!bt(dt.NO_COLOR)&&(bt(dt.FORCE_COLOR)||(cn||ns)&&dt.TERM),(globalThis.process?.versions?.node||"").replace(/^v/,"")||null),pn=(Number(hn?.split(".")[0]),globalThis.process||Object.create(null)),as={versions:{}},ln=(new Proxy(pn,{get:(t,e)=>e==="env"?dt:e in t?t[e]:e in as?as[e]:void 0}),globalThis.process?.release?.name==="node"),un=!!globalThis.Bun||!!globalThis.process?.versions?.bun,fn=!!globalThis.Deno,dn=!!globalThis.fastly,mn=[[!!globalThis.Netlify,"netlify"],[!!globalThis.EdgeRuntime,"edge-light"],[globalThis.navigator?.userAgent==="Cloudflare-Workers","workerd"],[dn,"fastly"],[fn,"deno"],[un,"bun"],[ln,"node"]];(function(){let t=mn.find(e=>e[0]);t&&t[1]})();let gn=require("tty"),xn=gn?.WriteStream?.prototype?.hasColors?.()??!1,R=(t,e)=>{if(!xn)return r=>r;let i=`\x1B[${t}m`,s=`\x1B[${e}m`;return r=>{let a=r+"",o=a.indexOf(s);if(o===-1)return i+a+s;let c=i,h=0,u=(e===22?s:"")+i;for(;o!==-1;)c+=a.slice(h,o)+u,h=o+s.length,o=a.indexOf(s,h);return c+=a.slice(h)+s,c}},os=(R(0,0),R(1,22),R(2,22),R(3,23),R(4,24),R(53,55),R(7,27),R(8,28),R(9,29),R(30,39),R(31,39)),Lt=R(32,39),he=R(33,39),cs=R(34,39),yn=(R(35,39),R(36,39)),vn=(R(37,39),R(90,39));R(40,49),R(41,49),R(42,49),R(43,49),R(44,49),R(45,49),R(46,49),R(47,49),R(100,49),R(91,39),R(92,39),R(93,39),R(94,39),R(95,39),R(96,39),R(97,39),R(101,49),R(102,49),R(103,49),R(104,49),R(105,49),R(106,49),R(107,49);function hs(t){if(typeof t!="string"||t.startsWith("file://"))return!1;try{return(0,Y.lstatSync)(t).isDirectory()}catch{return!1}}function ps(t,e=8){return((function(){if(Ot!==void 0)return Ot;try{return Ot=!!Ue().getFips?.(),Ot}catch{return Ot=!1,Ot}})()?Ue().createHash("sha256"):Ue().createHash("md5")).update(t).digest("hex").slice(0,e)}let ls={true:Lt("true"),false:he("false"),"[rebuild]":he("[rebuild]"),"[esm]":cs("[esm]"),"[cjs]":Lt("[cjs]"),"[import]":cs("[import]"),"[require]":Lt("[require]"),"[native]":yn("[native]"),"[transpile]":he("[transpile]"),"[fallback]":os("[fallback]"),"[unknown]":os("[unknown]"),"[hit]":Lt("[hit]"),"[miss]":he("[miss]"),"[json]":Lt("[json]"),"[data]":Lt("[data]")};function B(t,...e){if(!t.opts.debug)return;let i=process.cwd();console.log(vn(["[jiti]",...e.map(s=>s in ls?ls[s]:typeof s!="string"?JSON.stringify(s):s.replace(i,"."))].join(" ")))}function Et(t,e){return t.opts.interopDefault?(function(i){let s=typeof i;if(i===null||s!=="object"&&s!=="function")return i;let r=i.default,a=typeof r,o=r==null,c=a==="object"||a==="function";return o&&i instanceof Promise?i:new Proxy(i,{get(h,u,p){if(u==="__esModule")return!0;if(u==="default")return o?i:typeof r?.default=="function"&&i.__esModule?r.default:r;if(Reflect.has(h,u))return Reflect.get(h,u,p);if(c&&!(r instanceof Promise)){let g=Reflect.get(r,u,p);return typeof g=="function"&&(g=g.bind(r)),g}},apply:(h,u,p)=>typeof h=="function"?Reflect.apply(h,u,p):a==="function"?Reflect.apply(r,u,p):void 0})})(e):e}let Ot;function ct(t,e){return!!Dt(t,e)}function Dt(t,e){let i=process.env[t];if(!(t in process.env))return e;try{return JSON.parse(i)}catch{return e}}let us=/\.(c|m)?j(sx?)$/,fs=/\.(c|m)?t(sx?)$/;function Gt(t,e,i){let s,r;if(t.isNativeRe.test(e))return e;t.alias&&(e=(function(c,h){let u=Pt(c);h=is(h);for(let[p,g]of Object.entries(h)){if(!u.startsWith(p))continue;let m=ss(p)?p.slice(0,-1):p;if(ss(u[m.length]))return ut(g,u.slice(p.length))}return u})(e,t.alias));let a=i?.parentURL||t.url;hs(a)&&(a=ut(a,"_index.js"));let o=(i?.async?[i?.conditions,["node","import"],["node","require"]]:[i?.conditions,["node","require"],["node","import"]]).filter(Boolean);for(let c of o){try{s=Qr(e,{url:a,conditions:c,extensions:t.opts.extensions})}catch(h){r=h}if(s)return s}try{return t.nativeRequire.resolve(e,{paths:i.paths})}catch(c){r=c}for(let c of t.additionalExts)if(s=je(t,e+c,a,i)||je(t,e+"/index"+c,a,i),s||(fs.test(t.filename)||fs.test(t.parentModule?.filename||"")||us.test(e))&&(s=je(t,e.replace(us,".$1t$2"),a,i),s))return s;if(!i?.try)throw r}function je(t,e,i,s){try{return t.nativeRequire.resolve(e,{...s,paths:[se(qt(i)),...s?.paths||[]]})}catch{}}let ds=require("perf_hooks"),_n=require("vm");var bn=d.n(_n);function $e(t,e,i){let s=t.parentCache||{};if(e.startsWith("node:"))return wt(t,e,i.async);if(e.startsWith("file:"))e=(0,E.fileURLToPath)(e);else if(e.startsWith("data:")){if(!i.async)throw new Error("`data:` URLs are only supported in ESM context. Use `import` or `jiti.import` instead.");return B(t,"[native]","[data]","[import]",e),wt(t,e,!0)}if(At.builtinModules.includes(e)||e===".pnp.js")return wt(t,e,i.async);if(t.opts.tryNative&&!t.opts.transformOptions)try{if(!(e=Gt(t,e,i))&&i.try)return;if(B(t,"[try-native]",i.async&&t.nativeImport?"[import]":"[require]",e),i.async&&t.nativeImport)return t.nativeImport(e).then(c=>(t.opts.moduleCache===!1&&delete t.nativeRequire.cache[e],Et(t,c)));{let c=t.nativeRequire(e);return t.opts.moduleCache===!1&&delete t.nativeRequire.cache[e],Et(t,c)}}catch(c){B(t,`[try-native] Using fallback for ${e} because of an error:`,c)}let r=Gt(t,e,i);if(!r&&i.try)return;let a=Ti(r);if(a===".json"){B(t,"[json]",r);let c=t.nativeRequire(r);return c&&!("default"in c)&&Object.defineProperty(c,"default",{value:c,enumerable:!1}),c}if(a&&!t.opts.extensions.includes(a))return B(t,"[native]","[unknown]",i.async?"[import]":"[require]",r),wt(t,r,i.async);if(t.isNativeRe.test(r))return B(t,"[native]",i.async?"[import]":"[require]",r),wt(t,r,i.async);if(s[r])return Et(t,s[r]?.exports);if(t.opts.moduleCache){let c=t.nativeRequire.cache[r];if(c?.loaded)return Et(t,c.exports)}let o=(0,Y.readFileSync)(r,"utf8");return Be(t,o,{id:e,filename:r,ext:a,cache:s,async:i.async})}function wt(t,e,i){return i&&t.nativeImport?t.nativeImport((function(s){return ns&&vt(s)?Nt(s):s})(e)).then(s=>Et(t,s)):Et(t,t.nativeRequire(e))}let En="9";function wn(t,e,i){if(!t.opts.fsCache||!e.filename)return i();let s=` /* v${En}-${ps(e.source,16)} */
|
|
13
|
-
`,r=`${
|
|
14
|
-
});`})(e,{async:i.async});try{
|
|
15
|
-
${`${
|
|
16
|
-
`),
|
|
17
|
-
`)}catch{
|
|
18
|
-
`).filter(
|
|
19
|
-
`).map(
|
|
20
|
-
`)),await Promise.all(
|
|
15
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},k.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return`
|
|
16
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Ot(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 i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(e>=48&&e<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,e=this.input.charCodeAt(this.pos),s==="0"&&e!==56&&e!==57||!this.strict&&!t||this.invalidStringToken(this.pos-1-s.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return xt(e)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(e)}},k.readHexChar=function(t){var e=this.pos,i=this.readInt(16,t);return i===null&&this.invalidStringToken(e,"Bad character escape sequence"),i},k.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(B(r,s))this.pos+=r<=65535?1:2;else{if(r!==92)break;this.containsEsc=!0,t+=this.input.slice(i,this.pos);var o=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var c=this.readCodePoint();(e?ot:B)(c,s)||this.invalidStringToken(o,"Invalid Unicode escape"),t+=Ot(c),i=this.pos}e=!1}return t+this.input.slice(i,this.pos)},k.readWord=function(){var t=this.readWord1(),e=n.name;return this.keywords.test(t)&&(e=W[t]),this.finishToken(e,t)},dt.acorn={Parser:dt,version:"8.16.0",defaultOptions:re,Position:qt,SourceLocation:St,getLineInfo:Je,Node:jt,TokenType:$,tokTypes:n,keywordTypes:W,TokContext:Pt,tokContexts:ut,isIdentifierChar:B,isIdentifierStart:ot,Token:Mt,isNewLine:xt,lineBreak:it,lineBreakG:ft,nonASCIIwhitespace:Dt};var Y=w("node:module"),D=w("node:fs");String.fromCharCode;let Ue=/\/$|\/\?|\/#/,ai=/^\.?\//;function oi(t="",e){return e?Ue.test(t):t.endsWith("/")}function ci(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(oi(t,!0))return t||"/";let i=t,s="",r=t.indexOf("#");if(r!==-1&&(i=t.slice(0,r),s=t.slice(r),!i))return s;let[o,...c]=i.split("?");return o+"/"+(c.length>0?`?${c.join("?")}`:"")+s}function li(t){return t&&t!=="/"}function oe(t,...e){let i=t||"";for(let s of e.filter(r=>li(r)))if(i){let r=s.replace(ai,"");i=ci(i)+r}else i=s;return i}let Z=/^[A-Za-z]:\//;function gt(t=""){return t&&t.replace(/\\/g,"/").replace(Z,e=>e.toUpperCase())}let hi=/^[/\\]{2}/,_e=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,rs=/^[A-Za-z]:$/,Pr=/.(\.[^./]+|\.)$/,Lr=function(t){if(t.length===0)return".";let e=(t=gt(t)).match(hi),i=ce(t),s=t[t.length-1]==="/";return(t=ns(t,!i)).length===0?i?"/":s?"./":".":(s&&(t+="/"),rs.test(t)&&(t+="/"),e?i?`//${t}`:`//./${t}`:i&&!ce(t)?`/${t}`:t)},Ft=function(...t){let e="";for(let i of t)if(i)if(e.length>0){let s=e[e.length-1]==="/",r=i[0]==="/";e+=s&&r?i.slice(1):s||r?i:`/${i}`}else e+=i;return Lr(e)};function Or(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}let Nr=function(...t){let e="",i=!1;for(let s=(t=t.map(r=>gt(r))).length-1;s>=-1&&!i;s--){let r=s>=0?t[s]:Or();r&&r.length!==0&&(e=`${r}/${e}`,i=ce(r))}return e=ns(e,!i),i&&!ce(e)?`/${e}`:e.length>0?e:"."};function ns(t,e){let i="",s=0,r=-1,o=0,c=null;for(let l=0;l<=t.length;++l){if(l<t.length)c=t[l];else{if(c==="/")break;c="/"}if(c==="/"){if(!(r===l-1||o===1))if(o===2){if(i.length<2||s!==2||i[i.length-1]!=="."||i[i.length-2]!=="."){if(i.length>2){let f=i.lastIndexOf("/");f===-1?(i="",s=0):(i=i.slice(0,f),s=i.length-1-i.lastIndexOf("/")),r=l,o=0;continue}if(i.length>0){i="",s=0,r=l,o=0;continue}}e&&(i+=i.length>0?"/..":"..",s=2)}else i.length>0?i+=`/${t.slice(r+1,l)}`:i=t.slice(r+1,l),s=l-r-1;r=l,o=0}else c==="."&&o!==-1?++o:o=-1}return i}let ce=function(t){return _e.test(t)},Li=function(t){if(t==="..")return"";let e=Pr.exec(gt(t));return e&&e[1]||""},je=function(t){let e=gt(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&rs.test(e[0])&&(e[0]+="/"),e.join("/")||(ce(t)?"/":".")},Oi=function(t,e){let i=gt(t).split("/"),s="";for(let r=i.length-1;r>=0;r--){let o=i[r];if(o){s=o;break}}return e&&s.endsWith(e)?s.slice(0,-e.length):s},z=require("url"),Xt=require("assert"),le=require("process");var Ni=w("node:path");let Dr=require("v8"),pi=require("util"),as=new Set(Y.builtinModules);function Di(t){return t.replace(/\\/g,"/")}let Vr={}.hasOwnProperty,Ur=/^([A-Z][a-z\d]*)+$/,jr=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),At={};function Vi(t,e="and"){return t.length<3?t.join(` ${e} `):`${t.slice(0,-1).join(", ")}, ${e} ${t[t.length-1]}`}let os=new Map,cs;function Nt(t,e,i){return os.set(t,e),(function(s,r){return o;function o(...c){let l=Error.stackTraceLimit;Ui()&&(Error.stackTraceLimit=0);let f=new s;Ui()&&(Error.stackTraceLimit=l);let y=(function(m,I,b){let U=os.get(m);if(Xt.ok(U!==void 0,"expected `message` to be found"),typeof U=="function")return Xt.ok(U.length<=I.length,`Code: ${m}; The provided arguments length (${I.length}) does not match the required ones (${U.length}).`),Reflect.apply(U,b,I);let tt=/%[dfijoOs]/g,Et=0;for(;tt.exec(U)!==null;)Et++;return Xt.ok(Et===I.length,`Code: ${m}; The provided arguments length (${I.length}) does not match the required ones (${Et}).`),I.length===0?U:(I.unshift(U),Reflect.apply(pi.format,null,I))})(r,c,f);return Object.defineProperties(f,{message:{value:y,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${r}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),Mr(f),f.code=r,f}})(i,t)}function Ui(){try{if(Dr.startupSnapshot.isBuildingSnapshot())return!1}catch{}let t=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return t===void 0?Object.isExtensible(Error):Vr.call(t,"writable")&&t.writable!==void 0?t.writable:t.set!==void 0}At.ERR_INVALID_ARG_TYPE=Nt("ERR_INVALID_ARG_TYPE",(t,e,i)=>{Xt.ok(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let s="The ";if(t.endsWith(" argument"))s+=`${t} `;else{let l=t.includes(".")?"property":"argument";s+=`"${t}" ${l} `}s+="must be ";let r=[],o=[],c=[];for(let l of e)Xt.ok(typeof l=="string","All expected entries have to be of type string"),jr.has(l)?r.push(l.toLowerCase()):Ur.exec(l)===null?(Xt.ok(l!=="object",'The value "object" should be written as "Object"'),c.push(l)):o.push(l);if(o.length>0){let l=r.indexOf("object");l!==-1&&(r.slice(l,1),o.push("Object"))}return r.length>0&&(s+=`${r.length>1?"one of type":"of type"} ${Vi(r,"or")}`,(o.length>0||c.length>0)&&(s+=" or ")),o.length>0&&(s+=`an instance of ${Vi(o,"or")}`,c.length>0&&(s+=" or ")),c.length>0&&(c.length>1?s+=`one of ${Vi(c,"or")}`:(c[0].toLowerCase()!==c[0]&&(s+="an "),s+=`${c[0]}`)),s+=`. Received ${(function(l){if(l==null)return String(l);if(typeof l=="function"&&l.name)return`function ${l.name}`;if(typeof l=="object")return l.constructor&&l.constructor.name?`an instance of ${l.constructor.name}`:`${(0,pi.inspect)(l,{depth:-1})}`;let f=(0,pi.inspect)(l,{colors:!1});return f.length>28&&(f=`${f.slice(0,25)}...`),`type ${typeof l} (${f})`})(i)}`,s},TypeError),At.ERR_INVALID_MODULE_SPECIFIER=Nt("ERR_INVALID_MODULE_SPECIFIER",(t,e,i=void 0)=>`Invalid module "${t}" ${e}${i?` imported from ${i}`:""}`,TypeError),At.ERR_INVALID_PACKAGE_CONFIG=Nt("ERR_INVALID_PACKAGE_CONFIG",(t,e,i)=>`Invalid package config ${t}${e?` while importing ${e}`:""}${i?`. ${i}`:""}`,Error),At.ERR_INVALID_PACKAGE_TARGET=Nt("ERR_INVALID_PACKAGE_TARGET",(t,e,i,s=!1,r=void 0)=>{let o=typeof i=="string"&&!s&&i.length>0&&!i.startsWith("./");return e==="."?(Xt.ok(s===!1),`Invalid "exports" main target ${JSON.stringify(i)} defined in the package config ${t}package.json${r?` imported from ${r}`:""}${o?'; targets must start with "./"':""}`):`Invalid "${s?"imports":"exports"}" target ${JSON.stringify(i)} defined for '${e}' in the package config ${t}package.json${r?` imported from ${r}`:""}${o?'; targets must start with "./"':""}`},Error),At.ERR_MODULE_NOT_FOUND=Nt("ERR_MODULE_NOT_FOUND",(t,e,i=!1)=>`Cannot find ${i?"module":"package"} '${t}' imported from ${e}`,Error),At.ERR_NETWORK_IMPORT_DISALLOWED=Nt("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error),At.ERR_PACKAGE_IMPORT_NOT_DEFINED=Nt("ERR_PACKAGE_IMPORT_NOT_DEFINED",(t,e,i)=>`Package import specifier "${t}" is not defined${e?` in package ${e}package.json`:""} imported from ${i}`,TypeError),At.ERR_PACKAGE_PATH_NOT_EXPORTED=Nt("ERR_PACKAGE_PATH_NOT_EXPORTED",(t,e,i=void 0)=>e==="."?`No "exports" main defined in ${t}package.json${i?` imported from ${i}`:""}`:`Package subpath '${e}' is not defined by "exports" in ${t}package.json${i?` imported from ${i}`:""}`,Error),At.ERR_UNSUPPORTED_DIR_IMPORT=Nt("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),At.ERR_UNSUPPORTED_RESOLVE_REQUEST=Nt("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError),At.ERR_UNKNOWN_FILE_EXTENSION=Nt("ERR_UNKNOWN_FILE_EXTENSION",(t,e)=>`Unknown file extension "${t}" for ${e}`,TypeError),At.ERR_INVALID_ARG_VALUE=Nt("ERR_INVALID_ARG_VALUE",(t,e,i="is invalid")=>{let s=(0,pi.inspect)(e);return s.length>128&&(s=`${s.slice(0,128)}...`),`The ${t.includes(".")?"property":"argument"} '${t}' ${i}. Received ${s}`},TypeError);let Mr=(function(t){let e="__node_internal_"+t.name;return Object.defineProperty(t,"name",{value:e}),t})(function(t){let e=Ui();return e&&(cs=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(t),e&&(Error.stackTraceLimit=cs),t}),Me={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:Fr}=At,ls=new Map;function hs(t,{base:e,specifier:i}){let s=ls.get(t);if(s)return s;let r;try{r=D.readFileSync(Ni.toNamespacedPath(t),"utf8")}catch(c){let l=c;if(l.code!=="ENOENT")throw l}let o={exists:!1,pjsonPath:t,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(r!==void 0){let c;try{c=JSON.parse(r)}catch(l){let f=l,y=new Fr(t,(e?`"${i}" from `:"")+(0,z.fileURLToPath)(e||i),f.message);throw y.cause=f,y}o.exists=!0,Me.call(c,"name")&&typeof c.name=="string"&&(o.name=c.name),Me.call(c,"main")&&typeof c.main=="string"&&(o.main=c.main),Me.call(c,"exports")&&(o.exports=c.exports),Me.call(c,"imports")&&(o.imports=c.imports),!Me.call(c,"type")||c.type!=="commonjs"&&c.type!=="module"||(o.type=c.type)}return ls.set(t,o),o}function ji(t){let e=new URL("package.json",t);for(;!e.pathname.endsWith("node_modules/package.json");){let i=hs((0,z.fileURLToPath)(e),{specifier:t});if(i.exists)return i;let s=e;if(e=new URL("../package.json",e),e.pathname===s.pathname)break}return{pjsonPath:(0,z.fileURLToPath)(e),exists:!1,type:"none"}}function ps(t){return ji(t).type}let{ERR_UNKNOWN_FILE_EXTENSION:$r}=At,Br={}.hasOwnProperty,Wr={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"},us={__proto__:null,"data:":function(t){let{1:e}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(t.pathname)||[null,null,null];return(function(i){return i&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(i)?"module":i==="application/json"?"json":null})(e)},"file:":function(t,e,i){let s=(function(c){let l=c.pathname,f=l.length;for(;f--;){let y=l.codePointAt(f);if(y===47)return"";if(y===46)return l.codePointAt(f-1)===47?"":l.slice(f)}return""})(t);if(s===".js"){let c=ps(t);return c!=="none"?c:"commonjs"}if(s===""){let c=ps(t);return c==="none"||c==="commonjs"?"commonjs":"module"}let r=Wr[s];if(r)return r;if(i)return;let o=(0,z.fileURLToPath)(t);throw new $r(s,o)},"http:":fs,"https:":fs,"node:":()=>"builtin"};function fs(){}let qr=Object.freeze(["node","import"]),Gr=new Set(qr);function Hr(t){return Gr}let ui=RegExp.prototype[Symbol.replace],{ERR_INVALID_MODULE_SPECIFIER:fi,ERR_INVALID_PACKAGE_CONFIG:ds,ERR_INVALID_PACKAGE_TARGET:Kr,ERR_MODULE_NOT_FOUND:ms,ERR_PACKAGE_IMPORT_NOT_DEFINED:Jr,ERR_PACKAGE_PATH_NOT_EXPORTED:zr,ERR_UNSUPPORTED_DIR_IMPORT:Yr,ERR_UNSUPPORTED_RESOLVE_REQUEST:gs}=At,xs={}.hasOwnProperty,ys=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,vs=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,Qr=/^\.|%|\\/,di=/\*/g,Xr=/%2f|%5c/i,_s=new Set,Zr=/[/\\]{2}/;function Es(t,e,i,s,r,o,c){if(le.noDeprecation)return;let l=(0,z.fileURLToPath)(s),f=Zr.exec(c?t:e)!==null;le.emitWarning(`Use of deprecated ${f?"double slash":"leading or trailing slash matching"} resolving "${t}" for module request "${e}" ${e===i?"":`matched to "${i}" `}in the "${r?"imports":"exports"}" field module resolution of the package at ${l}${o?` imported from ${(0,z.fileURLToPath)(o)}`:""}.`,"DeprecationWarning","DEP0166")}function bs(t,e,i,s){if(le.noDeprecation||(function(f,y){let m=f.protocol;return Br.call(us,m)&&us[m](f,y,!0)||null})(t,{parentURL:i.href})!=="module")return;let o=(0,z.fileURLToPath)(t.href),c=(0,z.fileURLToPath)(new URL(".",e)),l=(0,z.fileURLToPath)(i);s?Ni.resolve(c,s)!==o&&le.emitWarning(`Package ${c} has a "main" field set to "${s}", excluding the full filename and extension to the resolved file at "${o.slice(c.length)}", imported from ${l}.
|
|
17
|
+
Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):le.emitWarning(`No "main" or "exports" field defined in the package.json for ${c} resolving the main entry point "${o.slice(c.length)}", imported from ${l}.
|
|
18
|
+
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function ws(t){try{return(0,D.statSync)(t)}catch{}}function Mi(t){let e=(0,D.statSync)(t,{throwIfNoEntry:!1}),i=e?e.isFile():void 0;return i!=null&&i}function tn(t,e,i){let s;if(e.main!==void 0){if(s=new URL(e.main,t),Mi(s))return s;let c=[`./${e.main}.js`,`./${e.main}.json`,`./${e.main}.node`,`./${e.main}/index.js`,`./${e.main}/index.json`,`./${e.main}/index.node`],l=-1;for(;++l<c.length&&(s=new URL(c[l],t),!Mi(s));)s=void 0;if(s)return bs(s,t,i,e.main),s}let r=["./index.js","./index.json","./index.node"],o=-1;for(;++o<r.length&&(s=new URL(r[o],t),!Mi(s));)s=void 0;if(s)return bs(s,t,i,e.main),s;throw new ms((0,z.fileURLToPath)(new URL(".",t)),(0,z.fileURLToPath)(i))}function Fi(t,e,i){return new zr((0,z.fileURLToPath)(new URL(".",e)),t,i&&(0,z.fileURLToPath)(i))}function Fe(t,e,i,s,r){return e=typeof e=="object"&&e!==null?JSON.stringify(e,null,""):`${e}`,new Kr((0,z.fileURLToPath)(new URL(".",i)),t,e,s,r&&(0,z.fileURLToPath)(r))}function en(t,e,i,s,r,o,c,l,f){if(e!==""&&!o&&t[t.length-1]!=="/")throw Fe(i,t,s,c,r);if(!t.startsWith("./")){if(c&&!t.startsWith("../")&&!t.startsWith("/")){let b=!1;try{new URL(t),b=!0}catch{}if(!b)return Ss(o?ui.call(di,t,()=>e):t+e,s,f)}throw Fe(i,t,s,c,r)}if(ys.exec(t.slice(2))!==null){if(vs.exec(t.slice(2))!==null)throw Fe(i,t,s,c,r);if(!l){let b=o?i.replace("*",()=>e):i+e;Es(o?ui.call(di,t,()=>e):t,b,i,s,c,r,!0)}}let y=new URL(t,s),m=y.pathname,I=new URL(".",s).pathname;if(!m.startsWith(I))throw Fe(i,t,s,c,r);if(e==="")return y;if(ys.exec(e)!==null){let b=o?i.replace("*",()=>e):i+e;vs.exec(e)===null?l||Es(o?ui.call(di,t,()=>e):t,b,i,s,c,r,!1):(function(U,tt,Et,J,et){let G=`request is not a valid match in pattern "${tt}" for the "${J?"imports":"exports"}" resolution of ${(0,z.fileURLToPath)(Et)}`;throw new fi(U,G,et&&(0,z.fileURLToPath)(et))})(b,i,s,c,r)}return o?new URL(ui.call(di,y.href,()=>e)):new URL(e,y)}function sn(t){let e=Number(t);return`${e}`===t&&e>=0&&e<4294967295}function Ee(t,e,i,s,r,o,c,l,f){if(typeof e=="string")return en(e,i,s,t,r,o,c,l,f);if(Array.isArray(e)){let y=e;if(y.length===0)return null;let m,I=-1;for(;++I<y.length;){let b=y[I],U;try{U=Ee(t,b,i,s,r,o,c,l,f)}catch(tt){if(m=tt,tt.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw tt}if(U!==void 0){if(U!==null)return U;m=null}}if(m==null)return null;throw m}if(typeof e=="object"&&e!==null){let y=Object.getOwnPropertyNames(e),m=-1;for(;++m<y.length;)if(sn(y[m]))throw new ds((0,z.fileURLToPath)(t),r,'"exports" cannot contain numeric property keys.');for(m=-1;++m<y.length;){let I=y[m];if(I==="default"||f&&f.has(I)){let b=Ee(t,e[I],i,s,r,o,c,l,f);if(b===void 0)continue;return b}}return null}if(e===null)return null;throw Fe(s,e,t,c,r)}function rn(t,e,i){if(le.noDeprecation)return;let s=(0,z.fileURLToPath)(e);_s.has(s+"|"+t)||(_s.add(s+"|"+t),le.emitWarning(`Use of deprecated trailing slash pattern mapping "${t}" in the "exports" field module resolution of the package at ${s}${i?` imported from ${(0,z.fileURLToPath)(i)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function Cs(t,e,i,s,r){let o=i.exports;if((function(m,I,b){if(typeof m=="string"||Array.isArray(m))return!0;if(typeof m!="object"||m===null)return!1;let U=Object.getOwnPropertyNames(m),tt=!1,Et=0,J=-1;for(;++J<U.length;){let et=U[J],G=et===""||et[0]!==".";if(Et++===0)tt=G;else if(tt!==G)throw new ds((0,z.fileURLToPath)(I),b,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return tt})(o,t,s)&&(o={".":o}),xs.call(o,e)&&!e.includes("*")&&!e.endsWith("/")){let m=Ee(t,o[e],"",e,s,!1,!1,!1,r);if(m==null)throw Fi(e,t,s);return m}let c="",l="",f=Object.getOwnPropertyNames(o),y=-1;for(;++y<f.length;){let m=f[y],I=m.indexOf("*");if(I!==-1&&e.startsWith(m.slice(0,I))){e.endsWith("/")&&rn(e,t,s);let b=m.slice(I+1);e.length>=m.length&&e.endsWith(b)&&ks(c,m)===1&&m.lastIndexOf("*")===I&&(c=m,l=e.slice(I,e.length-b.length))}}if(c){let m=Ee(t,o[c],l,c,s,!0,!1,e.endsWith("/"),r);if(m==null)throw Fi(e,t,s);return m}throw Fi(e,t,s)}function ks(t,e){let i=t.indexOf("*"),s=e.indexOf("*"),r=i===-1?t.length:i+1,o=s===-1?e.length:s+1;return r>o?-1:o>r||i===-1?1:s===-1||t.length>e.length?-1:e.length>t.length?1:0}function nn(t,e,i){if(t==="#"||t.startsWith("#/")||t.endsWith("/"))throw new fi(t,"is not a valid internal imports specifier name",(0,z.fileURLToPath)(e));let s,r=ji(e);if(r.exists){s=(0,z.pathToFileURL)(r.pjsonPath);let o=r.imports;if(o)if(xs.call(o,t)&&!t.includes("*")){let c=Ee(s,o[t],"",t,e,!1,!0,!1,i);if(c!=null)return c}else{let c="",l="",f=Object.getOwnPropertyNames(o),y=-1;for(;++y<f.length;){let m=f[y],I=m.indexOf("*");if(I!==-1&&t.startsWith(m.slice(0,-1))){let b=m.slice(I+1);t.length>=m.length&&t.endsWith(b)&&ks(c,m)===1&&m.lastIndexOf("*")===I&&(c=m,l=t.slice(I,t.length-b.length))}}if(c){let m=Ee(s,o[c],l,c,e,!0,!0,!1,i);if(m!=null)return m}}}throw(function(o,c,l){return new Jr(o,c&&(0,z.fileURLToPath)(new URL(".",c)),(0,z.fileURLToPath)(l))})(t,s,e)}function Ss(t,e,i){if(Y.builtinModules.includes(t))return new URL("node:"+t);let{packageName:s,packageSubpath:r,isScoped:o}=(function(m,I){let b=m.indexOf("/"),U=!0,tt=!1;m[0]==="@"&&(tt=!0,b===-1||m.length===0?U=!1:b=m.indexOf("/",b+1));let Et=b===-1?m:m.slice(0,b);if(Qr.exec(Et)!==null&&(U=!1),!U)throw new fi(m,"is not a valid package name",(0,z.fileURLToPath)(I));return{packageName:Et,packageSubpath:"."+(b===-1?"":m.slice(b)),isScoped:tt}})(t,e),c=ji(e);if(c.exists){let m=(0,z.pathToFileURL)(c.pjsonPath);if(c.name===s&&c.exports!==void 0&&c.exports!==null)return Cs(m,r,c,e,i)}let l,f=new URL("./node_modules/"+s+"/package.json",e),y=(0,z.fileURLToPath)(f);do{let m=ws(y.slice(0,-13));if(!m||!m.isDirectory()){l=y,f=new URL((o?"../../../../node_modules/":"../../../node_modules/")+s+"/package.json",f),y=(0,z.fileURLToPath)(f);continue}let I=hs(y,{base:e,specifier:t});return I.exports!==void 0&&I.exports!==null?Cs(f,r,I,e,i):r==="."?tn(f,I,e):new URL(r,f)}while(y.length!==l.length)}function an(t,e,i,s){i===void 0&&(i=Hr());let r=e.protocol,o=r==="data:"||r==="http:"||r==="https:",c;if((function(l){return l!==""&&(l[0]==="/"||(function(f){return f[0]==="."&&(f.length===1||f[1]==="/"||f[1]==="."&&(f.length===2||f[2]==="/"))})(l))})(t))try{c=new URL(t,e)}catch(l){let f=new gs(t,e);throw f.cause=l,f}else if(r==="file:"&&t[0]==="#")c=nn(t,e,i);else try{c=new URL(t)}catch(l){if(o&&!Y.builtinModules.includes(t)){let f=new gs(t,e);throw f.cause=l,f}c=Ss(t,e,i)}return Xt.ok(c!==void 0,"expected to be defined"),c.protocol!=="file:"?c:(function(l,f){if(Xr.exec(l.pathname)!==null)throw new fi(l.pathname,'must not include encoded "/" or "\\" characters',(0,z.fileURLToPath)(f));let y;try{y=(0,z.fileURLToPath)(l)}catch(I){let b=I;throw Object.defineProperty(b,"input",{value:String(l)}),Object.defineProperty(b,"module",{value:String(f)}),b}let m=ws(y.endsWith("/")?y.slice(-1):y);if(m&&m.isDirectory()){let I=new Yr(y,(0,z.fileURLToPath)(f));throw I.url=String(l),I}if(!m||!m.isFile()){let I=new ms(y||l.pathname,f&&(0,z.fileURLToPath)(f),!0);throw I.url=String(l),I}{let I=(0,D.realpathSync)(y),{search:b,hash:U}=l;(l=(0,z.pathToFileURL)(I+(y.endsWith(Ni.sep)?"/":""))).search=b,l.hash=U}return l})(c,e)}function be(t){return typeof t!="string"||t.startsWith("file://")?Di((0,z.fileURLToPath)(t)):Di(t)}function he(t){return(0,z.pathToFileURL)(be(t)).toString()}let on=new Set(["node","import"]),cn=[".mjs",".cjs",".js",".json"],ln=new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function Is(t,e,i){try{return an(t,e,i)}catch(s){if(!ln.has(s?.code))throw s}}function hn(t,e={}){if(typeof t!="string"){if(!(t instanceof URL))throw new TypeError("input must be a `string` or `URL`");t=be(t)}if(/(?:node|data|http|https):/.test(t))return t;if(as.has(t))return"node:"+t;if(t.startsWith("file://")&&(t=be(t)),ce(t))try{if((0,D.statSync)(t).isFile())return he(t)}catch(c){if(c?.code!=="ENOENT")throw c}let i=e.conditions?new Set(e.conditions):on,s=(Array.isArray(e.url)?e.url:[e.url]).filter(Boolean).map(c=>new URL((function(l){return typeof l!="string"&&(l=l.toString()),/(?:node|data|http|https|file):/.test(l)?l:as.has(l)?"node:"+l:"file://"+encodeURI(Di(l))})(c.toString())));s.length===0&&s.push(new URL(he(process.cwd())));let r=[...s];for(let c of s)c.protocol==="file:"&&r.push(new URL("./",c),new URL(oe(c.pathname,"_index.js"),c),new URL("node_modules",c));let o;for(let c of r){if(o=Is(t,c,i),o)break;for(let l of["","/index"]){for(let f of e.extensions||cn)if(o=Is(oe(t,l)+f,c,i),o)break;if(o)break}if(o)break}if(!o){let c=new Error(`Cannot find module ${t} imported from ${r.join(", ")}`);throw c.code="ERR_MODULE_NOT_FOUND",c}return he(o)}function pn(t,e){return hn(t,e)}function un(t,e){return be(pn(t,e))}let fn=/(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m,dn=/\/\*.+?\*\/|\/\/.*(?=[nr])/g;function mn(t,e={}){return e.stripComments&&(t=t.replace(dn,"")),fn.test(t)}function As(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}let gn=new Set(["/","\\",void 0]),Ts=Symbol.for("pathe:normalizedAlias"),xn=/[/\\]/;function Rs(t){if(t[Ts])return t;let e=Object.fromEntries(Object.entries(t).sort(([i],[s])=>(function(r,o){return o.split("/").length-r.split("/").length})(i,s)));for(let i in e)for(let s in e)s===i||i.startsWith(s)||e[i]?.startsWith(s)&&gn.has(e[i][s.length])&&(e[i]=e[s]+e[i].slice(s.length));return Object.defineProperty(e,Ts,{value:!0,enumerable:!1}),e}function Ps(t="/"){let e=t[t.length-1];return e==="/"||e==="\\"}var yn={rE:"2.6.1"};let vn=require("crypto");var $i=w.n(vn);let Tt=globalThis.process?.env||Object.create(null),Zt=globalThis.process||{env:Tt},mi=Zt!==void 0&&Zt.env&&Zt.env.NODE_ENV||void 0,_n=[["claude",["CLAUDECODE","CLAUDE_CODE"]],["replit",["REPL_ID"]],["gemini",["GEMINI_CLI"]],["codex",["CODEX_SANDBOX","CODEX_THREAD_ID"]],["opencode",["OPENCODE"]],["pi",[Bi("PATH",/\.pi[\\/]agent/)]],["auggie",["AUGMENT_AGENT"]],["goose",["GOOSE_PROVIDER"]],["devin",[Bi("EDITOR",/devin/)]],["cursor",["CURSOR_AGENT"]],["kiro",[Bi("TERM_PROGRAM",/kiro/)]]];function Bi(t,e){return()=>{let i=Tt[t];return!!i&&e.test(i)}}let Ls=(function(){let t=Tt.AI_AGENT;if(t)return{name:t.toLowerCase()};for(let[e,i]of _n)for(let s of i)if(typeof s=="string"?Tt[s]:s())return{name:e};return{}})(),En=(Ls.name,Ls.name,[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:!0}],["GOOGLE_CLOUDRUN","K_SERVICE"],["GOOGLE_CLOUDRUN_JOB","CLOUD_RUN_JOB"],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["JENKINS","JENKINS_URL"],["HUDSON","HUDSON_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOY"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}],["EDGEONE_PAGES","EO_PAGES_CI",{ci:!0}]]),Os=(function(){for(let t of En)if(Tt[t[1]||t[0]])return{name:t[0].toLowerCase(),...t[2]};return Tt.SHELL==="/bin/jsh"&&Zt.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}})(),Wi=(Os.name,Zt.platform||""),oa=!!Tt.CI||Os.ci!==!1,bn=!!Zt.stdout?.isTTY,ca=(Tt.DEBUG,mi==="test"||!!Tt.TEST),Ns=(mi==="production"||Tt.MODE,mi==="dev"||mi==="development"||Tt.MODE,Tt.MINIMAL,/^win/i.test(Wi)),wn=(/^linux/i.test(Wi),/^darwin/i.test(Wi),!Tt.NO_COLOR&&(Tt.FORCE_COLOR||(bn||Ns)&&Tt.TERM),(Zt.versions?.node||"").replace(/^v/,"")||null),Cn=(Number(wn?.split(".")[0]),!!Zt?.versions?.node),kn="Bun"in globalThis,Sn="Deno"in globalThis,In="fastly"in globalThis,An=[["Netlify"in globalThis,"netlify"],["EdgeRuntime"in globalThis,"edge-light"],[globalThis.navigator?.userAgent==="Cloudflare-Workers","workerd"],[In,"fastly"],[Sn,"deno"],[kn,"bun"],[Cn,"node"]];(function(){let t=An.find(e=>e[0]);t&&t[1]})();let Tn=require("tty"),Rn=Tn?.WriteStream?.prototype?.hasColors?.()??!1,H=(t,e)=>{if(!Rn)return r=>r;let i=`\x1B[${t}m`,s=`\x1B[${e}m`;return r=>{let o=r+"",c=o.indexOf(s);if(c===-1)return i+o+s;let l=i,f=0,y=(e===22?s:"")+i;for(;c!==-1;)l+=o.slice(f,c)+y,f=c+s.length,c=o.indexOf(s,f);return l+=o.slice(f)+s,l}},Ds=(H(0,0),H(1,22),H(2,22),H(3,23),H(4,24),H(53,55),H(7,27),H(8,28),H(9,29),H(30,39),H(31,39)),we=H(32,39),gi=H(33,39),Vs=H(34,39),Pn=(H(35,39),H(36,39)),Ln=(H(37,39),H(90,39));H(40,49),H(41,49),H(42,49),H(43,49),H(44,49),H(45,49),H(46,49),H(47,49),H(100,49),H(91,39),H(92,39),H(93,39),H(94,39),H(95,39),H(96,39),H(97,39),H(101,49),H(102,49),H(103,49),H(104,49),H(105,49),H(106,49),H(107,49);function Us(t){if(typeof t!="string"||t.startsWith("file://"))return!1;try{return(0,D.lstatSync)(t).isDirectory()}catch{return!1}}function js(t,e=8){return((function(){if(Ce!==void 0)return Ce;try{return Ce=!!$i().getFips?.(),Ce}catch{return Ce=!1,Ce}})()?$i().createHash("sha256"):$i().createHash("md5")).update(t).digest("hex").slice(0,e)}let Ms={true:we("true"),false:gi("false"),"[rebuild]":gi("[rebuild]"),"[esm]":Vs("[esm]"),"[cjs]":we("[cjs]"),"[import]":Vs("[import]"),"[require]":we("[require]"),"[native]":Pn("[native]"),"[transpile]":gi("[transpile]"),"[fallback]":Ds("[fallback]"),"[unknown]":Ds("[unknown]"),"[hit]":we("[hit]"),"[miss]":gi("[miss]"),"[json]":we("[json]"),"[data]":we("[data]")};function vt(t,...e){if(!t.opts.debug)return;let i=process.cwd();console.log(Ln(["[jiti]",...e.map(s=>s in Ms?Ms[s]:typeof s!="string"?JSON.stringify(s):s.replace(i,"."))].join(" ")))}function Kt(t,e){return t.opts.interopDefault?(function(i){let s=typeof i;if(i===null||s!=="object"&&s!=="function")return i;let r=i.default,o=typeof r,c=r==null,l=o==="object"||o==="function";if(c&&i instanceof Promise)return i;let f=o==="function"&&s!=="function",y=l&&!(r instanceof Promise),m=new Map;return new Proxy(i,{get(I,b){if(m.has(b))return m.get(b);let U;return b==="__esModule"?U=!0:b==="default"?U=c?i:typeof r?.default=="function"&&i.__esModule?r.default:r:b in I?U=I[b]:y&&(U=r[b],typeof U=="function"&&(U=U.bind(r))),m.set(b,U),U},apply:f?(I,b,U)=>Reflect.apply(r,b,U):void 0})})(e):e}let Ce;function $t(t,e){return!!pe(t,e)}function pe(t,e,i){let s=process.env[t];if(!(t in process.env))return e;try{return JSON.parse(s)}catch{return i?s:e}}let Fs=/\.(c|m)?j(sx?)$/,$s=/\.(c|m)?t(sx?)$/;function ke(t,e,i){let s,r;if(t.isNativeRe.test(e))return e;if(t.resolveTsConfigPaths&&!i.skipTsConfigPaths){let l=t.resolveTsConfigPaths(e);for(let f of l){let y=ke(t,f,{...i,try:!0,skipTsConfigPaths:!0});if(y)return y}}t.alias&&(e=(function(l,f){let y=gt(l);f=Rs(f);for(let[m,I]of Object.entries(f)){if(!y.startsWith(m))continue;let b=Ps(m)?m.slice(0,-1):m;if(Ps(y[b.length]))return Ft(I,y.slice(m.length))}return y})(e,t.alias));let o=i?.parentURL||t.url;Us(o)&&(o=Ft(o,"_index.js"));let c=(i?.async?[i?.conditions,["node","import"],["node","require"]]:[i?.conditions,["node","require"],["node","import"]]).filter(Boolean);for(let l of c){try{s=un(e,{url:o,conditions:l,extensions:t.opts.extensions})}catch(f){r=f}if(s)return s}try{return t.nativeRequire.resolve(e,{paths:i.paths})}catch(l){r=l}for(let l of t.additionalExts)if(s=qi(t,e+l,o,i)||qi(t,e+"/index"+l,o,i),s||($s.test(t.filename)||$s.test(t.parentModule?.filename||"")||Fs.test(e))&&(s=qi(t,e.replace(Fs,".$1t$2"),o,i),s))return s;if(!i?.try)throw r}function qi(t,e,i,s){try{return t.nativeRequire.resolve(e,{...s,paths:[je(be(i)),...s?.paths||[]]})}catch{}}let On=require("fs/promises"),Bs=require("perf_hooks"),Nn=require("vm");var Dn=w.n(Nn);function xi(t,e,i){let s=t.parentCache||{};if(e.startsWith("node:"))return ue(t,e,i.async);if(e.startsWith("file:"))e=(0,z.fileURLToPath)(e);else if(e.startsWith("data:")){if(!i.async)throw new Error("`data:` URLs are only supported in ESM context. Use `import` or `jiti.import` instead.");return vt(t,"[native]","[data]","[import]",e),ue(t,e,!0)}if(Y.builtinModules.includes(e)||e===".pnp.js")return ue(t,e,i.async);if(t.opts.virtualModules&&e in t.opts.virtualModules){vt(t,"[virtual]",e);let l=t.opts.virtualModules[e];return i.async?Promise.resolve(Kt(t,l)):Kt(t,l)}if(t.opts.tryNative&&!t.opts.transformOptions)try{if(!(e=ke(t,e,i))&&i.try)return;if(vt(t,"[try-native]",i.async&&t.nativeImport?"[import]":"[require]",e),i.async&&t.nativeImport)return t.nativeImport(e).then(l=>(t.opts.moduleCache===!1&&delete t.nativeRequire.cache[e],Kt(t,l))).catch(l=>(vt(t,`[try-native] Using fallback for ${e} because of an error:`,l),xi({...t,opts:{...t.opts,tryNative:!1}},e,i)));{let l=t.nativeRequire(e);return t.opts.moduleCache===!1&&delete t.nativeRequire.cache[e],Kt(t,l)}}catch(l){vt(t,`[try-native] Using fallback for ${e} because of an error:`,l)}let r=ke(t,e,i);if(!r&&i.try)return;let o=Li(r);if(o===".json"){vt(t,"[json]",r);let l=t.nativeRequire(r);return l&&!("default"in l)&&Object.defineProperty(l,"default",{value:l,enumerable:!1}),l}if(o&&!t.opts.extensions.includes(o))return vt(t,"[native]","[unknown]",i.async?"[import]":"[require]",r),ue(t,r,i.async);if(t.isNativeRe.test(r))return vt(t,"[native]",i.async?"[import]":"[require]",r),ue(t,r,i.async);if(s[r])return Kt(t,s[r]?.exports);if(t.opts.moduleCache){let l=t.nativeRequire.cache[r];if(l?.loaded)return Kt(t,l.exports)}let c=(0,D.readFileSync)(r,"utf8");return Hi(t,c,{id:e,filename:r,ext:o,cache:s,async:i.async})}function ue(t,e,i){return i&&t.nativeImport?t.nativeImport((function(s){return Ns&&ce(s)?he(s):s})(e)).then(s=>Kt(t,s)):Kt(t,t.nativeRequire(e))}let Vn="9";function Un(t,e,i){if(!t.opts.fsCache||!e.filename)return i();let s=` /* v${Vn}-${js(e.source,16)} */
|
|
19
|
+
`,r=`${Oi(je(e.filename))}-${(function(f){let y=f.split(xn).pop();if(!y)return;let m=y.lastIndexOf(".");return m<=0?y:y.slice(0,m)})(e.filename)}`+(t.opts.sourceMaps?"+map":"")+(e.interopDefault?".i":"")+`.${js(e.filename)}`+(e.async?".mjs":".cjs");e.jsx&&e.filename.endsWith("x")&&(r+="x");let o=t.opts.fsCache,c=Ft(o,r);if(!t.opts.rebuildFsCache&&(0,D.existsSync)(c)){let f=(0,D.readFileSync)(c,"utf8");if(f.endsWith(s))return vt(t,"[cache]","[hit]",e.filename,"~>",c),f}vt(t,"[cache]","[miss]",e.filename);let l=i();return l.includes("__JITI_ERROR__")||((0,D.writeFileSync)(c,l+s,"utf8"),vt(t,"[cache]","[store]",e.filename,"~>",c)),l}function jn(t){if(t.opts.fsCache===!0&&(t.opts.fsCache=(function(e){let i=e.filename&&Nr(e.filename,"../node_modules");if(i&&(0,D.existsSync)(i))return Ft(i,".cache/jiti");let s=(0,S.tmpdir)();if(process.env.TMPDIR&&s===process.cwd()&&!process.env.JITI_RESPECT_TMPDIR_ENV){let r=process.env.TMPDIR;delete process.env.TMPDIR,s=(0,S.tmpdir)(),process.env.TMPDIR=r}return Ft(s,"jiti")})(t)),t.opts.fsCache)try{if((0,D.mkdirSync)(t.opts.fsCache,{recursive:!0}),!(function(e){try{return(0,D.accessSync)(e,D.constants.W_OK),!0}catch{return!1}})(t.opts.fsCache))throw new Error("directory is not writable!")}catch(e){vt(t,"Error creating cache directory at ",t.opts.fsCache,e),t.opts.fsCache=!1}}function Gi(t,e){let i=Un(t,e,()=>{let s=t.opts.transform({...t.opts.transformOptions,babel:{...t.opts.sourceMaps?{sourceFileName:e.filename,sourceMaps:"inline"}:{},...t.opts.transformOptions?.babel},interopDefault:t.opts.interopDefault,...e});return s.error&&t.opts.debug&&vt(t,s.error),s.code});return i.startsWith("#!")&&(i="// "+i),i}function Hi(t,e,i={}){let s=i.id||(i.filename?Oi(i.filename):`_jitiEval.${i.ext||(i.async?"mjs":"js")}`),r=i.filename||ke(t,s,{async:i.async}),o=i.ext||Li(r),c=i.cache||t.parentCache||{},l=/\.[cm]?tsx?$/.test(o),f=o===".mjs"||o===".js"&&(function(G){for(;G&&G!=="."&&G!=="/";){G=Ft(G,"..");try{let fe=(0,D.readFileSync)(Ft(G,"package.json"),"utf8");try{return JSON.parse(fe)}catch{}break}catch{}}})(r)?.type==="module",y=o===".cjs",m=i.forceTranspile??(!y&&!(f&&i.async)&&(l||f||t.isTransformRe.test(r)||mn(e))),I=Bs.performance.now();if(m){e=Gi(t,{filename:r,source:e,ts:l,async:i.async??!1,jsx:t.opts.jsx});let G=Math.round(1e3*(Bs.performance.now()-I))/1e3;vt(t,"[transpile]",i.async?"[esm]":"[cjs]",r,`(${G}ms)`)}else{if(vt(t,"[native]",i.async?"[import]":"[require]",r),i.async)return Promise.resolve(ue(t,r,i.async)).catch(G=>(vt(t,"Native import error:",G),vt(t,"[fallback]",r),Hi(t,e,{...i,forceTranspile:!0})));try{return ue(t,r,i.async)}catch(G){vt(t,"Native require error:",G),vt(t,"[fallback]",r),e=Gi(t,{filename:r,source:e,ts:l,async:i.async??!1,jsx:t.opts.jsx})}}let b=new Y.Module(r);b.filename=r,t.parentModule&&(b.parent=t.parentModule,Array.isArray(t.parentModule.children)&&!t.parentModule.children.includes(b)&&t.parentModule.children.push(b));let U=Ws(r,t.opts,{parentModule:b,parentCache:c,nativeImport:t.nativeImport,onError:t.onError,createRequire:t.createRequire},!0),tt;b.require=U,b.path=je(r),b.paths=Y.Module._nodeModulePaths(b.path),c[r]=b,t.opts.moduleCache&&(t.nativeRequire.cache[r]=b);let Et=(function(G,fe){return`(${fe?.async?"async ":""}function (exports, require, module, __filename, __dirname, jitiImport, jitiESMResolve) { ${G}
|
|
20
|
+
});`})(e,{async:i.async});try{tt=Dn().runInThisContext(Et,{filename:r,lineOffset:0,displayErrors:!1})}catch(G){G.name==="SyntaxError"&&i.async&&t.nativeImport?(vt(t,"[esm]","[import]","[fallback]",r),tt=(function(fe,Ki,Ji,yi,vi){let qs=`export default ${Ki}`,Gs=vi?void 0:`data:text/javascript;base64,${Buffer.from(qs).toString("base64")}`;return(...Fn)=>{let $e,Hs=()=>($e=(function(Se,Ks){let Js=Ft((0,S.tmpdir)(),"jiti-esm");try{(0,D.mkdirSync)(Js,{recursive:!0})}catch{}let zs=Ft(Js,`${Oi(Ks,Li(Ks))}-${Date.now()}-${Math.random().toString(36).slice(2)}.mjs`);return(0,D.writeFileSync)(zs,Se),zs})(qs,Ji),vt(fe,"[esm]","[tempfile]",$e),yi(he($e)));return(Gs?yi(Gs).catch(Se=>{if(Se?.code!=="ENAMETOOLONG")throw Se;return Hs()}):Hs()).then(Se=>Se.default(...Fn)).finally(()=>{$e&&(0,On.unlink)($e).catch(()=>{})})}})(t,Et,r,t.nativeImport,t.opts.esmEvalTempFile)):(t.opts.moduleCache&&delete t.nativeRequire.cache[r],t.onError(G))}let J;try{J=tt(b.exports,b.require,b,b.filename,je(b.filename),U.import,U.esmResolve)}catch(G){t.opts.moduleCache&&delete t.nativeRequire.cache[r],t.onError(G)}function et(){if(b.exports&&b.exports.__JITI_ERROR__){let{filename:G,line:fe,column:Ki,code:Ji,message:yi}=b.exports.__JITI_ERROR__,vi=new Error(`${Ji}: ${yi}
|
|
21
|
+
${`${G}:${fe}:${Ki}`}`);Error.captureStackTrace(vi,xi),t.onError(vi)}return b.loaded=!0,Kt(t,b.exports)}return i.async?Promise.resolve(J).then(et):et()}let Mn=(0,S.platform)()==="win32";function Ws(t,e={},i,s=!1){let r=s?e:(function(J){let et={fsCache:$t("JITI_FS_CACHE",$t("JITI_CACHE",!0)),rebuildFsCache:$t("JITI_REBUILD_FS_CACHE",!1),moduleCache:$t("JITI_MODULE_CACHE",$t("JITI_REQUIRE_CACHE",!0)),debug:$t("JITI_DEBUG",!1),sourceMaps:$t("JITI_SOURCE_MAPS",!1),interopDefault:$t("JITI_INTEROP_DEFAULT",!0),extensions:pe("JITI_EXTENSIONS",[".js",".mjs",".cjs",".ts",".tsx",".mts",".cts",".mtsx",".ctsx"]),alias:pe("JITI_ALIAS",{}),nativeModules:pe("JITI_NATIVE_MODULES",[]),transformModules:pe("JITI_TRANSFORM_MODULES",[]),tryNative:pe("JITI_TRY_NATIVE","Bun"in globalThis),esmEvalTempFile:$t("JITI_ESM_EVAL_TEMP_FILE",!1),jsx:$t("JITI_JSX",!1),tsconfigPaths:pe("JITI_TSCONFIG_PATHS",!1,!0)};et.jsx&&et.extensions.push(".jsx",".tsx");let G={};return J.cache!==void 0&&(G.fsCache=J.cache),J.requireCache!==void 0&&(G.moduleCache=J.requireCache),{...et,...G,...J}})(e);typeof t=="string"&&t.startsWith("file://")&&(t=be(t));let o=r.alias&&Object.keys(r.alias).length>0?Rs(r.alias||{}):void 0,c;if(r.tsconfigPaths){let{getTsconfig:J,createPathsMatcher:et}=w("./node_modules/.pnpm/get-tsconfig@4.14.0/node_modules/get-tsconfig/dist/index.cjs"),G=J(typeof r.tsconfigPaths=="string"?r.tsconfigPaths:je(t));G&&(c=et(G))}let l=["typescript","jiti",...r.nativeModules||[]],f=new RegExp(`node_modules/(${l.map(J=>As(J)).join("|")})/`),y=[...r.transformModules||[]],m=new RegExp(`node_modules/(${y.map(J=>As(J)).join("|")})/`);t||(t=process.cwd()),!s&&Us(t)&&(t=Ft(t,"_index.js"));let I=he(t),b=[...r.extensions].filter(J=>J!==".js"),U=i.createRequire(Mn?t.replace(/\//g,"\\"):t),tt={filename:t,url:I,opts:r,alias:o,resolveTsConfigPaths:c,nativeModules:l,transformModules:y,isNativeRe:f,isTransformRe:m,additionalExts:b,nativeRequire:U,onError:i.onError,parentModule:i.parentModule,parentCache:i.parentCache,nativeImport:i.nativeImport,createRequire:i.createRequire};return s||vt(tt,"[init]",...[["version:",yn.rE],["module-cache:",r.moduleCache],["fs-cache:",r.fsCache],["rebuild-fs-cache:",r.rebuildFsCache],["interop-defaults:",r.interopDefault]].flat()),s||jn(tt),Object.assign(function(J){return xi(tt,J,{async:!1})},{cache:r.moduleCache?U.cache:Object.create(null),extensions:U.extensions,main:U.main,options:r,resolve:Object.assign(function(J,et){return ke(tt,J,{...et,async:!1})},{paths:U.resolve.paths}),transform:J=>Gi(tt,J),evalModule:(J,et)=>Hi(tt,J,et),async import(J,et){let G=await xi(tt,J,{...et,async:!0});return et?.default?G?.default??G:G},esmResolve(J,et){typeof et=="string"&&(et={parentURL:et});let G=ke(tt,J,{parentURL:I,...et,async:!0});return!G||typeof G!="string"||G.startsWith("file://")?G:he(G)}})}})(),Xs.exports=L.default})()});var ir={};zi(ir,{createJiti:()=>er,default:()=>Qn});function Jn(g){throw g}function Yn(...g){return Yi||(Yi=(0,Qi.createRequire)(Xn.url)("../dist/babel.cjs")),Yi(...g)}function er(g,v={}){return v.transform||(v={...v,transform:Yn}),(0,tr.default)(g,v,{onError:Jn,nativeImport:zn,createRequire:Qi.createRequire})}var Qi,tr,Xn,zn,Yi,Qn,sr=Ys(()=>{"use strict";Qi=require("module"),tr=Ei(Zs(),1),Xn={};zn=g=>import(g);Qn=er});var pr={};zi(pr,{createDefu:()=>ki,default:()=>ea,defu:()=>ea,defuArrayFn:()=>sa,defuFn:()=>ia});function Zi(g){if(g===null||typeof g!="object")return!1;let v=Object.getPrototypeOf(g);return v!==null&&v!==Object.prototype&&Object.getPrototypeOf(v)!==null||Symbol.iterator in g?!1:Symbol.toStringTag in g?Object.prototype.toString.call(g)==="[object Module]":!0}function ts(g,v,w=".",L){if(!Zi(v))return ts(g,{},w,L);let S={...v};for(let T of Object.keys(g)){if(T==="__proto__"||T==="constructor")continue;let N=g[T];N!=null&&(L&&L(S,T,N,w)||(Array.isArray(N)&&Array.isArray(S[T])?S[T]=[...N,...S[T]]:Zi(N)&&Zi(S[T])?S[T]=ts(N,S[T],(w?`${w}.`:"")+T.toString(),L):S[T]=N))}return S}function ki(g){return(...v)=>v.reduce((w,L)=>ts(w,L,"",g),{})}var ea,ia,sa,ur=Ys(()=>{"use strict";ea=ki(),ia=ki((g,v,w)=>{if(g[v]!==void 0&&typeof w=="function")return g[v]=w(g[v]),!0}),sa=ki((g,v,w)=>{if(Array.isArray(g[v])&&typeof w=="function")return g[v]=w(g[v]),!0})});var aa={};zi(aa,{main:()=>Rr,parseArgs:()=>Ar,showHelp:()=>Tr});module.exports=Kn(aa);var Sr=require("fs/promises"),Ir=require("path");var fr=require("fs/promises"),qe=Ei(require("path"));var Ie=Ei(require("path"));var bi=require("child_process"),Zn=require("crypto"),nr=require("fs"),de=require("fs/promises"),ee=require("path"),ar=require("url"),Xi=require("util");var ta={},Jt=(0,Xi.promisify)(bi.exec),ie=(0,Xi.promisify)(bi.execFile),or=async g=>{try{return await(0,de.access)(g),!0}catch(v){if(v.code==="ENOENT")return!1;throw v}},te=new Map,rr=200,cr=async(g,v)=>{let w=(0,ee.resolve)(g),L=`${w}:${[...v].sort().join(",")}`;if(te.has(L))return te.get(L);let S=w,{root:T}=(0,ee.parse)(S);for(;;){for(let N of v)if(await or((0,ee.join)(S,N)))return te.set(L,S),te.size>rr&&te.clear(),S;if(S===T)break;S=(0,ee.dirname)(S)}return te.set(L,null),te.size>rr&&te.clear(),null},wi=async(g,v={})=>{try{let w=await(0,de.readFile)(g,"utf-8");return JSON.parse(w)}catch(w){if(w.code==="ENOENT")return null;if(v.strict)throw w;return null}},lr=async(g,v={})=>{if(!await or(g))return null;try{let w=await Promise.resolve().then(()=>(sr(),ir)),S=(w.createJiti?w.createJiti(process.cwd()):w.default(process.cwd()))(g);return S.default??S}catch{try{let w=await import(g);return w.default??w}catch(w){if(v.strict)throw/\.(ts|mts)$/.test(g)?new Error(`Failed to load TypeScript config at ${g}. Install 'jiti' to load TS configs. Original error: ${w}`):w;return null}}},Be=(g,v)=>{if(typeof g!="object"||g===null||typeof v!="object"||v===null||Array.isArray(g)&&Array.isArray(v))return v;let w={...g};for(let L of Object.keys(v))L==="__proto__"||L==="constructor"||L==="prototype"||Object.hasOwn(v,L)&&(w[L]=L in g?Be(g[L],v[L]):v[L]);return w};var hr=()=>(0,nr.realpathSync)(process.argv[1])===(0,ar.fileURLToPath)(ta.url);var We=new Map,Ci=async(g=process.cwd())=>{let v=Ie.default.resolve(g);if(We.has(v))return We.get(v);let w=await cr(v,[".git",".changeset","pnpm-workspace.yaml"]);if(w)return We.set(v,w),w;let L=Ie.default.resolve(g),{root:S}=Ie.default.parse(L);for(;;){let T=Ie.default.join(L,"package.json"),N=await wi(T);if(N?.workspaces&&Array.isArray(N.workspaces))return We.set(v,L),L;if(L===S)break;L=Ie.default.dirname(L)}return We.set(v,v),v};var dr=async({name:g,cwd:v=process.cwd(),defaults:w={},envVars:L={},cliArgs:S={},configFile:T,strict:N=!1})=>{let ct=await Ci(v),C=[];if(T)C.push(qe.default.resolve(v,T));else{let q=qe.default.resolve(v),K=new RegExp(`^${g}\\.config\\.(ts|mts|js|mjs|json)$`);for(;;){try{let B=(await(0,fr.readdir)(q)).find($=>K.test($));B&&C.push(qe.default.join(q,B))}catch{}if(q===ct)break;let ht=qe.default.dirname(q);if(ht===q)break;q=ht}}let O=[];for(let q of C.reverse())if(q.endsWith(".json")){let K=await wi(q,{strict:N});K&&O.push(K)}else{let K=await lr(q,{strict:N});K&&O.push(K)}let bt=Be;try{let q=await Promise.resolve().then(()=>(ur(),pr));q?.defu&&(bt=(K,ht)=>q.defu(ht,K))}catch{}let lt=w;for(let q of O)lt=bt(lt,q);return lt=bt(lt,L),lt=bt(lt,S),lt};var xr=require("fs"),yr=Ei(require("os")),se="\x1B[",Si={gray:g=>`${se}90m${g}${se}39m`,blue:g=>`${se}34m${g}${se}39m`,yellow:g=>`${se}33m${g}${se}39m`,red:g=>`${se}31m${g}${se}39m`},mr={debug:20,info:30,warn:40,error:50},gr={debug:Si.gray,info:Si.blue,warn:Si.yellow,error:Si.red},vr=g=>{let v=mr[g.level],w=g.logFormat??"text",L=g.name,S=L?{debug:`${L}:DEBUG`,info:`${L}:INFO`,warn:`${L}:WARN`,error:`${g.name}:ERROR`}:{debug:"DEBUG",info:"INFO",warn:"WARN",error:"ERROR"},T=null,N=!1,ct=process.stdout.isTTY&&!process.env.NO_COLOR||!!process.env.FORCE_COLOR;if(g.logFile)try{T=(0,xr.createWriteStream)(g.logFile,{flags:"a"}),T.on("error",()=>{T=null})}catch{T=null}let C=()=>{if(!N&&(N=!0,T)){try{T.end()}catch{}T=null}};process.once("exit",C),process.once("SIGINT",()=>{C(),process.exit(0)}),process.once("SIGTERM",()=>{C(),process.exit(0)});let O=process.pid,bt=yr.default.hostname(),lt=(q,...K)=>{if(mr[q]<v)return;let ht=new Date().toISOString(),ot=K.map(String).join(" "),B=w==="json"?JSON.stringify({ts:ht,level:q,message:ot,pid:O,hostname:bt,name:L}):`[${ht}] [${S[q]}] ${ot}`,$=ct&&gr[q]?gr[q](B):B;if((q==="warn"||q==="error"?process.stderr:process.stdout).write(`${$}
|
|
22
|
+
`),T)try{T.write(`${B}
|
|
23
|
+
`)}catch{T=null}};return{debug:(...q)=>lt("debug",...q),info:(...q)=>lt("info",...q),warn:(...q)=>lt("warn",...q),error:(...q)=>lt("error",...q),close:C}};var Cr=require("fs/promises");var Ge=require("fs/promises"),ra=require("path");var es=require("git-json-resolver"),_r=()=>Promise.all([Jt("git diff --quiet"),Jt("git diff --cached --quiet")]);var is=g=>g.replace(/[^a-zA-Z0-9._/-]/g,""),Er=g=>{let v=g.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9_-]/g,"");if(!v||!/^[a-zA-Z0-9_]/.test(v)||v.startsWith("-"))throw new Error(`Invalid remote name: "${g}". Remote names may only contain letters, numbers, underscore, and hyphen, and cannot start with '-'.`);return v},Ae=g=>g.replace(/[\r\n]/g,""),ss=async({remoteName:g,baseRef:v,targetRef:w,exclusions:L,logger:S,maxRetries:T=3,errorLogs:N=[]},ct=0)=>{if(ct>T){S.warn(`Max patch recursion reached (${T}), stopping`);return}let C=`git diff ${v} ${g}/main -- ${L.join(" ")} .`;S.debug(`Running: ${C}`);let{stdout:O}=await ie("git",["diff",v,`${g}/${w}`,"--",...L,"."],{encoding:"utf8"});await(0,Ge.writeFile)(".template.patch",O),S.debug(`Patch written to .template.patch (${O.length} chars)`);try{S.debug("Applying patch with 3-way merge"),await Jt("git apply --3way --ignore-space-change --ignore-whitespace .template.patch",{encoding:"utf8"}),S.debug("Patch applied successfully")}catch(bt){let lt=bt.stderr?.split(`
|
|
24
|
+
`).filter(q=>q.startsWith("error"));S.debug(`Patch failed with ${lt.length} errors`),lt.forEach(q=>{let K=q.split(":")[1]?.trim();K&&(L.push(`:!${K}`),S.debug(`Added to exclusions: ${Ae(K)}`))}),N.push("Applied patch with errors: "),N.push({errorLines:lt,exclusions:L}),N.push("^^^---Applied patch with errors"),lt.length&&await ss({remoteName:g,baseRef:v,targetRef:w,exclusions:L,logger:S,maxRetries:T,errorLogs:N},ct+1)}},br=async g=>{await(0,es.resolveConflicts)({include:["package.json"],defaultStrategy:["merge","theirs"],rules:{name:["ours"],"devDependencies.*":["ignore-removed","theirs"],"dependencies.*":["ignore-removed","theirs"]},debug:g}),await(0,es.resolveConflicts)({include:["**/package.json"],exclude:["package.json","**/dist/**","**/.next/**"],defaultStrategy:["merge","non-empty","ours"],rules:{"devDependencies.*":["semver-max"],"dependencies.*":["semver-max"]},loggerConfig:{logDir:".logs2",levels:{stdout:[]}},plugins:["git-json-resolver-semver"],pluginConfig:{"git-json-resolver-semver":{preferValid:!0}},includeNonConflicted:!0,debug:g})},wr=async g=>{try{let N=await(0,Ge.readFile)(g,"utf8");return JSON.parse(N).lastSyncedCommit}catch{}let[{stdout:v},{stdout:w}]=await Promise.all([Jt("git log --reverse --format=%ai | head -n 1",{encoding:"utf8"}),Jt("git log --format=%H::%ai template/main",{encoding:"utf8"})]),L=new Date(v.trim()),T=w.trim().split(`
|
|
25
|
+
`).map(N=>{let[ct,C]=N.split("::");return{hash:ct,date:new Date(C?.trim())}}).reverse().find(N=>N.date>=L);if(T)return console.info("Applying changes from ",T.hash," dated ",T.date),T.hash};var Ii={logLevel:"info",dryRun:!1,templateUrl:"https://github.com/turboforge/forge-template.git",excludePaths:[],remoteName:"template",maxPatchRetries:3,backupDir:".forge-backup",skipCleanCheck:!1,targetRef:"main",metaFile:".forge-meta.json",baseRef:"",postSync:["pnpm install","pnpm biome check --write --no-errors-on-unmatched $(git diff --cached --name-only --diff-filter=ACM | grep -E '\\.(ts|tsx|js|json)$' || true)"]},na=[],kr=async g=>{let{logLevel:v,skipCleanCheck:w,dryRun:L,remoteName:S,templateUrl:T,backupDir:N,baseRef:ct,excludePaths:C,targetRef:O,metaFile:bt,postSync:lt,maxPatchRetries:q}=Be(Ii,g),K=vr({level:v});if(!ct){K.error("\u274C Error: Base ref is required");return}if(w)K.info("Skipping git clean check");else try{await _r(),K.info("Git tree is clean")}catch{K.error("\u274C Error: Please commit or stash your changes before upgrading.");return}L&&K.info("Dry run mode - no changes will be applied");let ht=Er(S);try{await Promise.all([ie("git",["remote","add",ht,T]),Jt(`rm -rf ${N}`)])}catch{K.debug(`${Ae(ht)} remote already exists`)}finally{K.debug(`Added ${Ae(ht)} remote: ${Ae(T)}`)}try{await ie("git",["fetch",ht]),K.debug(`Fetched latest changes from ${Ae(ht)}`);let ot=is(ct),B=is(O),$=[...C].map(yt=>`:!${yt}`);if(K.debug(`Base exclusions: ${$.length} items`),K.debug(`Generating patch from ${ot} to ${B}`),K.debug(`Total exclusions: ${$.length}`),L){let{stdout:yt}=await ie("git",["diff",ot,`${ht}/${B}`,"--",...$,"."],{encoding:"utf8"});K.info("\u{1F4CB} Patch preview:"),K.info(yt||"No changes to apply");return}await ss({remoteName:ht,baseRef:ot,targetRef:B,exclusions:$,logger:K,maxRetries:q,errorLogs:na});let{stdout:at}=await ie("git",["rev-parse",`${ht}/${B}`],{encoding:"utf8"});await(0,Cr.writeFile)(bt,JSON.stringify({lastSyncedCommit:at.trim(),baseRef:ot,targetRef:B,generatedAt:new Date().toISOString()},null,2)),await br(v==="debug"),console.log("\u2705 Upgrade applied successfully."),L||(K.info("Running post-sync commands..."),K.info(lt.join(`
|
|
26
|
+
`)),await Promise.all(lt.map(yt=>Jt(yt))))}catch(ot){console.error("\u274C Upgrade failed:",ot)}try{await ie("git",["remote","remove",ht])}catch{}};var Ar=g=>{let v={};for(let w=0;w<g.length;w++)switch(g[w]){case"--log-level":case"-l":v.logLevel=g[++w];break;case"--dry-run":v.dryRun=!0;break;case"--template-url":v.templateUrl=g[++w];break;case"--exclude":v.excludePaths=g[++w]?.split(",")||[];break;case"--post-sync":v.postSync=g[++w]?.split(",")||[];break;case"--remote-name":v.remoteName=g[++w];break;case"--max-retries":v.maxPatchRetries=parseInt(g[++w],10)||3;break;case"--skip-clean-check":v.skipCleanCheck=!0;break;case"--base-ref":v.baseRef=g[++w];break;case"--target-ref":v.targetRef=g[++w];break;case"--meta-file":v.metaFile=g[++w];break;case"--backup-dir":v.backupDir=g[++w];break;case"--init":case"-i":v.init=!0,g[w+1]&&!g[w+1].startsWith("--")&&(v.config=g[++w]);break;case"--config":case"-c":v.config=g[++w];break;case"--help":case"-h":v.help=!0;break}return v},Tr=()=>{console.log(`
|
|
21
27
|
Usage: forge-sync [options]
|
|
22
28
|
|
|
23
29
|
Options:
|
|
@@ -46,4 +52,4 @@ Examples:
|
|
|
46
52
|
forge-sync --template-url https://github.com/custom/template
|
|
47
53
|
forge-sync --init
|
|
48
54
|
forge-sync --config .forge-sync.prod.json
|
|
49
|
-
`)},
|
|
55
|
+
`)},Rr=async(g=process.argv.slice(2))=>{let{help:v,init:w,config:L,...S}=Ar(g);if(v){Tr();return}if(w){await(0,Sr.writeFile)((0,Ir.resolve)(await Ci(),L||"forge-sync.config.json"),JSON.stringify(Ii,null,2)),console.log(`Created default config file at ${L||"forge-sync.config.json"}`);return}let T=await dr({name:"forge-sync",cliArgs:S,defaults:Ii,configFile:L});T.baseRef=T.baseRef||await wr(T.metaFile),await kr(T)};hr()&&Rr().catch(console.error);0&&(module.exports={main,parseArgs,showHelp});
|